On 09/22/2017 10:16 AM, Douglas K. Rand wrote:
On 09/22/17 08:57, Rick Sutphin wrote:
I recently installed bareos from the bareos repos on Ubuntu 16.04
(lxc container).
The bareos-dir daemon will start from the command line, but will not
start via the startup scripts i.e.:
# bareos-dir
successfully starts the daemon (ps aux | grep bareos).
but the following will not and silently fail (except the
/etc/init.d/bareos-dir script which displays "[ ok ] Starting
bareos-dir (via systemctl): bareos-dir.service."
:
# /etc/init.d/bareos-dir start
# service bareos-dir start
# systemctl start bareos-dir.service
The bareos-sd and bareos-fd do start normally at startup.
Any help would be greatly appreciated.
From the bareos-dir man page:
-d nn Set debug level to nn.
-dt Print timestamp in debug output.
-f Run in foreground (for debugging).
You'll want to run the director not as root but as (probably) the user
bareos. (I'm not using Ubuntu, so I'm not sure what user the director
runs as.) So su to the user bareos and then run the director in the
foreground with debugging turned on. That will probably tell you the
problem.
My first guess would be a problem with the configuration file.
Also, have you checked the Bareos log file? Mine is in
/var/log/bareos/bareos.log.
Thanks for the recommendations.
I think the problem was that I installed bareos from the Ubuntu repo
first, then removed it and installed bareos from the bareos repo.
Going with the devops philosophy of cattle and not pets, I shot the
image in the head and created a new image in which I installed bareos
only from the bareos repos. This fixed the problem.
--
Rick Sutphin
Project Manager
Delta Technologies, Inc.
P.O. Box 2301
Tallahassee, FL 32301
850.575.3977 office
850.575.3908 fax
850.251.2345 cell
Licenses
ES-0000212 FL
EF-20000414 FL
LVU-405002 GA
1633 AL
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.