# 502 bad gateway

**URL:** <https://community.vikunja.io/t/502-bad-gateway/1247>\
**Category:** Support\
**Created:** [11 March 2023 17:52 UTC](https://community.vikunja.io/t/502-bad-gateway/1247 "2023-03-11T17:52:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lennvilardi](https://community.vikunja.io/user_avatar/community.vikunja.io/lennvilardi/32/630_2.png) [@lennvilardi](https://community.vikunja.io/u/lennvilardi)\
**Post date:** [11 March 2023 17:52 UTC](https://community.vikunja.io/t/502-bad-gateway/1247/1 "2023-03-11T17:52:47Z")

</div>

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 :

```auto
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 :

```auto
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;
		 
    }
}

```

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [11 March 2023 19:04 UTC](https://community.vikunja.io/t/502-bad-gateway/1247/3 "2023-03-11T19:04:34Z")

</div>

This has already been reported: [#3228 - Regression: 502 with 0.20.4 (Docker & NPM) - frontend - Gitea](https://kolaente.dev/vikunja/frontend/issues/3228)

---

<div class="post-metadata">

**Author:** ![lennvilardi](https://community.vikunja.io/user_avatar/community.vikunja.io/lennvilardi/32/630_2.png) [@lennvilardi](https://community.vikunja.io/u/lennvilardi)\
**Post date:** [12 March 2023 20:21 UTC](https://community.vikunja.io/t/502-bad-gateway/1247/4 "2023-03-12T20:21:51Z")

</div>

Latest version fixed the regression. I’m closing. Thanks a lot for the reactivity.
