novaspirit / pi-hosted

Raspberry Pi Self Hosted Server Based on Docker / Portainer.io
1.23k stars 365 forks source link

[QUESTION] Nginx Proxy Manager - Bad Gateway #297

Closed FilipLac closed 2 years ago

FilipLac commented 2 years ago

Question Bad Gateway on login screen after setting up Nginx Proxy Manager using template. What can I do ?

Context I was following everything that was mentioned in video and after deploying container I am unable to log in (getting bad gateway error). When I looked up in portainer log for NPM it showed this: image

How can I fix it ?

SomeDood00 commented 2 years ago

I had a similar problem https://nginxproxymanager.com/setup/#running-on-raspberry-pi-arm-devices

Please note that the jc21/mariadb-aria:latest image might have some problems on some ARM devices, if you want a separate database container, use the yobasystems/alpine-mariadb:latest image.

FilipLac commented 2 years ago

Ok, so Mariadb is causing this ? So if I switch to alpine it should work ?

martadinata666 commented 2 years ago

If the error about transaction lock thing then maybe change db will help.

FilipLac commented 2 years ago

No, I am getting Bad Gateway on login and in logs there is some error in ./run line 19 (i think) which is saying something about illegal operation on some production.json file or so

martadinata666 commented 2 years ago

check if the config.json created correctly, it should be a file not directory.

FilipLac commented 2 years ago

To me it looked fine

martadinata666 commented 2 years ago

2022-02-28-233732_446x204_scrot

The file structure mostly like that

FilipLac commented 2 years ago

Ok, I will look it up. Thanks

FilipLac commented 2 years ago

Ok, I fixed it :D Thanks for any suggestions