[Bacula-users] zlib problem when restoring files

2006-08-01 Thread Beda Kosata
Dear all,
I am using bacula to backup several of our machines and I have run into
a problem restoring one machine.
All files are restored, but for some of them I get something like this
in messages:

01-Aug 15:31 fretka-fd: MilaRestoreFiles.2006-08-01_15.31.09 Error:
Uncompression error on file
/home/restore/home/nicmila/.thunderbird/fpjdjhkm.default/Mail/LocalFolders/Sent.msf.
 

ERR=Zlib buffer error

and the resulting files have zero length.
This machine is a pretty new AMD64. When I have tried to restore to an
older pentium4 machine, everything went ok. Both of them are running
Gentoo Linux in similar configuration.
Therefor I suspect the problem is in the 64bit machine. However trying
to find any information on problems with zlib on AMD64 was not successful.
I have tried to recompile both zlib and bacula, even with optimization
turned off, but the errors remain.

I would be glad for any suggestions how to fix this problem.

Best regards

Beda



-
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


Re: [Bacula-users] These messages from Bacula are useless

2006-08-01 Thread Kern Sibbald
On Wednesday 02 August 2006 02:25, Jo Rhett wrote:
> This will be my third time posting this.  

I don't answer all message on this list but generally take note of them.


> Kern, is this fixed in a  newer version?  

I believe more information is printed in 1.39.x, but there are so many changes 
that I cannot remember the exact case that was enhanced.

> Can we get it fixed? 

If it isn't already fixed, then it will be some time unless someone sends a 
patch since it is not on the top of my priority list which is already too 
long. Generally one knows exactly which daemon you are dealing with from the 
context unless you are driving the console with a script.

> 
> On Jul 28, 2006, at 10:01 AM, Jo Rhett wrote:
> > I haven't the foggiest idea which File Daemons it was unable to
> > communicate with.  Can we please expand the error message to include
> > this information?
> >
> > Begin forwarded message:
> >> From: (Bacula) [EMAIL PROTECTED]
> >> Date: July 25, 2006 2:37:01 PM PDT
> >> To: [EMAIL PROTECTED]
> >> Subject: Bacula daemon message
> >>
> >> 25-Jul 14:21 backup0-dir: *Console*.2006-07-25_14.21.47 Fatal
> >> error: Unable to authenticate with File daemon. Possible causes:
> >> Passwords or names not the same or
> >> Maximum Concurrent Jobs exceeded on the FD or
> >> FD networking messed up (restart daemon).
> >> Please see http://www.bacula.org/rel-manual/
> >> faq.html#AuthorizationErrors for help.
> >> 25-Jul 14:22 backup0-dir: *Console*.2006-07-25_14.21.47 Fatal
> >> error: Unable to authenticate with File daemon. Possible causes:
> >> Passwords or names not the same or
> >> Maximum Concurrent Jobs exceeded on the FD or
> >> FD networking messed up (restart daemon).
> >> Please see http://www.bacula.org/rel-manual/
> >> faq.html#AuthorizationErrors for help.
> >
> > -- 
> > Jo Rhett
> > senior geek
> > Silicon Valley Colocation
> >
> >
> > -- 
> > ---
> > 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
> 
> -- 
> Jo Rhett
> senior geek
> Silicon Valley Colocation
> 
> 
> -
> 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
> 

-
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


Re: [Bacula-users] These messages from Bacula are useless

2006-08-01 Thread Jo Rhett
This will be my third time posting this.  Kern, is this fixed in a  
newer version?  Can we get it fixed?

On Jul 28, 2006, at 10:01 AM, Jo Rhett wrote:
> I haven't the foggiest idea which File Daemons it was unable to
> communicate with.  Can we please expand the error message to include
> this information?
>
> Begin forwarded message:
>> From: (Bacula) [EMAIL PROTECTED]
>> Date: July 25, 2006 2:37:01 PM PDT
>> To: [EMAIL PROTECTED]
>> Subject: Bacula daemon message
>>
>> 25-Jul 14:21 backup0-dir: *Console*.2006-07-25_14.21.47 Fatal
>> error: Unable to authenticate with File daemon. Possible causes:
>> Passwords or names not the same or
>> Maximum Concurrent Jobs exceeded on the FD or
>> FD networking messed up (restart daemon).
>> Please see http://www.bacula.org/rel-manual/
>> faq.html#AuthorizationErrors for help.
>> 25-Jul 14:22 backup0-dir: *Console*.2006-07-25_14.21.47 Fatal
>> error: Unable to authenticate with File daemon. Possible causes:
>> Passwords or names not the same or
>> Maximum Concurrent Jobs exceeded on the FD or
>> FD networking messed up (restart daemon).
>> Please see http://www.bacula.org/rel-manual/
>> faq.html#AuthorizationErrors for help.
>
> -- 
> Jo Rhett
> senior geek
> Silicon Valley Colocation
>
>
> -- 
> ---
> 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

-- 
Jo Rhett
senior geek
Silicon Valley Colocation


-
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


Re: [Bacula-users] SOLVED!! one system won't back up -- director crashes!

2006-08-01 Thread Jo Rhett
Kern -- I would think that this issue would concern you...?

How does the director use client-supplied data?
Could an insane client cause the director to crash?
Can this be prevented?

On Jul 28, 2006, at 4:45 PM, Jo Rhett wrote:
> So I'm quoting from WAY back in the thread because it has relevant
> information.
>
> We found the problem, and it had nothing to do with bacula.  (Which
> means that the Director code has a real flaw that can cause  
> segfaults.)
>
> The network card being used to back up the server was fried/frying/
> whatever.  It took a long time to figure this out - we weren't
> certain until we used a pci interrupt analyzer, and watched it go
> haywire during a backup.
>
> I don't know what about bacula backups caused this interrupt fload
> but rsync didn't do it.  But it was clearly the card going nuts.  A
> replacement card solved the problem.
>
> But anyway -- to bring this back to bacula -- so a client goes insane
> and starts sending nonsense to bacula (one assumes).  What would make
> the director crash with a segfault?
>
> Sadly, I've now lost my replication ability for this bug...
>
> On Jul 9, 2006, at 11:45 AM, Kern Sibbald wrote:
>> The "Broken pipe" is a network error and is quite common if you are
>> having
>> networking problems.
>>
>> I've never seen the Director silently die as you say.
>>
>> The seg fault, is not good.  However, I cannot do anything without
>> the proper
>> kind of information as indicated on the Support page as well as a
>> traceback
>> as described in the Kaboom chapter of the manual.  If you have that
>> information (traceback and your system info) and the problem is a
>> seg fault,
>> then please open a bug report in the bugs database.
>>
>> On Sunday 09 July 2006 18:07, Jo Rhett wrote:
>>> * Resending this directly to you, since I've now sent it to the
>>> list 4
>>> times.
>>>
>>> Okay, this is starting to drive me nuts.  I have one system - same
>>> OS, same
>>> installed binary package, everything - that is causing the
>>> director to
>>> crash.  I can't for the life of me figure out why.
>>>
>>> bacula logfile shows this:
>>>
>>> backup0-sd: Volume "clients-0001" previously written, moving to
>>> end of
>>> data.
>>> triceratops-fd:  Filesystem change prohibited. Will not
>>> descend into
>>> /dev
>>> triceratops-fd:  Filesystem change prohibited. Will not
>>> descend into /d
>>> triceratops-fd:  Filesystem change prohibited. Will not
>>> descend into
>>> /var
>>> 07-Jul 18:34 triceratops-fd: triceratops.2006-07-07_17.57.19 Fatal
>>> error:
>>> backup.c:500 Network send error to SD. ERR=Broken pipe
>>> 07-Jul 18:34 backup0-dir: triceratops.2006-07-07_17.57.19 Error:
>>> Bacula
>>> 1.38.5 (18Jan06): 07-Jul-2006 18:34:48
>>>   JobId:  9
>>>   Job:triceratops.2006-07-07_17.57.19
>>>   Backup Level:   Full
>>>   Client: "triceratops-fd"
>>> i386-portbld-freebsd6.0,freebsd,6.0-RELEASE FileSet:
>>> "generic-unix" 2006-07-05 14:49:53
>>>   Pool:   "clients_Pool"
>>>   Storage:"Disk_clients"
>>>   Scheduled time: 07-Jul-2006 17:57:13
>>>   Start time: 07-Jul-2006 17:57:21
>>>   End time:   07-Jul-2006 18:34:48
>>>   Priority:   10
>>>   FD Files Written:   127,760
>>>   SD Files Written:   0
>>>   FD Bytes Written:   673,071,788
>>>   SD Bytes Written:   0
>>>   Rate:   299.5 KB/s
>>>   Software Compression:   None
>>>   Volume name(s):
>>>   Volume Session Id:  9
>>>   Volume Session Time:1152197183
>>>   Last Volume Bytes:  1
>>>   Non-fatal FD errors:0
>>>   SD Errors:  0
>>>   FD termination status:  Error
>>>   SD termination status:  Running
>>>   Termination:*** Backup Error ***
>>>
>>> And shortly after logging this the director will silently die.
>>> I'm very
>>> confused.
>>>
>>> POSTNOTE:  I noticed this morning that the error included
>>>
>>> 08-Jul 22:07 backup0-dir: Fatal Error because: Bacula interrupted
>>> by signal
>>> 11: Segmentation violation
>>
>>
>> - 
>> -
>> ---
>> Using Tomcat but need to do more? Need to support web services,
>> security?
>> Get stuff done quickly with pre-integrated technology to make your
>> job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?
>> cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
> -- 
> Jo Rhett
> senior geek
> Silicon Valley Colocation
>
>
> -- 
> ---
> 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 

Re: [Bacula-users] Upgrade from 1.36.3 to 1.38.11

2006-08-01 Thread Kern Sibbald
On Tuesday 01 August 2006 22:35, Arunav Mandal wrote:
> I tried to use the old config and the director started without any 
> complains. 

Well, I deal with so many things in Bacula that I forget exactly when we 
switched from the old FileSet syntax to the new, and there was a period where 
both were permitted.  

