-
OneDev tries to connect to database server to determine its own ip address. And the database host looks unreachable from OneDev. Please let me know below values you are using for helm install:
database.type database.host database.port -
This is how my values.yaml - database section looks like
database: external: true host: onedev-mysql.onedev.svc.cluster.local maximumPoolSize: "25" name: onedev password: changeit port: "3306" type: mysql user: onedev -
Is OneDev server installed also in namespace
onedev? Can you please run a test pod (ubuntu for instance) in this namespace, and run below command to see if it works?telnet onedev-mysql.onedev.svc.cluster.local 3306 -
Yes, there both in the same namespace:
root@ubuntu:/# telnet onedev-mysql.onedev.svc.cluster.local 3306 Trying 10.43.85.63... Connected to onedev-mysql.onedev.svc.cluster.local. Escape character is '^]'. J 8.0.34s4 PTv�!J.ZV=N>,/0mysql_native_password2#08S01Got timeout reading communication packetsConnection closed by foreign host. root@ubuntu:/# -
It is odd that OneDev container can not connect to this address. Please change the db host as cluster ip of the mysql service, and test again to see if it works.
-
I get a JDBC Class not found error.
-
Maybe i try it with a clean install
-
This is quite odd. I tested upgrading from 9.0.4 to 9.1.5 on GKS and it works fine. If you have any findings, please let me know.
-
I finally found the reason:
I need to declare these keys:
database: external: true dbHost: onedev-mysql.onedev.svc.cluster.local dbMaximumPoolSize: "25" dbName: onedev dbPassword: changeit dbPort: "3306" dbType: mysql dbUser: root -
I think you forgot to update which keys to use inside the application
-
Ok, my fault. I was on the wrong cluster. I tried a clean onedev install on a clean minikube cluster. I have the same issue.
Something is wrong on the application site. With this version. I will have a look on the latest changes later.
-
Seems that you did not quote values. Mine is:
database: external: true type: "mysql" host: "onedev-mysql.onedev.svc.cluster.local" port: "3306" name: "onedev" user: "root" password: "changeit" maximumPoolSize: "25" -
OK. You are using the wrong key. Please remove the "db" prefix from various keys.
-
This change was made in 9.0.0. See incompatibiltity note here:
Since you are mentioning that you are upgrading from 9.0.4 to 9.1.5. I thought you already use the correct keys now...
-
Before each upgrade, I'd suggest to check the update from OneDev help menu (bottom left of the screen). It will show all changes since your current version, as well as any incompatibilities.
-
Okay, I found another thing.
database.external has to be false. Otherwise it comes to the NoRouteToHost Error. But if its false. My installation is stuck in "...Database not populated yet"
I did some connection checks from another pod in the same namespace. And its working
-
I found the main issue. I migrated to a newer k8s version. The dns is not working as expected. Specifying onedev-mysql in host. Solved the issue.
Thanks anyway! & Big sorry for the circumstances
-
Previous Value Current Value Open
Closed
-
No problem. Closing the issue now.
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| Affected Versions |
9.1.5
|
| Labels |
No labels
|
Hey there!
I upgraded from 9.0.4 to 9.1.5
I get now following error: https://hastebin.com/share/axuwiketaz.bash
Is this about the database? I checked the connection with another pod in the same namespace & the connection is working.