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

2.0.5+ doesn't work, 2.0.4- does. #3029

Closed
MilorES opened this issue Apr 2, 2024 · 4 comments
Closed

2.0.5+ doesn't work, 2.0.4- does. #3029

MilorES opened this issue Apr 2, 2024 · 4 comments

Comments

@MilorES
Copy link

MilorES commented Apr 2, 2024

RUN

services:
  mqtt:
    container_name: mosquitto
    image: eclipse-mosquitto:2.0.4
    ports:
      - "1883:1883"
      - "9001:9001"
    volumes:
      - ./config:/mosquitto/config
      - ./logs:/mosquitto/log
      - ./data:/mosquitto/data
    restart: always
    environment:
      - TZ=Europe/Madrid
mosquitto  | 1712062032: mosquitto version 2.0.4 starting
mosquitto  | 1712062032: Config loaded from /mosquitto/config/mosquitto.conf.
mosquitto  | 1712062032: Opening ipv4 listen socket on port 1883.
mosquitto  | 1712062032: Binding listener to interface "eth0".
mosquitto  | 1712062032: Opening ipv6 listen socket on port 1883.
mosquitto  | 1712062032: Binding listener to interface "eth0".
mosquitto  | 1712062032: mosquitto version 2.0.4 running
mosquitto  | 1712062032: New connection from xxx.xxx.xxx.xxx:59079 on port 1883.
mosquitto  | 1712062032: New client connected from xxx.xxx.xxx.xxx59079 as mqtt-explorer-1d62a80b (p2, c1, k60, u'user').

NOT RUN

services:
  mqtt:
    container_name: mosquitto
    image: eclipse-mosquitto:2.0.5
    ports:
      - "1883:1883"
      - "9001:9001"
    volumes:
      - ./config:/mosquitto/config
      - ./logs:/mosquitto/log
      - ./data:/mosquitto/data
    restart: always
    environment:
      - TZ=Europe/Madrid
mosquitto  | 1712061947: mosquitto version 2.0.5 starting
mosquitto  | 1712061947: Config loaded from /mosquitto/config/mosquitto.conf.
mosquitto  | 1712061947: Opening ipv4 listen socket on port 1883.
mosquitto  | 1712061947: Opening ipv6 listen socket on port 1883.
mosquitto  | 1712061947: Error: Invalid argument
@Daedaluz
Copy link
Contributor

Daedaluz commented Apr 2, 2024

would be good to see the configuration file.
Also, i'm guessing the only difference in the docker-compose file is the mosquitto version. (They both use the 2.0.4 image in your post)

@MilorES
Copy link
Author

MilorES commented Apr 2, 2024

Oh, thanks, I forgot to edit the label, thanks for noticing, I've attached the configuration, I'll take the opportunity to look on the web, any break changes.

mosquitto.conf

persistence true
persistence_location /mosquitto/data/
listener 1883
bind_interface eth0
allow_anonymous false
password_file /mosquitto/config/password_file

@Daedaluz
Copy link
Contributor

Daedaluz commented Apr 2, 2024

Why do you have the bind_interface option here?

@MilorES MilorES closed this as completed Apr 2, 2024
@MilorES
Copy link
Author

MilorES commented Apr 2, 2024

Deleted, fixed password_file permissions issue and now without any errors, thanks

Note: I don't remember where I got that data from, honestly!

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

No branches or pull requests

2 participants