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

DietPi-Software | Mosquitto unresolved dependency. RPi3 #1306

Closed
yuret opened this issue Dec 15, 2017 · 24 comments
Closed

DietPi-Software | Mosquitto unresolved dependency. RPi3 #1306

yuret opened this issue Dec 15, 2017 · 24 comments
Assignees
Milestone

Comments

@yuret
Copy link

yuret commented Dec 15, 2017

Creating a bug report/issue:

Mosquitto fails to install fromDietPi-Software because of unresolved dependency of libwebsockets3.

Required Information:

  • DietPi Version | cat /DietPi/dietpi/.version?
    159
  • SBC Device (EG: RPi 3)?
    RPi 3
  • Power supply used (EG: 5v 1A RAVpower)?
  • SD card used (EG: Sandisk ultra)?
    Transcend UHS-I 16 Gb
  • Distro (EG: Jessie) | uname -a?
    Linux DietPi 4.9.62-v7+ Fix for dumb or unset TERM #2 SMP Fri Nov 17 23:52:26 GMT 2017 armv7l GNU/Linux

Additional Information (if applicable):

  • Software title?
    Mosquitto
  • Can this issue be replicated on a fresh installation of DietPi?
    Yes

Expected behaviour:

Actual behaviour:

Steps to reproduce:

Did you submit a dietpi-bugreport?

No

Extra details:

Manual installing libwebsoccket3:
wget http://ftp.nz.debian.org/debian/pool/main/libw/libwebsockets/libwebsockets3_1.2.2-1_armhf.deb
dpkg -i libwebsockets3_1.2.2-1_armhf.deb
apt-get install mosquitto

@Fourdee Fourdee added this to the v160 milestone Dec 16, 2017
@Fourdee Fourdee self-assigned this Dec 16, 2017
@Fourdee
Copy link
Collaborator

Fourdee commented Dec 16, 2017

@yuret

Thanks for the report 👍 , i'll try to replicate.

@Fourdee
Copy link
Collaborator

Fourdee commented Dec 16, 2017

Notes:

 mosquitto : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
             Depends: libwebsockets3 (>= 1.2) but it is not installable
  • Appears libwebsockets3 no longer available in Stretch, we'll need to "jimmy riddle" package download/install: https://packages.debian.org/jessie/libwebsockets3
  • 🈯️ INSTALL_URL_ADDRESS="http://repo.mosquitto.org/debian/mosquitto-$DISTRO_NAME.list". Repo is set but lacks libwebsockets3 aswell

Quick fix for now, we'll pull in required packages from our webserver.
I count 3 libssl1.0.0 depends on stretch so far. We may need to rethink it, or, create a software/global install for it.

@Fourdee
Copy link
Collaborator

Fourdee commented Dec 16, 2017

@yuret

[Ok] mosquitto active (running) since Sat 2017-12-16 07:34:47 GMT; 1min 21s ago

Will be fixed for v160, in the mean time, you can fix install with following commands:

wget http://dietpi.com/downloads/binaries/all/libwebsockets3_1.2.2-1_armhf.deb
wget http://dietpi.com/downloads/binaries/all/libssl1.0.0_1.0.1t-1+deb8u7_armhf.deb
dpkg -i lib*.deb
rm lib*.deb

dietpi-software install 123

Reference eclipse-mosquitto/mosquitto#529 (comment)

Fourdee referenced this issue Dec 16, 2017
+ DietPi-Software | Mosquitto (Stretch): Resolved issue with failed
install, due to unavailable pre-req libs in Debian/Mosq repos:
https://github.com/Fourdee/DietPi/issues/1306
@Fourdee
Copy link
Collaborator

Fourdee commented Dec 16, 2017

Completed.

@JohnMacrae
Copy link

JohnMacrae commented Dec 16, 2017

Hi Fourdee, It installs fine but does not seem to run on Pi Zero W.

Dec 16 14:28:43 BPS systemd[1]: mosquitto.service: Failed with result 'signal'.
Dec 16 14:28:43 BPS systemd[1]: mosquitto.service: Service hold-off time over, scheduling restart.
Dec 16 14:28:43 BPS systemd[1]: Stopped Mosquitto MQTT Broker.
Dec 16 14:28:43 BPS systemd[1]: Started Mosquitto MQTT Broker.

@Fourdee Fourdee added the ARMv6 label Dec 17, 2017
@Fourdee
Copy link
Collaborator

Fourdee commented Dec 17, 2017

@9H5G

Thanks, i'll try to replicate on my RPi Zero.

@Fourdee
Copy link
Collaborator

