hassio-addons: 🐛 [Mealie] 502 Bad Gateway
Description
Running on Home Assistant Yellow.
Since the update, I get a 502 Bad Gateway error from Mealie.
See the log below - those last two lines continue infinitely.
When trying to load the UI, this also appears (I masked out my duckdns hostname)
2024/01/22 12:05:23 [error] 352#352: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.223, server: db21ed7f-mealie, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:9925/", host: "xxx:9090"
[22/Jan/2024:12:05:23 +0100] 502 -(192.168.1.223) GET / HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0)
usermod: no changes
2024/01/22 12:05:23 [error] 352#352: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.223, server: db21ed7f-mealie, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:9925/", host: "xxx:9090"
[22/Jan/2024:12:05:23 +0100] 502 -(192.168.1.223) GET / HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0)
Switching to dedicated user
usermod: no changes
2024/01/22 12:05:23 [error] 352#352: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.223, server: db21ed7f-mealie, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:9925/favicon.ico", host: "xxx:9090", referrer: "https://xxx:9090/"
[22/Jan/2024:12:05:23 +0100] 502 -(192.168.1.223) GET /favicon.ico HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0)
Reproduction steps
1. Start the addon
2. Click "Open UI"
3. See error
Addon Logs
/etc/cont-init.d/00-banner.sh: executing
-----------------------------------------------------------
Add-on: Mealie (Omni):
Mealie is a self hosted recipe manager and meal planner built in Vue
-----------------------------------------------------------
Add-on version: v1.0.0
You are running the latest version of this add-on.
System: Home Assistant OS 11.4 (aarch64 / yellow)
Home Assistant Core: 2024.1.5
Home Assistant Supervisor: 2023.12.1
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums
-----------------------------------------------------------
Provided by: https://github.com/alexbelgium/hassio-addons
-----------------------------------------------------------
Defining permissions for main user :
User UID: 0
User GID : 0
-----------------------------------------------------------
/etc/cont-init.d/00-global_var.sh: executing
ALLOW_SIGNUP='false'
PGID='0'
PUID='0'
certfile='fullchain.pem'
keyfile='privkey.pem'
ssl='true'
Timezone set from Etc/UTC to Europe/Vienna
/etc/cont-init.d/01-config_yaml.sh: executing
Setting permissions for the config.yaml directory
Load environment variables from /config/addons_config/mealie/config.yaml if existing
If accessing the file with filebrowser it should be mapped to /homeassistant/addons_config/mealie/config.yaml
---------------------------------------------------------
Wiki here on how to use : github.com/alexbelgium/hassio-addons/wiki/Add‐ons-feature-:-add-env-variables
... no env variables found, exiting
/etc/cont-init.d/01-custom_script.sh: executing
Execute /homeassistant/addons_config/mealie/mealie.sh if existing
Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation
/etc/cont-init.d/31-nginx.sh: executing
[12:04:13] INFO: Exporting variables
ALLOW_SIGNUP=false
PGID=0
PUID=0
certfile=fullchain.pem
keyfile=privkey.pem
ssl=true
[12:04:15] INFO: config.yaml found in /config/addons_config/mealie/config.yaml, exporting variables
Permissions adapted
[12:04:15] INFO: Starting nginx
[12:04:15] INFO: Starting app
Switching to dedicated user
usermod: no changes
Switching to dedicated user
usermod: no changes
Switching to dedicated user
usermod: no changes
Switching to dedicated user
usermod: no changes
Switching to dedicated user
usermod: no changes
Switching to dedicated user
usermod: no changes
Switching to dedicated user
usermod: no changes
Switching to dedicated user
usermod: no changes
Switching to dedicated user
usermod: no changes
Switching to dedicated user
usermod: no changes
Switching to dedicated user
usermod: no changes
Switching to dedicated user
usermod: no changes
Switching to dedicated user
usermod: no changes
Switching to dedicated user
usermod: no changes
Switching to dedicated user
usermod: no changes
Architecture
aarch64
OS
HAos
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Comments: 26 (9 by maintainers)
Commits related to this issue
- Fix ssl ports https://github.com/alexbelgium/hassio-addons/issues/1197 — committed to alexbelgium/hassio-addons by alexbelgium 5 months ago
- Remove front-end code https://github.com/alexbelgium/hassio-addons/issues/1197 — committed to alexbelgium/hassio-addons by alexbelgium 5 months ago
- Avoid root as user https://github.com/alexbelgium/hassio-addons/issues/1197 — committed to alexbelgium/hassio-addons by alexbelgium 5 months ago
- Ssl correction https://github.com/alexbelgium/hassio-addons/issues/1197#issuecomment-1905554907 — committed to alexbelgium/hassio-addons by alexbelgium 5 months ago
- Single port for http and https https://github.com/alexbelgium/hassio-addons/issues/1197#issuecomment-1905554907 — committed to alexbelgium/hassio-addons by alexbelgium 5 months ago
- Test fix https://github.com/alexbelgium/hassio-addons/issues/1197 — committed to m4dm4rtig4n/hassio-addons by alexbelgium 5 months ago
Thanks i’ll look to adapt when i’ll have some time!
Yup, now it works again. Thank you!
Ahh my bad. I missed updating a port forwarding rule with all the port changes. Ssl does now work for me with the latest version using https://url:9090. Thanks!
Ssl is not supported by Mealie actually (I think) so it’s managed through an additional layer of nginx proxy (that’s why there is a different port). I’ll check how to adapt
Thanks for the reply. I think there is something wrong with the SSL bit. I have it configured as you describe but SSL/HTTPS just will not work 😦 HTTP does work.
The other one I put to :9091
Seems the port of Mealie Web UI changed from 3000 to 9000
This workes for me for now
Same for me too
Just encountered the same issue. I used another PGID/PUID and it worked again.