Bug 503946 - kup fails to back up files on mounted smb drive
Summary: kup fails to back up files on mounted smb drive
Status: RESOLVED UPSTREAM
Alias: None
Product: kup
Classification: Applications
Component: general (other bugs)
Version First Reported In: 0.10.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Simon Persson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-09 02:16 UTC by Christian Z.
Modified: 2025-05-25 16:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Z. 2025-05-09 02:16:04 UTC
SUMMARY

I can't back up to my drive. I always get this error:

bup "-d" "/mnt/NAS/MB_Backup/Christian/christian-kup" "init"
error: chmod on /mnt/NAS/MB_Backup/Christian/christian-kup/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'
bup: error: could not init repository: 'git init' returned 128
Kup did not successfully complete the bup backup job: failed to initialize backup destination. 

This is how my drive is mounted in /etc/fstab:
//192.168.178.26/NAS /mnt/NAS cifs auto,x-systemd.automount,credentials=/home/christian/.smbcredentials,iocharset=utf8,noserverino,dir_mode=0777,file_mode=0777,x-gvfs-show 0 0

I do have read and write permissions - for example, creating and deleting files in dolphin in that directory works just fine.

STEPS TO REPRODUCE
1. Mount a drive with samba
2. Try to back up files

OBSERVED RESULT

The error message above.

EXPECTED RESULT

The files getting backed up.

SOFTWARE/OS VERSIONS
Linux: 6.14.5-arch1-1
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Comment 1 Simon Persson 2025-05-25 16:35:21 UTC
So the very first bup command fails for you, "bup init". It tries to create a git repository at the backup destination folder but fails while trying to do a chmod on config.lock, the error being "could not set 'core.filemode' to 'false'". You can try reporting this on the bup mailing list, and I hope you get useful help there.