Bug 651285 - Installation of bacula-client does not create /var/bacula
Summary: Installation of bacula-client does not create /var/bacula
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bacula
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Andreas Thienemann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-09 07:01 UTC by Wolfgang Denk
Modified: 2010-11-09 16:09 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-11-09 16:09:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Wolfgang Denk 2010-11-09 07:01:36 UTC
Description of problem:

Installing "bacula-client" on a freshly installed Fedora 14 system does not create the /var/bacula directory which is then needed to start the client daemon.

Version-Release number of selected component (if applicable):

5.0.2-8.fc14

How reproducible:

Always.

Steps to Reproduce:
1. On a fresh Fedora 14 system, run "sudo yum -y install bacula-client"
2. This will pull in the following packages:
Installing:
 bacula-client                               i686          5.0.2-8.fc14           fedora        173 k
Installing for dependencies:
 bacula-common                               i686          5.0.2-8.fc14           fedora        360 k
 fedora-usermgmt                             noarch        0.11-1405.fc14         fedora        8.7 k
 fedora-usermgmt-core                        noarch        0.11-1405.fc14         fedora        9.9 k
 fedora-usermgmt-default-fedora-setup        noarch        0.11-1405.fc14         fedora        8.6 k
 fedora-usermgmt-shadow-utils                noarch        0.11-1405.fc14         fedora        9.5 k

3. Enable the bacula-fd service and attempt to start it:
# chkconfig --level 2345 bacula-fd on
# service bacula-fd start
Starting bacula-fd: 09-Nov 07:54 metis-fd: ERROR TERMINATION at util.c:859
Working Directory: "/var/bacula" not found. Cannot continue.
                                                           [FAILED]
  
Actual results:

Service fails to start due to missing /var/bacula directory.

Expected results:

Service should start.

Additional info:

Workaround: manually create directory:
# mkdir /var/bacula
# chown bacula.bacula /var/bacula
# service bacula-fd start
Starting bacula-fd:                                        [  OK  ]

Comment 1 Paul Howarth 2010-11-09 14:03:09 UTC
What needs /var/bacula in your setup? The default bacula-fd.conf doesn't mention it and the bacula user home directory created by bacula-common is not /var/bacula. The client and director work fine for me without /var/bacula.

Comment 2 Wolfgang Denk 2010-11-09 15:01:40 UTC
I have no idea what it's needed for. The message gets printed when I attempt to start bacula-fd. Note that I do not have the director installed on this system, just -common and -client. See description above for details.

Comment 3 Paul Howarth 2010-11-09 15:24:40 UTC
What's in your bacula-fd.conf file? In particular, what do you have for the WorkingDirectory setting for the FileDaemon?

The default config is:

FileDaemon {                          # this is me
  Name = bacula-fd
  FDport = 9102                  # where we listen for the director
  WorkingDirectory = /var/spool/bacula
  Pid Directory = /var/run
  Maximum Concurrent Jobs = 20
}

Comment 4 Wolfgang Denk 2010-11-09 15:55:25 UTC
Ah, I see. I have "WorkingDirectory = /var/bacula" which probably
explains the issue. The file has been copied over a series of version
updates, where it worked fine (because that directory existed), but
this time I did a new install.

Sorry for the false alarm.


Note You need to log in before you can comment on or make changes to this bug.