Webgui beta update on Ubuntu 24.04 LTS fails Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Webgui beta update on Ubuntu 24.04 LTS fails

Post by waltervl »

I have a test system with Ubuntu 24.04 LTS on X86_64 architecture and the last week it fails to update over webgui (probably after reverting to SysV service method)
A restart of the service over Command line gets it working again.
Also a updatebeta over command line goes fine. It is juist the update over webhui.

The webgui update succeeds until the scripts wants to start Domoticz again.
Running "sudo service domoticz status" ends with:

Code: Select all

 sudo[799970]: pam_unix(sudo:session): session closed for user root
I currently have no domoticz hardware gateways, no scripts running so it is a completely silent environment.
There is already a currently closed github issue because I thought it was solved but now I still have this issue.
https://github.com/domoticz/domoticz/issues/6640

Anyone else has this issue?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Rik60
Posts: 230
Joined: Sunday 25 June 2023 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.3
Location: The Netherlands
Contact:

Re: Webgui beta update on Ubuntu 24.04 LTS fails

Post by Rik60 »

After the switch back to SysV i don't have issues when updating through the web ui. The only thing is that sometimes the counter reach 100, then after a few seconds the dashboard is back with the updated version of the beta.
I am running Domoticz on a Rpi3B+ Trixie.
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Webgui beta update on Ubuntu 24.04 LTS fails

Post by waltervl »

Issue is fixed. It should update to beta now perfectly again (at least mine does)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
homeJLB
Posts: 153
Joined: Tuesday 16 October 2018 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Belgium
Contact:

Re: Webgui beta update on Ubuntu 24.04 LTS fails

Post by homeJLB »

I have try'd the webupdate but it goes to 100% and does not come back online.

My service file looks like this;

Code: Select all

[Unit]
      Description=domoticz_service
[Service]
      #User=pi
      #Group=users
      ExecStart=/home/lauwers/domoticz/domoticz -www 8080 -sslwww 443 -log "/var/log/domoticz.log" -loglevel all -debuglevel normal,hardware,received
      WorkingDirectory=/home/lauwers/domoticz
      ExecStartPre=setcap 'cap_net_bind_service=+ep' /home/lauwers/domoticz/domoticz
      Restart=on-failure
      RestartSec=1m
      #StandardOutput=null
[Install]
      WantedBy=multi-user.target
from the command line I always used;

Code: Select all

sudo service domoticz status
so without the .sh

Code: Select all

● domoticz.service - domoticz_service
     Loaded: loaded (/etc/systemd/system/domoticz.service; enabled; preset: enabled)
     Active: active (running) since Sun 2026-04-05 19:49:49 CEST; 13h ago
    Process: 880175 ExecStartPre=setcap cap_net_bind_service=+ep /home/lauwers/domoticz/domoticz (code=exited, status=0/SUCCESS)
   Main PID: 880176 (domoticz)
      Tasks: 32 (limit: 3914)
        CPU: 8min 16.476s
     CGroup: /system.slice/domoticz.service
             └─880176 /home/lauwers/domoticz/domoticz -www 8080 -sslwww 443 -log /var/log/domoticz.log -loglevel all -debuglevel normal,hardware,received
My system is a Raspberry Pi 4 Model B Rev 1.2
with Debian GNU/Linux 12 (bookworm)

The next update I will look further,
For now updated from command line runs fine.

Kind Regards
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Webgui beta update on Ubuntu 24.04 LTS fails

Post by waltervl »

Webgui update does not support systemd service.
You have to use the Sysv (init.d) method.

I remember now I have to update the wiki as some weeks ago it was switched to systemd but failed somehow for updates so it was decided to go back to Sysv.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
homeJLB
Posts: 153
Joined: Tuesday 16 October 2018 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Belgium
Contact:

Re: Webgui beta update on Ubuntu 24.04 LTS fails

Post by homeJLB »

I thought the init.d-method was deprecated.

I believe that it works easier with systemd, but its just a opinion.

Kind Regards
Post Reply