urbackup permission error after upgrading to Trixie, unable to run backups
Creating a bug report/issue
- [x] I have searched the existing open and closed issues
Required Information
- DietPi version |
G_DIETPI_VERSION_CORE=9 G_DIETPI_VERSION_SUB=19 G_DIETPI_VERSION_RC=2 G_GITBRANCH='master' G_GITOWNER='MichaIng' - Distro version |
Trixie 0 - Kernel version |
Linux Server1 6.12.47+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.47-1+rpt1 (2025-09-16) aarch64 GNU/Linux - SBC model |
RPi4or (EG: RPi3)
Additional Information (if applicable)
- Software title | Urbackup
- Was the software title installed freshly or updated/migrated? Updated to Trixie, then did a reinstalled of urbackup
- Can this issue be replicated on a fresh installation of DietPi? n/a
- Bug report ID |
5dbd03c5-dd2e-4861-83ca-9a369ba2213f
Steps to reproduce
log into urbackup after installing trixie
Expected behaviour
Computters should backup to the server
Actual behaviour
Computers are unable to save/update backups
Extra details
I ran this command and still no luck: chown -R urbackup:urbackup /mnt/dietpi_userdata/urbackup
Checking and unchecking these did not change anything:
Temporary files as file backup buffer: Temporary files as image backup buffer:
Please check the service logs:
journalctl -u urbackupsrv
cat /var/log/urbackup.log
root@Server1:~# journalctl -u urbackupsrv
Dec 03 13:38:05 Server1 systemd[1]: Starting urbackupsrv.service - LSB: Server for doing backups...
Dec 03 13:38:07 Server1 systemd[1]: Started urbackupsrv.service - LSB: Server for doing backups.
Dec 03 13:39:53 Server1 urbackupsrv[636]: Login successful for admin from xxxxxxxxx via web interface
Dec 03 13:58:27 Server1 urbackupsrv[636]: Login successful for admin from xxxxxxxxx via web interface
cat /var/log/urbackup.log
2025-12-03 14:20:26: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.ttDSnj"
2025-12-03 14:20:36: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.3P1svL"
2025-12-03 14:20:46: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.4Aiger"
2025-12-03 14:20:56: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.sc0CKU"
2025-12-03 14:21:02: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.US8Spc"
2025-12-03 14:21:02: WARNING: Error creating temporary file path. No such file or directory (code: 2)
2025-12-03 14:21:02: WARNING: Error opening temporary file. Retrying...
2025-12-03 14:21:03: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.WysrRV"
2025-12-03 14:21:03: WARNING: Error creating temporary file path. No such file or directory (code: 2)
2025-12-03 14:21:03: WARNING: Error opening temporary file. Retrying...
2025-12-03 14:21:04: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.szZVoQ"
2025-12-03 14:21:04: WARNING: Error creating temporary file path. No such file or directory (code: 2)
2025-12-03 14:39:29: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.anQtAz"
2025-12-03 14:39:29: WARNING: Error creating temporary file path. No such file or directory (code: 2)
2025-12-03 14:39:29: WARNING: Error opening temporary file. Retrying...
2025-12-03 14:39:29: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.89ys0C"
2025-12-03 14:39:29: WARNING: Error creating temporary file path. No such file or directory (code: 2)
2025-12-03 14:39:29: WARNING: Error opening temporary file. Retrying...
2025-12-03 14:39:29: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.Oexf8Y"
2025-12-03 14:39:29: WARNING: Error creating temporary file path. No such file or directory (code: 2)
2025-12-03 14:39:29: WARNING: Error opening temporary file. Retrying...
2025-12-03 14:39:29: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.W2xEkL"
2025-12-03 14:39:29: WARNING: Error creating temporary file path. No such file or directory (code: 2)
2025-12-03 14:39:29: WARNING: Error opening temporary file. Retrying...
2025-12-03 14:39:30: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.TT6Bif"
2025-12-03 14:39:30: WARNING: Error creating temporary file path. No such file or directory (code: 2)
2025-12-03 14:39:30: WARNING: Error opening temporary file. Retrying...
2025-12-03 14:39:30: ERROR: Error creating temporary file in BackupServerGet::getClientSettings
2025-12-03 14:39:30: ERROR: Getting client settings failed -2
2025-12-03 14:39:30: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.GPOunV"
2025-12-03 14:39:30: WARNING: Error creating temporary file path. No such file or directory (code: 2)
2025-12-03 14:39:30: WARNING: Error opening temporary file. Retrying...
2025-12-03 14:39:30: ERROR: Error creating temporary file in BackupServerGet::getClientSettings
2025-12-03 14:39:30: ERROR: Getting client settings failed -2
2025-12-03 14:39:30: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.0QXa9C"
2025-12-03 14:39:30: WARNING: Error creating temporary file path. No such file or directory (code: 2)
2025-12-03 14:39:30: WARNING: Error opening temporary file. Retrying...
2025-12-03 14:39:30: ERROR: Error creating temporary file in BackupServerGet::getClientSettings
2025-12-03 14:39:30: ERROR: Getting client settings failed -2
2025-12-03 14:39:30: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.VxmpyT"
2025-12-03 14:39:30: WARNING: Error creating temporary file path. No such file or directory (code: 2)
2025-12-03 14:39:30: WARNING: Error opening temporary file. Retrying...
2025-12-03 14:39:30: ERROR: Error creating temporary file in BackupServerGet::getClientSettings
2025-12-03 14:39:30: ERROR: Getting client settings failed -2
2025-12-03 14:39:36: ERROR: Error creating temporary file at "/mnt/dietpi_userdata/urbackup/tmp/cps.QvhQZZ"
There are thousands of these errors
@MichaIng so i fixed it by manually creating the urbackup/tmp folder and applying the same permissions chown -R urbackup:urbackup /mnt/dietpi_userdata/urbackup/tmp
not sure why it didn't have permissions to make the folder in the first place.
Thanks for the report. Is /mnt/dietpi_userdata/urbackup itself owned by urbackup user? We set a debconf value which the package should take to setup the backup dir with proper permissions, but maybe something has changed with a recent version, or is different with the package from the APT repo.
I'll run some tests tomorrow as well, to fix it for upcoming release, or add some failsafe step to our install code.
root@Server1:/mnt/dietpi_userdata/urbackup# ls -ld drwxrwxr-x 12 urbackup urbackup 4096 Dec 3 16:28 .
@MichaIng I found the issue, I didn't notice that it changed the save location from /mnt/MyBook/dietpi_userdata/urbackup to /mnt/dietpi_userdata/urbackup during the reinstall. I found out when I got an error this morning that my disk was full which was not normal.
@MichaIng I guess i was wrong, i did get it to point back top my original backups but im getting the same permission error, i tried to apply chown -R urbackup:urbackup /mnt/MyBook/dietpi_userdata/urbackup to give permissions to the whole folder but it stills says it has no access.
Edit: So i dont know whats going on. i did a urbackupsrv cleanup --amount 0% and then a recalculate statistics and it started working.... Although it still has the error on the top.
Edit 2: Seems that the permissions on urbackup_tmp_files keeps getting reset. not sure why.
@MichaIng ok, hopefully i found the issue. it looks like the tmp file HAS to be located in the main dietpi_userdata folder (/mnt/dietpi_userdata/urbackup/tmp)
unless im still missing some kind of permissions as soon as i created that folder it worked again.