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 domoticz[4816]: /opt/domoticz/domoticz: error while loading shared libraries: │ libcurl-gnutls.so.4: cannot open shared object file: No such file or directory #6404

Closed
IgrekLg opened this issue Jun 1, 2023 · 4 comments · Fixed by #6405
Labels
Solution available 🥂 Definite solution has been done Upstream change
Milestone

Comments

@IgrekLg
Copy link

IgrekLg commented Jun 1, 2023

Creating a bug report/issue

Required Information

  • DietPi version | G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=18
    G_DIETPI_VERSION_RC=0
    G_GITBRANCH='beta'
    G_GITOWNER='MichaIng'
  • Distro version | bullseye
  • Kernel version | Linux DietPi 5.15.93-rockchip64 #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 aarch64 GNU/Linux
  • SBC model | ROCK Pi S (aarch64)
  • Power supply used | 5V 2A
  • SD card used | SanDisk High Endurance Card

Additional Information (if applicable)

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

Steps to reproduce

Install the programm Domoticz from dietpi-software
Domticz not started, DietPi-Services shows "State: failed"
Status : Display systemd status log

domoticz.service - Domoticz (DietPi) │
│ Loaded: loaded (/etc/systemd/system/domoticz.service; enabled; vendor preset: enabled) │
│ Active: failed (Result: exit-code) since Thu 2023-06-01 23:39:50 MSK; 34min ago │
│ Process: 4816 ExecStart=/opt/domoticz/domoticz -f /mnt/dietpi_userdata/domoticz/domoticz.conf (code=exited, │
│ status=127) │
│ Main PID: 4816 (code=exited, status=127) │
│ CPU: 18ms │
│ │
│ Jun 01 23:39:50 DietPi systemd[1]: Started Domoticz (DietPi). │
│ Jun 01 23:39:50 DietPi domoticz[4816]: /opt/domoticz/domoticz: error while loading shared libraries: │
│ libcurl-gnutls.so.4: cannot open shared object file: No such file or directory │
│ Jun 01 23:39:50 DietPi systemd[1]: domoticz.service: Main process exited, code=exited, status=127/n/a │
│ Jun 01 23:39:50 DietPi systemd[1]: domoticz.service: Failed with result 'exit-code'.

@MichaIng MichaIng added this to the v8.18 milestone Jun 1, 2023
@MichaIng
Copy link
Owner

MichaIng commented Jun 1, 2023

Many thanks for your report. Seems like the new release explicitly depends on the GnuTLS variant of libcurl instead of the one which uses OpenSSL. Does this work?

apt install libcurl3-gnutls
systemctl restart domoticz

EDIT: Verified: https://github.com/MichaIng/DietPi/actions/runs/5149343938/jobs/9272223879

@MichaIng
Copy link
Owner

MichaIng commented Jun 1, 2023

Ah, the reason may be the problem with libssl1.1 vs libssl3 (the OpenSSL library). It can only depend on either one or the other version, which makes it impossible to build one Domoticz binary that works on Debian up to Bullseye as well as on Debian Bookworm (and some for other distros which moved to libssl3). And Domoticz has no infrastructure to ship different binaries for different distro versions. Switching to GnuTLS might have been their solution. If so, this means we can re-enable it for Bookworm, which is great.

MichaIng added a commit that referenced this issue Jun 1, 2023
- DietPi-Software | Domoticz: Resolved an issue where the service start failed because the new version of Domoticz depends on the GnuTLS variant of libcurl instead of the OpenSSL one. This however means that is can run on Debian Bookworm now. Many thanks to @IgrekLg for reporting this issue: #6404
MichaIng added a commit that referenced this issue Jun 1, 2023
- DietPi-Software | Domoticz: Resolved an issue where the service start failed because the new version of Domoticz depends on the GnuTLS variant of libcurl instead of the OpenSSL one. This however means that is can run on Debian Bookworm now. Many thanks to @IgrekLg for reporting this issue: #6404
@MichaIng
Copy link
Owner

MichaIng commented Jun 1, 2023

PR up: #6402
And related tests: https://github.com/MichaIng/DietPi/actions/runs/5149388369
EDIT: Okay, sadly it still depends on libssl1.1 and hence does not start on Bookworm. But on Buster and Bullseye at least the above package fixes it indeed.

MichaIng added a commit that referenced this issue Jun 1, 2023
- DietPi-Software | Domoticz: Resolved an issue where the service start failed because the new version of Domoticz depends on the GnuTLS variant of libcurl instead of the OpenSSL one. Many thanks to @IgrekLg for reporting this issue: #6404
MichaIng added a commit that referenced this issue Jun 1, 2023
- DietPi-Software | Domoticz: Resolved an issue where the service start failed because the new version of Domoticz depends on the GnuTLS variant of libcurl instead of the OpenSSL one. Many thanks to @IgrekLg for reporting this issue: #6404
@MichaIng MichaIng added the Solution available 🥂 Definite solution has been done label Jun 1, 2023
@IgrekLg
Copy link
Author

IgrekLg commented Jun 2, 2023

Thanks, tested the solution and it's ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Solution available 🥂 Definite solution has been done Upstream change
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants