Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Hi Markus,
Based on the error in the logs, MySQL could not start in the latest Windows version of Docker (it works fine on slightly older ones).
It seems the cause is https://github.com/docker/for-linux/issues/72. As a workaround, you can run the container with a volume option -v /var/lib/mysql, so the actual command would be
docker run -d -p 8080:8080 -v /var/lib/mysql --name joget jogetworkflow/joget-community
We have updated the Docker Hub page accordingly at https://hub.docker.com/r/jogetworkflow/joget-community/. Alternatively, you can also follow the Run Joget with Linked MySQL and Container Mounted Volume option under that same page.
Thanks for reporting the issue.
Best Regards
Julian
I run a local docker on Windows 10. In order to be sure not to run a tainted version of the docker image I took radical measures:
docker rm -v $(docker ps -a -q -f status=exited)
docker rmi jogetworkflow/joget-community
docker run -it -p 8080:8080 --name joget jogetworkflow/joget-community
Unable to find image 'jogetworkflow/joget-community:latest' locally
latest: Pulling from jogetworkflow/joget-community
f8efbffe7b95: Pull complete
a3ed95caeb02: Pull complete
faf48f8d169a: Pull complete
99acf0b9012b: Pull complete
72f100199ed3: Pull complete
7fc5edfc1426: Pull complete
f2a484918298: Pull complete
f69a603d790f: Pull complete
8f1662a70fd8: Pull complete
e1970e9ba54c: Pull complete
2a26d403db11: Pull complete
f0c2ce2d36b4: Pull complete
c393a94bfd4d: Pull complete
cda02330284b: Pull complete
Digest: sha256:f070d2c73b3b7d936c97cb218262e8907107007b5056cd8dee8cf4df85f6e1cc
Status: Downloaded newer image for jogetworkflow/joget-community:latest
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar
Buildfile: build.xml
setup-db:
[input] skipping input as property db.host has already been set.
[input] skipping input as property db.port has already been set.
[input] skipping input as property db.name has already been set.
[input] skipping input as property db.user has already been set.
[input] skipping input as property db.password has already been set.
[input] skipping input as property profile.name has already been set.
create-db:
[echo] Creating database, please wait...
[exec] ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[exec] Result: 1
[exec] ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[exec] Result: 1
create-profile:
[copy] Copying 1 file to /opt/joget/wflow
[propertyfile] Creating new property file: /opt/joget/wflow/app_datasource.properties
...
Hi there,
I just tried from fresh and issued the same command as yours. It worked as expected.
Perhaps your docker is running from another IP address? You can issue this command to check your docker's IP.
$ docker-machine ip 192.168.99.100
Cheers
docker-machine is not working here: c:\>docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES c9e6bcda335e jogetworkflow/joget-community "/opt/joget/run.sh " 14 minutes ago Up 2 minutes 0.0.0.0:8080->8080/tcp joget c:\>docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
From fresh means `docker rmi jogetworkflow/joget-community`and you are running Windows 10 as host?
Try to run this command to pick up tomcat's log for any server side error.
docker logs -f joget
I will give it a try tomorrow, but what I do not gröl is: This error is reproducible, right? All I do is issue the command from the docs. So why don’t you try on your own?
Hi, I tried the command from the docs and it works fine. Just ran docker run -d -p 8080:8080 --name joget jogetworkflow/joget-community, and I could access ip:8080/jw without any problems. You might want to check your logs to see what specific errors you are encountering.
logs -f joget [FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed! ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar Buildfile: build.xml setup-db: [input] skipping input as property db.host has already been set. [input] skipping input as property db.port has already been set. [input] skipping input as property db.name has already been set. [input] skipping input as property db.user has already been set. [input] skipping input as property db.password has already been set. [input] skipping input as property profile.name has already been set. create-db: [echo] Creating database, please wait... [exec] ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) [exec] Result: 1 [exec] ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) [exec] Result: 1
Hi Markus,
Seems like you are running Joget with embedded MySQL. Did you try to access http://localhost:8080/jw?
Of course
I issued the command (on windows 10)
docker run -it -p 8080:8080 --name joget jogetworkflow/joget-community
Apparently I can run an instance, since I see
But:
How can I cure the forbidden access?
I tried to run /opt/joget/setup.sh which asked me for a MySQL root pw, but that was not the solution. No difference in behavior. Any help appreciated.