[Box Backup] Troubleshooting "Connection TLSWriteFailed 7/33"
on OS X server/client setup
Tobias Balle-Petersen
boxbackup@fluffy.co.uk
Mon, 07 Aug 2006 15:48:27 +0200
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
>