I’ve got Vikunja up and running for many months but since last update got 502 bad gateway.
I’ve got in frontend the following error :
2023/03/11 17:48:55 [emerg] 1#1: bind() to 0.0.0.0:80 failed (13: Permission denied)
nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
And in API :
info: creating the new user vikunja with 1026:100
groupmod: GID ‘100’ already exists
Was thinking is a swag issue and tinkering around nginx but seems a Vikunja issue
Don’t know where to start … help will be gladly appreciated
docker-compose content :
version: '3'
services:
db:
image: mariadb:10
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: '****'
MYSQL_USER: vikunja
MYSQL_PASSWORD: '****'
MYSQL_DATABASE: vikunja
volumes:
- ./db:/var/lib/mysql
restart: unless-stopped
api:
image: vikunja/api
environment:
PUID: 1026
PGID: 100
VIKUNJA_DATABASE_HOST: db
VIKUNJA_DATABASE_PASSWORD: '****'
VIKUNJA_DATABASE_TYPE: mysql
VIKUNJA_DATABASE_USER: vikunja
VIKUNJA_DATABASE_DATABASE: vikunja
VIKUNJA_SERVICE_ENABLEREGISTRATION: 'false'
VIKUNJA_SERVICE_TIMEZONE: 'Europe/Paris'
VIKUNJA_SERVICE_MAXITEMSPERPAGE: 100
VIKUNJA_MAILER_ENABLED: 'true'
VIKUNJA_MAILER_FORCESSL: 'true'
VIKUNJA_MAILER_HOST: smtp.gmail.com
VIKUNJA_MAILER_PORT: 465
VIKUNJA_MAILER_USERNAME: '*****@gmail.com'
VIKUNJA_MAILER_PASSWORD: ****
ports:
- 3456:3456
volumes:
- /volume1/docker/vikunja/files:/app/vikunja/files
depends_on:
- db
restart: unless-stopped
frontend:
image: vikunja/frontend
ports:
- 84:80
environment:
VIKUNJA_API_URL: https://todo.*****.fr/api/v1
restart: unless-stopped
vikunja.subdomain.conf content :
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name todo.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
if ($geo-blacklist = no) { return 404; }
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app 192.168.0.***;
set $upstream_port 84;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location ~* ^/(api|dav|\.well-known)/ {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $api_app 192.168.0.***;
set $api_port 3456;
set $api_proto http;
proxy_pass $api_proto://$api_app:$api_port;
client_max_body_size 20M;
}
}