Closed adrigrillo closed 1 year ago
I have been testing several images version, as Grocy was working until yesterday.
The first image I manage to get it to start properly was the one with the tag v3.1.0-ls116
which is the first that does not use Alpine 3.14 and PHP 8.
It is possible that the Alpine and PHP and other dependencies use the latest version available, even the image was published some days ago?
Investigating more, I discovered if I go to the /login
page and try to sign in with user admin and password admin, the following error is raised:
I have the same problem. Followed the installation instructions for a new installation on a Raspberry Pi 3B+ and got the same errors. Tried to find the reason but didn't find a solution yet.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
i started an docker container on the latest version today, and i get on all ports (80, 443, 9830) an Bad Gateway
the image is not working.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This is still not working.
It seems like the docker-compose example is wrong. At least in my test, it is listening on 80 and 443 instead of 9283.
9283 is the host port that is mapped to 80 inside the container
9283 is the host port that is mapped to 80 inside the container
I wasn't using port mapping. I was using macvlan, so I commented out the port mapping part. And I was not able to access it over 9283, but I was able to over 80 and 443.
If you didn't use the compose yaml we provided as is, how can you claim it's wrong?
Here is the compose file I was using:
version: "2.1"
services:
grocy:
image: lscr.io/linuxserver/grocy
container_name: grocy
environment:
- PUID=1000
- PGID=1000
- TZ=America/Toronto
volumes:
- grocy_config:/config
restart: unless-stopped
network_mode: "macvlan"
volumes:
grocy_config:
external: true
I was trying to access through port 9283. But got refused connection. Then I sshed into the docker and run netstat -a:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:https 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.11:37625 0.0.0.0:* LISTEN
tcp 0 0 localhost:9000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:http 0.0.0.0:* LISTEN
It seems like the docker is listening on port 80 and 443. Then I tried to access 80, got the grocy login page.
Therefore, I suspected the port should be 80:80 instead of 9283:80.
I think you should read up on port mapping: https://docs.docker.com/config/containers/container-networking/
Gotcha, sorry for misunderstood.
From: aptalca @.> Sent: Sunday, April 3, 2022 5:12 PM To: linuxserver/docker-grocy @.> Cc: Alex Chen @.>; Comment @.> Subject: Re: [linuxserver/docker-grocy] 502 Bad Gateway using raspberry pi 3b+ 64bit (Issue #53)
I think you should read up on port mapping: https://docs.docker.com/config/containers/container-networking/
— Reply to this email directly, view it on GitHubhttps://github.com/linuxserver/docker-grocy/issues/53#issuecomment-1086950326, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADUSAC2WUJCNGPFH4N44UC3VDICTBANCNFSM5IJCLPUQ. You are receiving this because you commented.Message ID: @.***>
I have tried today to use the docker-compose of the example on my Raspberry Pi 3B+ and it still gives the same error. Bad Gateway 502 appears on both port 80 and 443.
I have the same issue, but after updating. I tried to update, because my grocy app wanted a newer version of the server. After updating I get 502 Bad Gateway nginx/1.20.2 . Also running on raspberry pi 3b+ with ubuntu 64bit.
Just to mention it. I took the SD Card and put it into a pi4. Everything works just fine there. No Error anymore.
This still occurs, any workaround?
oh boy... came here to open this bug, but I see it's been open for a while... It's still broken
Just spun this up on a pi 3b+ and still has this issue ongoing. Thought it was my setup for a second!
I have tried today to use the docker-compose of the example on my Raspberry Pi 3B+ and it still gives the same error. Bad Gateway 502 appears.
It's like the php process doesn't start up or something. It doesn't log a single thing
Unfortunately the latest image with the tag linuxserver/grocy:v3.3.1-ls152@sha256:6e38ea35af9470f33a11966078b2a0c33b8f361cc51a8397135c34521a981f40
produces the same Bad Gateway 502
error.
according to https://github.com/hassio-addons/addon-grocy/issues/197#issuecomment-879330485 the problem is an upstream problem in alpine's libxml2 package that has since been resolved. When was the last time baseimage-alpine-nginx was built?? This problem would be present in any other images based on that base image. I think if you were to rebuild baseimage-alpine-nginx, then rebuilt all images based on it, including the grocy image, that the problem would be resolved. Other alpine-based grocy builds had the same problem and resolved it by updating their alpine base
I can confirm that rebuilding the image based off baseimage-alpine-nginx:3.15 resolves this issue. I am able to access the login page without getting a 502 error when running the container on Raspberry Pi 3
Is this project actively maintained? I get that its a volunteer effort, but this issue has a clear-cut upstream cause with a simple fix with a very small PR that resolves it. over 10 days seems excessive to review such a small PR to resolve an issue that's existed since last year.
It is. We currently have our 3.15 nginx base image on hold due to pending rework
oh good! just glad to hear someone's looking at it. Was worried that the issue would be marked inactive again
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue is still relevant, and there is a pending MR to resolve when the maintainers have an opportunity.
this bug is still present in the latest release because it is still based on the same base image containing the upstream libxml2 bug
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
https://github.com/linuxserver/docker-grocy/pull/52 (which will rebase this image to our alpine 3.15 image) should be ready to merge. If anyone wants to test lspipepr/grocy:v3.3.1-pkg-e772ab19-pr-52
and leave a comment on #52 confirming if they have any issues that would be helpful.
I just tested lspipepr/grocy:v3.3.1-pkg-e772ab19-pr-52
on my Pi 3 and all is working
Closing this now that https://github.com/linuxserver/docker-grocy/pull/52 is merged. There should be a new release shortly.
Expected Behavior
Grocy webpage loads and expected, so the user can access to its account.
Current Behavior
When the user tries to connect to Grocy, going to
localhost:9283
the browser returns an error 502 Bad Gateway produced by nginx. This error can also be related with https://github.com/hassio-addons/addon-grocy/issues/224 and it seems that it is a problem with the alpine Linux image.Steps to Reproduce
compose.yml
from the README of this repo.docker-compose up -d
.Environment
OS: Debian 11 Bullseye CPU architecture: arm64 How docker service was installed:
Using the installation script available in the official docker webpage. Additionally, following this tutorial.
The docker compose was installed using your own tutorial following the recommended first method.
Command used to create docker container (run/create/compose/screenshot)
Using the following compose.yml
and
docker-compose up -d
Docker logs
However in the NGINX logs we can found:
For the access.log
For the error.log1