If Bacula did not complain, I suspect you were already using the new syntax.

> So if the syntax was wrong bacula should have complained right?

Well, Bacula's error checking of the syntax is not always ideal, so I would 
strongly recommend that you check that your syntax conforms to what is in the 
manual otherwise you will surely run into some problems somewhere.

> 
> Arunav.
> 
> - Original Message - 
> From: "Kern Sibbald" <[EMAIL PROTECTED]>
> To: 
> Cc: "Arunav Mandal" <[EMAIL PROTECTED]>
> Sent: Tuesday, July 18, 2006 7:23 PM
> Subject: Re: [Bacula-users] Upgrade from 1.36.3 to 1.38.11
> 
> 
> > On Tuesday 18 July 2006 14:22, Arunav Mandal wrote:
> >> I am in the process of upgrade from 1.36.3 to the 1.38.11 in Linux. Can I
> >> use the same config file in the new new version or I have to rewrite
> >> everything. I have created a new database btw.
> >
> > You must upgrade it to the new syntax.  This is described in the 1.38.0
> > release notes.  There is also a script in the examples directory that will
> > automatically convert most Dir conf files.
> > 
> 
> 
> -
> 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
> 

-
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


Re: [Bacula-users] Upgrade from 1.36.3 to 1.38.11

2006-08-01 Thread Arunav Mandal
I tried to use the old config and the director started without any 
complains. So if the syntax was wrong bacula should have complained right?

Arunav.

- Original Message - 
From: "Kern Sibbald" <[EMAIL PROTECTED]>
To: 
Cc: "Arunav Mandal" <[EMAIL PROTECTED]>
Sent: Tuesday, July 18, 2006 7:23 PM
Subject: Re: [Bacula-users] Upgrade from 1.36.3 to 1.38.11


> On Tuesday 18 July 2006 14:22, Arunav Mandal wrote:
>> I am in the process of upgrade from 1.36.3 to the 1.38.11 in Linux. Can I
>> use the same config file in the new new version or I have to rewrite
>> everything. I have created a new database btw.
>
> You must upgrade it to the new syntax.  This is described in the 1.38.0
> release notes.  There is also a script in the examples directory that will
> automatically convert most Dir conf files.
> 


-
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


Re: [Bacula-users] Error configuring bacula

2006-08-01 Thread raymond allen
Thanks.  It was a dumb error on my part as I like to keep an 
autoconfigure file (bacula.config) that is executable and holds all the 
environment flags as well as the ./configure command with appropriate 
switches.  Apparently, if you don't put a space before the '\', the next 
line becomes part of the current line's parameter.  This caused 
--with-mysql to be ignored completely.

Ryan Novosielski wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> See if configure.log or any of the other configure files say when they
> get to the MySQL tests.
> 
>   _  _ _  _ ___  _  _  _
>  |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
> 
> 
> raymond allen wrote:
>> I'm attempting a custom installation of bacula and during the course of 
>> ./configure, I receive this error :
>>
>> "You have not specified either --enable-client-only or one of the 
>> supported databases: MySQL..."
>>
>> I have tried letting the auto detect figure it out :
>> --with-mysql
>> and with explicit settings to the mysql.h
>> --with-mysql=/usr/include/mysql
>>
>> as well as pointing to the root install of mysql
>> --with-mysql=/var/lib/mysql
>>
>> Could someone throw a clue for what I might be doing wrong here?
>>
>> -
>> 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
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.2.2 (MingW32)
> 
> iD8DBQFEz5uAmb+gadEcsb4RApfVAKC/ylBnOh/OYSdjioznAKjWKHExMwCbBCMj
> dzgdD8BPEsIjf30ZHGK7BL4=
> =9IHA
> -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


Re: [Bacula-users] Error configuring bacula

2006-08-01 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

See if configure.log or any of the other configure files say when they
get to the MySQL tests.

  _  _ _  _ ___  _  _  _
 |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


raymond allen wrote:
> I'm attempting a custom installation of bacula and during the course of 
> ./configure, I receive this error :
> 
> "You have not specified either --enable-client-only or one of the 
> supported databases: MySQL..."
> 
> I have tried letting the auto detect figure it out :
> --with-mysql
> and with explicit settings to the mysql.h
> --with-mysql=/usr/include/mysql
> 
> as well as pointing to the root install of mysql
> --with-mysql=/var/lib/mysql
> 
> Could someone throw a clue for what I might be doing wrong here?
> 
> -
> 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
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEz5uAmb+gadEcsb4RApfVAKC/ylBnOh/OYSdjioznAKjWKHExMwCbBCMj
dzgdD8BPEsIjf30ZHGK7BL4=
=9IHA
-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


[Bacula-users] Error configuring bacula

2006-08-01 Thread raymond allen
I'm attempting a custom installation of bacula and during the course of 
./configure, I receive this error :

"You have not specified either --enable-client-only or one of the 
supported databases: MySQL..."

I have tried letting the auto detect figure it out :
--with-mysql
and with explicit settings to the mysql.h
--with-mysql=/usr/include/mysql

as well as pointing to the root install of mysql
--with-mysql=/var/lib/mysql

Could someone throw a clue for what I might be doing wrong here?

-
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


[Bacula-users] Segfaults in FreeBSD

2006-08-01 Thread Skylar Thompson
I just installed Bacula 1.38 in FreeBSD, using a Postgres backend.
bacula-dir starts up fine, but when I start up bconsole to go to label a
tape I get a segfault. I've tried running at debug 1024. This is what I
get once it stabilizes after starting it up:

===

thangorodrim-dir: scheduler.c:289 Got job: Client1
thangorodrim-dir: scheduler.c:332 [EMAIL PROTECTED]: run_now=0 run_nh=0
thangorodrim-dir: scheduler.c:332 [EMAIL PROTECTED]: run_now=0 run_nh=0
thangorodrim-dir: scheduler.c:332 [EMAIL PROTECTED]: run_now=0 run_nh=0
thangorodrim-dir: scheduler.c:289 Got job: BackupCatalog
thangorodrim-dir: scheduler.c:332 [EMAIL PROTECTED]: run_now=0 run_nh=0
thangorodrim-dir: scheduler.c:355 Leave find_runs()

===

And this is what happens after I run label in bconsole:

===

thangorodrim-dir: bnet.c:1128 who=client host=192.168.1.2 port=36131
thangorodrim-dir: cram-md5.c:52 send: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
thangorodrim-dir: cram-md5.c:68 Authenticate OK bz/K///igX9lTGosAH+BRA
thangorodrim-dir: cram-md5.c:97 cram-get: auth cram-md5
<[EMAIL PROTECTED]> ssl=0
thangorodrim-dir: cram-md5.c:114 sending resp to challenge:
YR/PV4QhRiZxg7oXZlEHHD
thangorodrim-dir: scan.c:155 Next arg=label
thangorodrim-dir: scan.c:184 End arg=label next=
thangorodrim-dir: scan.c:155 Next arg=
thangorodrim-dir: scan.c:184 End arg= next=
thangorodrim-dir: ua_cmds.c:145 Command: label
thangorodrim-dir: ua_cmds.c:1615 Open database
thangorodrim-dir: postgresql.c:77 db_open first time
thangorodrim-dir: signal.c:78 sig=11 Segmentation violation
thangorodrim-dir: message.c:565 Enter dispatch_msg type=3
msg=thangorodrim-dir: Fatal Error because: Bacula interrupted by s
ignal 11: Segmentation violation
thangorodrim-dir: message.c:659 MAIL for following msg: thangorodrim-dir:
Fatal Error because: Bacula interrupted by signal
11: Segmentation violation
thangorodrim-dir: message.c:353
mailname=/var/db/bacula/thangorodrim-dir.thangorodrim-dir.135201304.mail
thangorodrim-dir: message.c:606 CONSOLE for following msg:
thangorodrim-dir: Fatal Error because: Bacula interrupted by sign
al 11: Segmentation violation
thangorodrim-dir: message.c:699 APPEND for following msg: thangorodrim-dir:
Fatal Error because: Bacula interrupted by signa
l 11: Segmentation violation
Kaboom! bacula-dir, thangorodrim-dir got signal 11. Attempting traceback.
Kaboom! exepath=/usr/local/etc
thangorodrim-dir: signal.c:131 Working=/var/db/bacula
thangorodrim-dir: signal.c:132 btpath=/usr/local/etc/btraceback
thangorodrim-dir: signal.c:133 exepath=/usr/local/etc/bacula-dir
thangorodrim-dir: signal.c:158 Doing waitpid
Calling: /usr/local/etc/btraceback /usr/local/etc/bacula-dir 58913
execv: /usr/local/etc/btraceback failed: ERR=No such file or directory
Traceback complete, attempting cleanup ...
thangorodrim-dir: signal.c:161 Done waitpid
thangorodrim-dir: jcr.c:154 write_last_jobs seek to 188
Pool   Maxsize  Maxused  Inuse
NoPool  2560  0
NAME1302  2
FNAME   2569  8
MSG 5125  5
EMSG   10242  2

thangorodrim-dir: message.c:527 Enter term_msg
thangorodrim-dir: message.c:396 Close_msg jcr=0x0
thangorodrim-dir: message.c:408 ===Begin close msg resource at 0x80ce118
thangorodrim-dir: message.c:421 Got MD_MAIL or MD_MAIL_ON_ERROR
thangorodrim-dir: util.c:535 edit_job_codes: /usr/local/sbin/bsmtp -h
localhost -f "(Bacula) %r" -s "Bacula daemon message"
%r
thangorodrim-dir: watchdog.c:178 Registered watchdog 0x80d7258, interval
120
thangorodrim-dir: btimers.c:60 Start child timer 0x80d7198, pid 74541 for
120 secs.
thangorodrim-dir: message.c:434 Opened mail pipe
thangorodrim-dir: bpipe.c:194 Wait for 74541 opt=1
thangorodrim-dir: bpipe.c:205 Got wpid=0 status=-1068268318 ERR=none

===

And this it goes into btraceback mode, but I don't see btraceback anywhere.
It seems like it's a database problem, but I can connect using psql just
fine.

