View Issue Details

IDProjectCategoryView StatusLast Update
0001442bareos-corefile daemonpublic2022-03-24 09:57
Reportertuxmaster Assigned Tobruno-at-bareos  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionunable to reproduce 
Platformx86_64OSCentOSOS Version8 stream
Product Version21.1.2 
Summary0001442: The file daemon will crash on start, when no director is configured.
DescriptionMar 23 08:05:08 demo.demo.demo bareos-fd[85688]: No Director resource defined in /etc/bareos/bareos-fd.d/*/*.conf
Mar 23 08:05:08 demo.demo.demo bareos-fd[85688]: 23-Mar 08:05 bareos-fd: ERROR in filed/filed.cc:263 Please correct configuration file: /etc/bareos/bareos-.../*/*.conf
Mar 23 08:05:08 demo.demo.demo bareos-fd[85688]: BAREOS interrupted by signal 11: Segmentation violation
Mar 23 08:05:08 demo.demo.demo bareos-fd[85688]: BAREOS interrupted by signal 11: Segmentation violation
Steps To Reproduce1. Remove the default config
2. start the daemon
Additional InformationIt will be better, when the daemon only exit with error code 1 and not simply crash.
TagsNo tags attached.

Activities

bruno-at-bareos

bruno-at-bareos

2022-03-24 09:56

manager   ~0004552

Sorry can't be reproducible.

My tests results are exactly what you are requesting (return 1)

Full working configuration
bareos-fd -t -c /tmp/bareos
echo $?
0

Remove all files
find /tmp/bareos -type f -delete
bareos-fd -t -c /tmp/bareos
bareos-fd: ERROR TERMINATION at lib/parse_conf.cc:239
Config error: Cannot open config file "/tmp/bareos/bareos-fd.d/*/*.conf": No such file or directory

echo $?
1

Valid configuration without the director config file
bareos-fd -t -c /tmp/bareos
24-mar 09:53 qt-kt-fd: Fatal Error at filed/filed.cc:529 because:
No Director resource defined in /tmp/bareos/bareos-fd.d/*/*.conf
24-mar 09:53 qt-kt-fd: ERROR in filed/filed.cc:263 Please correct configuration file: /tmp/bareos/bareos-fd.d/*/*.conf
echo $?
1

You didn't give the details needed to be able to reproduce your error, will close an not reproducible.

Issue History

Date Modified Username Field Change
2022-03-23 08:10 tuxmaster New Issue
2022-03-24 09:56 bruno-at-bareos Note Added: 0004552
2022-03-24 09:56 bruno-at-bareos Assigned To => bruno-at-bareos
2022-03-24 09:56 bruno-at-bareos Status new => assigned
2022-03-24 09:57 bruno-at-bareos Status assigned => closed
2022-03-24 09:57 bruno-at-bareos Resolution open => unable to reproduce