[Box Backup] Troubleshooting "Connection TLSWriteFailed 7/33" on OS X server/client setup

Tobias Balle-Petersen boxbackup@fluffy.co.uk
Mon, 07 Aug 2006 16:06:42 +0200


>
> After bbackupd retries, does it succeed? Might you have a dodgy 
> connection to the server? (getting the obvious out of the way)
>
bbackupd never seems to retry. How soon is it supposed to retry?

My client backups to two stores. One store is at a remote facility, the 
other is on the LAN. The errors occur on connections to both stores.
It's possible I have a network problems. How would I be able to 
determine if that is where my problem originates?

> Are the discs full on your server?
No, se stats below.
>
> What are the account stats?

Store on LAN:
Used  1388578.2Mb  82% ********************************
Old files     7465.0Mb   0%
Deleted files   117210.1Mb   6% **
Directories      995.0Mb   0%
Soft limit  1536000.0Mb  90% ************************************
Hard limit  1689600.0Mb 100% ****************************************


Store at remote location:
Used  1853036.0Mb  75% ******************************
Old files    24185.1Mb   0%
Deleted files   391448.4Mb  15% ******
Directories     5432.4Mb   0%
Soft limit  2355200.0Mb  95% **************************************
Hard limit  2457600.0Mb 100% ****************************************



Thanks



>
> Ben
>
>
> On 7 Aug 2006, at 14:48, Tobias Balle-Petersen wrote:
>
>> Hello...
>>
>> Turns out extended logging was enabled on the server.  This is all I 
>> get (not running debug server).
>>
>> Aug  7 14:12:18 maigo bbstored[8586]: Receive 
>> StoreFile(0x1c04f4,0x418759c198100,0x9b696d3c9c56b06f,0x0,OPAQUE)
>> Aug  7 14:12:18 maigo bbstored[8586]: Receive 
>> StoreFile(0x1c04f4,0x418759c198100,0x9b696d3c9c56b06f,0x0,OPAQUE)
>> Aug  7 14:12:19 maigo bbstored[8586]: Receiving stream, size uncertain
>> Aug  7 14:12:19 maigo bbstored[8586]: Send Success(0x1c04f5)
>> Aug  7 14:12:19 maigo bbstored[8586]: Send Success(0x1c04f5)
>> Aug  7 14:12:19 maigo bbstored[8586]: Receive 
>> StoreFile(0x1c04f4,0x41874f6384b40,0x219eb70753911453,0x0,OPAQUE)
>> Aug  7 14:12:19 maigo bbstored[8586]: Receive 
>> StoreFile(0x1c04f4,0x41874f6384b40,0x219eb70753911453,0x0,OPAQUE)
>> Aug  7 14:12:19 maigo bbstored[8586]: Receiving stream, size uncertain
>> Aug  7 14:24:55 maigo bbstored/hk[241]: Starting housekeeping
>> Aug  7 14:24:55 maigo bbstored/hk[241]: Finished housekeeping
>> Aug  7 14:26:31 maigo bbstored[8586]: Connection statistics for 
>> BACKUP-A: IN=3315979694 OUT=965309836 TOTAL=4281289530\n
>> Aug  7 14:26:31 maigo bbstored[8586]: in server child, exception 
>> Connection TLSReadFailed (Probably a network issue between client and 
>> server.) (7/34) -- terminating
>> child
>>
>>
>> This is my bbstored.conf on the server:
>> RaidFileConf = /etc/box/raidfile.conf
>> AccountDatabase = /etc/box/bbstored/accounts.txt
>>
>> # Uncomment this line to see exactly what commands are being received 
>> from clients.
>> ExtendedLogging = yes
>>
>> # scan all accounts for files which need deleting every 15 minutes.
>>
>> TimeBetweenHousekeeping = 900
>>
>> Server
>> {
>>        PidFile = /var/run/bbstored.pid
>>        User = box
>>        ListenAddresses = inet:xxxxxx
>>        CertificateFile = /etc/box/bbstored/xxxxxx-cert.pem
>>        PrivateKeyFile = /etc/box/bbstored/xxxxxx-key.pem
>>        TrustedCAsFile = /etc/box/bbstored/clientCA.pem
>> }
>> '
>>
>> Thanks
>>
>>
>>
>>
>> Ben Summers wrote:
>>>
>>> On 7 Aug 2006, at 14:25, Tobias Balle-Petersen wrote:
>>>
>>>> Hello...
>>>>
>>>> Thanks for the advice, I'll give it a try and post the results.
>>>>
>>>> I am wondering though... How can a certificate be "kind of OK" ? My 
>>>> backup runs, but usually quits
>>>> at some point with the errors seen in my original logfile? The 
>>>> certificate is not rejected at the time of connection?
>>>
>>> Sorry, I assumed from your message it never made a connection. 
>>> Certificates either work or don't work.
>>>
>>> So, what does the log look like on the server when you set 
>>> ExtendedLogging = yes ?
>>>
>>> Ben
>>>
>>>
>>>
>>>> Ben Summers wrote:
>>>>>
>>>>> On 7 Aug 2006, at 14:17, Tobias Balle-Petersen wrote:
>>>>>
>>>>>> Hello...
>>>>>>
>>>>>>
>>>>>> Would I be able to create new certificates without having to 
>>>>>> recreate my store?
>>>>>
>>>>> Yes, as long as the account numbers do not change for the clients.
>>>>>
>>>>>> If yes, how is the procedure different than the initial procedure?
>>>>>
>>>>> It isn't. Certificates are replaceable.
>>>>>
>>>>> But... don't let the config scripts overwrite the keys file. (.raw 
>>>>> extension)
>>>>>
>>>>> Ben
>>>>>
>>>>>
>>>>>>
>>>>>> Ben Summers wrote:
>>>>>>>
>>>>>>> Are the clocks synchronised?
>>>>>>>
>>>>>>> Did you follow the certificate generation process exactly? 
>>>>>>> Rememebering that server and client certificates have different 
>>>>>>> signing commands?
>>>>>>>
>>>>>>> Ben
>>>>>>>
>>>>>>>
>>>>>>> On 7 Aug 2006, at 13:32, Tobias Balle-Petersen wrote:
>>>>>>>
>>>>>>>> Hello...
>>>>>>>>
>>>>>>>> I keep getting errors like the ones seen below when backing up 
>>>>>>>> my OS X client to my OS X server. Any ideas?
>>>>>>>> I'm running the debug client.
>>>>>>>>
>>>>>>>>
>>>>>>>> Aug  7 14:26:34 yoiko bbackupd[27003]: TRACE: Exception thrown: 
>>>>>>>> ConnectionException(Conn_TLSWriteFailed) at 
>>>>>>>> SocketStreamTLS.cpp(426)\n
>>>>>>>> Aug  7 14:26:34 yoiko bbackupd[27003]: SSL err during Write: 
>>>>>>>> error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry
>>>>>>>> Aug  7 14:26:34 yoiko bbackupd[27003]: TRACE: Exception thrown: 
>>>>>>>> ConnectionException(Conn_TLSWriteFailed) at 
>>>>>>>> SocketStreamTLS.cpp(426)\n
>>>>>>>> Aug  7 14:26:34 yoiko bbackupd[27003]: Exception caught 
>>>>>>>> (Connection TLSWriteFailed 7/33), reset state and waiting to 
>>>>>>>> retry...
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Tobias Balle-Petersen
>>>>>>>> _______________________________________________
>>>>>>>> boxbackup mailing list
>>>>>>>> boxbackup@fluffy.co.uk
>>>>>>>> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> boxbackup mailing list
>>>>>>> boxbackup@fluffy.co.uk
>>>>>>> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> boxbackup mailing list
>>>>>> boxbackup@fluffy.co.uk
>>>>>> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>>>>>
>>>>> _______________________________________________
>>>>> boxbackup mailing list
>>>>> boxbackup@fluffy.co.uk
>>>>> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>>>>>
>>>>
>>>> _______________________________________________
>>>> boxbackup mailing list
>>>> boxbackup@fluffy.co.uk
>>>> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>>>
>>> _______________________________________________
>>> boxbackup mailing list
>>> boxbackup@fluffy.co.uk
>>> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>>>
>>
>> _______________________________________________
>> boxbackup mailing list
>> boxbackup@fluffy.co.uk
>> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>
> _______________________________________________
> boxbackup mailing list
> boxbackup@fluffy.co.uk
> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>