-- 
-- Skylar Thompson ([EMAIL PROTECTED])
-- http://www.cs.earlham.edu/~skylar/


pgpWPdb31WWvB.pgp
Description: 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


Re: [Bacula-users] Bacula-web

2006-08-01 Thread R.I. Pienaar
edit the root variable in the bacula.conf in the configs dir to be
something like http://domain/

On 01/08/06, Duarte Santos <[EMAIL PROTECTED]> wrote:
> Ok, i got it. templates_c wasn't writable.
> Now the images dont appear on browser.
> like... http://images/s_ok.gif but i don't know why he is not putting
> http://domain/images/s_ok.gif.
> Theres a variable *root* on the report template... any tips?
>
> On Tue, 2006-08-01 at 16:40 +0100, R.I. Pienaar wrote:
> > check your webserver error log, most PHPs thesedays default to only
> > showing errors in the error_log and not to the browser
> >
> > On 01/08/06, Duarte Santos <[EMAIL PROTECTED]> wrote:
> > > Hello All!
> > >
> > > I isntaller bacula-web, i run the test.php and its all ok.
> > > But when i access the address only show a white page, no errors.
> > > DB is well configured, because i used to get an error complaining about
> > > the DB, but i fixed that.
> > > Any tips?
> > >
> > > Duarte Santos
> > > Netcall
> > >
> > >
> > > --
> > > This message has been scanned for viruses and
> > > dangerous content by MailScanner, and is
> > > believed to be clean.
> > > Mailscanner thanks transtec Computers for their support.
> > >
> > >
> > > -
> > > 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
> > >
> >
> >
> > --
> > R.I.Pienaar http://www.devco.net
> >
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> Mailscanner thanks transtec Computers for their support.
>
>


-- 
R.I.Pienaar http://www.devco.net

-
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


Re: [Bacula-users] Bacula-web

2006-08-01 Thread Duarte Santos
Ok, i got it. templates_c wasn't writable.
Now the images dont appear on browser.
like... http://images/s_ok.gif but i don't know why he is not putting
http://domain/images/s_ok.gif.
Theres a variable *root* on the report template... any tips?

On Tue, 2006-08-01 at 16:40 +0100, R.I. Pienaar wrote:
> check your webserver error log, most PHPs thesedays default to only
> showing errors in the error_log and not to the browser
> 
> On 01/08/06, Duarte Santos <[EMAIL PROTECTED]> wrote:
> > Hello All!
> >
> > I isntaller bacula-web, i run the test.php and its all ok.
> > But when i access the address only show a white page, no errors.
> > DB is well configured, because i used to get an error complaining about
> > the DB, but i fixed that.
> > Any tips?
> >
> > Duarte Santos
> > Netcall
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> > Mailscanner thanks transtec Computers for their support.
> >
> >
> > -
> > 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
> >
> 
> 
> -- 
> R.I.Pienaar http://www.devco.net
> 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.


-
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


Re: [Bacula-users] Bacula-web

2006-08-01 Thread R.I. Pienaar
check your webserver error log, most PHPs thesedays default to only
showing errors in the error_log and not to the browser

On 01/08/06, Duarte Santos <[EMAIL PROTECTED]> wrote:
> Hello All!
>
> I isntaller bacula-web, i run the test.php and its all ok.
> But when i access the address only show a white page, no errors.
> DB is well configured, because i used to get an error complaining about
> the DB, but i fixed that.
> Any tips?
>
> Duarte Santos
> Netcall
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> Mailscanner thanks transtec Computers for their support.
>
>
> -
> 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
>


-- 
R.I.Pienaar http://www.devco.net

-
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


[Bacula-users] Bacula-web

2006-08-01 Thread Duarte Santos
Hello All!

I isntaller bacula-web, i run the test.php and its all ok.
But when i access the address only show a white page, no errors.
DB is well configured, because i used to get an error complaining about
the DB, but i fixed that.
Any tips?

Duarte Santos
Netcall


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.


-
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


Re: [Bacula-users] Restores Issues

2006-08-01 Thread LDB
Kern Sibbald wrote:
> Hello,
> 
> On Tuesday 01 August 2006 14:27, LDB wrote:
> 
>>John Drescher wrote:
>>
>>>I have seen this recently. In my case the clientid that the database
>>>listed for the job did not exist in the database so no jobs were found
>>>for the client. To fix I manually added the correct clientid for all
>>>jobs that I knew were for that client.
>>>
>>>John
>>>
>>>On 8/1/06, LDB <[EMAIL PROTECTED]> wrote:
>>>
>>>
Alan Brown wrote:

>On Mon, 31 Jul 2006, LDB wrote:
>
>
>
>>>Assuming the server still exists in bacula-dir.conf, perhaps the file
>>>tree has expired and been prined off?
>>
>>Yes, it does exist in bacula-dir.conf. How do I then get the file tree
>>back?
>
>
>bscan - which is time-consuming.
>
>AB
>
>
>

-

>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
>

Thank you Alan ...

bscan -v -r -m -s -b /var/lib/bacula/working/imail.bsr 
/backups/bacula/backups



bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
FileIndex=254997 Stream=1
len=94
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
FileIndex=254997 Stream=4
len=3119
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=254997
Stream=10 len=20
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
FileIndex=254998 Stream=1
len=84
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
FileIndex=254999 Stream=1
len=86
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
FileIndex=255000 Stream=1
len=93
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
FileIndex=255001 Stream=1
len=108
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
FileIndex=255002 Stream=1
len=94
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
FileIndex=255003 Stream=1
len=84
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
FileIndex=255004 Stream=1
len=88
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
FileIndex=255005 Stream=1
len=85
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
FileIndex=255006 Stream=1
len=84
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
FileIndex=255007 Stream=1
len=90
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
FileIndex=255008 Stream=1
len=80
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=-5 
Stream=563
len=186
bscan: bscan.c:907 Fileset "FSG BASE PLUS IMAIL" already exists.
bscan: bscan.c:1028 Updated Job termination record for JobId=563 
TermStat=T
bscan: bscan.c:1121 Created JobMedia record JobId 563, MediaId 39
01-Aug 04:45 bscan: Got EOF at file 2  on device 
/backups/bacula/backups, Volume
"imail0004"
01-Aug 04:45 bscan: End of Volume at file 2 on device 
/backups/bacula/backups,
Volume "imail0004"
01-Aug 04:45 bscan: End of all volumes.
bscan: bscan.c:377 Record: SessId=0 SessTim=0 FileIndex=-6 Stream=0 len=0
bscan: bscan.c:849 Updated Media record at end of Volume: imail0004
bscan: bscan.c:600 End of all Volumes. VolFiles=2 VolBlocks=0 
VolBytes=6,014,842,881
Records added or updated in the catalog:
   1 Media
   1 Pool
   1 Job
  255008 File



The bscan went well - I think - but ...


*restore

First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.

To select the JobIds, you have the following choices:
  1: List last 20 Jobs run
  2: List Jobs where a given File is saved
  3: Enter list of comma separated JobIds to select
  4: Enter SQL list command
  5: Select the most recent backup for a client
  6: Select backup for a client before a specified time
  7: Enter a list of files to restore
  8: Enter a list of files to restore before a specified time
  9: Cancel
Select item:  (1-9): 5
Defined Clients:
  1: iauthservices-fd
  2: iutility-fd
  3: idbservices-fd
  4: iwebservices-fd
  5: imail-fd
  6: ilists-fd
  7: base1-fd
  8: base2-fd
   

Re: [Bacula-users] Restores Issues

2006-08-01 Thread Kern Sibbald
Hello,

On Tuesday 01 August 2006 14:27, LDB wrote:
> John Drescher wrote:
> > I have seen this recently. In my case the clientid that the database
> > listed for the job did not exist in the database so no jobs were found
> > for the client. To fix I manually added the correct clientid for all
> > jobs that I knew were for that client.
> > 
> > John
> > 
> > On 8/1/06, LDB <[EMAIL PROTECTED]> wrote:
> > 
> >> Alan Brown wrote:
> >> > On Mon, 31 Jul 2006, LDB wrote:
> >> >
> >> >
> >> >>>Assuming the server still exists in bacula-dir.conf, perhaps the file
> >> >>>tree has expired and been prined off?
> >> >>
> >> >>Yes, it does exist in bacula-dir.conf. How do I then get the file tree
> >> >>back?
> >> >
> >> >
> >> > bscan - which is time-consuming.
> >> >
> >> > AB
> >> >
> >> >
> >> > 
> >> -
> >> > 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
> >> >
> >>
> >> Thank you Alan ...
> >>
> >> bscan -v -r -m -s -b /var/lib/bacula/working/imail.bsr 
> >> /backups/bacula/backups
> >>
> >>
> >>
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
> >> FileIndex=254997 Stream=1
> >> len=94
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
> >> FileIndex=254997 Stream=4
> >> len=3119
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=254997
> >> Stream=10 len=20
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
> >> FileIndex=254998 Stream=1
> >> len=84
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
> >> FileIndex=254999 Stream=1
> >> len=86
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
> >> FileIndex=255000 Stream=1
> >> len=93
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
> >> FileIndex=255001 Stream=1
> >> len=108
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
> >> FileIndex=255002 Stream=1
> >> len=94
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
> >> FileIndex=255003 Stream=1
> >> len=84
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
> >> FileIndex=255004 Stream=1
> >> len=88
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
> >> FileIndex=255005 Stream=1
> >> len=85
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
> >> FileIndex=255006 Stream=1
> >> len=84
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
> >> FileIndex=255007 Stream=1
> >> len=90
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
> >> FileIndex=255008 Stream=1
> >> len=80
> >> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=-5 
> >> Stream=563
> >> len=186
> >> bscan: bscan.c:907 Fileset "FSG BASE PLUS IMAIL" already exists.
> >> bscan: bscan.c:1028 Updated Job termination record for JobId=563 
> >> TermStat=T
> >> bscan: bscan.c:1121 Created JobMedia record JobId 563, MediaId 39
> >> 01-Aug 04:45 bscan: Got EOF at file 2  on device 
> >> /backups/bacula/backups, Volume
> >> "imail0004"
> >> 01-Aug 04:45 bscan: End of Volume at file 2 on device 
> >> /backups/bacula/backups,
> >> Volume "imail0004"
> >> 01-Aug 04:45 bscan: End of all volumes.
> >> bscan: bscan.c:377 Record: SessId=0 SessTim=0 FileIndex=-6 Stream=0 len=0
> >> bscan: bscan.c:849 Updated Media record at end of Volume: imail0004
> >> bscan: bscan.c:600 End of all Volumes. VolFiles=2 VolBlocks=0 
> >> VolBytes=6,014,842,881
> >> Records added or updated in the catalog:
> >>1 Media
> >>1 Pool
> >>1 Job
> >>   255008 File
> >>
> >>
> >>
> >> The bscan went well - I think - but ...
> >>
> >>
> >> *restore
> >>
> >> First you select one or more JobIds that contain files
> >> to be restored. You will be presented several methods
> >> of specifying the JobIds. Then you will be allowed to
> >> select which files from those JobIds are to be restored.
> >>
> >> To select the JobIds, you have the following choices:
> >>   1: List last 20 Jobs run
> >>   2: List Jobs where a given File is saved
> >>   3: Enter list of comma separated JobIds to select
> >>   4: Enter SQL list command
> >>   5: Select the most recent backup for a client
> >>   6: Select backup for a client before a specified time
> >>   7: Enter a list of files to restore
> >>   8: Enter a list of files to restore before a specified time
> >>   9: Cancel
> >> Select item:  (1-9): 5
> >> Defined Clients:
> >>   1: iauthservices-fd
> >>   2: iutility-fd
> >>   3: idbservices-fd
> >>   4: iwebservices-fd
> >>   5: imail-fd
> >>   

