-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Abnormal startup on Pi #894
Comments
Your log was entirely empty? Didn't you have any startup message? |
yes just the startup message and when I restart pi closing message |
Therefore, show the messages which might contain useful information, e.g. your mosquitto version, |
1532374056: mosquitto version 1.4.10 (build date Fri, 22 Dec 2017 08:19:25 +0000) starting this is whats in the log |
A lot of information !!
|
p.s.
|
I tried the latest installation using sudo apt-get install mosquitto. yes I only changed the port in the config file to check if that is the port issue however with changing the port or keeping it to default doesn't make any difference. |
On current version, clear current logs, clear mosquitto.conf without log_type all, reproduce your issue, and show the new logs. |
1532443852: Error in poll: Interrupted system call. I did all of that, i also cahnge the port to default 1883 above is the log |
Is there any log prior of these logs? Mosquitto cannot terminate before starting. Please don't trim the information. |
no there is nothing before that. |
Could you restart pi itself and show your logs? You had such a "ghost" mosquitto, so mosquitto failed restarting. |
1532443852: Error in poll: Interrupted system call. done the restart. |
This issue definitely comes from your broker starting abnormally. This error "Address already in use" seems similar to #825 . |
it seems like I don't have the pi.conf in conf.d folder 1532443934: Error in poll: Interrupted system call. |
Did you restart pi itself? By the last line of your logs, mosquitto seemed starting normally. |
Sorry if your mosquitto starts normally, there should be the logs as followings:
|
Yes it did restarted the pi and mosquitto. |
Sorry I cannot support the issue depends on pi. Wait someone can support. |
No problem. I will wait. |
@dhabib29 could you change the subject to such as "Abnormal startup on pi" in order to make the issue clear. The loop of subscribing is definitely due to the broker starting abnormally. |
Could you please try installing from the mosquitto repository? There are details on how to do that here: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-debian-8 |
Hi,
I am pretty new to MQTT, however after completing the installation on Raspberrypi3 running on Jessie when I am trying to test mqtt if keep trying to connect what it means is after i run the below command:
mosquitto_sub -d -u username -P password -t "dev/test"
the response I am getting is Client mosqsub/1017-pi sending CONNECT and this keep repeating like it is in some kind of loop.
I also checked the systemctl status mosquitto.service and it is showing as active.
I also tried uninstalling and reinstalling but issue is always the same and log file has nothing in it even I have log_type all in the config file.
your help is appreciated.
The text was updated successfully, but these errors were encountered: