Re: [Bacula-users] Unexpected cryptographic session data stream on restore

2012-10-01 Thread lst_hoe02

Zitat von Martin Simmons :

>> On Fri, 28 Sep 2012 17:25:42 +0200, lst hoe02 said:
>>
>> It looks like the error arises if the FD does not overwrite some files
>> on restore. This confuses the PKI code and subsequent file restore
>> fails also. In our case it was a fresh formated NTFS partition with a
>> restore with replace=never and the hidden "System Volume Information"
>> stops the restore.
>>
>> There was also a report some time ago:
>> http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg50628.html
>>
>> Should i create a bug report or have i missed something obvious?
>
> I think you should report it as a bug.
>
> __Martin

Ok, done

http://bugs.bacula.org/view.php?id=1936

Thanks

Andreas




--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Unexpected cryptographic session data stream on restore

2012-09-28 Thread Martin Simmons
> On Fri, 28 Sep 2012 17:25:42 +0200, lst hoe02 said:
> 
> It looks like the error arises if the FD does not overwrite some files  
> on restore. This confuses the PKI code and subsequent file restore  
> fails also. In our case it was a fresh formated NTFS partition with a  
> restore with replace=never and the hidden "System Volume Information"  
> stops the restore.
> 
> There was also a report some time ago:
> http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg50628.html
> 
> Should i create a bug report or have i missed something obvious?

I think you should report it as a bug.

__Martin

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Unexpected cryptographic session data stream on restore

2012-09-28 Thread lst_hoe02

Zitat von lst_ho...@kwsoft.de:

> Hello
>
> we like to use data encryption but get trouble on restore with the
> following error:
>
> 28-Sep 13:30 bacula-dir JobId 100: Start Restore Job
> RestoreFiles.2012-09-28_13.30.33_06
> 28-Sep 13:30 bacula-dir JobId 100: Using Device "FileStorage"
> 28-Sep 13:30 bacula-sd JobId 100: Ready to read from volume
> "file-0003" on device "FileStorage" (/var/lib/bacula/filestore).
> 28-Sep 13:30 bacula-sd JobId 100: Forward spacing Volume "file-0003"
> to file:block 42:1538520297.
> 28-Sep 14:01 build-rst-fd JobId 100: Error: filed/restore.c:657
> Unexpected cryptographic session data stream.
> 28-Sep 14:01 build-rst-fd JobId 100: Error: filed/restore.c:657
> Unexpected cryptographic session data stream.
>
> and so on
>
> Most of the data in the same job restores fine, but after this error
> we see also many files with 0 bytes size. The scenario is kept simple
> to rule out operator errors. We have 3 windows machines (2x 64 bit xp,
> 1x 32 bit xp) and a Ubuntu Linux 12.04x64 as server. Clients running
> Bacula windows client 5.2.10 32/64 bit and the server Bacula 5.2.12.
> The relevant part of the config from client is
>
> FileDaemon {# this is me
>Name = buildx64-fd
>FDport = 9102# where we listen for the director
>WorkingDirectory = "C:\\Program Files\\Bacula\\working"
>Pid Directory = "C:\\Program Files\\Bacula\\working"
>Maximum Concurrent Jobs = 10
>PKI Signatures = yes
>PKI Encryption = yes
>PKI Master Key = "c:/program files/bacula/master-backup.cert"
>PKI Keypair = "c:/program files/bacula/buildx64-backup.pem"
> }
>
> We have tried two days with many saves and restores on the same
> machine and on different machines with the same keys to no avail. Any
> idea how to debug this further on. How can i get the filename for the
> first error with the "file:block 42:1538520297" info?
>

It looks like the error arises if the FD does not overwrite some files  
on restore. This confuses the PKI code and subsequent file restore  
fails also. In our case it was a fresh formated NTFS partition with a  
restore with replace=never and the hidden "System Volume Information"  
stops the restore.

There was also a report some time ago:
http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg50628.html

Should i create a bug report or have i missed something obvious?

Regards

Andreas



--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Unexpected cryptographic session data stream on restore

2012-09-28 Thread lst_hoe02
Hello

we like to use data encryption but get trouble on restore with the  
following error:

28-Sep 13:30 bacula-dir JobId 100: Start Restore Job  
RestoreFiles.2012-09-28_13.30.33_06
28-Sep 13:30 bacula-dir JobId 100: Using Device "FileStorage"
28-Sep 13:30 bacula-sd JobId 100: Ready to read from volume  
"file-0003" on device "FileStorage" (/var/lib/bacula/filestore).
28-Sep 13:30 bacula-sd JobId 100: Forward spacing Volume "file-0003"  
to file:block 42:1538520297.
28-Sep 14:01 build-rst-fd JobId 100: Error: filed/restore.c:657  
Unexpected cryptographic session data stream.
28-Sep 14:01 build-rst-fd JobId 100: Error: filed/restore.c:657  
Unexpected cryptographic session data stream.

and so on

Most of the data in the same job restores fine, but after this error  
we see also many files with 0 bytes size. The scenario is kept simple  
to rule out operator errors. We have 3 windows machines (2x 64 bit xp,  
1x 32 bit xp) and a Ubuntu Linux 12.04x64 as server. Clients running  
Bacula windows client 5.2.10 32/64 bit and the server Bacula 5.2.12.  
The relevant part of the config from client is

FileDaemon {# this is me
   Name = buildx64-fd
   FDport = 9102# where we listen for the director
   WorkingDirectory = "C:\\Program Files\\Bacula\\working"
   Pid Directory = "C:\\Program Files\\Bacula\\working"
   Maximum Concurrent Jobs = 10
   PKI Signatures = yes
   PKI Encryption = yes
   PKI Master Key = "c:/program files/bacula/master-backup.cert"
   PKI Keypair = "c:/program files/bacula/buildx64-backup.pem"
}

We have tried two days with many saves and restores on the same  
machine and on different machines with the same keys to no avail. Any  
idea how to debug this further on. How can i get the filename for the  
first error with the "file:block 42:1538520297" info?

Thanks for any help

Regards

Andreas





--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] "Unexpected cryptographic session data stream." on restore with "replace: ifnewer"

2010-11-25 Thread Thomas Mueller
  hi

On restores from encrypted backups if you select "replace: ifnewer": you 
will get flooded by messages like this:

25-Nov 11:39 testhost JobId 3459: Error: restore.c:433 Unexpected cryptographic 
session data stream.
25-Nov 11:39 testhost JobId 3459: Error: restore.c:433 Unexpected cryptographic 
session data stream.
25-Nov 11:39 testhost JobId 3459: Error: restore.c:433 Unexpected cryptographic 
session data stream.


I can can reproduce it. No plugins involved, just plain files. Restoring 
with "replace: always" works with no errors or warnings.

This is with bacula 5.0.2 on Debian Lenny.

- Thomas

--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users