Fourdee commented Dec 17, 2017

Notes:

  • ARMv7 binary by the looks of it
root@DietPi:~# /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
Illegal instruction

Reference home-assistant/hassbian-scripts#75

@Fourdee
Copy link
Collaborator

Fourdee commented Dec 17, 2017

@9H5G

Appears to be a known issue with the Mosquito repo at this time, lacking ARMv6 binary and Jessie deps in use on the Mosq Stretch repo:
https://github.com/Fourdee/DietPi/issues/1306#issuecomment-352229271

We'll need to wait for a fix from their end.

The only thing I can suggest is, if this worked on Jessie, try the Jessie image (which we still support):

http://dietpi.com/downloads/images/DietPi_RPi-armv6-(Jessie).7z

@Fourdee Fourdee removed the ARMv6 label Dec 17, 2017
@Fourdee
Copy link
Collaborator

Fourdee commented Dec 17, 2017

I'll re-mark this as closed. Please re-open if required.

@Fourdee Fourdee closed this as completed Dec 17, 2017
@JohnMacrae
Copy link

Thanks Dan. I tries the Jesse image yesterday but on intallation, it updates to 159 and we have the same problem. How do I 'hold' the installation of upgrades on first boot at a particular level? Thanks

@Fourdee
Copy link
Collaborator

Fourdee commented Dec 17, 2017

@9H5G

Thanks Dan. I tries the Jesse image yesterday but on intallation, it updates to 159 and we have the same problem. How do I 'hold' the installation of upgrades on first boot at a particular level? Thanks

If it doesn't work on Jessie (Illegal instruction), this confirms the issue is with their repo, and the most likely use of ARMv7 binary only, which will not work with ARMv6 (RPi Zero).
Theres nothing we can do our end about that currently, as our installations are installed on demand and relies on the state of the mosq repo during that time.

The only solution for now is to find a ARMv6 binary of mosq (or possibly compile), or, wait for the repo maintainers to resolve the issue.

@TerryE
Copy link

TerryE commented Dec 30, 2017

@Fourdee Dan, we've still got version mismatch problems here. I hit this when trying out a test install of your Stretch image. I tried your workaround based on a wget from http://dietpi.com/downloads/binaries/all/ but this still barfs on a

E: Failed to fetch http://repo.mosquitto.org/debian/pool/main/m/mosquitto/mosquitto_1.4.12-0mosquitto1_armhf.deb  404  Not Found [IP: 85.119.83.194 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
 [Failed] The apt cache may be corrupt, apt mirror offline, or you have held broken packages. DietPi-Software will now exit.

Looking at the repo the current version is 1.4.14; doing a showpkg on the the mosquitto package lists its dependencies on 1.4.12 hence the error message.

So back to Jessie for me 😞

@Fourdee
Copy link
Collaborator

Fourdee commented Dec 30, 2017

@TerryE

Thanks for the report 👍

Confirmed, appears to be an issue with the repo itself. We'll need to wait for the mosq repo maintainers to resolve the header/links.

@Fourdee
Copy link
Collaborator

Fourdee commented Jan 8, 2018

Ok, seems repo wont be fixed any time soon. I'll reopen and see if we can create a workaround fix (eg: host deb on dietpi.com)

@Fourdee Fourdee reopened this Jan 8, 2018
@Fourdee
Copy link
Collaborator

Fourdee commented Jan 8, 2018

Hosting mosquitto_1.4.14-0mosquitto1_nows1_armhf.deb on dietpi.com, no longer using the mosq repo.
Tested installs for:

  • 🈯️ Odroid C2 Jessie
  • 🈯️ RPi 3 Stretch

Fourdee referenced this issue Jan 8, 2018
DietPi-Software | Mosquitto: Resolved various issues with failed
install, due to Mosq repo not being maintained (deb's missing from repo
header list, requires non-stretch available packages). deb's are now
hosted on dietpi.com: https://github.com/Fourdee/DietPi/issues/1306
@Fourdee
Copy link
Collaborator

Fourdee commented Jan 8, 2018

@Fourdee Fourdee closed this as completed Jan 8, 2018
@Fourdee Fourdee mentioned this issue Jan 28, 2018
Fourdee referenced this issue Jan 28, 2018
**v6.0** (previously v160)
(28/01/18)

