TypeError: Cannot destructure property 'client' of 'db.config.connection' as it is undefined

I just don’t know what to do anymore. Can anyone give me the solution?

This topic has been created from a Discord post (1234323731300745286) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

<@242767266528100352> any updates on that issue? It’s really annoying…

1 Like

I solved it because the volumes were overwritten and the .env file could no longer be read. Now I only have the uploads as one volume, but I will also switch that to S3

You got me on the right tracks. Thanks a lot!

In my case there were two reasons.

I've edited cms/config/database.js according to what copilot said (not very good idea). Next time I'll just check the docs.
I wasn't copying .env file while preparing docker image.

So I guess missing env variables and incorrect database.js can cause this issue.