Problem with permissions backup directory. Ubuntu Server

Hello.
I have tried many ways. But I can not get to find a solution to my problem.

Constantly displays the following message in the web interface.

The directory where UrBackup will save backups is inaccessible. Please fix that by modifying this folder in 'Settings' or by giving UrBackup rights to access this directory.(err_folder_not_found)

I’ve tried to give different permissions, and assign different owners directory. However problem does not disappear.

In the logs I get the following entry.
ERROR: No permission to access "/root/backup/urbackup_tmp_files"

Please help.

1 Like

chown urbackup:urbackup /root/backup

2 Likes

I have already tried that.
Unfortunately, it did not help.

urbackup has no access to /root
please move the backup directory to a standard location… either /mnt/urbackup or /media/urbackup

I have exactly the same problem. Permissions are all ok as far as I can see. Backup drive is in media and is formatted BTRFS. I mention that the origin drive is EXT4 but as far as I understand that is no problem. Ubuntu 14.04 with 4.4.8 kernel installed.

I would dearly like to use the BTRFS functionality, but can’t work out what is wrong. Any ideas?

/media# chown -R urbackup:urbackup /media/sdb1
/media# urbackup_snapshot_helper test
Create subvolume ‘/media/sdb1/backup/testA54hj5luZtlorr494/A’
Create a snapshot of ‘/media/sdb1/backup/testA54hj5luZtlorr494/A’ in ‘/media/sdb1/backup/testA54hj5luZtlorr494/B’
ERROR: error accessing ‘-c’
Delete subvolume ‘/media/sdb1/backup/testA54hj5luZtlorr494/A’
TEST FAILED: Removing subvolume A failed
ERROR: error accessing ‘-c’
Delete subvolume ‘/media/sdb1/backup/testA54hj5luZtlorr494/B’
TEST FAILED: Removing subvolume B failed
:/media# service urbackupsrv restart

  • Restarting UrBackup server deamon urbackupsrv [ OK ]
    :/media# uname -a
    Linux staging 4.4.8-040408-generic #201604200335 SMP Wed Apr 20 07:37:30 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
    :/media# cat /etc/urbackup/backupfolder
    /media/sdb1/backup
    :/media# cd /media/sdb1/backup
    :/media/sdb1/backup# ls
    clients urbackup_tmp_files
    :/media/sdb1/backup# mount | grep btrfs
    /dev/sdb1 on /media/sdb1 type btrfs (rw)
    /dev/sdc1 on /media/sdc1 type btrfs (rw)

Hello, this is a 1 day ago ubuntu 16.04 installation of urbackup-server.
The file system is:
root@2001-48F8-22-41C-0-0-0-5-dynamic:~# mount |grep sda
/dev/sda1 on / type btrfs (rw,relatime,space_cache,subvolid=257,subvol=/@)
/dev/sda1 on /home type btrfs (rw,relatime,space_cache,subvolid=258,subvol=/@home)

I chose manual partitioning during the installation.
After adding the uroni repo and starting the server it seems that /var/urbackup path which I created manually with mkdir -p /var/urbackup (I did not know if default /media* path would work) assumed the right permission after urbackup server was started.

So testing:
root@2001-48F8-22-41C-0-0-0-5-dynamic:~# urbackup_snapshot_helper test
Create subvolume ‘/var/urbackup/testA54hj5luZtlorr494/A’
Create a snapshot of ‘/var/urbackup/testA54hj5luZtlorr494/A’ in ‘/var/urbackup/testA54hj5luZtlorr494/B’
Delete subvolume (commit): ‘/var/urbackup/testA54hj5luZtlorr494/A’
Delete subvolume (commit): ‘/var/urbackup/testA54hj5luZtlorr494/B’
TEST OK

seems to confirm that all is OK.

Perhaps the above description helps you to manouever in the right direction.
Besides, I have no idea why ubuntu 16.04 uses kernel:

root@2001-48F8-22-41C-0-0-0-5-dynamic:~# uname -a
Linux 2001-48F8-22-41C-0-0-0-5-dynamic 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Like I said in a previous post,I am a fedora and gentoo fan and the latest kernels are 4.6 or 4.7

Regards
Lin

Solution was to install latest kernel. The -C parameter is the problem.