Bacula-users

Re: [Bacula-users] Fwd: Director won't start

2009-12-01 17:56:36
Subject: Re: [Bacula-users] Fwd: Director won't start
From: "Lucas B. Cohen" <mli6 AT free DOT fr>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 01 Dec 2009 23:53:50 +0100
Hi Larry,

John Drescher wrote:
> ---------- Forwarded message ----------
> Date: Mon, Nov 30, 2009 at 4:47 PM
> Subject: RE: [Bacula-users] Director won't start
> 
> John,
> 
> Thanks for the tip. I'm having trouble understanding the config files. What
> "state file" cannot it not open?
>>From a quick glance at the code, it seems the state file is a file
specific to each daemon, which records the address:port couple in use,
and which is created in what the daemon perceives at his working directory.

Hence, calling invoking bacula-dir from a different directory that
/usr/local/sbin might give different results.

in bsys.c:
        void write_state_file(char *dir, const char *progname, int port)

in dird.c :
        write_state_file(director->working_directory, "bacula-dir",     
get_first_port_host_order(director->DIRaddrs));
        delete_pid_file(director->pid_directory, "bacula-dir",
get_first_port_host_order(director->DIRaddrs));


> 
> freenas:/usr/local/sbin# bacula-dir -f -d 100
> bacula-dir: dird.c:184-0 Debug level = 100
> bacula-dir: bsys.c:503-0 Could not open state file. sfd=-1 size=188: ERR=No
> such file or directory
> freenas-dir: bnet_server.c:96-0 Addresses host[ipv4:0.0.0.0:9101]
> freenas-dir: job.c:1276-0 wstorage=File
> freenas-dir: job.c:1285-0 wstore=File where=Job resource
> freenas-dir: job.c:937-0 JobId=0 created
> Job=*JobMonitor*.2009-11-30_13.43.35_01
> 
> Lars
> -----Original Message-----
> From: John Drescher [mailto:drescherjm AT gmail DOT com]
> Sent: Monday, November 30, 2009 1:01 PM
> To: Larry Marshall; bacula-users
> Subject: Re: [Bacula-users] Director won't start
> 
> On Mon, Nov 30, 2009 at 3:34 PM, Larry Marshall <lcm AT marshap DOT com> 
> wrote:
>> Running Bacular 3.0.3 on FreeNAS on FreeBSD 7.2-RELEASE-p4
>>
>> When I try to start the Director, it will not remain in memory. Is there
> any
>> way to determine what the problem is?
>>
> 
> Run the director directly from the shell. Add a -D 100 for debug output.
> 
> John
> 
> ----------------------------------------------------------------------------
> --
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 
> 
> 


-- 
Lucas B. Cohen

"The question of whether a computer can think is no more interesting
than the question of whether a submarine can swim." - Edgar W. Dijkstra

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Bacula-users] Fwd: Director won't start, Lucas B. Cohen <=