Getting Exception Failed to connect to the database: An exception occurred in the driver: SQLSTATE[08006] [7] error everytime nextcloud does it daily backup #5067
-
Steps to reproduce
Expected behaviorwhen backing up or turning off the containor no error should occur Actual behavioreverytime the containor turns off to backup its gets this error Exception Failed to connect to the database: An exception occurred in the driver: SQLSTATE[08006] [7] could not translate host name "nextcloud-aio-database" to address: Name does not resolve Exception thrown: Doctrine\DBAL\Exception Host OStruenas scale, using jailmaker Nextcloud AIO versionNextcloud AIO v9.3.0 Current channellastest channel Other valuable info |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments
-
Hi, can you post the output of |
Beta Was this translation helpful? Give feedback.
-
Client: Docker Engine - Community Server: |
Beta Was this translation helpful? Give feedback.
-
All right. Can you upgrade to docker v27 and recreate the nextcloud-aio network by following #4989 and check if that resolves the problem for you? |
Beta Was this translation helpful? Give feedback.
-
Ok i am going to see how to update my docker and will try it out |
Beta Was this translation helpful? Give feedback.
-
I have updated my docker and just tried restarting the containor in the aio interface and still got about 50 messages about Failed to connect to the database: An exception occurred in the driver: SQLSTATE[08006] [7] could not translate host name "nextcloud-aio-database" to address: Name does not resolve here is my docker info Client: Docker Engine - Community Server: |
Beta Was this translation helpful? Give feedback.
-
Have you also tried to recreate the network as documented in #4989? |
Beta Was this translation helpful? Give feedback.
-
just tried it, but still the same error when restarting the containor |
Beta Was this translation helpful? Give feedback.
-
So these are new errors and not old ones? Can you show the timestamp? |
Beta Was this translation helpful? Give feedback.
-
Hm... I fear I still cannot reproduce this on my test server so hard to help further. Maybe someone has an idea at https://help.nextcloud.com? |
Beta Was this translation helpful? Give feedback.
-
Same issue here - I get about 50 messages every day in AIO. I guess the DB isn't available during backup? If this is expected, it should not generate error messages. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hm... I fear I still cannot reproduce this on my test server so hard to help further. Maybe someone has an idea at https://help.nextcloud.com?