**Important Information:**
**All DietPi images have been re-created. Existing installations (v159 or lower), can no longer be updated, or supported. To continue support, users must install the latest v6.0 image.**
 - https://github.com/Fourdee/DietPi/issues/1385
 - All images are now Debian Stretch (excluding Odroid's)
 - ARMbian based images are now mainline kernel 4.13+.
 - Native PC (EFI): is now an ISO, with clonezilla bundled. Simplifies installation via Rufus write: https://github.com/Fourdee/DietPi/issues/1171#issuecomment-336522021
 - If you are happy with your existing installation of v159 (or lower), you are not required to install the v6.0 image, however, we cannot continue to provide support for v159 (or lower) installations.

**Minor notes:**
The XMAS tree has now been taken down, stored away on github history for next year. Hope you all had a good one :D

**Changes / Improvements / Optimizations:**

General | DietPi RPi kernel, now reverted to stock RPi kernel: https://github.com/Fourdee/DietPi/issues/1378

General | We have completed much needed backbone work for DietPi, which will allow for improved expansion in source code. This includes the use of dietpi-globals.

DietPi-Globals | New script which optimizes most used DietPi commands and vars, throughout our scripts. Also exported to bash session, please type 'G_' then press 'TAB' to see a full list of options: https://github.com/Fourdee/DietPi/issues/1311

General | FHS compliance completed. /etc/dietpi has moved to /var/lib/dietpi. RAMlog store has moved to /var/tmp/dietpi: https://github.com/Fourdee/DietPi/issues/1297#issuecomment-352241193

General | We have refreshed our terminal messages look & feel, oriented on RPi boot messages, and with process animation: https://github.com/Fourdee/DietPi/pull/1377

General | wget: Now set to prefer IPv4 by default (generally faster, can be changed by 'CONFIG_PREFER_IPVERSION' in dietpi.txt): https://github.com/Fourdee/DietPi/issues/1285#issuecomment-353230187

General | APT: Now set to force IPv4 by default (generally faster, can be changed by 'CONFIG_PREFER_IPVERSION' in dietpi.txt): https://github.com/Fourdee/DietPi/issues/1285#issuecomment-353230187

General | SparkySBC: CPU gov default changed to Performance, reports of increased stability.

General | Swapfile generation is now completed during 1st run of dietpi-software (previously boot stage): https://github.com/Fourdee/DietPi/issues/1270#issue-278797206

General | DietPi-Funtime: Removed from DietPi. Although it looked pretty, it did absolutely nothing (except slow down a program)

DietPi-Automation | All dietpi.txt entries have been renamed and cleaned up.

DietPi-Automation | dietpi.txt: CONFIG_NTP_MODE will now be applied during 1st run of device: https://github.com/Fourdee/DietPi/issues/1379

DietPi-Boot | Improved the method of initial FS_partition and FS_expansion during 1st run, via systemD services. 'fs_force_resize=' in dietpi.txt is no longer supported: https://github.com/Fourdee/DietPi/issues/1285#issuecomment-352159930

DietPi-Banner | IP: Will now also list the active network adapter used (eg: eth0/wlan0)

DietPi-Config | Dion Audio LOCO V1/V2: Soundcards added for RPi.

DietPi-Config | Locale: en_GB.UTF-8 is now automatically installed, alongside user selected choice. Required for DietPi scripts to function.

DietPi-Drive_Manager | Added support for exFAT, many thanks @MichaIng : https://github.com/Fourdee/DietPi/pull/1312

DietPi-Globals | Global variables and functions are now exported during login. Please see the sourcecode for more information: https://github.com/Fourdee/DietPi/issues/1311

DietPi-Set_Hardware | Sparky SBC: enable aotg.aotg1_speed compatibility setting for USB 1.1, when USB-DAC configured: https://github.com/Fourdee/DietPi/issues/1301

DietPi-Set_Software | "pool" directive is now used for NTPD: https://github.com/Fourdee/DietPi/pull/1404

DietPi-Software | NAA Daemon: Updated to latest (3.5.2-36). Existing installs will be patched automatically: https://github.com/Fourdee/DietPi/issues/1305

DietPi-Software | PHP-FPM: Increased from "$CPU_CORES_TOTAL" to "pm.max_children = $(( $CPU_CORES_TOTAL * 3 ))". This should avoid failed forking of PHP-FPM processes/requests : https://github.com/Fourdee/DietPi/issues/1298

DietPi-Software | ownCloud/Nextcloud: Added option to choose data directory via dietpi.txt pre installation: https://github.com/Fourdee/DietPi/issues/1314#issuecomment-352782055

DietPi-Software | ownCloud/Nextcloud: Switch to pretty URLs (without "index.php") on Apache

DietPi-Software | ownCloud/Nextcloud: Automated backup restoring on install and creation und uninstall to ownCloud/Nextcloud data directory

DietPi-Software | ownCloud: Switch to non-package/archive installation. This allows usage of preferred web based updater.

DietPi-Software | Nextcloud: Resolved OPcache admin panel warnings now also on Lighttpd

DietPi-Software | UrBackup: Installation updated to latest version 2.1.20. For new installations only: https://github.com/Fourdee/DietPi/issues/1335

DietPi-Software | NodeRed: Corrected user which nodered runs under, now runs as its own user, created during install: https://github.com/Fourdee/DietPi/issues/1294#issuecomment-354314318

DietPi-Software | SqueezeBox/LMS (Stretch): Installation resolved: https://github.com/Fourdee/DietPi/issues/1124

DietPi-Software | MySQL: Completely remove MySQL from DietPi in favour of MariaDB: https://github.com/Fourdee/DietPi/issues/1397

DietPi-Software | Ampache: MySQL DB and configs have been updated (adds correct userdata folder for music by default): https://github.com/Fourdee/DietPi/issues/1420

run_ntpd | Added support for systemd-timesyncd completion/detection: https://github.com/Fourdee/DietPi/issues/1379

**Bug Fixes:**

General | Fixed two systemd error messages during shutdown and boot: https://github.com/Fourdee/DietPi/issues/1330

DietPi-Automation | Resolved an issue where AUTO_SETUP_TIMEZONE was not being applied correctly, thanks @k-plan: https://github.com/Fourdee/DietPi/issues/1285#issuecomment-356310496

DietPi-Automation | dietpi.txt: CONFIG_NTP_MIRROR will now be applied to systemd-timesyncd configuration: https://github.com/Fourdee/DietPi/issues/1379

DietPi-Config | Resolved an issue with WiFi Country code, failing to set on some devices: https://github.com/Fourdee/DietPi/issues/838

DietPi-Config | Resolved an issue where disabling IPv6 didn't have an effect on AMD64 devices: https://github.com/Fourdee/DietPi/issues/1343#issuecomment-359652751

DietPi-Services | dietpi-wifi-monitor: Is no longer controlled, to prevent WiFi drop during software installs/updates etc: https://github.com/Fourdee/DietPi/issues/1288#issuecomment-350653480

DietPi-Software | General: MySQL using software titles now have their own database user, instead of accessing as "root": https://github.com/Fourdee/DietPi/issues/1397#issuecomment-359655198

DietPi-Software | qBittorrent: Resolved an issue with inability to log into web interface: https://github.com/Fourdee/DietPi/issues/1366

DietPi-Software | Resolved an issue where our custom LD_LIBRARY_PATH would cause APT failures. LD_LIBRARY_PATH has now been reverted, apologies if this effected your system: https://github.com/Fourdee/DietPi/issues/1329

DietPi-Software | Resolved an issue where APT installations would fail if services were masked. All known 

DietPi software services, will be enabled/unmasked, before installation: https://github.com/Fourdee/DietPi/issues/1320

DietPi-Software | WiFi Hotspot (Stretch): Resolved an issue where hostapd would fail to run due to missing libssl1.0.0 lib, not available in repos: https://github.com/Fourdee/DietPi/issues/1299

DietPi-Software | Shairport-sync (Stretch): Resolved an issue where this would fail to install, due to pre-req URLS becomming invalid: https://github.com/Fourdee/DietPi/issues/1303

DietPi-Software | Plex Media Server: Resolved uninstall to include /var/lib/plexmediaserver in removal (which is not completed via apt purge).

DietPi-Software | MariaDB: Resolved an issue where MariaDB would fail to uninstall correctly: https://github.com/Fourdee/DietPi/pull/1280

DietPi-Software | Aira2 (Stretch): Resolved installation, now used APT installation: https://github.com/Fourdee/DietPi/issues/1310

DietPi-Software | Mosquitto: Resolved various issues with failed install, due to Mosq repo not being maintained (deb's missing from repo header list, requires non-stretch available packages). deb's are now hosted on dietpi.com: https://github.com/Fourdee/DietPi/issues/1306

DietPi-Software | ownCloud/Nextcloud: Fixed an installation issue on Jessie with MariaDB: https://github.com/Fourdee/DietPi/pull/1319

DietPi-Software | Google AIY: Updated install to gitbranch=voicekit. Many thanks to @mpember for the heads up: https://github.com/Fourdee/DietPi/issues/1065#issuecomment-354304388

DietPi-Software | OpenJDK: Replaces OracleJDK: https://github.com/Fourdee/DietPi/issues/1401

DietPi-Update | dietpi.txt is now checked for missing entries, and, will now be patched during the update: https://github.com/Fourdee/DietPi/issues/1292#issuecomment-350818969

Sparky SBC | Kernel updated, which resolves issues with HQPlayer playback: https://www.computeraudiophile.com/forums/topic/32132-allo-sparky-usbridge/?do=findComment&comment=753100

**Allo Web Interface v5:**

Sparky SBC: Matrix Audio X-SPDIF 2, native DSD is now added to kernel, many thanks @sudeep: sparkysbc/Linux#3
@narfel
Copy link

narfel commented Feb 16, 2018

This issue still appears to show the same problem on armv6l (Pi Zero W) on the latest version of DietPi.

uname -a:
Linux DietPi 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l GNU/Linux

cat /DietPi/dietpi/.version
6 1

dpkg -s mosquitto:

Package: mosquitto
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 331
Maintainer: Roger A. Light <[email protected]>
Architecture: armhf
Multi-Arch: foreign
Version: 1.4.14-0mosquitto~nows1
Depends: adduser (>= 3.10), libuuid1 (>= 2.16), lsb-base (>= 4.1+Debian3), libc6 (>= 2.13-28), libssl1.0.0 (>= 1.0.1), libwrap0 (>= 7.6-4~)
Suggests: apparmor
--- snip ----

systemctl status mosquitto:

● mosquitto.service - LSB: mosquitto MQTT v3.1 message broker
   Loaded: loaded (/etc/init.d/mosquitto; generated; vendor preset: enabled)
   Active: active (exited) since Fri 2018-02-16 04:17:40 GMT; 3h 58min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1258 ExecStart=/etc/init.d/mosquitto start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/mosquitto.service

Feb 16 04:17:39 DietPi systemd[1]: Starting LSB: mosquitto MQTT v3.1 message broker...
Feb 16 04:17:40 DietPi mosquitto[1258]: Starting network daemon:: mosquitto.
Feb 16 04:17:40 DietPi systemd[1]: Started LSB: mosquitto MQTT v3.1 message broker.

That looks fine so far but any command results in Illegal instruction:
root@DietPi:/etc/mosquitto# mosquitto -v
Illegal instruction

Also (probably) helpful, there is this weird exited status when i call dietpi-services status:
[ OK ] mosquitto active (exited) since Fri 2018-02-16 04:17:40 GMT; 4h 8min ago

@Fourdee
Copy link
Collaborator

Fourdee commented Feb 16, 2018

@narfel

Thanks for the report 👍

It appears the only available armhf binary is compiled with ARMv7 instruction set/features. Lacking the backwards support for ARMv6 (Pi 0/1):
http://repo.mosquitto.org/debian/pool/main/m/mosquitto/

mosquito available in RPi repos.

Or we'll need to compile it for ARMv6:
https://github.com/eclipse/mosquitto

Leave it with me.

@Fourdee Fourdee reopened this Feb 16, 2018
@Fourdee Fourdee modified the milestones: v6.0, v6.2 Feb 16, 2018
@Fourdee
Copy link
Collaborator

Fourdee commented Feb 16, 2018

ARMv6 RPi repo:

root@DietPi:~# mosquitto -v
1518785890: mosquitto version 1.4.10 (build date Mon, 29 May 2017 13:43:29 +0100) starting

Outdated by our current 1.4.14 .deb install

@Fourdee
Copy link
Collaborator

Fourdee commented Feb 16, 2018

@narfel

Fixed for v6.2 on ARMv6, will be released end of this week:

root@DietPi:~# mosquitto -v
1518791022: mosquitto version 1.4.14 (build date Tue, 26 Dec 2017 22:03:57 +0000) starting
1518791022: Using default config.
1518791022: Opening ipv4 listen socket on port 1883.
1518791022: Opening ipv6 listen socket on port 1883.
^C1518791023: mosquitto version 1.4.14 terminating

Completed.

@Fourdee Fourdee closed this as completed Feb 16, 2018
Fourdee referenced this issue Feb 16, 2018
+ DietPi-Software | dietpi-software install: Command line run will now
prevent disabled G_HW_ARCH G_HW_MODEL software titles, from being
installed.

+ DietPi-Software | MQTT Mosquito: Resolved issue with ARMv6
installation/binary:
https://github.com/Fourdee/DietPi/issues/1306#issuecomment-366228445
@Fourdee Fourdee mentioned this issue Feb 18, 2018
Fourdee referenced this issue Feb 18, 2018
**v6.2**
(18/02/18)

**Changes / Improvements / Optimizations:**

Native PC UEFI | Image now includes options to install to either EMMC (eg: onboard) or SDA (1st HDD) device: https://github.com/Fourdee/DietPi/issues/1171#issuecomment-336522021 | http://dietpi.com/phpbb/viewtopic.php?f=9&t=2809&p=10808#p10808

DietPi-Backup | Rsync: Error control now handled by G_RUN_CMD

DietPi-Config | Locale: Reworked, now only lists UTF-8 items, no longer using dpkg-reconfigure. Our custom set_software script handles all locales ensuring en_GB is always installed, and selected item is applied as system default.

DietPi-Config | Display options > Resolution: Added fkms/kms (OpenGL) modes for RPi 2/3.

DietPi-Config | Sparky SBC: Added option to select usb-dac-1.1 soundcard, which will enable USB1.1 compatibility.

DietPi-Config | WiFi: Now supports connecting to hidden WiFi networks, thanks @shahwahed : https://github.com/Fourdee/DietPi/pull/1497

DietPi-LetsEncrypt | On Jessie, changed certificate auto renewal to native certbot renew command, to prevent certificate duplication: https://github.com/Fourdee/DietPi/issues/734

DietPi-LetsEncrypt | On Stretch, added automated Minio certificate renewal. Rerun "dietpi-letsencrypt" on your Stretch system to gain this feature.

DietPi-Process_tool | Reduction of onscreen print. Additional status print will only occur when HIERARCHY is less than 2 and/or an error occurs.

DietPi-Software | AmiBerry: Massive update to v2.14 and SDL2, new installations only. Currently for RPi's under Stretch only, however, we have plans to impliment for other devices: http://dietpi.com/phpbb/viewtopic.php?f=8&t=5&p=64#p64 https://github.com/Fourdee/DietPi/issues/1410

DietPi-Software | LMS/Squeezebox: Has undergone an install review and re-write. All archs are now supported for Stretch + Jessie: https://github.com/Fourdee/DietPi/issues/1496

DietPi-Software | Pydio: Add PHP module 'intl' on installation, as requested via web ui warning: https://github.com/Fourdee/DietPi/issues/1240

DietPi-Software | Nginx: To further reduce recource usage, by default 'nginx-light' will be installed now: https://github.com/Fourdee/DietPi/issues/1240

DietPi-Software | PHP: Removed some unused PHP modules from default installation: https://github.com/Fourdee/DietPi/issues/1240

DietPi-Software | Added information regarding DietPi controlling services (stopping them), prior to install/uninstall. Thanks @gpioneer90: https://github.com/Fourdee/DietPi/issues/1484#issuecomment-363802523

DietPi-Software | PiJuice: Available for installation: http://dietpi.com/phpbb/viewtopic.php?f=8&t=5&p=10740#p10740 | https://github.com/Fourdee/DietPi/issues/1488

DietPi-Software | Grasshopper: Removed, no longer available for installation: https://github.com/Fourdee/DietPi/issues/1491

DietPi-Software | Raspcontrol: Removed, no longer available for installation: https://github.com/Fourdee/DietPi/issues/1491

DietPi-Software | NetData: Updated to latest version (v1.9.0, previously v1.6.0): https://github.com/Fourdee/DietPi/issues/1494#issuecomment-364504645

DietPi-Software | MariaDB: Installation does now automatically migrate existing databases in /mnt/dietpi_userdata/mysql or /var/lib/mysql, which would be not easily possible afterwards: https://github.com/Fourdee/DietPi/pull/1475

DietPi-Software | Xserver: libgl1-mesa-dri libgles2-mesa mesa-utils, now installed by default. Required for OpenGL/GLES support across various devices.

DietPi-Sync | Rsync: Error control now handled by G_RUN_CMD

G_AGP | Will now only remove packages which are installed. Non matching items will be ignored. Supports wildcards. Prevents APT failure if the package is simply not installed.

G_DIETPI-NOTIFY | Added initiating program name, to start of line print.

**Bug Fixes:**

General | Resolved an issue where externally launched DietPi-Config with target menu, (eg: dietpi-config 8 1) had no effect. EG: fail connection, should go straight to networking submenu.

General | Locales have been reworked and reset: To resolve broken Locales, they have been reset to en_GB.UTF-8.\n\nIf you had a different locale configured on this system, please use dietpi-config at a later date to re-configure. Backups of previous env and locale settings, are created in /mnt/dietpi_userdata/*.bak: https://github.com/Fourdee/DietPi/issues/1430

DietPi-Autostart | Custom: Resolved issue with the dietpi-autostart_custom service failing to run: http://dietpi.com/phpbb/viewtopic.php?f=11&t=2832&p=10862

DietPi-Config | AudioPhonics I-Sabre-K2M: Resolved issue with failed installation. This is now a source build ondemand: https://github.com/Fourdee/DietPi/issues/1437

DietPi-LetsEncrypt | Work around a non-DietPi issue, that prevents certificate renewal via Apache and Nginx on Stretch systems: https://github.com/Fourdee/DietPi/issues/734#issuecomment-361774084

DietPi-Services | OpenVPN and DNSMASQ (PiHole): Are no longer controlled. This is to prevent unexpected loss of connection during DietPi scripts: https://github.com/Fourdee/DietPi/issues/1501

DietPi-Software | Jessie: Pi-hole is now disabled, pending release of FTL 4.0, which is required to resolve incompatible logging with outdated dnsmasq options under Jessie: https://github.com/Fourdee/DietPi/issues/1524

DietPi-Software | Nginx: Resolved failed installation when IPv6 is disabled, thanks @MichaIng: https://github.com/Fourdee/DietPi/pull/1441

DietPi-Software | OpenVPN Server: Resolved failed installation under Debian Stretch: https://github.com/Fourdee/DietPi/issues/1450

DietPi-Software | Resolved an issue where uninstalling multiple items, could result in endless loop: https://github.com/Fourdee/DietPi/issues/1454

DietPi-Software | phpMyAdmin: Its new default MariaDB user 'phpmyadmin' now has full admin privileges: http://dietpi.com/phpbb/viewtopic.php?f=11&t=2775

DietPi-Software | RPi.GPIO: Resolved failed installation.

DietPi-Software | Raspcontrol: Resolved an issue with missing webserver stack pre-req: https://github.com/Fourdee/DietPi/issues/1485

DietPi-Software | Resolved an issue where an existing higher GPU mem split, would be overridden with a lower value, during install of certain software: https://github.com/Fourdee/DietPi/issues/1484

DietPi-Software | qBitTorrent: Resolved issue with failed login on Debian Jessie, the default password is now 'adminadmin': https://github.com/Fourdee/DietPi/issues/1499

DietPi-Software | dietpi-software install: Command line run will now prevent disabled G_HW_ARCH G_HW_MODEL software titles, from being installed.

DietPi-Software | MQTT Mosquito: Resolved issue with ARMv6 installation/binary: https://github.com/Fourdee/DietPi/issues/1306#issuecomment-366228445

DietPi-Software | Automation - custom script: Resolved an issue with banners, where Google AIY would be incorrectly reported as installing: https://github.com/Fourdee/DietPi/issues/1514

DietPi-Software | NodeRed: resolved an issue where the nodered user lacked a home dir, required for additional module installation: https://github.com/Fourdee/DietPi/issues/1446#issuecomment-366370800

**Allo Web Interface v6:**

Sparky SBC: Resolved an issue where USB1.1 compatibility setting would always be applied, when usb-dac selected.

Sparky SBC: Added option to select usb-dac-1.1 soundcard, which will enable USB1.1 compatibility.
@narfel
Copy link

narfel commented Feb 19, 2018

Update for 6.2: Now it works like a charm. One little thing, though. I had to stop and remove mosquitto via dietpi-software and reinstall to make this working after upgrading to 6.2 to finally getting rid of "Illegal instruction".

root@DietPi:~# mosquitto -v
1519033829: mosquitto version 1.4.14 (build date Tue, 26 Dec 2017 22:03:57 +0000) starting
1519033829: Using default config.
1519033829: Opening ipv4 listen socket on port 1883.
1519033829: Opening ipv6 listen socket on port 1883.

@1activegeek
Copy link

1activegeek commented May 15, 2018

@Fourdee I'm not sure if this is this issue again, but I think it may be. I'm working through installing this on a Rock64 using the latest 6.8. I just noticed upon trying a second time, that there are unmet dependency errors coming up while trying to install. The odd part is, in checking the dependencies, they're all met. I backed out the install, removed the leftover files, and then just did an apt install mosquito and it completed with no issues.

I believe there WAS an issue in the past with the default? Or perhaps this hosted package was only intended for certain versions? In this case it seems the standard OS based install worked fine, while the package provided was not working.

Obviously this "workaround" works - I just like to be able to ensure everything is managed by the DietPi system, so it would be preferential to have DietPi know it has mosquitto installed so in processing other requests it can properly handle/control the service.

Relevant logs:

[  OK  ] DietPi-Software | Connection test: http://dietpi.com/downloads/binaries/all/mosquitto_1.4.14-0mosquitto1_nows1_armhf.deb
--2018-05-14 21:21:24--  http://dietpi.com/downloads/binaries/all/mosquitto_1.4.14-0mosquitto1_nows1_armhf.deb
Resolving dietpi.com (dietpi.com)... 185.101.93.93
Connecting to dietpi.com (dietpi.com)|185.101.93.93|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://dietpi.com/downloads/binaries/all/mosquitto_1.4.14-0mosquitto1_nows1_armhf.deb [following]
--2018-05-14 21:21:24--  https://dietpi.com/downloads/binaries/all/mosquitto_1.4.14-0mosquitto1_nows1_armhf.deb
Connecting to dietpi.com (dietpi.com)|185.101.93.93|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 138678 (135K) [application/x-debian-package]
Saving to: ‘package.deb’

package.deb                                                 100%[=========================================================================================================================================>] 135.43K   442KB/s    in 0.3s    

2018-05-14 21:21:25 (442 KB/s) - ‘package.deb’ saved [138678/138678]

Selecting previously unselected package mosquitto:armhf.
(Reading database ... 78884 files and directories currently installed.)
Preparing to unpack package.deb ...
Unpacking mosquitto:armhf (1.4.14-0mosquitto1~nows1) ...
dpkg: dependency problems prevent configuration of mosquitto:armhf:
 mosquitto:armhf depends on libuuid1 (>= 2.16).
 mosquitto:armhf depends on libc6 (>= 2.13-28).
 mosquitto:armhf depends on libssl1.0.0 (>= 1.0.1).
 mosquitto:armhf depends on libwrap0 (>= 7.6-4~).

dpkg: error processing package mosquitto:armhf (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (232-25+deb9u3) ...
Errors were encountered while processing:
 mosquitto:armhf
[  OK  ] DietPi-Software | APT fix, please wait...
Reading package lists...

@MichaIng
Copy link
Owner

@1activegeek
We chose to offer a self hosted package, as especially the Debian APT repo version on Jessie it quite outdated: https://packages.debian.org/de/jessie/mosquitto

  • 1.4.14 vs. 1.3.4 (Jessie) / 1.4.10 (Stretch)

libssl1.0.0 should be installed via dietpi-software as well as a separate pre-req before the mosquitto installation starts. Did this went fine without errors?

The dpkg dependency error you face is expected. Maybe we have to hide those logs, to not confuse users. We let dpkg run into these error to allow apt-get -f install install all needed dependencies automatically: [ OK ] DietPi-Software | APT fix, please wait...
Please check if this went fine through then.

This is a ugly (output wise) but practically best working solution for manually installing .deb packages:

  • APT installs dependencies by itself, but dpkg doesn't.
  • As dependencies of packages can change, it is a huge maintenance task to keep track and update the dep list for all our software titles, especially since also the underlying system differs and changes.
  • But APT handles and automatically solves dependency errors that occurred on the dpkg level, thus as long as all dependencies are available within the APT repo (all besides libssl1.0.0 on Stretch and above), we can leave this to APT just the same as we would install the main package from APT repo.
  • This also has some benefit for package clean-up: The automatically installed packages are marked as this and as fast as all dependants are removed, the dependencies can be apt-get autoremoved as well, leaving a cleaner system without a growing amount of obsolete library and dependency packages.

@1activegeek
Copy link

1activegeek commented May 15, 2018

@MichaIng - I probably should have mentioned that I wasn't just including the logs as they looked erroneous, the install was not successful either. I was left with some odd behavior if I left it as "installed". Specifically the service was not registered or available in the system, the mosquito application was not registered to the system, and the actual mosquito folder had odd naming - something like the config file was labeled as mosquitto.conf.dpkg.new. I found the "attempted" service file in init.d I believe with a similar unexpected extension dpkg.new. So this was not successful, I just took note of that specific set of logs that look erroneous in the install process. The logs following outlined the removal of the app, but obviously that didn't fully take properly as it had leftover components.

The only main thing I will say I can tell in the difference of installs at the moment, is that it attempted to install an armhf package it would appear, while installing manually with apt provided an arm64 based install. I'm not an expert here with differences in that nature, but my install worked with this manually while it failed attempting to use the DP install method.

Unfortunately this is my home automation system that relies on mqtt functioning, so I'm not able to test running through this again (I'd be dead if I turn off voice control of the home! 😛 ) but I'm happy to help if there are other logs of any sort that I can provide.

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

No branches or pull requests

7 participants