New installation Ubuntu18.04

27 views
Skip to first unread message

Russell Butler

unread,
May 13, 2021, 2:09:45 AM5/13/21
to bareos-users
Hello,
Sorry for a newbie problem, but I've been trying to sort this for about a week.
On making minor changes to the configuration (most notably pointing the storage to a separate partition) I can't get bareos-dir to start.

sudo -u bareos bareos-dir -t
bareos-dir: ERROR TERMINATION at lib/res.cc:641
Config error: Could not find config resource "LinuxConfig" referenced on line 6:   FileSet = "LinuxConfig"

            : line 6, col 26 of file /etc/bareos/bareos-dir.d/job/RestoreFiles.conf
  FileSet = "LinuxConfig"

My bareos-dir fileset  directory contains:
── fileset
│   │   ├── Catalog.conf
│   │   ├── LinuxAll.old_conf
│   │   ├── LinuxConfig
│   │   ├── SelfTest.conf
│   │   └── Windows All Drives.conf

less bareos-sd.d/device/FileStorage.conf
Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /media/Disk1/backup
  LabelMedia = yes;                   # lets Bareos label unlabeled media
  Random Access = yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Description = "File device. A connecting Director must have the same Name and MediaType."
}

I'm sure I'm overlooking some elementary error, but can someone please help me work out what it is?

Thanks for any help
Russell

aeron...@gmail.com

unread,
May 13, 2021, 7:43:59 AM5/13/21
to bareos...@googlegroups.com

The file LinuxConfig, please show the file.

Is the "Name = LinuxConfig" line in that file?

--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/17ac6b58-929d-46b6-9cbc-a0abad0e4027n%40googlegroups.com.

Andrew Feldmann

unread,
May 13, 2021, 8:55:35 AM5/13/21
to bareos...@googlegroups.com

Your "LinuxConfig" file needs a .conf extention.   rename it to LinuxConfig.conf


On 5/13/21 2:09 AM, Russell Butler wrote:

Russell Butler

unread,
May 13, 2021, 9:57:33 PM5/13/21
to bareos-users


Thank you, I thought I had tried the .conf extension earlier, but I think I included it on the file name as well, which no doubt confused the system.
Naturally I had to make a few corrections to the job configs but sudo -u bareos bareos-dir -t showed  me where they were  needed and a bit of searching of the documentation sorted me out.
I'm very grateful for your help.
Reply all
Reply to author
Forward
0 new messages