Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Add troubleshooting guide for mosquitto Docker container startup failures #266

@knowack1

Description

@knowack1

How would you describe the topic that you would love to see in the documentation?

Add documentation about potential Mosquitto Docker container startup failures and their resolution. Specifically, when the container fails to start due to websockets listener errors on port 9001 users need guidance on diagnosing and set file descriptor limit in Docker configuration.

On which page or to which section does this belong?

This belongs in the "Quick Start Guide" section (docs/general/03_quick_start_guide.rst), specifically in the Mosquitto Docker container setup section where Docker run commands are documented.

Can you reference a related GitHub repository or source code?

The documentation file that needs updating is:

docs/general/03_quick_start_guide.rst

Additional context

This issue was observed on Fedora 42 with Docker version 28.3.3:

docker run --name mqtt-server --network infranet_network -p 1883:1883 -p 9001:9001 ghcr.io/everest/everest-dev-environment/mosquitto:docker-images-v0.1.0
Config loaded from /mosquitto/config/mosquitto.conf.
Opening ipv4 listen socket on port 1883.
Opening ipv6 listen socket on port 1883.2
Opening websockets listen socket on port 9001.
Error: Unable to create websockets listener on port 9001.

Detailed log with websockets_log_level 31:

docker run --name mqtt-server --network infranet_network -p 1883:1883 -p 9001:9001 ghcr.io/everest/everest-dev-environment/mosquitto:docker-images-v0.1.0
1758397856: mosquitto version 2.0.10 starting
1758397856: mosquitto version 2.0.10 starting
1758397856: Config loaded from /mosquitto/config/mosquitto.conf.
1758397856: Config loaded from /mosquitto/config/mosquitto.conf.
1758397856: Opening ipv4 listen socket on port 1883.
1758397856: Opening ipv4 listen socket on port 1883.
1758397856: Opening ipv6 listen socket on port 1883.
1758397856: Opening ipv6 listen socket on port 1883.
1758397856: Opening websockets listen socket on port 9001.
1758397856: Opening websockets listen socket on port 9001.
1758397856: libuv support not compiled in
1758397856: libuv support not compiled in
1758397856: OOM allocating 1073741816 fds
1758397856: OOM allocating 1073741816 fds
1758397856: ZERO RANDOM FD
1758397856: ZERO RANDOM FD
1758397856: Error: Unable to create websockets listener on port 9001.
1758397856: Error: Unable to create websockets listener on port 9001.

The solution involves configuring Docker's nofile limits as documented in this guide: https://ichbinblau.github.io/2019/09/06/Setup-nofile-for-Docker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions