Skip to content

Address already in use #5852

Description

@homonto

this but is marked as closed but as of 2.15.1 it still exists
ways to reproduce it:
1- edit random host
2- RANDOMLY it starts throwing errors:

nginx  | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx  | nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx  | nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx  | nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
nginx  | nginx: [emerg] bind() to 0.0.0.0:81 failed (98: Address already in use)
nginx  | nginx: [emerg] bind() to [::]:81 failed (98: Address already in use)

there is no definite way of checking what triggers it

nginx is installed as docker compose:

cat docker-compose.yaml  | grep -v '#'
services:

   container_name: nginx
   image: 'docker.io/jc21/nginx-proxy-manager:latest'
   restart: unless-stopped
   environment:
     TZ: Europe/London

   ports:
     - target: 443
       mode: host
       protocol: tcp
     - target: 80
       mode: host
       protocol: tcp
     - target: 81
       published: 81
       mode: host
       protocol: tcp

   volumes:
     - ./data:/data
     - ./letsencrypt:/etc/letsencrypt



sudo docker compose down && sudo docker compose up solves the problem until next time it reappears

there is COMPLETELY NOTHING ELSE on this host running - just lxc container on proxmox and docker compose file for nginx

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions