View Issue Details

IDProjectCategoryView StatusLast Update
0001297bareos-coredirectorpublic2023-07-31 14:07
ReporterDragon Assigned Tobruno-at-bareos  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSGenToo 
Product Version19.2.9 
Summary0001297: Backup Catalog prints tons of "Cannot create directory" lines
DescriptionThis affects only Catalog backup jobs. All other backup jobs do not show this. Also while starting up the director log files show similar lines like these:

04-Jan 05:05 server-dir JobId 13: shell command: run BeforeJob "/usr/libexec/bareos/make_catalog_backup.pl MyCatalog"
04-Jan 05:05 server-dir JobId 13: BeforeJob: profiling:/var/tmp/portage/app-backup:Cannot create directory
04-Jan 05:05 server-dir JobId 13: BeforeJob: profiling:/var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/cats/CMakeFiles/bareoscats-postgresql.dir/cats_backends.cc.gcda:Skip
04-Jan 05:05 server-dir JobId 13: BeforeJob: profiling:/var/tmp/portage/app-backup:Cannot create directory
...

These lines repeat like 100 or more times before and after the job print out. The directory mentioned there is the build directory used by GenToo when Bareos is compiled for the system before installing it. Hence it is a temporary directory with "root" rights existing only while Bareos is emerged to the system.

The question is why Bareos tries to create directories in the former build directory?

I've qualified this problem as minor/low since these lines do not seem to break the normal operation of Bareos but it is a pain to have in your daily system notification mails hundred of lines to weed through until you find the job print out.
Steps To ReproduceBare installation with only names adjusted to not be localhost.
Tagsdirector

Activities

bruno-at-bareos

bruno-at-bareos

2023-07-31 14:07

manager   ~0005278

This is certainly due to the way the software has been build for your distribution.
Please check with the maintainer of Gentoo packages.

Issue History

Date Modified Username Field Change
2021-01-04 13:41 Dragon New Issue
2021-01-04 13:41 Dragon Tag Attached: director
2023-07-31 14:07 bruno-at-bareos Assigned To => bruno-at-bareos
2023-07-31 14:07 bruno-at-bareos Status new => closed
2023-07-31 14:07 bruno-at-bareos Resolution open => no change required
2023-07-31 14:07 bruno-at-bareos Note Added: 0005278