Re: [Bacula-users] Restores Issues

2006-08-01 Thread LDB
John Drescher wrote:
> I have seen this recently. In my case the clientid that the database
> listed for the job did not exist in the database so no jobs were found
> for the client. To fix I manually added the correct clientid for all
> jobs that I knew were for that client.
> 
> John
> 
> On 8/1/06, LDB <[EMAIL PROTECTED]> wrote:
> 
>> Alan Brown wrote:
>> > On Mon, 31 Jul 2006, LDB wrote:
>> >
>> >
>> >>>Assuming the server still exists in bacula-dir.conf, perhaps the file
>> >>>tree has expired and been prined off?
>> >>
>> >>Yes, it does exist in bacula-dir.conf. How do I then get the file tree
>> >>back?
>> >
>> >
>> > bscan - which is time-consuming.
>> >
>> > AB
>> >
>> >
>> > 
>> -
>> > 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
>> >
>>
>> Thank you Alan ...
>>
>> bscan -v -r -m -s -b /var/lib/bacula/working/imail.bsr 
>> /backups/bacula/backups
>>
>>
>>
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
>> FileIndex=254997 Stream=1
>> len=94
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
>> FileIndex=254997 Stream=4
>> len=3119
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=254997
>> Stream=10 len=20
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
>> FileIndex=254998 Stream=1
>> len=84
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
>> FileIndex=254999 Stream=1
>> len=86
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
>> FileIndex=255000 Stream=1
>> len=93
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
>> FileIndex=255001 Stream=1
>> len=108
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
>> FileIndex=255002 Stream=1
>> len=94
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
>> FileIndex=255003 Stream=1
>> len=84
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
>> FileIndex=255004 Stream=1
>> len=88
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
>> FileIndex=255005 Stream=1
>> len=85
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
>> FileIndex=255006 Stream=1
>> len=84
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
>> FileIndex=255007 Stream=1
>> len=90
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 
>> FileIndex=255008 Stream=1
>> len=80
>> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=-5 
>> Stream=563
>> len=186
>> bscan: bscan.c:907 Fileset "FSG BASE PLUS IMAIL" already exists.
>> bscan: bscan.c:1028 Updated Job termination record for JobId=563 
>> TermStat=T
>> bscan: bscan.c:1121 Created JobMedia record JobId 563, MediaId 39
>> 01-Aug 04:45 bscan: Got EOF at file 2  on device 
>> /backups/bacula/backups, Volume
>> "imail0004"
>> 01-Aug 04:45 bscan: End of Volume at file 2 on device 
>> /backups/bacula/backups,
>> Volume "imail0004"
>> 01-Aug 04:45 bscan: End of all volumes.
>> bscan: bscan.c:377 Record: SessId=0 SessTim=0 FileIndex=-6 Stream=0 len=0
>> bscan: bscan.c:849 Updated Media record at end of Volume: imail0004
>> bscan: bscan.c:600 End of all Volumes. VolFiles=2 VolBlocks=0 
>> VolBytes=6,014,842,881
>> Records added or updated in the catalog:
>>1 Media
>>1 Pool
>>1 Job
>>   255008 File
>>
>>
>>
>> The bscan went well - I think - but ...
>>
>>
>> *restore
>>
>> First you select one or more JobIds that contain files
>> to be restored. You will be presented several methods
>> of specifying the JobIds. Then you will be allowed to
>> select which files from those JobIds are to be restored.
>>
>> To select the JobIds, you have the following choices:
>>   1: List last 20 Jobs run
>>   2: List Jobs where a given File is saved
>>   3: Enter list of comma separated JobIds to select
>>   4: Enter SQL list command
>>   5: Select the most recent backup for a client
>>   6: Select backup for a client before a specified time
>>   7: Enter a list of files to restore
>>   8: Enter a list of files to restore before a specified time
>>   9: Cancel
>> Select item:  (1-9): 5
>> Defined Clients:
>>   1: iauthservices-fd
>>   2: iutility-fd
>>   3: idbservices-fd
>>   4: iwebservices-fd
>>   5: imail-fd
>>   6: ilists-fd
>>   7: base1-fd
>>   8: base2-fd
>>   9: imailservices-fd
>>  10: ifsgdevem64t-fd
>>  11: ibackup-fd
>> Select the Client (1-11): 5
>> Automatically selected FileSet: BASE PLUS IMAIL
>> No Full backup before 2006-08-01 04:51:31 found.
>>
>>
>> Did I miss something in my scan?
>>
>>
>> Thanks,
>>
>> LD

Re: [Bacula-users] Restores Issues

2006-08-01 Thread John Drescher
I have seen this recently. In my case the clientid that the database
listed for the job did not exist in the database so no jobs were found
for the client. To fix I manually added the correct clientid for all
jobs that I knew were for that client.

John

On 8/1/06, LDB <[EMAIL PROTECTED]> wrote:
> Alan Brown wrote:
> > On Mon, 31 Jul 2006, LDB wrote:
> >
> >
> >>>Assuming the server still exists in bacula-dir.conf, perhaps the file
> >>>tree has expired and been prined off?
> >>
> >>Yes, it does exist in bacula-dir.conf. How do I then get the file tree
> >>back?
> >
> >
> > bscan - which is time-consuming.
> >
> > AB
> >
> >
> > -
> > 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
> >
>
> Thank you Alan ...
>
> bscan -v -r -m -s -b /var/lib/bacula/working/imail.bsr /backups/bacula/backups
>
>
>
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=254997 
> Stream=1
> len=94
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=254997 
> Stream=4
> len=3119
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=254997
> Stream=10 len=20
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=254998 
> Stream=1
> len=84
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=254999 
> Stream=1
> len=86
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255000 
> Stream=1
> len=93
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255001 
> Stream=1
> len=108
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255002 
> Stream=1
> len=94
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255003 
> Stream=1
> len=84
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255004 
> Stream=1
> len=88
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255005 
> Stream=1
> len=85
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255006 
> Stream=1
> len=84
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255007 
> Stream=1
> len=90
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255008 
> Stream=1
> len=80
> bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=-5 Stream=563
> len=186
> bscan: bscan.c:907 Fileset "FSG BASE PLUS IMAIL" already exists.
> bscan: bscan.c:1028 Updated Job termination record for JobId=563 TermStat=T
> bscan: bscan.c:1121 Created JobMedia record JobId 563, MediaId 39
> 01-Aug 04:45 bscan: Got EOF at file 2  on device /backups/bacula/backups, 
> Volume
> "imail0004"
> 01-Aug 04:45 bscan: End of Volume at file 2 on device /backups/bacula/backups,
> Volume "imail0004"
> 01-Aug 04:45 bscan: End of all volumes.
> bscan: bscan.c:377 Record: SessId=0 SessTim=0 FileIndex=-6 Stream=0 len=0
> bscan: bscan.c:849 Updated Media record at end of Volume: imail0004
> bscan: bscan.c:600 End of all Volumes. VolFiles=2 VolBlocks=0 
> VolBytes=6,014,842,881
> Records added or updated in the catalog:
>1 Media
>1 Pool
>1 Job
>   255008 File
>
>
>
> The bscan went well - I think - but ...
>
>
> *restore
>
> First you select one or more JobIds that contain files
> to be restored. You will be presented several methods
> of specifying the JobIds. Then you will be allowed to
> select which files from those JobIds are to be restored.
>
> To select the JobIds, you have the following choices:
>   1: List last 20 Jobs run
>   2: List Jobs where a given File is saved
>   3: Enter list of comma separated JobIds to select
>   4: Enter SQL list command
>   5: Select the most recent backup for a client
>   6: Select backup for a client before a specified time
>   7: Enter a list of files to restore
>   8: Enter a list of files to restore before a specified time
>   9: Cancel
> Select item:  (1-9): 5
> Defined Clients:
>   1: iauthservices-fd
>   2: iutility-fd
>   3: idbservices-fd
>   4: iwebservices-fd
>   5: imail-fd
>   6: ilists-fd
>   7: base1-fd
>   8: base2-fd
>   9: imailservices-fd
>  10: ifsgdevem64t-fd
>  11: ibackup-fd
> Select the Client (1-11): 5
> Automatically selected FileSet: BASE PLUS IMAIL
> No Full backup before 2006-08-01 04:51:31 found.
>
>
> Did I miss something in my scan?
>
>
> Thanks,
>
> LDB
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share y

