Kern Sibbald wrote:
> On Tuesday 01 May 2007 06:02, Eric Bambach wrote:
>   
>> Kern Sibbald wrote:
>>     
>>> Hello,
>>>
>>> I have built a new version of the Win32 binaries, which is labeled 2.0.4 
>>>       
> and 
>   
>>> is version 2.0.3 plus a few fixes, including what I hope will fix the 
>>> ftruncate problem.  Since I have not tested this code, I am not sure what 
>>>       
> it 
>   
>>> will do, so please test it with caution.   In addition to fixing the 
>>> ftruncate problem the LICENSE file is now installed in the correct 
>>>       
> directory 
>   
>>> rather than C:\
>>>
>>> If anyone tests this code, I would appreciate feedback on it.  
>>>
>>> You can find it at:
>>>
>>>  http://www.sibbald.com/download/winbacula-2.0.4.exe
>>> and
>>>  http://www.sibbald.com/download/winbacula-2.0.4.exe.sig
>>>
>>> Please note, you must explicitly ask for those files as my web site does 
>>>       
> not 
>   
>>> permit listing the contents of that directory.
>>>
>>> Best regards,
>>>
>>> Kern
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> Bacula-users mailing list
>>> Bacula-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>   
>>>       
>> Kern,
>>
>>     Since I have a considerable backup history going now (with volumes 
>> all capped at 2GB ;)  I created a new pool, file storage device in a new 
>> directory, and a new job which uses an existing client to fill up some 
>> tapes.  First I ran a full backup and cancelled it so there would be 
>> some full volumes. Next I used purge volume on all the volumes then ran 
>> the backup again. It appended to a tape before erroring out. It's 
>> interesting that the truncate error went from invalid argument to 
>> permission denied. I checked the permissions and they were set to 
>> everyone full control on the directory and all the volumes. Note that 
>> this happened immediately the first time it tried to truncate the file. 
>> i.e. it didn't work once :(
>>     
>
> Disappointing but not too surprising.  The good news is that since the error 
> message is different from before, it shows that it is really my code that is 
> being executed, which is definitely a step forward.  Also, once it fails in 
> this way, it is to be expected that it will fail on all truncates.
>
> Apparently, the old Bacula code was never "cleaned" up after the conversion 
> to 
> mingw, which means I got confused on how to deal with the file handle (there 
> are two different conventions).  This means the current failure is most 
> likely that I am passing a bad file handle to the Win32 API.
>
> I have "corrected" the bad file handle problem (hopefully) and posted the new 
> binaries to my web site in the same location (see above from my previous 
> email).  The name of the binary is the same, but the Bacula build date is 02 
> May.
>
> Please try this version.  If nothing else, in the case of a failure, it 
> should 
> give us a true Win32 error message rather than just "Permission denied".
>
> Thanks for the quick testing.  By the way, if it fails this time, I will need 
> to do significantly more research to fix the problem, but I can as a 
> temporary measure implement two "kludges", which I have not yet done: 1. make 
> it use the old code for the less than 2GB case.  2. Ignore any errors.
>
>   
>>     P.S. as a heads up school is out in a week so you will be losing a 
>> tester very soon! Sorry!
>>     
>
> Thanks for the heads up. Good luck in your studies. I hope we can resolve 
> this 
> before then ...
>
> Regards,
>
> Kern
>
> PS: If anyone has tested this and finds it is failing on all files, the 
> workaround, if required, is simply to re-install the released version 2.0.3.
>
>   
>> 30-Apr 21:44 moe-dir: Start Backup JobId 176, 
>>     
> Job=Santino-Debug.2007-04-30_21.44.50
>   
>> 30-Apr 21:44 moe-sd: Volume "debug-0005" previously written, moving to end 
>>     
> of data.
>   
>> 30-Apr 22:08 moe-sd: User defined maximum volume capacity 3,000,000,000 
>>     
> exceeded on device "FileStorage2" (E:\Bacula-Storage-Debug).
>   
>> 30-Apr 22:08 moe-sd: End of medium on Volume "debug-0005" 
>>     
> Bytes=2,999,959,619 Blocks=46,503 at 30-Apr-2007 22:08.
>   
>> 30-Apr 22:08 moe-dir: Recycled volume "debug-0001"
>> 30-Apr 22:08 moe-sd: Santino-Debug.2007-04-30_21.44.50 Fatal 
>>     
> error: ../../stored/label.c:448 Truncate error on device "FileStorage2" (E:
> \Bacula-Storage-Debug): ERR=../../stored/dev.c:1943 Unable to truncate 
> device "FileStorage2" (E:\Bacula-Storage-Debug). ERR=Permission denied
>   
>> 30-Apr 22:08 moe-sd: Marking Volume "debug-0001" in Error in Catalog.
>> 30-Apr 22:08 moe-sd: Santino-Debug.2007-04-30_21.44.50 Fatal error: Job 176 
>>     
> canceled.
>   
>> 30-Apr 22:08 moe-sd: Job write elapsed time = 00:23:13, Transfer rate = 
>>     
> 1.886 M bytes/second
>   
>> 30-Apr 22:06 santino.star.niu.edu-fd: Santino-Debug.2007-04-30_21.44.50 
>>     
> Fatal error: backup.c:477 Network send error 32784 to SD. ERR=Connection 
> reset by peer
>   
>> 30-Apr 22:08 moe-dir: Santino-Debug.2007-04-30_21.44.50 Error: Bacula 2.0.4 
>>     
> (30Apr07): 30-Apr-2007 22:08:09
>   
>>   JobId:                  176
>>   Job:                    Santino-Debug.2007-04-30_21.44.50
>>   Backup Level:           Full
>>   Client:                 "santino-fd" i386-pc-linux-gnu,debian,3.1
>>   FileSet:                "Full Linux Root" 2007-04-02 01:00:53
>>   Pool:                   "DebugPool" (From Job resource)
>>   Storage:                "Debug-File" (From Job resource)
>>   Scheduled time:         30-Apr-2007 21:44:42
>>   Start time:             30-Apr-2007 21:44:56
>>   End time:               30-Apr-2007 22:08:09
>>   Elapsed time:           23 mins 13 secs
>>   Priority:               10
>>   FD Files Written:       174,692
>>   SD Files Written:       174,692
>>   FD Bytes Written:       2,606,293,192 (2.606 GB)
>>   SD Bytes Written:       2,627,522,312 (2.627 GB)
>>   Rate:                   1871.0 KB/s
>>   Software Compression:   46.4 %
>>   VSS:                    no
>>   Encryption:             no
>>   Volume name(s):         debug-0005|debug-0001
>>   Volume Session Id:      2
>>   Volume Session Time:    1177983166
>>   Last Volume Bytes:      64,753 (64.75 KB)
>>   Non-fatal FD errors:    0
>>   SD Errors:              0
>>   FD termination status:  Error
>>   SD termination status:  Error
>>
>>
>>
>>
>>   Termination:            *** Backup Error ***
>>
>>     
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>   
Kern,

    Quick tests show that this 2.0.4 (v2) works! I recycled the files 
