dietpi-bugreport f08067cc-5550-4254-968d-09db2bbf6111Mosquito has to be installed, its executable must be in some place. Based on init.d script, must be at: /usr/sbin/mosquitto
Executable can't be founded anywhere
@lupa18
Thank you very much for your report. I will review your bug report and try to replicate on x86_64 VM.
€: Just checked bug report:
/var/log/apt/term.log available any more and /var/tmp/dietpi/logs/dietpi-software_apt.log shows just mosquitto package being uninstalled. @lupa18 Did you manually remove mosquitto again? Otherwise might apt-get -f install can't find all needed dependencies and remove the package again automatically? Test outstanding, need to be at home to run tests on VM.Confirmed ARMv8 issue:
Errors were encountered while processing:
mosquitto:armhf
[ OK ] DietPi-Software | APT fix, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following packages will be REMOVED:
mosquitto:armhf
0 upgraded, 0 newly installed,
Our current binaries mosquitto_1.4.14 are still a higher version than stretch:
https://packages.debian.org/stretch/mosquitto
G_AGI libuuid1:armhf libc6:armhf libwrap0:armhf libssl1.0.0:armhf
libssl1 not in debian repo, pulled from our server
@Fourdee
Okay, hmm maybe we can find out which package is missing on ARMv8. Maybe some update of our deb package helps. v1.5 is available.
€: Jep and I bet that stretch repo will not receive any non critical package updates. The ones on buster are 1.4.15 but could have dependency issues on Stretch.
€€: Ah if it's just libssl1.0.0 then at least easy to fix with dietpi-software.
Notes:
/etc/mosquitto/mosquitto.conf./usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf1529937553: Error: Invalid user 'mosquitto'.root@DietPi:~# /usr/local/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf -v
root@DietPi:~#
Custom debian repo lacks ARMv8
http://repo.mosquitto.org/debian/dists/stretch/main/
@Fourdee
Custom debian repo lacks ARMv8
Might be the reason why we added armhf arch to arm64 devices within current install script?
Ok:
Another 'naughty?' option, 1.5 on all devices, source build over the top, ensuring services and conf exist:
G_AGI mosquittoG_AGI build-essential libc-ares-dev uuid-dev libssl-dev
wget https://github.com/eclipse/mosquitto/archive/v1.5.zip -O package.zip
unzip package.zip
rm package.zip
cd mosquitto-*
sed -i '/^WITH_SOCKS:=/c\WITH_SOCKS:=no' config.mk
sed -i '/^WITH_DOCS:=/c\WITH_DOCS:=no' config.mk
make -j $(nproc --all)
make install
mv /usr/local/sbin/mosquitto /usr/sbin/mosquitto
cd ..
rm -R mosquitto-*
@lupa18
Workaround (nice and simple), to install mosq:
G_AGI mosquitto
dietpi-services dietpi_controlled
dietpi-services restart
Test install's passed, completed. Please reopen if required.