On Thursday 11 January 2007 12:12, Silver Salonen wrote: > On Thursday 11 January 2007 12:08, Silver Salonen wrote: > > On Friday 03 November 2006 00:48, Scott Ruckh wrote: > > > >> -----Original Message----- > > > >> From: [EMAIL PROTECTED] > > > >> [mailto:[EMAIL PROTECTED] On Behalf Of Scott > > > >> Ruckh > > > >> Sent: Thursday, November 02, 2006 9:31 AM > > > >> To: bacula-users@lists.sourceforge.net > > > >> Subject: [Bacula-users] ClientRunBeforeJob (XP Client) Crashes -- Me > Too > > > >> > > > >> I saw this error already posted, but never saw a resolution. > > > >> > > > >> Director version: 1.39.27 (24 October 2006) (From CVS) > > > >> Director OS: CentOS 4.3 > > > >> Storage Daemon: Built from same CVS > > > >> XP client: winbacula-1.39.26.exe > > > >> > > > >> Error received: > > > >> 02-Nov 10:11 CLIENT-fd: ClientRunBeforeJob: run command > > > >> "C:/Bacula/bin/backup_systemstate.bat" > > > >> * > > > >> 02-Nov 10:11 BACULA-dir: CLIENT_FULL.2006-11-02_10.11.02 Fatal error: > > > >> Socket error on ClientRunBeforeJob command: ERR=Connection reset by > peer > > > >> 02-Nov 10:11 BACULA-dir: CLIENT_FULL.2006-11-02_10.11.02 Error: Bacula > > > >> 1.39.27 (24Oct06): 02-Nov-2006 10:11:54 > > > >> > > > >> > > > >> This is in the job definition > > > >> ClientRunBeforeJob = "C:/Bacula/bin/backup_systemstate.bat" > > > >> > > > >> The contents of C:/Bacula/bin/backup_systemstate.bat: > > > >> ntbackup backup systemstate /F C:\SystemState\systemstate.bkf > > > >> > > > >> When the batch file is executed (outside of bacula) it works fine. The > > > >> Windows SYSTEM account has permissions to the directories in question. > > > >> > > > >> All of this worked fine before migrating to newer version of bacula. > > > >> Previous bacula version was 1.38.9. > > > >> > > > >> Backup job completes fine if ClientRunBeforeJob directive is commented > > > >> out. > > > >> > > > >> The XP bacula-fd.exe completely crashes and is closed after error > > > >> (service > > > >> is no longer running). > > > >> > > > >> Anyone know the cause of this error? > > > >> > > > >> Thanks. > > > >> Scott > > > > > > > > Yesterday. 01-Nov-2006 > > > > > > > > Thanks. > > > > > > I just rebuilt from CVS again. I got passed the crash, .BAT file did > > > complete, and backup is running. > > > > > > Now I will test for a few days and see if I have eliminated some of my > > > problems or have more to contend with. > > > > > > Thanks. > > > Scott > > > > I have the same problem with 2.0.0 on Windows 2003 server :( > > The directive is: Client Run Before Job = "C:/Program > > Files/Bacula/systemstate.bat" > > > > Anything I can do about it? I'd really like to backup systemstate also.. > > > > Silver > > BTW, my bacula-dir is also 2.0.0 and it runs on FreeBSD-5.3. > > Silver
Oh, darn. More problems with win32 ClientRunBeforeJob. After the directive was being commented out from the job as it didn't succeed, I now put it back, after upgrading both server and client to 2.0.1. Now the directive seems to not support spaces in its path: 17-Jan 23:06 w2k3-fd: ClientRunBeforeJob: run command "C:/Program Files/Bacula/systemstate.bat" 17-Jan 23:06 w2k3-fd: ClientRunBeforeJob: 'C:/Program' is not recognized as an internal or external command, I tried escaping space with backslash, but it gave me the same result. However, when I put the script into C:\bacula\, it ran successfully, so now at last I can backup the system state also. I think it would be right to put scripts into Bacula's own directory, not to create a separate one. Silver ------------------------------------------------------------------------- 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