Re: [Bacula-users] Error e-mails caused by Nagios monitoring

2006-08-01 Thread Bill Moran
In response to Peter Sjoberg <[EMAIL PROTECTED]>:

> If you write a nagios plugin, please post it. I just started playing
> with nagios and wouldn't mind checking bacula also but haven't looked
> around for any existing plugin.

The following is what I wrote that we use here.  It's not pretty, and
it requires that bconsole be installed/configured on the Nagios machine,
but it has the added benefit of checking both the dir and the sd.

#!/usr/bin/perl

use warnings;
use strict;

# Note that there _must_ be a rule in sudoers for this to work:
# nagios  ALL=(ALL)   NOPASSWD: /usr/local/sbin/bconsole
open BC, "echo \"status storage=${ARGV[1]}\" | sudo /usr/local/sbin/bconsole |"
or die "bconsole: $!";

my $result = "BACULA: critical";
my $return = 2;
while (my $line = )
{
chomp $line;
if ($line eq "Connecting to Storage daemon ${ARGV[1]} at ${ARGV[0]}:9103") {
$result = "BACULA: ok";
$return = 0;
last;
}
}

print "$result\n";
exit $return;


-- 
Bill Moran
Collaborative Fusion Inc.


IMPORTANT: This message contains confidential information and is
intended only for the individual named. If the reader of this
message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a
result of e-mail transmission.


-
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


Re: [Bacula-users] Restores Issues

2006-08-01 Thread LDB
Alan Brown wrote:
> On Mon, 31 Jul 2006, LDB wrote:
> 
> 
>>>Assuming the server still exists in bacula-dir.conf, perhaps the file
>>>tree has expired and been prined off?
>>
>>Yes, it does exist in bacula-dir.conf. How do I then get the file tree
>>back?
> 
> 
> bscan - which is time-consuming.
> 
> AB
> 
> 
> -
> 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
> 

Thank you Alan ...

bscan -v -r -m -s -b /var/lib/bacula/working/imail.bsr /backups/bacula/backups



bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=254997 
Stream=1 
len=94
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=254997 
Stream=4 
len=3119
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=254997 
Stream=10 len=20
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=254998 
Stream=1 
len=84
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=254999 
Stream=1 
len=86
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255000 
Stream=1 
len=93
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255001 
Stream=1 
len=108
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255002 
Stream=1 
len=94
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255003 
Stream=1 
len=84
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255004 
Stream=1 
len=88
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255005 
Stream=1 
len=85
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255006 
Stream=1 
len=84
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255007 
Stream=1 
len=90
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=255008 
Stream=1 
len=80
bscan: bscan.c:377 Record: SessId=5 SessTim=1148618697 FileIndex=-5 Stream=563 
len=186
bscan: bscan.c:907 Fileset "FSG BASE PLUS IMAIL" already exists.
bscan: bscan.c:1028 Updated Job termination record for JobId=563 TermStat=T
bscan: bscan.c:1121 Created JobMedia record JobId 563, MediaId 39
01-Aug 04:45 bscan: Got EOF at file 2  on device /backups/bacula/backups, 
Volume 
"imail0004"
01-Aug 04:45 bscan: End of Volume at file 2 on device /backups/bacula/backups, 
Volume "imail0004"
01-Aug 04:45 bscan: End of all volumes.
bscan: bscan.c:377 Record: SessId=0 SessTim=0 FileIndex=-6 Stream=0 len=0
bscan: bscan.c:849 Updated Media record at end of Volume: imail0004
bscan: bscan.c:600 End of all Volumes. VolFiles=2 VolBlocks=0 
VolBytes=6,014,842,881
Records added or updated in the catalog:
   1 Media
   1 Pool
   1 Job
  255008 File



The bscan went well - I think - but ...


*restore

First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.

To select the JobIds, you have the following choices:
  1: List last 20 Jobs run
  2: List Jobs where a given File is saved
  3: Enter list of comma separated JobIds to select
  4: Enter SQL list command
  5: Select the most recent backup for a client
  6: Select backup for a client before a specified time
  7: Enter a list of files to restore
  8: Enter a list of files to restore before a specified time
  9: Cancel
Select item:  (1-9): 5
Defined Clients:
  1: iauthservices-fd
  2: iutility-fd
  3: idbservices-fd
  4: iwebservices-fd
  5: imail-fd
  6: ilists-fd
  7: base1-fd
  8: base2-fd
  9: imailservices-fd
 10: ifsgdevem64t-fd
 11: ibackup-fd
Select the Client (1-11): 5
Automatically selected FileSet: BASE PLUS IMAIL
No Full backup before 2006-08-01 04:51:31 found.


Did I miss something in my scan?


Thanks,

LDB

-
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


Re: [Bacula-users] Error e-mails caused by Nagios monitoring

2006-08-01 Thread R.I. Pienaar
hello,

I wrote something up about monitoring with Nagios, I prefer monitoring
each server being backed up for backup status, this means that even if
I accidently delete/disable a host from bacula configs I'd still pick
it up with my nagios:
http://www.devco.net/pubwiki/Bacula/MonitoringWithNagios

You can also create a hourly job that does a watchdog type thing for
your nagios: 
http://www.bacula.org/rel-manual/Tips_Suggestions.html#SECTION000355000

That way you can be sure your backups are working end to end without
connecting to the daemon ports and confusing them.

On 31/07/06, Peter Sjoberg <[EMAIL PROTECTED]> wrote:
> On Fri, 2006-07-28 at 15:04 +0200, Bartosz Piec wrote:
> > Hello,
> >
> > I'm using Nagios to monitor Bacula server. To do this, I'm connecting on
> > the TCP 9101 port to see if connection can be established. Every time
> > Nagios connects, I'm getting an e-mail saying:
> >
> > 28-Jul 14:57 my-director: ERROR in authenticate.c:269 UA Hello from
> > client:my.nagios.host.ip:36131 is invalid. Len=0
> >
> > How to get rid of this? I want do disable _only_ this type of e-mails.
> Don't know how to get rid of that without possible loosing other mails
> also (besides using something like procmail)
>
> What you could do is to do a little more complete check by doing
> something like
>   echo status client=sisko-fd|./bconsole
> and parse the output. Then you can also check for hung jobs and stuff.
> You could also check the other parts by
>   echo status client=remote-fd|./bconsole
>   echo status storage=File|./bconsole
>   echo status dir|./bconsole
>
> If you write a nagios plugin, please post it. I just started playing
> with nagios and wouldn't mind checking bacula also but haven't looked
> around for any existing plugin.
>
> >
> --
> ---
> Techwiz, Peter SjobergPGP key (12F506C8) on keyserver & homepage
> Key fingerprint =  3DC2 CEBA 1590 B41A 3780  955A DB42 02BB 12F5 06C8
> mailto:peters AT techwiz.ca http://www.techwiz.ca/~peters
>
>
>
> -
> 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
>


-- 
R.I.Pienaar http://www.devco.net

-
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


Re: [Bacula-users] Recovering data without a .bsr or db entries (feel free to start laughing now)

2006-08-01 Thread Kern Sibbald
Hello,

On Sunday 30 July 2006 19:57, Chris Crowther wrote:
> Hey peeps,

What in the heck is a "peep" ?

