-
The problem is caused by surrounding quotes of the connection string:
- hibernate_connection_url="jdbc:mysql://onedev-db-mysql:3306/onedev?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false&disableMariaDbDriver=true"Please change it to:
- hibernate_connection_url=jdbc:mysql://onedev-db-mysql:3306/onedev?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false&disableMariaDbDriver=trueAnother issue in this docker compose file is that OneDev can only run as root user inside the container. Please remove uid/gid assignment in OneDev container.
At last, add property
tty: trueto OneDev container, otherwise logging will not work correctly in OneDev. -
Ah thanks for that, malformed connection string was definitely an issue. Also good to know about the user, I have tried to configure my other images to run as users which were already permitted to access my existing storage.
Once it was past the initial startup issue the logs showed that it was waiting to start up but the server component hadn't started until I connected to the container and poked at some of the scripts. It looks like the file structure was created properly though. I tried running the server.sh script but this failed, but when checking the docker logs, they showed that the server had started and was waiting for connections. Is there a post run script I should kick off to prime the server instance or something?
-
Have you added
tty: trueto OneDev container? -
Previous Value Current Value Open
Closed
| Type |
Question
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
Hi there! I am new here and wanting to get onedev up and running on my nas to help organize some of my coding projects. I am attempting to run this via docker within synology container manager and hitting a little snag in connecting to the mysql db which will be running alongside it. I am able to talk to the db and verify that the credentials are valid which I am specifying but I am getting a sql connection error.
log