-
Please remove quotes in the .env file to see if it works.
-
Thanks @robin. Just tried but no joy, I'm afraid!
-
Miss spelling here:
hibername_dialectshould behibernate_dialectinstead -
Great catch. I so hoped that would solve it but it still doesn't. Same error. Even deleted all the containers and recreated them. New env file:
# onedev hibernate_dialect=org.hibernate.dialect.MySQL5InnoDBDialect hibernate_connection_driver=com.mysql.cj.jdbc.Driver hibernate_connection_username=onedev hibernate_connection_password=onedev hibernate_connection_url=jdbc:mysql://mysql:3306/onedev?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false&disableMariaDbDriver=true # MYSQL MYSQL_ROOT_PASSWORD="root" MYSQL_USER="onedev" MYSQL_PASSWORD="onedev" MYSQL_DATABASE="onedev" -
Okay, I got it working.
I checked the
conf/hibernate.propertiesfile in the volume. That does not populate with the information in the env vars for some reason and still had the h2 DB settings activated. Once I popped the DB details there it works.Probably something to look into?
-
And thank you for building a really great project.
I have a couple of questions (unrelated to this issue, but not sure if I should just open another issue to ask them):
- Is there a way to just remove the builds section. We won't be using it because we have Concourse setup with 100s of jobs and it works really well.
- Is there somewhere we can donate (not quite at the Enterprise stage yet).
Thank you.
-
Is there a way to just remove the builds section. We won't be using it because we have Concourse setup with 100s of jobs and it works really well
The builds section will always be there
Is there somewhere we can donate (not quite at the Enterprise stage yet
Since we have enterprise edition, the donation channel is not necessary currently. Nevertheless, thanks a lot for willing to help.
-
I realise that didn't sound right now that I read it. I meant more like disabling it because we won't use it (well, not for now, at least).
-
I realise that didn't sound right now that I read it. I meant more like disabling it because we won't use it (well, not for now, at least).
Added an improvement request for this as OD-2270
-
Another error in your .env:
hibernate_connection_drivershould behibernate_connection_driver_class -
OK, that actually fixes it. Thank you and I'm sorry for the false alarm. I need to improve my copying and pasting skills.
Thanks for all your help!
-
Previous Value Current Value Open
Closed
-
No problem
| Type |
Question
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
Hello folks,
I'm trying to get OneDev to work with MySQL, but it doesn't seem to work for me. Perhaps I am doing something wrong. Any help would be appreciated - thank you.
Docker compose file
The .env file
The database exists. I've even been able to connect to it using the mysql cli.
For
hibername_dialectI've also triedMySQL57InnoDBDialectandMySQL5DBDialect, but with no luck.This is what I always get, the famous NullPointer Exception from Java 🙂 :
Thank you again for thehelp!