> 
> So, because I cocked up my config and didn't notice, Bacula purged a job 
> pretty much right after finishing it, mea culpa. 
> 
> This wouldn't be a major problem if it wasn't for the fact that the job 
> in question was the contents of "Documents and Settings" on my 
> workstation, because I was doing a re-install...and I noticed afterwards 
> (yeah, mea culpa again).
> 
> I've removed the two tapes it used from the library, so it can't 
> physicaly lose the data.  I'm wondering if I have anyway of getting the 
> data back off the tapes.  I also took a copy of the pgsql data directory 
> as soon as a I realised; I've taken at look at the page files and it 
> seems like the data may still be there (pgsql hadn't vacuumed yet).
> 
> Anyone have any suggestions on how to proceed?  

Read the end of the Bacula Console Restore Command chapter of the current 
development online manual. It is entitled something like "Restoring When 
Things Go Wrong". If I am not mistaken, it addresses this problem -- 
providing you at least have the job report for that job.

> Or am I just going to  
> have to chalk this up as one of those lessons that mean you don't do it 
> again.

Hopefully not.

> 
> In many ways I'm just glad I am super paranoid and copied the contents 
> of my development trees to another system as well.
> 
> -- 
> Chris Crowther
> Developer
> J&M Crowther Ltd.
> 
> 
> -
> 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
> 

-
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


Re: [Bacula-users] URGENT!!! Keyword VolSessionId not found

2006-08-01 Thread Kern Sibbald
Hello,

On Tuesday 01 August 2006 11:51, Aykut YILDIZGORUR wrote:
> Hi,
> 
> i need help about restoring files..
> i was backup same windows and linux client but not i can't restore them 
back.
> my restore log in buttom.
> 
> i need help very urgent because i need backup files :((

When you are doing the restore and you reach the yes/mod/no question to run 
the restore job, prior to answering yes, in another shell, make a copy of the 
bootstrap file.  The location of where it can be found is located in the 
printout a few lines before.  Then please post a copy of that bootstrap file 
to the list.  I need to see what it looks like.

If you want better responses, you should always include a copy of your 
previous email. If all the information is not in front of me in *each* email, 
I, for one, don't have the time to research previous emails to find it.

Are you sure your Director and SD are the same Bacula version?


> 
> best regards
> Aykut YILDIZGÖRÜR
> 
> 
> 
> 
> 31-Tem 12:23 smbserver-dir: Start Restore Job 
RestoreFiles.2006-07-31_12.23.39
> 
> 31-Tem 12:23 smbserver-sd: RestoreFiles.2006-07-31_12.23.39 Fatal error: 
Bootstrap file error: Keyword VolSessionId not found
> 
> : Line 3, col 12 of 
file /var/bacula/working/smbserver-sd.RestoreFiles.2006-07-31_12.23.39.bootstrap
> 
> VolSessionId=1
> 
> 31-Tem 12:23 smbserver-sd: RestoreFiles.2006-07-31_12.23.39 Fatal error: 
Error parsing bootstrap file.
> 
> 31-Tem 12:23 smbserver-fd: RestoreFiles.2006-07-31_12.23.39 Fatal error: 
job.c:1617 Bad response to Bootstrap command. Wanted 3000 OK bootstrap
> 
> , got 3904 Error bootstrap
> 
> 31-Tem 12:23 smbserver-dir: RestoreFiles.2006-07-31_12.23.39 Error: Bacula 
1.38.11 (28Jun06): 31-Tem-2006 12:23:42
> 
> JobId: 2
> 
> Job: RestoreFiles.2006-07-31_12.23.39
> 
> Client: smbserver-fd
> 
> Start time: 31-Tem-2006 12:23:41
> 
> End time: 31-Tem-2006 12:23:42
> 
> Files Expected: 1
> 
> Files Restored: 0
> 
> Bytes Restored: 0
> 
> Rate: 0.0 KB/s
> 
> FD Errors: 0
> 
> FD termination status: Error
> 
> SD termination status: Error
> 
> Termination: *** Restore Error ***
> 
> 31-Tem 12:23 smbserver-dir: Begin pruning Jobs.
> 
> 31-Tem 12:23 smbserver-dir: No Jobs found to prune.
> 
> 31-Tem 12:23 smbserver-dir: Begin pruning Files.
> 
> 31-Tem 12:23 smbserver-dir: No Files found to prune.
> 
> 31-Tem 12:23 smbserver-dir: End auto prune.
> 

-
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


Re: [Bacula-users] Copies of previous releases docs?

2006-08-01 Thread Kern Sibbald
On Tuesday 01 August 2006 00:09, Ryan Parrish wrote:
> Yeah, I'm a bit of a knob.  Didn't even think about a separate doc  
> package even though i checked /usr/share/doc.
> Sorry for wasting everyone's time.

Uh, after a bit of though, I think I gave you incorrect information. The docs 
are a separate package, but what I forgot is that was the case beginning with 
bacula 1.38.0.  

Prior to 1.38 the docs were part of the source tar.gz release, so when looking 
on Source Forge you will not find any separate docs release prior to 1.38, 
just download the source, and you will find them there.


> 
> 
> 
> Ryan Parrish
> Systems Administrator
> Freight Logistics, Inc.
> 1.408.200.4190 x102
> 
> 
> 
> On Jul 31, 2006, at 2:00 PM, Richard Mortimer wrote:
> 
> > On Mon, 2006-07-31 at 12:35 -0700, Ryan Parrish wrote:
> >> Where can i get a copy of what the bacula doc's looked like when 1.36
> >> was released?
> >> I'm using 1.36 on my servers since that is what's in the debian sarge
> >> repo, but the current docs for 1.38 on the bacula.com site reference
> >> features that do not exist in this version (scratch pool for example)
> >> and i find myself getting a little mixed up.
> >
> > Debian has a bacula-doc package. Install that and the pdf manual is
> > at /usr/share/doc/bacula-doc/bacula.pdf and a html version is in
> > /usr/share/doc/bacula-doc/html-manual/index.html
> >
> > Richard
> >
> > -- 
> > Richard Mortimer <[EMAIL PROTECTED]>
> >
> 
> 
> -
> 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
> 

-
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


Re: [Bacula-users] Error e-mails caused by Nagios monitoring

2006-08-01 Thread Peter Sjoberg
On Fri, 2006-07-28 at 15:04 +0200, Bartosz Piec wrote:
> Hello,
> 
> I'm using Nagios to monitor Bacula server. To do this, I'm connecting on 
> the TCP 9101 port to see if connection can be established. Every time 
> Nagios connects, I'm getting an e-mail saying:
> 
> 28-Jul 14:57 my-director: ERROR in authenticate.c:269 UA Hello from 
> client:my.nagios.host.ip:36131 is invalid. Len=0
> 
> How to get rid of this? I want do disable _only_ this type of e-mails.
Don't know how to get rid of that without possible loosing other mails
also (besides using something like procmail)

What you could do is to do a little more complete check by doing
something like
  echo status client=sisko-fd|./bconsole
and parse the output. Then you can also check for hung jobs and stuff.
You could also check the other parts by
  echo status client=remote-fd|./bconsole
  echo status storage=File|./bconsole
  echo status dir|./bconsole

If you write a nagios plugin, please post it. I just started playing
with nagios and wouldn't mind checking bacula also but haven't looked
around for any existing plugin.

> 
-- 
---
Techwiz, Peter SjobergPGP key (12F506C8) on keyserver & homepage
Key fingerprint =  3DC2 CEBA 1590 B41A 3780  955A DB42 02BB 12F5 06C8
mailto:peters AT techwiz.ca http://www.techwiz.ca/~peters



-
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


[Bacula-users] rpm wizard script

2006-08-01 Thread Scott Barninger
Hello all,

I read an article this week about using gnome's zenity utility to
display gui dialogs and input information into shell scripts. I did some
fooling around today and the result has been placed in cvs as
platforms/contrib-rpm/rpm_wizard.sh. This handy little script will query
your build parameters through a series of dialogs and then rebuild a
bacula source rpm package.

Regards,
Scott


-
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


[Bacula-users] Recovering data without a .bsr or db entries (feel free to start laughing now)

2006-08-01 Thread Chris Crowther
Hey peeps,

So, because I cocked up my config and didn't notice, Bacula purged a job 
pretty much right after finishing it, mea culpa. 

This wouldn't be a major problem if it wasn't for the fact that the job 
in question was the contents of "Documents and Settings" on my 
workstation, because I was doing a re-install...and I noticed afterwards 
(yeah, mea culpa again).

I've removed the two tapes it used from the library, so it can't 
physicaly lose the data.  I'm wondering if I have anyway of getting the 
data back off the tapes.  I also took a copy of the pgsql data directory 
as soon as a I realised; I've taken at look at the page files and it 
seems like the data may still be there (pgsql hadn't vacuumed yet).

Anyone have any suggestions on how to proceed?  Or am I just going to 
have to chalk this up as one of those lessons that mean you don't do it 
again.

In many ways I'm just glad I am super paranoid and copied the contents 
of my development trees to another system as well.

-- 
Chris Crowther
Developer
J&M Crowther Ltd.


-
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


Re: [Bacula-users] Restore error

2006-08-01 Thread Georger Araujo
It looks like you're trying to restore files backed up
from a Windows client to the same Windows client. But
you'll  need to modify the

Where

parameter, because it points to a directory that
doesn't exist at the client side. Create a

C:\tmp

folder and tell Bacula to restore files to

C:/tmp

and all should be fine. I've run into this issue
myself. Regards,

Georger

--- Aykut YILDIZGORUR <[EMAIL PROTECTED]> escreveu:

> Hi,
> 
> i am just installed bacula server 1.38.11 to ubuntu
> linuz server.
> backup is working good but i can nat restore them :(
> 
> my restore command and errors in here.. 
> please help me immediatle
> 
> 
> *restore
> 
> First you select one or more JobIds that contain
> files
> to be restored. You will be presented several
> methods
> of specifying the JobIds. Then you will be allowed
> to
> select which files from those JobIds are to be
> restored.
> 
> To select the JobIds, you have the following
> choices:
>  1: List last 20 Jobs run
>  2: List Jobs where a given File is saved
>  3: Enter list of comma separated JobIds to
> select
>  4: Enter SQL list command
>  5: Select the most recent backup for a client
>  6: Select backup for a client before a
> specified time
>  7: Enter a list of files to restore
>  8: Enter a list of files to restore before a
> specified time
>  9: Find the JobIds of the most recent backup
> for a client
> 10: Find the JobIds for a backup for a client
> before a specified time
> 11: Enter a list of directories to restore for
> found JobIds
> 12: Cancel
> Select item:  (1-12): 5
> Automatically selected Client: aykut-fd
> Automatically selected FileSet: aykutFiles
>
+---+---+--++-+-+---
> 
> +
> | JobId | Level | JobFiles | JobBytes   | StartTime 
>  | VolumeName  | St 
> artFile |
>
+---+---+--++-+-+---
> 
> +
> | 1 | F |   12 | 25,019,705 | 2006-07-31
> 08:32:54 | Yedek-1 |
>   0 |
>
+---+---+--++-+-+---
> 
> +
> You have selected the following JobId: 1
> 
> Building directory tree for JobId 1 ...
> 1 Job, 11 files inserted into the tree.
> 
> You are now entering file selection mode where you
> add (mark) and
> remove (unmark) files to be restored. No files are
> initially added, unless
> you used the "all" keyword on the command line.
> Enter "done" to leave this mode.
> 
> cwd is: /
> $ ls
> c:/
> $ cd c:/msd
> cwd is: c:/msd/
> $ ls
> LOADER.exe
> StubInstaller.exe
> ince
> key.bin
> tRI.bin
> ta.bin
> trace.ini
> wepkeys.txt
> yeni kanal tablosu.txt
> $ mark key.bin
> 1 file marked.
> $ done
> Bootstrap records written to
> /var/bacula/working/smbserver-dir.1.restore.bsr
> 
> The job will require the following Volumes:
> 
>Yedek-1
> 
> 
> 1 file selected to be restored.
> 
> Run Restore job
> JobName:RestoreFiles
> Bootstrap: 
> /var/bacula/working/smbserver-dir.1.restore.bsr
> Where:  /home/bacula/bacula-restores
> Replace:always
> FileSet:Full Set
> Client: aykut-fd
> Storage:File
> When:   2006-07-31 08:34:19
> Catalog:MyCatalog
> Priority:   10
> OK to run? (yes/mod/no): yes
> Job started. JobId=2
> *
> 31-Tem 08:34 smbserver-dir: Start Restore Job
> RestoreFiles.2006-07-31_08.34.20
> 31-Tem 08:34 smbserver-sd:
> RestoreFiles.2006-07-31_08.34.20 Fatal error:
> Bootstr 
> ap file error: Keyword VolSessionId not found
> : Line 3, col 12 of file
> /var/bacula/working/smbserver-sd.RestoreFil 
>
> es.2006-07-31_08.34.20.bootstrap
> VolSessionId=1
> 
> 31-Tem 08:34 smbserver-sd:
> RestoreFiles.2006-07-31_08.34.20 Fatal error: Error
> p 
> arsing bootstrap file.
> 31-Tem 08:32 aykut-fd:
> RestoreFiles.2006-07-31_08.34.20 Fatal error:
> c:\cygwin\h 
>
>
ome\kern\bacula\k\src\win32\filed\../../filed/job.c:1617
> Bad response to Bootstr 
> ap command. Wanted 3000 OK bootstrap
> , got 3904 Error bootstrap
> 
> 31-Tem 08:34 smbserver-dir:
> RestoreFiles.2006-07-31_08.34.20 Error: Bacula 1.38.
>  11
> (28Jun06): 31-Tem-2006 08:34:25
>   JobId:  2
>   Job:   
> RestoreFiles.2006-07-31_08.34.20
>   Client: aykut-fd
>   Start time: 31-Tem-2006 08:34:22
>   End time:   31-Tem-2006 08:34:25
>   Files Expected: 1
>   Files Restored: 0
>   Bytes Restored: 0
>   R

Re: [Bacula-users] error getting job record for stats: sql_get.c:287 No Job found for JobId 108

2006-08-01 Thread Ralf Gross
Hi!

Kern Sibbald said:
> Well, not having the *full* output from the job makes it a bit hard to
> diagnose the problem.  Normally, there should be additional output with
> the
> first error that was printed (affected_rows = 0).
>
> I have seen this kind of problem when a job is pruned while the job is
> running.  The job starts, creates a job database record, it is pruned, the
> job terminates, and the job record no longer exist, hence the job fails as
> in
> the second error message above.  This is possible and worth checking (i.e.
> was anything pruned while the job ran?) but if you previously had database
> problems, it is not very likely to be the cause.

I discovered this a couple of minutes before getting your reply. You're
right, the job was pruned during the backup!

Here's the complete output:

29-Jul 19:00 bacula-dir: Start Backup JobId 108, Job=Bang.2006-07-29_19.00.00
29-Jul 19:00 bacula-sd: Job Bang.2006-07-29_19.00.00 waiting to reserve a
device.

Something was wrong when the job started on Saturday evening, I can't
remember exactly what I did to fix it yesterday, but I think I issued the
mount/umount command. Thus the backup started 1.5 days later as
expected...

That was the reason for the pruning. Last week I changed the 'Volume
Retention Period' for the tapes to 2 days. Because of the crash, I had to
start the weekly backup on Thursday and the next full backup was scheduled
for Saturday (I keep the full backups only one week at the moment, not the
best way but I cant' change it)

31-Jul 09:43 bacula-sd: 3301 Issuing autochanger "loaded drive 0" command.
31-Jul 09:43 bacula-sd: 3302 Autochanger "loaded drive 0", result: nothing
loaded.
31-Jul 09:43 bacula-sd: 3304 Issuing autochanger "load slot 3, drive 0"
command.
31-Jul 09:43 bacula-sd: 3305 Autochanger "load slot 3, drive 0", status is
OK.
31-Jul 09:43 bacula-sd: 3301 Issuing autochanger "loaded drive 0" command.
31-Jul 09:43 bacula-sd: 3302 Autochanger "loaded drive 0", result is Slot 3.
31-Jul 09:44 bacula-sd: Recycled volume "Bang3" on device "AIT-2"
(/dev/nst0), all previous data lost.
31-Jul 09:44 bacula-sd: Spooling data ...
bang-fd:  Filesystem change prohibited. Will not descend into /usr
bang-fd:  Filesystem change prohibited. Will not descend into /var
bang-fd:  Filesystem change prohibited. Will not descend into /local
bang-fd:  Filesystem change prohibited. Will not descend into /opt
bang-fd:  Filesystem change prohibited. Will not descend into /net
bang-fd:  Filesystem change prohibited. Will not descend into
/export/home
bang-fd:  Filesystem change prohibited. Will not descend into /home
bang-fd:  Filesystem change prohibited. Will not descend into /server
bang-fd:  Filesystem change prohibited. Will not descend into /projekte
bang-fd:  Filesystem change prohibited. Will not descend into /public
bang-fd:  Filesystem change prohibited. Will not descend into /var/run
31-Jul 11:29 bacula-sd: User specified spool size reached.
31-Jul 11:29 bacula-sd: Writing spooled data to Volume. Despooling
37,580,970,177 bytes ...
31-Jul 12:51 bacula-sd: Spooling data again ...
31-Jul 13:57 bacula-sd: User specified spool size reached.
31-Jul 13:57 bacula-sd: Writing spooled data to Volume. Despooling
37,580,970,960 bytes ...
31-Jul 15:04 bacula-sd: End of Volume "Bang3" at 72:14798 on device
"AIT-2" (/dev/nst0). Write of 64512 bytes got -1.
31-Jul 15:05 bacula-sd: Re-read of last block succeeded.
31-Jul 15:05 bacula-sd: End of medium on Volume "Bang3"
Bytes=72,950,038,885 Blocks=1,130,798 at 31-Jul-2006 15:05.
31-Jul 15:06 bacula-dir: Recycled volume "Bang2"
31-Jul 15:06 bacula-sd: 3301 Issuing autochanger "loaded drive 0" command.
31-Jul 15:06 bacula-sd: 3302 Autochanger "loaded drive 0", result is Slot 3.
31-Jul 15:06 bacula-sd: 3307 Issuing autochanger "unload slot 3, drive 0"
command.
31-Jul 15:07 bacula-sd: 3304 Issuing autochanger "load slot 2, drive 0"
command.
31-Jul 15:07 bacula-sd: 3305 Autochanger "load slot 2, drive 0", status is
OK.
31-Jul 15:07 bacula-sd: 3301 Issuing autochanger "loaded drive 0" command.
31-Jul 15:07 bacula-sd: 3302 Autochanger "loaded drive 0", result is Slot 2.
31-Jul 15:07 bacula-sd: Recycled volume "Bang2" on device "AIT-2"
(/dev/nst0), all previous data lost.
31-Jul 15:07 bacula-sd: New volume "Bang2" mounted on device "AIT-2"
(/dev/nst0) at 31-Jul-2006 15:07.
31-Jul 15:15 bacula-sd: Spooling data again ...
31-Jul 16:26 bacula-sd: User specified spool size reached.
31-Jul 16:26 bacula-sd: Writing spooled data to Volume. Despooling
37,580,970,939 bytes ...
31-Jul 17:55 bacula-sd: Spooling data again ...
31-Jul 19:04 bacula-sd: User specified spool size reached.
31-Jul 19:04 bacula-sd: Writing spooled data to Volume. Despooling
37,580,970,815 bytes ...
31-Jul 19:50 bacula-sd: End of Volume "Bang2" at 60:7190 on device "AIT-2"
(/dev/nst0). Write of 64512 bytes got -1.
31-Jul 19:50 bacula-sd: Re-read of last block succeeded.
31-Jul 19:50 bacula-sd: End of medium 

[Bacula-users] URGENT!!! Keyword VolSessionId not found

2006-08-01 Thread Aykut YILDIZGORUR



Hi,
 
i need help about restoring files..
i was backup same windows and linux client but not 
i can't restore them back.
my restore log in buttom.
 
i need help very urgent because i need backup files 
:((
 
best regards
Aykut YILDIZGÖRÜR
 
 
 
 

31-Tem 12:23 smbserver-dir: Start Restore Job 
RestoreFiles.2006-07-31_12.23.39
31-Tem 12:23 smbserver-sd: RestoreFiles.2006-07-31_12.23.39 Fatal error: 
Bootstrap file error: Keyword VolSessionId not found
: Line 3, col 12 of file 
/var/bacula/working/smbserver-sd.RestoreFiles.2006-07-31_12.23.39.bootstrap
VolSessionId=1
31-Tem 12:23 smbserver-sd: RestoreFiles.2006-07-31_12.23.39 Fatal error: 
Error parsing bootstrap file.
31-Tem 12:23 smbserver-fd: RestoreFiles.2006-07-31_12.23.39 Fatal error: 
job.c:1617 Bad response to Bootstrap command. Wanted 3000 OK bootstrap
, got 3904 Error bootstrap
31-Tem 12:23 smbserver-dir: RestoreFiles.2006-07-31_12.23.39 Error: Bacula 
1.38.11 (28Jun06): 31-Tem-2006 12:23:42
JobId: 2
Job: RestoreFiles.2006-07-31_12.23.39
Client: smbserver-fd
Start time: 31-Tem-2006 12:23:41
End time: 31-Tem-2006 12:23:42
Files Expected: 1
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 0
FD termination status: Error
SD termination status: Error
Termination: *** Restore Error ***
31-Tem 12:23 smbserver-dir: Begin pruning Jobs.
31-Tem 12:23 smbserver-dir: No Jobs found to prune.
31-Tem 12:23 smbserver-dir: Begin pruning Files.
31-Tem 12:23 smbserver-dir: No Files found to prune.
31-Tem 12:23 smbserver-dir: End auto prune.
-
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


Re: [Bacula-users] error getting job record for stats: sql_get.c:287 No Job found for JobId 108

2006-08-01 Thread Kern Sibbald
Hello,

On Tuesday 01 August 2006 10:07, Ralf Gross wrote:
> Hi,
> 
> I have a problem with a job that finished with an error message. Job 108
> started yesterday morning and ended today at 3:55.
> 
> Bacula 1.38.5, debian stable, postgresql 7.4.7-6sarge
> 
> Running Jobs:
> Console connected at 31-Jul-06 09:43
>  JobId Level   Name   Status
> ==
>108 FullBang.2006-07-29_19.00.00 is running
>109 FullBackupCatalog.2006-07-29_19.50.00 is waiting execution
>110 FullSMTCZB0003.2006-07-30_08.00.00 is waiting execution
>111 FullBackupCatalog.2006-07-30_08.20.00 is waiting execution
> 
> [snip]
> 01-Aug 02:19 bacula-sd: Spooling data again ...
> 01-Aug 02:21 bacula-sd: Committing spooled data to Volume "Bang1".
> Despooling 908,909,975 bytes ...
> 01-Aug 02:23 bacula-dir: Max configured use duration exceeded. Marking
> Volume "Bang1" as Used.
> 01-Aug 02:23 bacula-sd: Sending spooled attrs to the Director. Despooling
> 241,550,790 bytes ...
> 01-Aug 03:55 bacula-dir: Bang.2006-07-29_19.00.00 Warning: Error updating
> job record. sql_update.c:169 Update problem: affected_rows=0
> 01-Aug 03:55 bacula-dir: Bang.2006-07-29_19.00.00 Warning: Error getting
> job record for stats: sql_get.c:287 No Job found for JobId 108
> 01-Aug 03:55 bacula-dir: Bang.2006-07-29_19.00.00 Error: Bacula 1.38.5
> (18Jan06): 01-Aug-2006 03:55:29

Well, not having the *full* output from the job makes it a bit hard to 
diagnose the problem.  Normally, there should be additional output with the 
first error that was printed (affected_rows = 0).

I have seen this kind of problem when a job is pruned while the job is 
running.  The job starts, creates a job database record, it is pruned, the 
job terminates, and the job record no longer exist, hence the job fails as in 
the second error message above.  This is possible and worth checking (i.e. 
was anything pruned while the job ran?) but if you previously had database 
problems, it is not very likely to be the cause.

> 
> * status dir
> [snip]
> Terminated Jobs:
>  JobId  Level Files  Bytes Status   FinishedName
> 
> [snip]
> 108  Full755,497 226,024,976,679 Error   01-Aug-06 03:55 Bang
> 110  Full350,469 62,591,189,371 OK   01-Aug-06 08:55 SMTCZB0003
> 109  Full  1348,330,920 OK   01-Aug-06 09:03 BackupCatalog
> 111  Full  1348,330,998 OK   01-Aug-06 09:12 BackupCatalog
> 
> 
> * list jobs
> [snip]
> +-+--+-+--+--+--+--+--+
> |jobid|   name   |starttime| type | level| jobfiles | jobbytes |jobstatus |
> +-+--+-+--+--+--+--+--+
> [snip]
> | 105 |SMTCZB0003|2006-07-24 14:51:55|B|F|349,640|62,232,279,458|T|
> | 110 |SMTCZB0003|2006-08-01 03:55:33|B|F|350,469|62,591,189,371|T|
> | 109 |BackupCatalog|2006-08-01 08:55:07|B|F|1|348,330,920|T|
> | 111 |BackupCatalog|2006-08-01 09:03:35|B|F|1|348,330,998|T|
> 
> 
> I have no idea what happend to job 108. It backed up all files, but failed
> to update the job record at the end. The next jobs ended without errors.
> 
> Last week I had to recover the database from a crash (see my mails from
> last week with subject  ERROR: duplicate key violates unique constraint).
> This problem seemed to have been solved, because job 106 finished
> successful.
> 
>  106  Full750,501 220,926,385,105 OK   26-Jul-06 03:38 Bang
> 
> But if I check the jobs with 'list jobs' I can't find job 106 or 108.
> 
> | 101 |BackupCatalog|2006-07-17 09:21:26| B | F | 0 | 0 | A |
> | 103 |BackupCatalog|2006-07-17 10:12:33| B | F | 0 | 0 | R |
> | 104 |SMTCZB0003   |2006-07-24 14:46:27| B | F | 0 | 0 | f |
> | 105 |SMTCZB0003   |2006-07-24 14:51:55| B | F |349,640|62,232,279,458|T|
> | 110 |SMTCZB0003   |2006-08-01 03:55:33| B | F |350,469|62,591,189,371|T|
> | 109 |BackupCatalog|2006-08-01 08:55:07| B | F |1  |  348,330,920 |T|
> | 111 |BackupCatalog|2006-08-01 09:03:35| B | F |1  |  348,330,998 |T|
> 
> 
> dbcheck also shows me errors regarding job 108.
> [snip]
> Found 22 orphaned JobMedia records.
> Print them? (yes/no): yes
> 
> Orphaned JobMediaId=6714 JobId=108 Volume="Bang1"
> Orphaned JobMediaId=6715 JobId=108 Volume="Bang1"
> Orphaned JobMediaId=6716 JobId=108 Volume="Bang1"
> Orphaned JobMediaId=6717 JobId=108 Volume="Bang1"
> Orphaned JobMediaId=6718 JobId=108 Volume="Bang1"
> Orphaned JobMediaId=6719 JobId=108 Volume="Bang1"
> Orphaned JobMediaId=6720 JobId=108 Volume="Bang1"
> Orphaned JobMediaId=6721 JobId=108 Volume="Bang1"
> Orphaned JobMediaId=6722 JobId=108 Volume="Bang1"
> Orphaned JobMediaId=6723 JobId=108 Volume="Bang1"
> Orphaned JobMediaId=6724 JobId=108 Volume="Bang1"
> Orphaned JobMediaId=6725 JobId=108 Volume="Bang1"
> Orphaned JobMediaId=6726 JobId=108 Volume="Bang1"
> Orphaned JobMediaId=67

[Bacula-users] error getting job record for stats: sql_get.c:287 No Job found for JobId 108

2006-08-01 Thread Ralf Gross
Hi,

I have a problem with a job that finished with an error message. Job 108
started yesterday morning and ended today at 3:55.

Bacula 1.38.5, debian stable, postgresql 7.4.7-6sarge

Running Jobs:
Console connected at 31-Jul-06 09:43
 JobId Level   Name   Status
==
   108 FullBang.2006-07-29_19.00.00 is running
   109 FullBackupCatalog.2006-07-29_19.50.00 is waiting execution
   110 FullSMTCZB0003.2006-07-30_08.00.00 is waiting execution
   111 FullBackupCatalog.2006-07-30_08.20.00 is waiting execution

[snip]
01-Aug 02:19 bacula-sd: Spooling data again ...
01-Aug 02:21 bacula-sd: Committing spooled data to Volume "Bang1".
Despooling 908,909,975 bytes ...
01-Aug 02:23 bacula-dir: Max configured use duration exceeded. Marking
Volume "Bang1" as Used.
01-Aug 02:23 bacula-sd: Sending spooled attrs to the Director. Despooling
241,550,790 bytes ...
01-Aug 03:55 bacula-dir: Bang.2006-07-29_19.00.00 Warning: Error updating
job record. sql_update.c:169 Update problem: affected_rows=0
01-Aug 03:55 bacula-dir: Bang.2006-07-29_19.00.00 Warning: Error getting
job record for stats: sql_get.c:287 No Job found for JobId 108
01-Aug 03:55 bacula-dir: Bang.2006-07-29_19.00.00 Error: Bacula 1.38.5
(18Jan06): 01-Aug-2006 03:55:29

* status dir
[snip]
Terminated Jobs:
 JobId  Level Files  Bytes Status   FinishedName

[snip]
108  Full755,497 226,024,976,679 Error   01-Aug-06 03:55 Bang
110  Full350,469 62,591,189,371 OK   01-Aug-06 08:55 SMTCZB0003
109  Full  1348,330,920 OK   01-Aug-06 09:03 BackupCatalog
111  Full  1348,330,998 OK   01-Aug-06 09:12 BackupCatalog


* list jobs
[snip]
+-+--+-+--+--+--+--+--+
|jobid|   name   |starttime| type | level| jobfiles | jobbytes |jobstatus |
+-+--+-+--+--+--+--+--+
[snip]
| 105 |SMTCZB0003|2006-07-24 14:51:55|B|F|349,640|62,232,279,458|T|
| 110 |SMTCZB0003|2006-08-01 03:55:33|B|F|350,469|62,591,189,371|T|
| 109 |BackupCatalog|2006-08-01 08:55:07|B|F|1|348,330,920|T|
| 111 |BackupCatalog|2006-08-01 09:03:35|B|F|1|348,330,998|T|


I have no idea what happend to job 108. It backed up all files, but failed
to update the job record at the end. The next jobs ended without errors.

Last week I had to recover the database from a crash (see my mails from
last week with subject  ERROR: duplicate key violates unique constraint).
This problem seemed to have been solved, because job 106 finished
successful.

 106  Full750,501 220,926,385,105 OK   26-Jul-06 03:38 Bang

But if I check the jobs with 'list jobs' I can't find job 106 or 108.

| 101 |BackupCatalog|2006-07-17 09:21:26| B | F | 0 | 0 | A |
| 103 |BackupCatalog|2006-07-17 10:12:33| B | F | 0 | 0 | R |
| 104 |SMTCZB0003   |2006-07-24 14:46:27| B | F | 0 | 0 | f |
| 105 |SMTCZB0003   |2006-07-24 14:51:55| B | F |349,640|62,232,279,458|T|
| 110 |SMTCZB0003   |2006-08-01 03:55:33| B | F |350,469|62,591,189,371|T|
| 109 |BackupCatalog|2006-08-01 08:55:07| B | F |1  |  348,330,920 |T|
| 111 |BackupCatalog|2006-08-01 09:03:35| B | F |1  |  348,330,998 |T|


dbcheck also shows me errors regarding job 108.
[snip]
Found 22 orphaned JobMedia records.
Print them? (yes/no): yes

Orphaned JobMediaId=6714 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6715 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6716 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6717 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6718 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6719 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6720 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6721 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6722 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6723 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6724 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6725 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6726 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6727 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6728 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6729 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6730 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6731 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6732 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6733 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6734 JobId=108 Volume="Bang1"
Orphaned JobMediaId=6735 JobId=108 Volume="Bang1"
Checking for orphaned File entries. This may take some time!
Found 1103096 orphaned File records.
Checking for orphaned Path entries. This may take some time!
Found 174 orphaned Path records
Checking for orphaned Filename entries. This may take some time!
Found 108 orphaned Filename records.
[snip]


It seems that I still have a db problem. What can I look for and how can I
fix it? Any ideas?

Ralf