Docker automatic backup error - SOLVED 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
barry44
Posts: 27
Joined: Thursday 17 November 2016 21:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Contact:

Docker automatic backup error - SOLVED

Post by barry44 »

Version: 2024.7
Platform: Docker in bookworm raspian
Plugin/Hardware: Raspberry 4
Description:
Hello

I've recently migrated my domoticz to docker.
Everything is working fine, except automatic backup.
When the daily (or monthly or yearly) folder is empty, the file is created
But when the file already exists (for example backup-hour-16-Domoticz.db) , I get an error in log " Error: Error writing automatic hourly backup file"

My docker compose is standard one with a volume

Code: Select all

./config:/opt/domoticz/userdata
And the config file has thoses rights

Code: Select all

drwxr-xr-x  6 pi pi 4096  7 janv. 20:16 config
Am I missing something ? I think there is a right problem, but no idea where to search.

Thank's for your help
Last edited by barry44 on Friday 17 January 2025 20:52, edited 1 time in total.
User avatar
waltervl
Posts: 5380
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Docker automatic backup error

Post by waltervl »

Did you install docker following the instructions here https://wiki.domoticz.com/Docker#Instal ... nux_system

Especially the command for permissions:

Code: Select all

sudo usermod -aG docker ${USER}
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
barry44
Posts: 27
Joined: Thursday 17 November 2016 21:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Contact:

Re: Docker automatic backup error

Post by barry44 »

Hello

Yes, I follow this guide.
I can't really remember if I run this command. But I think so.

Code: Select all

pi@xxxxx:~ $ sudo echo ${USER}
pi
pi@xxxxx:~ $ id
uid=1000(pi) gid=1000(pi) groupes=1000(pi),4(adm),20(dialout),24(cdrom),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),105(input),107(render),109(netdev),995(docker),997(gpio),998(i2c),999(spi
pi@xxxxx:~ $ getent group docker
docker:x:995:pi
And I have PUID and PGID set to my pi user (=1000) in docker-compose environment.
barry44
Posts: 27
Joined: Thursday 17 November 2016 21:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Contact:

Re: Docker automatic backup error

Post by barry44 »

Finally, I have solved it by deleting daily/weekly/yearly folder, and let domoticz to recreate them

Now it works normally.

I don't understand why, the permissions seem to be the same. But it works.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests