Nextcloud breaks when docker image is updated

I automatically update my images with Watchtowerrr and every time it updates the image nextcloud just breaks and returns 500. ive tried doing it manually too and im getting the same issue. i dont get much details in the logs either.

all i get is this:

192.168.144.2 - - [21/Sep/2022:15:29:22 +0000] "GET / HTTP/1.1" 500 689 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0"
192.168.144.2 - - [21/Sep/2022:15:29:28 +0000] "GET / HTTP/1.1" 500 689 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0"

and a plain 500 error on my browser.

you are doing something wrong, my docker setup was (manually) upgraded over two years, 5 major and almost all minor versions without significant issues. please review the proper update procedure.

I know there are different view on this topic but personally I would not recommend to auto-update complex applications.

It’s not exactly a complex procedure, but I get it. I think what I’m missing is defining the dB and so on in the environment variables of next cloud. I’ll add that.