-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Please everyone involved make sure to go back and read Robert Nelson's
message from October 6th to the list. He explains some of this stuff to
me and why this may/may not work. Apparently he does not have the time
to read the list regularly (I can certainly relate), so consider Cc:'ing
him on Windows-related matters, as I believe he was the gentleman
responsible for porting the -sd and -dir to Windows.

Peter Miller wrote:
> I have made some progress in getting the Windows bacula-dir to run and
> have made some observations:
> 
> 1. If you run "bacula-dir /about" you get a message box that says "Bad
> Command Line Options - /about".
> 
> This is followed by another message box listing the allowed command line
> options and /about is in this list.
> 
> 2. Director was terminating on me as soon as I tried to run it. I
> tracked the problem down to an error in the config file which I have now
> fixed.
> 
> After reading the documentation my understanding is that you can test
> config files by putting "-t" on the command line. The problem is that if
> the config file has an error director terminates before outputting any
> kind of information telling you that there is an error in the config
> file. This is true even if you have turned on debugging with the "-d"
> parameter. The net result is that the "-t" option is useless.
> 
> 3. I have found the reason for the brief command boxes flashing on the
> screen when director starts. Here is some output from bacula.trace:
> 
> bacula-dir: ../../dird/dird.c:139 Debug level = 400
> bacula-dir: ../../lib/lex.c:161 Open config file: c:\Documents and
> Settings\All Users\Application Data\Bacula\bacula-dir.conf
> bacula-dir: ../../lib/util.c:412 Send: /bin/sh -c "echo C:\Program
> Files\Bacula\bin\query.sql"
> bacula-dir: ../compat/compat.cpp:1777 Calling
> CreateProcess(C:\WINDOWS\system32\cmd.exe, C:\WINDOWS\system32\cmd.exe
> /c /bin/sh -c "echo C:\Program
> Files\Bacula\bin\query.sql", ...)
> bacula-dir: ../../lib/util.c:418 stat=268435457 got: The system cannot
> find the path specified.
> bacula-dir: ../../lib/util.c:412 Send: /bin/sh -c "echo C:\Documents and
> Settings\All Users\Application Data\Bacula\Work"
> bacula-dir: ../compat/compat.cpp:1777 Calling
> CreateProcess(C:\WINDOWS\system32\cmd.exe, C:\WINDOWS\system32\cmd.exe
> /c /bin/sh -c "echo C:\Documents and
> Settings\All Users\Application Data\Bacula\Work", ...)
> bacula-dir: ../../lib/util.c:418 stat=268435457 got: The system cannot
> find the path specified.
> bacula-dir: ../../lib/util.c:412 Send: /bin/sh -c "echo C:\Documents and
> Settings\All Users\Application Data\Bacula\Work"
> bacula-dir: ../compat/compat.cpp:1777 Calling
> CreateProcess(C:\WINDOWS\system32\cmd.exe, C:\WINDOWS\system32\cmd.exe
> /c /bin/sh -c "echo C:\Documents and
> Settings\All Users\Application Data\Bacula\Work", ...)
> bacula-dir: ../../lib/util.c:418 stat=268435457 got: The system cannot
> find the path specified.
> bacula-dir: ../../lib/util.c:412 Send: /bin/sh -c "echo C:\Documents and
> Settings\All Users\Application Data\Bacula\Work\Client1.bsr"
> bacula-dir: ../compat/compat.cpp:1777 Calling
> CreateProcess(C:\WINDOWS\system32\cmd.exe, C:\WINDOWS\system32\cmd.exe
> /c /bin/sh -c "echo C:\Documents and
> Settings\All Users\Application Data\Bacula\Work\Client1.bsr", ...)
> bacula-dir: ../../lib/util.c:418 stat=268435457 got: The system cannot
> find the path specified.
> bacula-dir: ../../lib/util.c:412 Send: /bin/sh -c "echo
> C:\Documents and Settings\All Users\Application
> Data\Bacula\Work\BackupCatalog.bsr"
> bacula-dir: ../compat/compat.cpp:1777 Calling
> CreateProcess(C:\WINDOWS\system32\cmd.exe, C:\WINDOWS\system32\cmd.exe
> /c /bin/sh -c "echo C:\Documents and
> Settings\All Users\Application Data\Bacula\Work\BackupCatalog.bsr", ...)
> bacula-dir: ../../lib/util.c:418 stat=268435457 got: The system cannot
> find the path specified.
> bacula-dir: ../../lib/lex.c:161 Open config file:
> c:\Documents and Settings\All Users\Application Data\Bacula\bacula-dir.conf
> 
> This would seem to be a remnant from when Bacula was compiled for Cygwin
> as /bin/sh is no longer present.
> 
> Regards
> 
> Peter Miller
> 
> NoSpam wrote:
>> Hi All,
>>
>> I have decided to experiment with Bacula Director on my Windows XP box 
>> but have run into a problem.
>>
>> Bacula-fd and bacula-sd run fine but bacula-dir crashes immediately 
>> whether run as a service or from the command line.
>>
>> Logged in as an administrator I have tried the following command to 
>> capture the output with no luck.
>>
>> C:\Program Files\Bacula\bin>bacula-dir -d100 -c "c:\Documents and 
>> Settings\All Users\Application Data\Bacula\bacula-dir.conf" > out.txt
>>
>> The file out.txt is zero bytes and bacula.trace only contains one line 
>> of text:
>>
>>   bacula-dir: ../../dird/dird.c:139 Debug level = 100
>>
>> Some cmd.exe box flashes briefly on the screen about four times but it 
>> is so fast I can't see any info in it.
>>
>> When run as a service the only info in the event viewer is a "The Bacula 
>> Director service terminated unexpectedly"
>>  with no usefull info.
>>
>> Is there any way I can improve the logging so I can see why director is 
>> failing?
>>
>> Regards
>>
>> Peter Miller
>>
>>   
> 
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

- --
 ---- _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer III
 |$&| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFK80pmb+gadEcsb4RAnzIAKCKX72hWNuekCbmNxAIST8hGCIrIwCg1h25
xpjTAujmDliqDm+oMIvC8is=
=HpxH
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to