Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid allow_anonymous value #2330

Open
han94ros opened this issue Sep 30, 2021 · 2 comments
Open

Invalid allow_anonymous value #2330

han94ros opened this issue Sep 30, 2021 · 2 comments

Comments

@han94ros
Copy link

I am trying to run the following command.

docker run -p 1883:1883 --name mosquitto -v "/c/Users/Dell PC Roshan/stabilizer"/mosquitto.conf:/mosquitto/config/mosquitto.conf -v /mosquitto/data -v /mosquitto/log eclipse-mosquitto:2

and I am getting the following error.

33022744: Error: Invalid allow_anonymous value (true
1633022744: Error found at /mosquitto/config/mosquitto.conf:1.

Could someone please advise me.

@CedricGoby
Copy link

CedricGoby commented Oct 1, 2021

Same here.

The mosquitto service in the compose file :

mosquitto:
    container_name: my-mosquitto
    image: eclipse-mosquitto:latest
    user: '1000'
    depends_on:
      - influxdb
    labels:
      - traefik.http.routers.mosquitto.rule=Host(`mosquitto.domain.tld`)
      - traefik.http.routers.mosquitto.tls=true
      - traefik.http.routers.mosquitto.tls.certresolver=lets-encrypt
      - traefik.port=1883
    networks:
      - web
    ports:
      - "1883:1883"
      - "9001:9001"
    links:
      - influxdb:influxdb
    volumes:
      - ./mosquitto/config:/mosquitto/config
      - ./mosquitto/data:/mosquitto/data
      - ./mosquitto/log:/mosquitto/log
      - ./mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf
      - /etc/localtime:/etc/localtime:ro
    restart: always

mosquitto.conf :

listener 1883
allow_anonymous true
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log

Docker logs :

).33083197: Error: Invalid allow_anonymous value (true
1633083197: Error found at /mosquitto/config/mosquitto.conf:2.

@CedricGoby
Copy link

Duplicate : #2297

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

No branches or pull requests

3 participants