Hi,

27.02.2008 07:51, Glen Vickers wrote:
> 
> 
> Now that I got the console fixed it seems I’ve tweaked something beyond 
> my knowledge.  The bacula director wont start.
...
> No bacula director.  I tried
> 
> ./bacula-dir -t -c bacula-dir.conf
> 
> To see if there was an issue with the bacula-dir.conf no failure.

Hmm... this assumes that bacula-dir and the configuration file are in 
the same, directory, namely the one you're currently working in. Is 
this really the case?

I usually use absolute paths just to make sure I really check the 
installation I want to, like '/root/bacula/sbin/bacula-dir -t -c 
/root/bacula/etc/bacula-dir.conf'.

> I did strace on ./bacula start and didn’t see any weird anomaly.

Well, with a process that forks and backgrounds and all this I expect 
this is normal. I'm not sure though :-)

> It 
> seems it starts then immediately stops.  As far as I can tell everything 
> is configured correctly.

Have you checked the log file?

In many cases, these sypmtoms arise when you once started a program as 
root user, the programm created the necessary pid files, log files, 
and whatever (status file in Baculas case) and then re-try as a 
restricted user - the required files can't be read or written to, so 
the process dies. It can't log to its own log file, because it doesn't 
have permission to write to it.

In Baculas case, the solution is to try the commands from the shell, 
running the process in foreground and with debug output enabled: 
/.../bacula-dir -d 50 -f -c /.../bacula-dir -u bacula -g bacula
note the user and group selection!

That should print some messages describing which files can't be 
accessed. Afterwards, chown'ing them and retrying should get you forward.

> The device test worked fine so I don’t think its that.  Where should I 
> start looking to find some sort of error message I can troubleshoot?

The system log, perhaps... or the DIR's log file, which is wherever 
you configured it.

Arno

>  
> 
> Thx again!
> 
> Glen
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to