mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #821] RPi4 - "Bad Gateway" on first login #695
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#695
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @willsmi1256 on GitHub (Jan 12, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/821
What is troubling you?
First some info about my system:
I'm pretty new to Docker in general, so I figured I would follow the default instructions to start with. I used the exact docker-compose file on this page. The install goes off without a hitch, but the app ends up in an unhealthy state. I did some looking and found bug 483 which is exactly my error as well as several other similar threads posted elsewhere.
I've read through as much as I could, but I can't seem to make any of the suggested compose files work either. They all give me the same errors. From what I can tell, the issue is that the app can't connect to the DB because it's not an ARM version, but I've tried several different mariadb versions as well SQLite (following the instructions on that setup page) that are supposed to be ARM friendly that also don't work.
I guess I'm really just hoping for some guidance here since it doesn't seem like the provided instructions are valid for my set up.
Logs here: _pi_app_1_logs.txt
@SF73 commented on GitHub (Jan 14, 2021):
I'm also running it on a rpi4. I had the same problem and found a solution.
I changed the mariadb image from
jc21/mariadb-aria:10.4toyobasystems/alpine-mariadb:armhf@willsmi1256 commented on GitHub (Jan 15, 2021):
Just gave this a shot. Same deal "Bad Gateway"
@jiriteach commented on GitHub (Jan 15, 2021):
Im running NPM on a RPI4/8GB and no problems. Use yobasystems/alpine-mariadb:latest as the db image. Make sure your environment has MYSQL_ prefixes instead of MARIADB_ and also change the default passwords.
Launch and use Portainer to check if its running after launch. If not - check the log from Portainer which will show you what error is being thrown.
@willsmi1256 commented on GitHub (Jan 15, 2021):
For some reason, switching to the Latest branch from the Armhf was what did the trick. I already had new passwords and the Mysql prefixes in my file, so that was all that changed. Thanks so much!
@mbino commented on GitHub (Jan 20, 2021):
How do you do this?
@willsmi1256 commented on GitHub (Jan 20, 2021):
Here's the compose file I used. Replace #PASS# with your passwords
version: "3"
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: always
ports:
# Public HTTP Port:
- '80:80'
# Public HTTPS Port:
- '443:443'
# Admin Web Port:
- '81:81'
environment:
# These are the settings to access your db
DB_MYSQL_HOST: "db"
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "npm"
DB_MYSQL_PASSWORD: "#PASS#"
DB_MYSQL_NAME: "npm"
# If you would rather use Sqlite uncomment this
# and remove all DB_MYSQL_* lines above
# DB_SQLITE_FILE: "/data/database.sqlite"
# Uncomment this if IPv6 is not enabled on your host
# DISABLE_IPV6: 'true'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
depends_on:
- db
db:
image: yobasystems/alpine-mariadb:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: '#PASS#'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: '#PASS#'
volumes:
- ./data/mysql:/var/lib/mysql
@NovaViper commented on GitHub (Feb 5, 2021):
I tried this solution but it's still giving me that error on my pi 4
@Zusier commented on GitHub (Jul 5, 2021):
Using
yobasystems/alpine-mariadb:latestinstead ofyobasystems/alpine-mariadb:armhfWorked for me. Thanks@ptalmeida commented on GitHub (Oct 23, 2021):
Only using
yobasystems/alpine-mariadb:10.4.17and notyobasystems/alpine-mariadbworked for me.