502 Bad Gateway on Android Client after successful Setup
Version: 7873719099901e0324752bbfc20b45a084d1a70d Installation: docker image, built from Wallabag Docker repo PHP version: docker version OS: docker... Debian on Raspberry Pi 4 Database: SQLite Parameters: see docker-compose
docker-compose.yml
version: '3'
services:
wallabag:
image: wallabag
container_name: wallabag
environment:
- SYMFONY__ENV__DOMAIN_NAME=https://removed
- SYMFONY__ENV__FOSUSER_REGISTRATION=false
ports:
- "8080:80"
volumes:
- /home/removed/wallabag/data/:/var/www/wallabag/data/
- /home/removed/wallabag/images:/var/www/wallabag/web/assets/images
restart: unless-stopped
healthcheck:
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost"]
interval: 1m
timeout: 3snginx.conf
server {
listen 443 ssl;
server_name removed;
ssl_certificate /etc/letsencrypt/removed.crt;
ssl_certificate_key /etc/letsencrypt/removed.key;
location / {
proxy_pass http://192.168.0.6:8080;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $remote_addr;
}
}What steps will reproduce the bug?
➜ ~ (x) curl -I https://removed/
HTTP/1.1 302 Found
Server: nginx/1.21.4
Date: Tue, 14 Dec 2021 00:26:09 GMT
Content-Type: text/html; charset=UTF-8
Location: https://removed/login
Connection: keep-alive
Set-Cookie: PHPSESSID=asdf
; path=/; HttpOnly
Cache-Control: max-age=0, must-revalidate, private
pragma: no-cache
Expires: Tue, 14 Dec 2021 00:26:09 GMTSetup: Wallabag on Docker, Nginx reverse proxy, Https
Hey folks! Been reading and trying lots of suggestions found in the various Wallabag Github repos, tweaking nginx.conf etc, but I'm not able to get a consistent connection from the Android Client app. I assume this is an error with a reverse proxy config somewhere along the request.
When I first setup the Android app it works (intial sync, add 1-2 articles via share with Wallabag), then after adding 1-2 articles via Android, The Android client throws errors:
Android error:
Unknown error
wallabag.apiwrapper.exceptions.UnsuccessfulResponseException: HTTP response: 502 Bad Gateway
Stacktrace:
wallabag.apiwrapper.exceptions.UnsuccessfulResponseException: HTTP response: 502 Bad GatewayWallabag logs:
wallabag | 2021/12/14 00:17:20 [error] 246#246: *67 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.27.0.1, server: _, request: "POST /api/entries.json HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "removed"Anyone able to provide any assistance? Thanks in advance!
Source: wallabag/wallabag