Closed Obo666 closed 6 years ago
This issue if probably "just" #581 (i.e. not related to Rapsbian but only to Stetch).
Had same issue. This fixed (allowed me to work around) it for me.. Add the following line into:- /etc/apt/sources.list/ deb http://archive.raspbian.org/raspbian jessie main contrib non-free
Then run. sudo apt-get update sudo apt-get install mosquitto
This new repository let me download and install the old dependencies. Though, it should be using the newer SSL LIBS!!.
Following this post from @Dan-in-CA
https://xperimentia.com/2015/08/20/installing-mosquitto-mqtt-broker-on-raspberry-pi-with-websockets/
I found an update on that tutorial:
Updated January 15 2018 As of Jan. 14 2018 the install from the Mosquitto debian repository has been fixed and installs mosquitto with websockets enabled without error.
Bingo, 1.4.14 installs without any errors on a fresh Raspbian Stretch install (RPi3, did not try an RPi Zero)
Holen:1 http://repo.mosquitto.org/debian stretch/main armhf mosquitto armhf 1.4.14-0mosquitto2 [127 kB]
Hi there,
I seem to be having similar sounding issues on a Pi zero W too. I built a set-up using a Pi 3 and captured all the instructions (well most of them) and manually ran the same process for the PI Zero W. When typing "mosquitto" i simply get (using sudo or no sudo)
pi@homeautctrl:/home/pi $ mosquitto
Segmentation fault
and checking the service status shows:
pi@homeautctrl:/home/pi $ systemctl status mosquitto
mosquitto.service - Mosquitto MQTT Broker
Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Wed 2018-01-24 20:16:02 GMT; 1min 12s ago
Docs: man:mosquitto(8)
https://mosquitto.org/
Process: 2123 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=killed, signal=SEGV)
Main PID: 2123 (code=killed, signal=SEGV)
Jan 24 20:16:02 homeautctrl systemd[1]: mosquitto.service: Failed with result 'signal'.
Jan 24 20:16:02 homeautctrl systemd[1]: mosquitto.service: Service hold-off time over, scheduling restart.
Jan 24 20:16:02 homeautctrl systemd[1]: Stopped Mosquitto MQTT Broker.
Jan 24 20:16:02 homeautctrl systemd[1]: mosquitto.service: Start request repeated too quickly.
Jan 24 20:16:02 homeautctrl systemd[1]: Failed to start Mosquitto MQTT Broker.
Jan 24 20:16:02 homeautctrl systemd[1]: mosquitto.service: Unit entered failed state.
Jan 24 20:16:02 homeautctrl systemd[1]: mosquitto.service: Failed with result 'signal'.
This is on a completely fresh install of raspbian stretch. Libs seem to have install correctly (all dependencies) but no worky. I'm pretty new to this but it looks like I installed from:
deb http://repo.mosquitto.org/debian stretch main
At a bit of a loss and was really keen to get it to run on the zero and get my automation project running - the Pi3 needs to go back to being the media center :)
@swampdogmash It could be that the cpu architecture I've got the packages built for are ARMv7 not the ARMv6 that the zero has. I'll take a look.
Oddly I've just built it using the instructions and it worked.... until i installed it as a service....
The following was run after make install completed...
pi@homeautctrl:~ $ mosquitto 1516826943: mosquitto version 1.4.14 (build date 2018-01-24 20:44:55+0000) starting 1516826943: Using default config. 1516826943: Opening ipv4 listen socket on port 1883. 1516826943: Opening ipv6 listen socket on port 1883.
After continuing with the install instructions @ https://xperimentia.com/2015/08/20/installing-mosquitto-mqtt-broker-on-raspberry-pi-with-websockets/ I then went back to the same issue.
I skipped all the config file editing steps so the config was still identical, simply installed the "git" package, grabbed the unit file and installed as a service...
I was confused before, now I'm baffled but hopefully heping get closer to the issue.
To make matters more confusing i seem to have one ssh session where it runs and one where it doesn't
..doing nothing it now seems to run manually in all the shells. After a reboot it can be started manually but won't start using the service commands or as part of the boot process. I get the following now:
mosquitto.service - Mosquitto MQTT Broker daemon
Loaded: loaded (/etc/systemd/system/mosquitto.service; enabled; vendor preset
Active: activating (start) since Wed 2018-01-24 21:35:25 GMT; 22s ago
Process: 1033 ExecStart=/usr/local/sbin/mosquitto -c /usr/local/etc/mosquitto/
CGroup: /system.slice/mosquitto.service
└─1034 /usr/local/sbin/mosquitto -c /usr/local/etc/mosquitto/mosquitt
Jan 24 21:35:25 homeautctrl systemd[1]: Starting Mosquitto MQTT Broker daemon...
Jan 24 21:35:25 homeautctrl systemd[1]: mosquitto.service: PID file /var/run/mosquitto not readable (yet?)
and it seems hung
You probably need to edit the unit file (moaquitto.service) to point to the exact location of the mosquitto executable and the config file.
on it
Found the same problem, solved using Consolacion method. Thanks. I agree with you." yes, correct. But in the end I cared more about having an installable 'old' version than a non installable 'new version' "
I believe all problems with Raspbian Stretch should now be resolved. I will leave this open another day or so, then close it if there are no further problems.
For me the problem is solved Running fine on raspbian stretch
Thanks.Everything is working fine now. Saludos cordiales, MBA Ing. Jimmy SaldiviasConsultor Proyectos Eléctricos Celular: 593 9 39734688E-mail: j_saldivias@yahoo.com
From: Roger Light <notifications@github.com>
To: eclipse/mosquitto mosquitto@noreply.github.com Cc: Adolfo Jimmy Saldivias Valarezo j_saldivias@yahoo.com; Comment comment@noreply.github.com Sent: Monday, April 9, 2018 5:15 PM Subject: Re: [eclipse/mosquitto] Raspbian Stretch install error (#529)
I believe all problems with Raspbian Stretch should now be resolved. I will leave this open another day or so, then close it if there are no further problems.— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
I'm closing this issue then, if you still have problems feel free to reopen it.
This is because the web socket library is not installed. Try running
sudo apt-get install libwebsockets-dev
before running
sudo apt-get install mosquitto
Hi All,
Did anyone get to the bottom of this? My head is melted If anyone could help it would be greatly appreciated!!
pi@raspberrypi:/etc/apt/sources.list.d $ sudo apt-get install mosquitto Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies: mosquitto : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable Depends: libwebsockets3 (>= 1.2) but it is not installable N: Ignoring file 'mosquitto-stretch.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: Unable to correct problems, you have held broken packages. pi@raspberrypi:/etc/apt/sources.list.d $
Hi, my solution was to download the sources and build it on Pi. The following steps will describe how to do. First, you need download the source from site https://mosquitto.org/download/ or clone from github https://github.com/eclipse/mosquitto.
Install dependencies
sudo aptitude install libssl-dev sudo aptitude install libc-ares-dev sudo aptitude install libwebsockets-dev sudo aptitude install uuid-dev
Build mosquitto
git clone git@github.com:eclipse/mosquitto.git cd mosquitto make
cd src/ ./mosquitto The executable library mosquitto is located in src directory. Enjoy messaging :)
Hey schaumannj, thanks for the promt response. What do you mean by "build it on Pi" So I've download the compressed folder from the link above but I'm not very clear on where to go from there..if you don't mind would you be able to give me a bit of a walk through. Thanks again. I'd really appreciate it!!
Hi BouldBadger, build it - > https://en.wikipedia.org/wiki/Make_(software) on Pi -> raspberry pi, the device itself.
in Linux word is common to build/create the application on particular Linux distribution. it means that each Linux distribution(Ubuntu, Debian, Fedora) has own package on an application which may not be compatible across the distribution. Therefore Linux community share source of the application and you are free to create the application on your favorite distribution. In Windows world, there is mostly only one package for distribution *.exe file.
Thanks for your patience exlaining I understand the term now. :)
This is prob very basic so bare with me! So I've downloaded the source file to my pc and extracted it. Not sure how to build it on my pi. I transferred the files to the Pi via usb and tried running them but no joy. On a pc it would be very straight forward - just run the .exe but not sure what to do to build it on my Pi. As for the other github link there are a million and one files and eqully don't know what to do with any of them.
Thanks!
there is the package which I use on my Pi https://github.com/schaumannj/mosquitto/tree/master/output good luck
Thanks man, I install it on the pi with "wine" ya?
Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
Depends: libwebsockets3 (>= 1.2) but it is not installable
This suggests you are using the Wheezy version of Raspbian. The Mosquitto packages don't support Wheezy because nobody else supports Wheezy. I would suggest upgrading your Pi to Stretch or Jessie if you can, otherwise the only option is to compile manually.
Thanks ralight,
I have stretch installed on a raspberry pi. I'm tempted to change to Jessie as I've had no success. What do you think?
Ok, I've checked the packages and the jessie version is the one that depends libwebsockets3. You should check your /etc/apt/sources.list.d/
directory to make sure the mosquitto related entries are all pointing to stretch.
On that note, you have the following error above, which may be related. All the files should end in just .list
.
N: Ignoring file 'mosquitto-stretch.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
I would happily pay someone to ssh into my pi and resolve this for me. I clearly don't have the knowledge or experience to resolve this on my own and will be annoying everyone here with endless questions. :/
I would happily pay someone to ssh into my pi and resolve this for me. I clearly don't have the knowledge or experience to resolve this on my own and will be annoying everyone here with endless questions. :/
How to contact you?
A couple of years ago, I put together a Mosquitto for stretch. Now it works for me. Where can I upload files?
Hey, was away for a bit and didn't see the post. Would be great if you could uplaod it here https://1drv.ms/f/s!Ah6E3xrT3kXzgZZ5TyGUbHa7W6UM3w
Thanks in advance, appreciate the help!
try this https://www.dropbox.com/sh/sj8ff4ynldduuqv/AADioWGzt8tJvEUS72b2l6bAa?dl=0
18.07.2019 4:30, BouldBadger пишет:
Hey, was away for a bit and didn't see the post. Would be great if you could uplaod it here https://1drv.ms/f/s!Ah6E3xrT3kXzgZZ5TyGUbHa7W6UM3w
Thanks in advance, appreciate the help!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/eclipse/mosquitto/issues/529?email_source=notifications&email_token=AAKV4T7YCTZYGYB7L5ILOTLP76TP3A5CNFSM4DYFJWIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2G36WI#issuecomment-512606041, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKV4T4HFNFTSLWJ7IFQ633P76TP3ANCNFSM4DYFJWIA.
sudo dpkg -i mosquitto_1.4.14-0mosquitto1.2_armhf.deb mosquitto-clients_1.4.14-0mosquitto1.2_armhf.deb libmosquitto1_1.4.14-0mosquitto1.2_armhf.deb
Issue: cannot install Mosquitto under Raspbian Stretch, following instructions at https://mosquitto.org/2013/01/mosquitto-debian-repository/ with http://repo.mosquitto.org/debian/mosquitto-stretch.list
Error: pi@raspberrypi:/etc/apt/sources.list.d $ sudo apt-get install mosquitto Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies: mosquitto : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable Depends: libwebsockets3 (>= 1.2) but it is not installable E: Unable to correct problems, you have held broken packages.