Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » Mosquitto broker terminating and starting about every minute?
Mosquitto broker terminating and starting about every minute? [message #1824099] Tue, 07 April 2020 23:50 Go to next message
chris gilles is currently offline chris gillesFriend
Messages: 2
Registered: April 2020
Junior Member
I'm wondering anyone has seen this before. My mosquitto broker seems to go offline about every minute or so, for no apparent reason, it terminates and then starts again, clients are disconnected, and they reconnect. not sure what the deal is.

1586288339: New client connected from 127.0.0.1 as Hub:001 (c0, k15, u'xxxxxxxx').

1586288339: Sending CONNACK to Hub:001 (1, 0)

1586288354: Received PINGREQ from Hub:001

1586288354: Sending PINGRESP to Hub:001

1586288369: Received PINGREQ from Hub:001

1586288369: Sending PINGRESP to Hub:001

1586288384: Received PINGREQ from Hub:001

1586288384: Sending PINGRESP to Hub:001

1586288399: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.

1586288399: Received PINGREQ from Hub:001

1586288399: Sending PINGRESP to Hub:001

1586288414: Received PINGREQ from Hub:001

1586288414: Sending PINGRESP to Hub:001

1586288429: mosquitto version 1.4.15 terminating

1586288431: mosquitto version 1.4.15 (build date 2019-01-08 23:46:33-0800) starting

1586288431: Config loaded from /etc/mosquitto/mosquitto.conf.

1586288431: Opening ipv4 listen socket on port 1883.

1586288431: Opening ipv6 listen socket on port 1883.

1586288432: New connection from 127.0.0.1 on port 1883.

1586288432: Client Hub:001 disconnected.

1586288432: New client connected from 127.0.0.1 Hub:001 (c0, k15, u'xxxxxx').

if I stop mosquitto and start with in verbose mode "mosquitto -v" this behavior seems to stop. but anytime mosquitto is starts on reboot with systemctl I get this behavior. any thoughts on this?
thanks much++

my mosquitto.conf

pid_file /var/local/etc/mosquitto/mosquitto.conf
user mosquitto
autosave_interval 60
persistence true
persistence_file mosquitto.db
log_type all
connection_messages true
log_dest file /var/log/mosquitto/mosquitto.log
Re: Mosquitto broker terminating and starting about every minute? [message #1824151 is a reply to message #1824099] Wed, 08 April 2020 16:33 Go to previous messageGo to next message
chris gilles is currently offline chris gillesFriend
Messages: 2
Registered: April 2020
Junior Member
PS. I've upgraded to 1.6.8 and it has the same issue.
Re: Mosquitto broker terminating and starting about every minute? [message #1824240 is a reply to message #1824151] Fri, 10 April 2020 14:33 Go to previous message
Roger Light is currently offline Roger LightFriend
Messages: 90
Registered: September 2013
Member
You could try running like this:

sudo mosquitto -c /etc/mosquitto/mosquitto.conf

This should then hopefully tell you what the error is.
Previous Topic:Connection refused
Next Topic:Unable to activate User/Password
Goto Forum:
  


Current Time: Thu Apr 25 20:25:17 GMT 2024

Powered by FUDForum. Page generated in 0.03028 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top