[Box Backup] Danish and other special chars

Gary boxbackup@fluffy.co.uk
Wed, 8 Feb 2006 10:03:09 -0800 (PST)


Chris,

[http://bbdev.fluffy.co.uk/svn/box/chris/win32/releases/boxbackup-0.09_plus2_vc2005fix_r410-backup-client-mingw32.zip]

//
//
//
1. Regex seems to work for file/folder exclusion during runtime (appropriate folders/files do not
get uploaded).

//
//
//
2. I have not confirmed deletion (newly excluded, PREVIOUSLY uploaded, folders/files should be
deleted at the end of a run) since I was not able to complete a backup (see below).

//
//
//
3. Even with "ExtendedLogging = yes", I do not see the KeepAlive() calls. They either don't
happen, or the log has been taken out.

//
//
//
4. Backup of a large file fails with the following log:

2/8/2006	11:50:56 AM	bbackupd	Information	None	4	N/A	SOMESERVER	: File statistics: total file size
uploaded 797318187, bytes already on server 92833139, encoded size 3367328.
2/8/2006	11:49:16 AM	bbackupd	Error	None	4	N/A	SOMESERVER	: Exception caught (Connection
TLSWriteFailed (Probably a network issue between client and server.) 7/33), reset state and
waiting to retry....
2/8/2006	11:49:16 AM	bbackupd	Error	None	4	N/A	SOMESERVER	: SSL err during Write:
error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry.
2/8/2006	11:49:16 AM	bbackupd	Information	None	4	N/A	SOMESERVER	: Send
SetClientStoreMarker(0x40c4b46c15b00).
2/8/2006	11:48:58 AM	bbackupd	Information	None	4	N/A	SOMESERVER	: Sending stream, size uncertain.
2/8/2006	11:48:58 AM	bbackupd	Information	None	4	N/A	SOMESERVER	": Send
StoreFile(0xf,0x40c266d6d1ac0,0x611a54e7e9df0ca9,0x26d7,""seven.hundred.mb.file.dat"")."
2/8/2006	11:38:31 AM	bbackupd	Information	None	4	N/A	SOMESERVER	: Receiving stream, size 937660.
2/8/2006	11:38:30 AM	bbackupd	Information	None	4	N/A	SOMESERVER	: Receive Success(0x26d7).
2/8/2006	11:38:30 AM	bbackupd	Information	None	4	N/A	SOMESERVER	": Send
GetBlockIndexByName(0xf,""seven.hundred.mb.file.dat"")."

If KeepAlive() is not called or fails to re-initialize SSL, the first error should happen right
after "Send StoreFile". Yet, it seems that the file gets diffed for 10 minutes (my
MaximumDiffingTime is 900, thus 15 minutes - it has not expired), the stream gets sent for 1
minute, and SSL bombs out after SetClientStoreMarker.

Now, I am not sure what's happening here, I have not seen this one before. Server stays up, here
is the log:

---

Feb  8 10:41:22 core bbstored[3123]: Incoming connection from 11.11.11.111 port 1792 (handling in
child 17315)
Feb  8 10:41:24 core bbstored[17315]: Certificate CN: BACKUP-549a12c
Feb  8 10:41:24 core bbstored[17315]: Login: Client ID 0549a12c, Read/Write
Feb  8 10:47:21 core bbstored[17315]: in server child, exception Connection TLSReadFailed
(Probably a network issue between client and server.) (7/34) -- terminating child

Feb  8 11:25:34 core bbstored[3123]: Incoming connection from 11.11.11.111 port 2833 (handling in
child 5856)
Feb  8 11:25:36 core bbstored[5856]: Certificate CN: BACKUP-549a12c
Feb  8 11:25:36 core bbstored[5856]: Login: Client ID 0549a12c, Read/Write
Feb  8 11:53:33 core bbstored[5856]: in server child, exception Connection Protocol_Timeout
(Probably a network issue between client and server.) (7/41) -- terminating child
Feb  8 12:38:29 core bbstored/hk[3124]: Starting housekeeping
Feb  8 12:38:36 core bbstored/hk[3124]: On housekeeping, sizes in store do not match calculated
sizes, correcting
Feb  8 12:38:36 core bbstored/hk[3124]: different (store,calc): acc 0x0549a12c, used
(208813,208966), old (137026,137165), deleted (371,371), dirs (919,922)
Feb  8 12:38:36 core bbstored/hk[3124]: Finished housekeeping

---

"/usr/local/bin/bbstoreaccounts check 0x549a12c fix" reports "Store account checked, no errors
found."

//
//
//
5. A FOLDER with non-English characters has been backed up properly, is visible from bbackupquery
console, but with English characters only. You cannot "cd" to it, neither by using English
characters only (as shown by "ls" output), nor by using original non-English characters (from
memory).

6. A FILE with non-English characters INSIDE A FOLDER with non-English characters does not get
backed up, no mention of it in the upload log.

7. Restoring A FOLDER with non-English characters (through restoring its parent) works fine, and
the folder gets restored with correct non-English characters. The folder does NOT contain the
non-English character file (as above).

//
//
//
Some other loose (quality-wise) thoughts about new Win32 client:

a. bbackupctl, bbackupquery seem to look for "C:\Program Files\BoxBackup\bbackupd.conf" as a
default config file. This should be probably changed to bbackupd.conf in the current directory,
since the hard-coded path does not make much sense.

b. There should be a way to specify a config file explicitly when creating a Win32 service
(bbackupd.exe -i). bbackupd.conf is the same directory as bbackupd.exe >>service<< is always used.

c. If you backup from under Cygwin, and then backup from under Win32 (FAT), there is TONS of Send
ChangeDirAttributes activity. If you switch back to Cygwin, you have to go through this again.

d. Every Windows EventLog entry reads: "The description for Event ID ( 4 ) in Source ( bbackupd )
cannot be found. The local computer may not have the necessary registry information or message DLL
files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to
retrieve this description; see Help and Support for details. The following information is part of
the event". This is an error in EventLog writing that could be corrected with an appropriate
resource table entry (from what I remember).

//
//
//
Let me know what you think.

Gary

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com