beta update error over webgui Topic is solved
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.
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.
-
pfloryann
- Posts: 201
- Joined: Wednesday 09 January 2019 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.2
- Contact:
Re: beta update error over webgui
Yeap it works from 17053 to 17056 and i saw an new design in about page.
Thanks!
Domoticz on Raspberry Pi 4 Debian 13 x64
Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy, Yeelight, Xiaomi Purifier Pro, Roborock S5
Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy, Yeelight, Xiaomi Purifier Pro, Roborock S5
-
pfloryann
- Posts: 201
- Joined: Wednesday 09 January 2019 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.2
- Contact:
Re: beta update error over webgui
Hi,
Again from 17057 to 1760.
It needs to be updated twice to work.
This is the third time that it has had to be updated twice to get it to work. The same problem was with the last 2 previous update versions.
>> Checking package dependencies...
>> All required packages are already installed
>> Running updated script - proceeding with installation...
>> Stopping Domoticz service...
>> Creating backup: backups/domoticz_backup_20260130_083246.tar.gz
tar: .: file changed as we read it
>> Backup creation failed!
Again from 17057 to 1760.
It needs to be updated twice to work.
This is the third time that it has had to be updated twice to get it to work. The same problem was with the last 2 previous update versions.
>> Checking package dependencies...
>> All required packages are already installed
>> Running updated script - proceeding with installation...
>> Stopping Domoticz service...
>> Creating backup: backups/domoticz_backup_20260130_083246.tar.gz
tar: .: file changed as we read it
>> Backup creation failed!
Domoticz on Raspberry Pi 4 Debian 13 x64
Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy, Yeelight, Xiaomi Purifier Pro, Roborock S5
Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy, Yeelight, Xiaomi Purifier Pro, Roborock S5
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: beta update error over webgui
No update issues here.
if you update from command line with ./updatebeta do you need to use sudo or not? I need to use sudo.
Does the account that runs domoticz have write access on the backups folder?
if you update from command line with ./updatebeta do you need to use sudo or not? I need to use sudo.
Does the account that runs domoticz have write access on the backups folder?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- jvdz
- Posts: 2441
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: beta update error over webgui
It looks like a/some file still changed while the tar backup was running and the update batch file checks the successful creation of the tar backupfile, so the update process is stopped.
This test was added recently:
Maybe the check for successful completion needs to be modified to "> 1" as rc=1 means there are only warnings?
This test was added recently:
Code: Select all
if ! sudo tar --exclude="$BACKUP_DIR" --exclude='*.tgz' --exclude='*.gz' --exclude='update.log' -czf "$backup_file" .; then
die "Backup creation failed!"
fi
-
pfloryann
- Posts: 201
- Joined: Wednesday 09 January 2019 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.2
- Contact:
Re: beta update error over webgui
Hi,
I updated my system to Debian 13 x64 i have beta 17091 and now the same issue...can;t update to 17096.
Between certain versions it works perfectly. Now it can't be updated again
I updated my system to Debian 13 x64 i have beta 17091 and now the same issue...can;t update to 17096.
Between certain versions it works perfectly. Now it can't be updated again
Domoticz on Raspberry Pi 4 Debian 13 x64
Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy, Yeelight, Xiaomi Purifier Pro, Roborock S5
Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy, Yeelight, Xiaomi Purifier Pro, Roborock S5
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: beta update error over webgui
There should be a logging screen in your webgui update. What does it say?
There was again a breaking change due to libmosquitto1 that needs to be downloaded and installed. For me it installed just in the available 100 seconds timeframe but perhaps on a slower system you need to run the update twice.
There was again a breaking change due to libmosquitto1 that needs to be downloaded and installed. For me it installed just in the available 100 seconds timeframe but perhaps on a slower system you need to run the update twice.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
pfloryann
- Posts: 201
- Joined: Wednesday 09 January 2019 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.2
- Contact:
Re: beta update error over webgui
Usually it gets stuck at the backup part. But something very strange happens, I try to update several times and it doesn't work... I try again in 5-6 hours and it works the first time like now...i received 17096. I have encountered this situation several times in the last month. I'm thinking maybe he doesn't have enough time to create the backup or something else?
Domoticz on Raspberry Pi 4 Debian 13 x64
Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy, Yeelight, Xiaomi Purifier Pro, Roborock S5
Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy, Yeelight, Xiaomi Purifier Pro, Roborock S5
- jvdz
- Posts: 2441
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: beta update error over webgui
So guess it dies with this statement in your update log, as I mentioned earlier?: "Backup creation failed!"
-
pfloryann
- Posts: 201
- Joined: Wednesday 09 January 2019 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.2
- Contact:
Re: beta update error over webgui
Exactly "Backup creation failed!" 
Domoticz on Raspberry Pi 4 Debian 13 x64
Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy, Yeelight, Xiaomi Purifier Pro, Roborock S5
Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy, Yeelight, Xiaomi Purifier Pro, Roborock S5
- jvdz
- Posts: 2441
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: beta update error over webgui
Seems there is some race condition where files are still being changed while the backup creation is running. Maybe test with a "sleep 5" just before starting the backup to give the system 5 seconds to finish all writes?
-
lost
- Posts: 699
- Joined: Thursday 10 November 2016 9:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: beta update error over webgui
The domoticz service was stopped just before backup archive creation starts, but some writes may still be in caches and not written on storage... Especially if some memory management tunables were changed to better merge writes in order to preserve a SD card and even normal commit time may lead to writes starting after several seconds delay.
=> IMHO, better that a fixed delay, I would recommend adding this in the script after service stop:
Source for this tip to ensure all is flushed afterwards:
https://www.kernel.org/doc/Documentation/sysctl/vm.txt
Especially:
=> IMHO, better that a fixed delay, I would recommend adding this in the script after service stop:
Code: Select all
sync
echo 3 > /proc/sys/vm/drop_caches
https://www.kernel.org/doc/Documentation/sysctl/vm.txt
Especially:
To free slab objects and pagecache:
echo 3 > /proc/sys/vm/drop_caches
(...)
To increase the number of objects freed by this operation, the user may run
`sync' prior to writing to /proc/sys/vm/drop_caches. This will minimize the
number of dirty objects on the system and create more candidates to be
dropped.
-
pfloryann
- Posts: 201
- Joined: Wednesday 09 January 2019 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.2
- Contact:
Re: beta update error over webgui
I tried several times to upgrade 17096 to 17099 and the same issue but with Failed to stop service in addition.
> Package 'libmosquitto1' is already installed
>> All required packages are already installed
>> Running updated script - proceeding with installation...
>> Stopping Domoticz service...
Job for domoticz.service canceled.
>> Failed to stop service (may not be running)
>> Creating backup: backups/domoticz_backup_20260210_203401.tar.gz
tar: ./domoticz.db-wal: file changed as we read it
tar: .: file changed as we read it
>> Backup creation failed!
> Package 'libmosquitto1' is already installed
>> All required packages are already installed
>> Running updated script - proceeding with installation...
>> Stopping Domoticz service...
Job for domoticz.service canceled.
>> Failed to stop service (may not be running)
>> Creating backup: backups/domoticz_backup_20260210_203401.tar.gz
tar: ./domoticz.db-wal: file changed as we read it
tar: .: file changed as we read it
>> Backup creation failed!
Domoticz on Raspberry Pi 4 Debian 13 x64
Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy, Yeelight, Xiaomi Purifier Pro, Roborock S5
Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy, Yeelight, Xiaomi Purifier Pro, Roborock S5
Who is online
Users browsing this forum: No registered users and 1 guest