about twice each (5 files) and It didn't error. The error at the end is 
probably because I issued a cancel job. I wanted just enough data to 
fill a few files and a couple runs to prove purging/recycling works. 2 
test runs below with the successful recycling if you need them.

    Thanks for your hard work!

02-May 21:51 moe-dir: Start Backup JobId 192, 
Job=Santino-Debug.2007-05-02_21.51.42
02-May 21:51 moe-sd: Volume "debug-0005" previously written, moving to end of 
data.
02-May 22:04 moe-sd: User defined maximum volume capacity 3,000,000,000 
exceeded on device "FileStorage2" (E:\Bacula-Storage-Debug).
02-May 22:04 moe-sd: End of medium on Volume "debug-0005" Bytes=2,999,936,758 
Blocks=46,502 at 02-May-2007 22:04.
02-May 22:04 moe-dir: Recycled volume "debug-0002"
02-May 22:04 moe-sd: Recycled volume "debug-0002" on device "FileStorage2" 
(E:\Bacula-Storage-Debug), all previous data lost.
02-May 22:04 moe-sd: New volume "debug-0002" mounted on device "FileStorage2" 
(E:\Bacula-Storage-Debug) at 02-May-2007 22:04.
02-May 22:22 moe-sd: User defined maximum volume capacity 3,000,000,000 
exceeded on device "FileStorage2" (E:\Bacula-Storage-Debug).
02-May 22:22 moe-sd: End of medium on Volume "debug-0002" Bytes=2,999,936,989 
Blocks=46,502 at 02-May-2007 22:22.
02-May 22:22 moe-dir: Recycled volume "debug-0003"
02-May 22:22 moe-sd: Recycled volume "debug-0003" on device "FileStorage2" 
(E:\Bacula-Storage-Debug), all previous data lost.
02-May 22:22 moe-sd: New volume "debug-0003" mounted on device "FileStorage2" 
(E:\Bacula-Storage-Debug) at 02-May-2007 22:22.
02-May 22:27 moe-sd: Santino-Debug.2007-05-02_21.51.42 Fatal error: 
../../stored/append.c:259 Network error on data channel. ERR=Unknown error
02-May 22:27 moe-sd: Job write elapsed time = 00:35:37, Transfer rate = 2.220 M 
bytes/second
02-May 22:25 santino.star.niu.edu-fd: Santino-Debug.2007-05-02_21.51.42 Fatal 
error: backup.c:477 Network send error 32772 to SD. ERR=Success
02-May 22:27 moe-dir: Bacula 2.0.4 (02May07): 02-May-2007 22:27:29
  JobId:                  192
  Job:                    Santino-Debug.2007-05-02_21.51.42
  Backup Level:           Full
  Client:                 "santino-fd" i386-pc-linux-gnu,debian,3.1
  FileSet:                "Full Linux Root" 2007-04-02 01:00:53
  Pool:                   "DebugPool" (From Job resource)
  Storage:                "Debug-File" (From Job resource)
  Scheduled time:         02-May-2007 21:51:36
  Start time:             02-May-2007 21:51:47
  End time:               02-May-2007 22:27:29
  Elapsed time:           35 mins 42 secs
  Priority:               10
  FD Files Written:       240,266
  SD Files Written:       240,266
  FD Bytes Written:       4,715,688,623 (4.715 GB)
  SD Bytes Written:       4,746,078,207 (4.746 GB)
  Rate:                   2201.5 KB/s
  Software Compression:   39.5 %
  VSS:                    no
  Encryption:             no
  Volume name(s):         debug-0005|debug-0002|debug-0003
  Volume Session Id:      2
  Volume Session Time:    1178155063
  Last Volume Bytes:      756,529,154 (756.5 MB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  Canceled
  SD termination status:  Error
  Termination:            Backup Canceled


=============================

02-May 20:22 moe-dir: Start Backup JobId 191, 
Job=Santino-Debug.2007-05-02_20.22.00
02-May 20:22 moe-dir: Recycled volume "debug-0002"
02-May 20:22 moe-sd: Recycled volume "debug-0002" on device "FileStorage2" 
(E:\Bacula-Storage-Debug), all previous data lost.
02-May 20:54 moe-sd: User defined maximum volume capacity 3,000,000,000 
exceeded on device "FileStorage2" (E:\Bacula-Storage-Debug).
02-May 20:54 moe-sd: End of medium on Volume "debug-0002" Bytes=2,999,936,739 
Blocks=46,502 at 02-May-2007 20:54.
02-May 20:54 moe-dir: Recycled volume "debug-0003"
02-May 20:54 moe-sd: Recycled volume "debug-0003" on device "FileStorage2" 
(E:\Bacula-Storage-Debug), all previous data lost.
02-May 20:54 moe-sd: New volume "debug-0003" mounted on device "FileStorage2" 
(E:\Bacula-Storage-Debug) at 02-May-2007 20:54.
02-May 21:10 moe-sd: User defined maximum volume capacity 3,000,000,000 
exceeded on device "FileStorage2" (E:\Bacula-Storage-Debug).
02-May 21:10 moe-sd: End of medium on Volume "debug-0003" Bytes=2,999,936,946 
Blocks=46,502 at 02-May-2007 21:10.
02-May 21:10 moe-dir: Recycled volume "debug-0004"
02-May 21:10 moe-sd: Recycled volume "debug-0004" on device "FileStorage2" 
(E:\Bacula-Storage-Debug), all previous data lost.
02-May 21:10 moe-sd: New volume "debug-0004" mounted on device "FileStorage2" 
(E:\Bacula-Storage-Debug) at 02-May-2007 21:10.
02-May 21:20 moe-sd: User defined maximum volume capacity 3,000,000,000 
exceeded on device "FileStorage2" (E:\Bacula-Storage-Debug).
02-May 21:20 moe-sd: End of medium on Volume "debug-0004" Bytes=2,999,937,118 
Blocks=46,502 at 02-May-2007 21:20.
02-May 21:20 moe-dir: Recycled volume "debug-0001"
02-May 21:20 moe-sd: Labeled new Volume "debug-0001" on device "FileStorage2" 
(E:\Bacula-Storage-Debug).
02-May 21:20 moe-sd: Wrote label to prelabeled Volume "debug-0001" on device 
"FileStorage2" (E:\Bacula-Storage-Debug)
02-May 21:20 moe-sd: New volume "debug-0001" mounted on device "FileStorage2" 
(E:\Bacula-Storage-Debug) at 02-May-2007 21:20.
02-May 21:34 moe-sd: User defined maximum volume capacity 3,000,000,000 
exceeded on device "FileStorage2" (E:\Bacula-Storage-Debug).
02-May 21:34 moe-sd: End of medium on Volume "debug-0001" Bytes=2,999,937,141 
Blocks=46,502 at 02-May-2007 21:34.
02-May 21:34 moe-dir: Recycled volume "debug-0005"
02-May 21:34 moe-sd: Recycled volume "debug-0005" on device "FileStorage2" 
(E:\Bacula-Storage-Debug), all previous data lost.
02-May 21:34 moe-sd: New volume "debug-0005" mounted on device "FileStorage2" 
(E:\Bacula-Storage-Debug) at 02-May-2007 21:34.
02-May 21:45 santino.star.niu.edu-fd: Santino-Debug.2007-05-02_20.22.00 Fatal 
error: backup.c:477 Network send error 27080 to SD. ERR=Input/output error
02-May 21:46 moe-dir: Bacula 2.0.4 (02May07): 02-May-2007 21:46:47
  JobId:                  191
  Job:                    Santino-Debug.2007-05-02_20.22.00
  Backup Level:           Full
  Client:                 "santino-fd" i386-pc-linux-gnu,debian,3.1
  FileSet:                "Full Linux Root" 2007-04-02 01:00:53
  Pool:                   "DebugPool" (From Job resource)
  Storage:                "Debug-File" (From Job resource)
  Scheduled time:         02-May-2007 20:21:53
  Start time:             02-May-2007 20:22:05
  End time:               02-May-2007 21:46:47
  Elapsed time:           1 hour 24 mins 42 secs
  Priority:               10
  FD Files Written:       299,519
  SD Files Written:       0
  FD Bytes Written:       14,635,710,080 (14.63 GB)
  SD Bytes Written:       0 (0 B)
  Rate:                   2879.9 KB/s
  Software Compression:   22.2 %
  VSS:                    no
  Encryption:             no
  Volume name(s):         debug-0002|debug-0003|debug-0004|debug-0001|debug-0005
  Volume Session Id:      1
  Volume Session Time:    1178155063
  Last Volume Bytes:      1,999,872,050 (1.999 GB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  Canceled
  SD termination status:  Running
  Termination:            Backup Canceled



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to