Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 502 access from internet #61

Open
jxrse opened this issue Apr 26, 2021 · 4 comments
Open

Error 502 access from internet #61

jxrse opened this issue Apr 26, 2021 · 4 comments

Comments

@jxrse
Copy link

jxrse commented Apr 26, 2021

After manually installing Ampache with docker-compose.yml on my Raspberry Pi 4
I access correctly locally but I cannot do it through the internet
I get an NGINX 502 error
I have ports 85:80 that are forwarded to 80 because I have another application on that port

I have it installed in / var / www / html but nothing does not work

502 Bad Gateway
openresty

@kuzi-moto
Copy link
Member

kuzi-moto commented Apr 27, 2021

Hi @jxrse!

Could you elaborate on how exactly you set up Ampache? There are a couple statements in your post that are not immediately clear. For example:

I get an NGINX 502 error

Are you using Nginx as a reverse proxy? The Ampache docker image uses the Apache web server.

have it installed in / var / www / html

What exactly did you install there? If you used docker-compose then there is no specific place you need to put the docker-compose.yml file.

@jxrse
Copy link
Author

jxrse commented Apr 27, 2021

Hello Kuzi-Moto thanks for your answer
I have it installed on a Raspberry PI4 through docker with the file that I mention
The user directly indicates it to me in portainer, a container manager for docker
I don't use nginx directly ... to be able to access my raspberry pi from the internet I have NGINX PROXY MANAGER configured and it is in ports: 443: 443 443: 443 80:80 80:80 81:81 81:81
Since they are the ones you need by default, with which I have port 85 forwarded, which is the one that I access locally to ampache to port 80
Installation Path: / var / www / html / ampache
Regardless, check in a different one and the error is exactly the same.
I copy you my docker file from the installation

version: '3'
services:
ampache:
image: ampache / ampache: latest
container_name: ampache
restart: unless-stopped
ports:
- 85:80
volumes:
- ./data/config:/var/www/config
- ./data/log:/var/log/ampache
- ./data/media:/media
- ./data/mysql:/var/lib/mysql

@jxrse
Copy link
Author

jxrse commented May 4, 2021

Nobody can help me ? @kuzi-moto

@wagnered
Copy link

wagnered commented May 4, 2021

From the Mozilla web site:

Note: A Gateway might refer to different things in networking and a 502 error is usually not something you can fix, but requires a fix by the web server or the proxies you are trying to get access through.

From all those ports you list, an expert on networks might be required. ;'> The Ampache developers aren't network experts.

I suggest that you start with a simple host allowing ports 443 and 80. when that's working, add the reverse proxy if you really need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants