View Issue Details

IDProjectCategoryView StatusLast Update
0000480bareos-corefile daemonpublic2017-09-21 16:11
Reportermpiejh Assigned Tojoergs  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformMacOSMacOS XOS Version10
Product Version14.2.2 
Fixed in Version17.2.3 
Summary0000480: file daemon does not start due to missing /var/run/bareos/working
DescriptionStarting the file daemon on system startup doesn't work. The directory /var/run/bareos/working isn't existing and blocks the file daemon.

/var/run is mounted as temporary file system on MacOS and therefore emptied on system shutdown or reboot.

The file daemon should create the needed directories in /var/run on start.
Steps To Reproducerestart the computer
Additional Informationerror message:

11-Jun 09:02 osx-fd: ERROR TERMINATION at util.c:903
Working Directory: "/var/run/bareos/working" not found. Cannot continue.
TagsNo tags attached.

Relationships

has duplicate 0000665 closed bareos-fd service doesn'd start after restart 

Activities

joergs

joergs

2015-06-11 11:12

developer   ~0001767

Sebastian, can you take a look at this?
anti

anti

2016-07-19 15:15

reporter   ~0002325

Same problem on Ubuntu 16.04 xenial, but
this can be worked-around by adding the following snippet in /etc/init.d/bareos-fd and /etc/init.d/bareos-sd, (e.g. under the line ". /lib/lsb/init-functions")

# XXXX HACK XXXXX
if [ ! -d /var/run/bareos/ ]; then
        mkdir -p /var/run/bareos
        chown -R bareos:bareos /var/run/bareos
fi
tigerfoot

tigerfoot

2016-09-04 18:10

developer   ~0002346

anti I guess a prefered way would be to use tmpfiles.d mechanism
joergs

joergs

2017-09-21 12:24

developer   ~0002743

Fix committed to bareos bareos-17.2 branch with changesetid 7245.

Related Changesets

bareos: bareos-17.2 9eea8c56

2017-09-02 17:33

joergs

Ported: N/A

Details Diff
MacOS X: make bareos-client package working again

* cleanup the build process
* building is now done via a mac specific configure script:

platforms/osx/configure.sh
make -C platforms/osx/ pkg

* adapted pre- and postinstall scripts to current (>= MacOS 10.4) format
* reuse "bareos-config deploy_config" to deploy configuration files
* package configuration files are now stored at
/usr/local/lib/bareos/defaultconfigs/
and deployed to
/usr/local/etc/bareos/
if they do not already exists.
This prevents that they get overwritten on package updates.

Fixes 0000480: file daemon does not start due to missing /var/run/bareos/working
Affected Issues
0000480
mod - autoconf/Make.common.in Diff File
mod - autoconf/configure.in Diff File
rm - platforms/darwin/Makefile.in Diff File
mod - platforms/osx/Makefile.in Diff File
mod - platforms/osx/README Diff File
add - platforms/osx/configure.sh Diff File
mod - platforms/osx/files/org.bareos.bareos-fd.plist.in Diff File
mod - platforms/osx/resources/ReadMe.html.in Diff File
rm - platforms/osx/resources/postflight.in Diff File
add - platforms/osx/resources/postinstall.in Diff File
add - platforms/osx/resources/preinstall.in Diff File
rm - platforms/osx/resources/preupgrade.in Diff File
mod - scripts/bareos-config-lib.sh.in Diff File
mod - src/console/Makefile.in Diff File
mod - src/dird/Makefile.in Diff File
mod - src/filed/Makefile.in Diff File
mod - src/stored/Makefile.in Diff File

Issue History

Date Modified Username Field Change
2015-06-11 09:56 mpiejh New Issue
2015-06-11 11:12 joergs Assigned To => slederer
2015-06-11 11:12 joergs Status new => assigned
2015-06-11 11:12 joergs Note Added: 0001767
2016-07-19 15:15 anti Note Added: 0002325
2016-09-04 18:10 tigerfoot Note Added: 0002346
2017-09-02 13:53 joergs Relationship added has duplicate 0000665
2017-09-02 15:00 joergs Assigned To slederer => joergs
2017-09-21 12:24 joergs Changeset attached => bareos bareos-17.2 9eea8c56
2017-09-21 12:24 joergs Note Added: 0002743
2017-09-21 12:24 joergs Status assigned => resolved
2017-09-21 12:24 joergs Resolution open => fixed
2017-09-21 16:11 joergs Status resolved => closed
2017-09-21 16:11 joergs Fixed in Version => 17.2.3