View Issue Details

IDProjectCategoryView StatusLast Update
0001506bareos-coredirectorpublic2023-01-11 15:19
ReporterHiFlyer Assigned Tobruno-at-bareos  
Status closedResolutionwon't fix 
PlatformDell XPS15-9500OSUbuntuOS Version22.04
Product Version22.0.0 
Summary0001506: Requirement that Job defintion must exist
Descriptionon Bareos upgrade, if the files job/BackupCatalog.conf, job/backup-bareos-fd.conf, jobdefs/DefaultJob.conf do not exist you automatically create these files. When bareos-dir is restarted, it fails because these files are not configured correctly. In an existing system where these are renamed to some other file names, bareos-dir fails to start. This means I must delete these files by hand each time an upgrade occurs. You should not be re-creating the default files on an upgrade that cause the bareos director to fail on startup. It is fine to create them on an initial setup.
Steps To ReproduceCreate a working bareos setup on a previous version of bareos 22 that successfully backups but do not have the files job/BackupCatalog.conf, job/backup-bareos-fd.conf, jobdefs/DefaultJob.conf defined in the configuration. Preform an upgrade. These files will be created and as a consequence cause the failure of bareos-dir to start. sudo -u bareos -t will show the failures.
TagsNo tags attached.




2023-01-03 15:29

manager   ~0004849

Hello, we would like to invite you to use a recommended method instead fighting with your package manager.

If the file was missing, it add it (to repair) the default installation.
The recommandation with the default files is to always keep them and just commented everything in it, or blank them

Your package manager will never overwrite then the content (or the absence of content).



2023-01-03 15:30

manager   ~0004850

not a bug.

Issue History

Date Modified Username Field Change
2023-01-03 14:33 HiFlyer New Issue
2023-01-03 15:29 bruno-at-bareos Note Added: 0004849
2023-01-03 15:30 bruno-at-bareos Assigned To => bruno-at-bareos
2023-01-03 15:30 bruno-at-bareos Status new => closed
2023-01-03 15:30 bruno-at-bareos Resolution open => won't fix
2023-01-03 15:30 bruno-at-bareos Note Added: 0004850