failed to write config resource file

194 views
Skip to first unread message

Daniel

unread,
Nov 22, 2016, 9:27:37 AM11/22/16
to bareos-users
Hi,
I have a fresh install of bareos 16.2.4 on my Ubuntu Server 16.04. Backups can be done and the web-ui works, too.
But if I want to add a client through bconsole and
"configure add client name=arbeitsplatz-daniel−fd address=192.168.1.118 password=mypw" (without ") I'll only get the error: "failed to write config resource file".

I have no idea why. I just followed the steps under http://doc.bareos.org/master/html/bareos-manual-main-reference.html#QQ2-1-41

Bruno Friedmann

unread,
Nov 22, 2016, 10:11:39 AM11/22/16
to bareos...@googlegroups.com
Be sure you have /etc/bareos with owner bareos:bareos and also sub dir like
the new bareos-dir.d/*

Or the daemon user under which bareos-dir daemon is running.

--

Bruno Friedmann
Ioda-Net Sàrl www.ioda-net.ch
Bareos Partner, openSUSE Member, fsfe fellowship
GPG KEY : D5C9B751C4653227
irc: tigerfoot

openSUSE Tumbleweed
Linux 4.8.8-1-default x86_64 GNU/Linux, nvidia: 367.57
Qt: 5.7.0, KDE Frameworks: 5.28.0, Plasma: 5.8.3, kmail2 5.3.3 (QtWebEngine)

Daniel

unread,
Nov 22, 2016, 10:18:38 AM11/22/16
to bareos-users
I didn't change a user, so bareos should be right. I have the following output:
root@backuptest:/etc/bareos# ls -la
insgesamt 48
drwxr-xr-x 7 root root 4096 Nov 22 12:31 .
drwxr-xr-x 110 root root 12288 Nov 22 12:37 ..
drwxr-x--- 15 bareos bareos 4096 Nov 22 13:25 bareos-dir.d
drwxr-x--- 3 bareos bareos 4096 Nov 22 12:31 bareos-dir-export
drwxr-x--- 5 bareos bareos 4096 Nov 22 11:03 bareos-fd.d
drwxr-x--- 8 bareos bareos 4096 Nov 22 12:31 bareos-sd.d
-rw-r----- 1 root bareos 236 Nov 22 11:03 bconsole.conf
-rw-r--r-- 1 root root 230 Nov 22 12:31 bconsole.conf.dist
-r-------- 1 root root 522 Nov 22 11:03 .rndpwd
drwxr-xr-x 6 root bareos 4096 Nov 22 11:03 tray-monitor.d

and
root@backuptest:/etc# ls -la
drwxr-xr-x 7 root root 4096 Nov 22 12:31 bareos
drwxr-xr-x 2 root root 4096 Nov 22 12:37 bareos-webui

looks for me (linux beginner) like bareos is the owner of the folders.

Jörg Steffens

unread,
Nov 22, 2016, 10:31:53 AM11/22/16
to bareos...@googlegroups.com
Please provide the output of

ls -la /etc/bareos/bareos-dir.d/client/
--
Jörg Steffens joerg.s...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 630693-91
http://www.bareos.com Fax: +49 221 630693-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer:
S. Dühr, M. Außendorf, Jörg Steffens, P. Storz

Daniel

unread,
Nov 23, 2016, 2:15:09 AM11/23/16
to bareos-users
Am Dienstag, 22. November 2016 16:31:53 UTC+1 schrieb Jörg Steffens:
> Please provide the output of
>
> ls -la /etc/bareos/bareos-dir.d/client/
>
> On 22.11.2016 at 16:18 wrote Daniel:

It is:
root@backuptest:/etc# ls -la /etc/bareos/bareos-dir.d/client/
insgesamt 12
drwxr-xr-x 2 root root 4096 Nov 22 13:25 .
drwxr-x--- 15 bareos bareos 4096 Nov 22 13:25 ..
-rw-r--r-- 1 root root 205 Nov 22 11:17 bareos-fd.conf


Daniel

unread,
Nov 23, 2016, 2:56:14 AM11/23/16
to bareos-users
I got it! After complete removing bareos (incl. autoremove) and a new installation of bareos, it works!
Thanks for your help!
Reply all
Reply to author
Forward
0 new messages