Bareos is unable to stat device - permission denied

bareos

#1

Hi there,
Bareos is unable to perform any backups.
These Backups should be stored on a external hard disk mounted in /media/Administrator/Bareos
The hard disk ext4 formatted and contains a directory named Backup. The complete path /media/Administrator/Bareos/Backup is set in the UCR variable bareos/filestorage.

Both, the mountpoint and the directory have 777 (rwx) permission.
But Bareos throws the following errors:

2019-07-19 08:55:18 bareos-dir JobId 9: Fatal error: 
     Storage daemon didn't accept Device "FileStorage" because:
     3924 Device "FileStorage" not in SD Device resources or no matching Media Type.
2019-07-19 08:55:18 bareos-sd JobId 9: Fatal error: Device reservation failed for JobId=9: Jmsg Job=backup-bareos-fd.2019-07-19_08.55.16_28 type=5 level=1563519318 bareos-sd JobId 9: Warning: 
     Device "FileStorage" requested by DIR could not be opened or does not exist.

2019-07-19 08:55:18 bareos-sd JobId 9: Warning: 
     Device "FileStorage" requested by DIR could not be opened or does not exist.
2019-07-19 08:55:18 bareos-sd JobId 9: Error: dev.c:156 Unable to stat device /media/Administrator/Bareos/Backup: ERR=Keine Berechtigung
2019-07-19 08:55:18 bareos-sd JobId 9: Warning: 
     Device "FileStorage" requested by DIR could not be opened or does not exist.
2019-07-19 08:55:18 bareos-sd JobId 9: Error: dev.c:156 Unable to stat device /media/Administrator/Bareos/Backup: ERR=Keine Berechtigung
2019-07-19 08:55:18 bareos-sd JobId 9: Warning: 
     Device "FileStorage" requested by DIR could not be opened or does not exist.
2019-07-19 08:55:18 bareos-sd JobId 9: Error: dev.c:156 Unable to stat device /media/Administrator/Bareos/Backup: ERR=Keine Berechtigung
2019-07-19 08:55:18 bareos-dir JobId 9: Start Backup JobId 9, Job=backup-bareos-fd.2019-07-19_08.55.16_28

i don’t understand, why Bareos is talking about “keine Berechtigung” (permission denied). Owner of the directory Backup is Administrator an Group is Domänen-Admins.
What’s wrong?

best regards
Andre


#2

i figured out, that every directory in the path has to be set to 777 permission.

Under what user runs Bareos? I can’t find any user called bareos or bacula nor do i see any new user in the user section of univention.


#3

Hi,

with the following command you will find out under which user bareos is running:

ps aux | grep -i bareos-sd

On my system bareos-sd runs with the user bareos:

root@ucs-bareos:~# ps aux | grep -i bareos-sd
bareos    1257  1.9  0.0 421272  5116 ?        Ssl  Jul12 302:40 /usr/sbin/bareos-sd

My Backup-Directory has the following permissions:

datsich

hth,
Oliver


#4

ok, there is an user called bareos on my system, too :slight_smile:
Anyway… Bareos is performing a backup since yesterday 9p.m. it’s not finished until now! Still zero bytes written.
I don’t be up to Bareos anymore. The whole software is total trash and i don’t fancy hanging around with config files, error guessing and wasting my time on this.

So i created simple rsync backups with a monthly rotate. Works fine and cost only a bit of time.

Thanks to all replys,
Best regards
Andre