From enrio at online.no Thu May 7 16:35:32 2015 From: enrio at online.no (Enrique Perez-Terron) Date: Thu, 07 May 2015 17:35:32 +0200 Subject: [Box Backup] Strange eventlog message (win32 client) Message-ID: Hello, After having let an installation bit rot for a while, I am trying to resuscitate it, and now I am seeing an error in the event log on the Windows 7 client: Failed to create the registry key: Operasjonen er fullf?rt(0) where the nationalized (Norwegian) part translates approximately as "the operation has completed". I tend to think that this must be a translation of the message corresponding to the ERROR_SUCCESS code. I also suspect that the zero in parenthesis is the numerical code. The server side is running the current Ubuntu boxbackup-server-0.11.1~r2837-1 Looking at the source corresponding to this package, I find this snippet in lib/win32/emu.cpp:1246 if (RegCreateKeyEx(HKEY_LOCAL_MACHINE, regkey.c_str(), 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hk, &dwDisp)) { ::syslog(LOG_ERR, "Failed to create the registry key: %s", GetErrorMessage(GetLastError()).c_str()); return FALSE; } My question: Was the code in build M3005 any different? The behavior looks so strange. My windows install is an unpacking of boxbackup-trunk_3005M-backup-client-mingw32 into the directory C:\Program Files\Box Backup\ with only the most obvious changes to bbackupd.conf: $ diff bbackupd.conf '/c/Program Files/Box Backup/bbackupd.conf' 2,4c2,4 < StoreHostname = yourhost < AccountNumber = 0x1 < KeysFile = C:\Program Files\Box Backup\1-FileEncKeys.raw --- > StoreHostname = jerv > AccountNumber = 0x70286361 > KeysFile = C:\Program Files\Box Backup\70286361-FileEncKeys.raw 6,7c6,7 < CertificateFile = C:\Program Files\Box Backup\1-cert.pem < PrivateKeyFile = C:\Program Files\Box Backup\1-key.pem --- > CertificateFile = C:\Program Files\Box Backup\70286361-cert.pem > PrivateKeyFile = C:\Program Files\Box Backup\70286361-key.pem and similar changes to NotifySysadmin.vbs, and the addition of the following files: ./70286361-cert.pem ./70286361-FileEncKeys.raw ./70286361-key.pem ./bbackupd/bbackupd.pid ./bbackupd/last_sync_finish ./bbackupd/last_sync_start ./bbackupd/mnt_62cf6f81.n ./serverCA.pem (where the files in the bbackupd directory have been created by the program). Regards, Enrique From orzel at freehackers.org Thu May 7 21:32:22 2015 From: orzel at freehackers.org (orzel at freehackers.org) Date: Thu, 07 May 2015 22:32:22 +0200 Subject: [Box Backup] Planning to release 1.0 In-Reply-To: References: Message-ID: <554BCBD6.7030704@freehackers.org> On 21/12/2014 12:16, Chris Wilson wrote: > The release should hopefully happen in the next few weeks, as soon as I > get all tests passing on Windows, NetBSD and OpenBSD (and maybe Hello, Any news about the release of 1.0 ? regards, -- Thomas Capricelli From chris at qwirx.com Mon May 11 16:02:52 2015 From: chris at qwirx.com (Chris Wilson) Date: Mon, 11 May 2015 16:02:52 +0100 (BST) Subject: [Box Backup] Planning to release 1.0 In-Reply-To: <554BCBD6.7030704@freehackers.org> References: <554BCBD6.7030704@freehackers.org> Message-ID: Hi, On Thu, 7 May 2015, orzel at freehackers.org wrote: > On 21/12/2014 12:16, Chris Wilson wrote: >> The release should hopefully happen in the next few weeks, as soon as I >> get all tests passing on Windows, NetBSD and OpenBSD (and maybe > > Any news about the release of 1.0 ? I decided not to call the next release 1.0 due to feedback from some users. I am working on making all tests pass on all platforms so that I can release 0.13 as soon as possible. Cheers, Chris. -- _____ __ _ \ __/ / ,__(_)_ | Chris Wilson Cambs UK | / (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer | \__/_/_/_//_/___/ | We are GNU : free your mind & your software | From chris at qwirx.com Sat May 16 11:14:32 2015 From: chris at qwirx.com (Chris Wilson) Date: Sat, 16 May 2015 11:14:32 +0100 (BST) Subject: [Box Backup] Strange eventlog message (win32 client) In-Reply-To: References: Message-ID: Dear Enrique, When I got back I re-read your message and realised that I had completely misunderstood what you were saying when I scanned it in a hurry before leaving. My previous advice was therefore not useful at all. I'm really sorry about that. You are right that something is wrong with the call to RegCreateKeyEx. This code has not changed for a very long time, and does not usually fail in my experience. It could be a permissions issue. I read on MSDN that unlike the rest of the Win32 API, the Reg* functions return their error code directly instead of through GetLastError(). This is almost certainly why the wrong error message is displayed. I have just committed a fix for this. I've also built a new client, this time 64-bit, using the latest trunk code and Cygwin/MinGW64 compiler, which you can find here: https://www.boxbackup.org/svn/box/chris/win32/releases/boxbackup-trunk_3568-backup-client-x86_64-w64-mingw32.tgz Please could you give it a try and let me know if it provides more useful error messages to help you find out why the registry calls are not working? (Anyone who would like to try the latest Windows client, please feel free to test this version too.) I hope this helps to fix the problem! Thanks, Chris. On Thu, 7 May 2015, Enrique Perez-Terron wrote: > > Hello, > > After having let an installation bit rot for a while, I am trying to > resuscitate it, and now I am seeing an error in the event log on the Windows > 7 client: > > Failed to create the registry key: Operasjonen er fullf?rt(0) > > where the nationalized (Norwegian) part translates approximately as "the > operation has completed". > > I tend to think that this must be a translation of the message corresponding > to the ERROR_SUCCESS code. I also suspect that the zero in parenthesis is the > numerical code. > > The server side is running the current Ubuntu boxbackup-server-0.11.1~r2837-1 > Looking at the source corresponding to this package, I find this snippet in > lib/win32/emu.cpp:1246 > > if (RegCreateKeyEx(HKEY_LOCAL_MACHINE, regkey.c_str(), > 0, NULL, REG_OPTION_NON_VOLATILE, > KEY_WRITE, NULL, &hk, &dwDisp)) > { > ::syslog(LOG_ERR, "Failed to create the registry key: %s", > GetErrorMessage(GetLastError()).c_str()); > return FALSE; > } > > > My question: Was the code in build M3005 any different? The behavior looks so > strange. > > My windows install is an unpacking of > boxbackup-trunk_3005M-backup-client-mingw32 > into the directory > C:\Program Files\Box Backup\ > with only the most obvious changes to bbackupd.conf: > $ diff bbackupd.conf '/c/Program Files/Box Backup/bbackupd.conf' > 2,4c2,4 > < StoreHostname = yourhost > < AccountNumber = 0x1 > < KeysFile = C:\Program Files\Box Backup\1-FileEncKeys.raw > --- >> StoreHostname = jerv >> AccountNumber = 0x70286361 >> KeysFile = C:\Program Files\Box Backup\70286361-FileEncKeys.raw > 6,7c6,7 > < CertificateFile = C:\Program Files\Box Backup\1-cert.pem > < PrivateKeyFile = C:\Program Files\Box Backup\1-key.pem > --- >> CertificateFile = C:\Program Files\Box Backup\70286361-cert.pem >> PrivateKeyFile = C:\Program Files\Box Backup\70286361-key.pem > > and similar changes to > NotifySysadmin.vbs, > and the addition of the following files: > ./70286361-cert.pem > ./70286361-FileEncKeys.raw > ./70286361-key.pem > ./bbackupd/bbackupd.pid > ./bbackupd/last_sync_finish > ./bbackupd/last_sync_start > ./bbackupd/mnt_62cf6f81.n > ./serverCA.pem > (where the files in the bbackupd directory have been created by the program). > > Regards, > Enrique > _______________________________________________ > Boxbackup mailing list > Boxbackup at boxbackup.org > http://lists.boxbackup.org/mailman/listinfo/boxbackup > -- _____ __ _ \ __/ / ,__(_)_ | Chris Wilson Cambs UK | / (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer | \__/_/_/_//_/___/ | We are GNU : free your mind & your software | From brendon at netcal.com Fri May 29 18:12:12 2015 From: brendon at netcal.com (Brendon Baumgartner) Date: Fri, 29 May 2015 17:12:12 +0000 Subject: [Box Backup] machine readable option gone? Message-ID: Hello. It seems the "-m" option is gone in build 3572. The command below give me help. If I remove -m, it works. # /usr/sbin/bbstoreaccounts info -m 2 Thanks. From chris at qwirx.com Fri May 29 18:52:16 2015 From: chris at qwirx.com (Chris Wilson) Date: Fri, 29 May 2015 18:52:16 +0100 (CET) Subject: [Box Backup] machine readable option gone? In-Reply-To: References: Message-ID: Hi Brendon, On Fri, 29 May 2015, Brendon Baumgartner wrote: > It seems the "-m" option is gone in build 3572. The command below give > me help. If I remove -m, it works. > > # /usr/sbin/bbstoreaccounts info -m 2 That's interesting. The code is still there and it works for me: undertaker:bbackupd chris$ ../../bin/bbstoreaccounts/bbstoreaccounts -c testfiles/bbstored.conf info 1234567 -m Account ID: 0x01234567 Account Name: Last object ID: 0xe Used: 45 blocks, 90.00 kB, 0% | | Current files: 35 blocks, 70.00 kB, 0% | | Old files: 0 blocks, 0.00 B, 0% | | Deleted files: 0 blocks, 0.00 B, 0% | | Directories: 10 blocks, 20.00 kB, 0% | | Soft limit: 10000 blocks, 19.53 MB, 50% |******** | Hard limit: 20000 blocks, 39.06 MB, 100% |****************| Client store marker: 0 Current Files: 9 Old Files: 0 Deleted Files: 0 Directories: 5 Enabled: yes undertaker:bbackupd chris$ ../../bin/bbstoreaccounts/bbstoreaccounts -mc testfiles/bbstored.conf info 1234567 Account ID: 0x01234567 Account Name: Last object ID: 0xe Used: 90 kB, 0% Current files: 70 kB, 0% Old files: 0 kB, 0% Deleted files: 0 kB, 0% Directories: 20 kB, 0% Soft limit: 20000 kB, 50% Hard limit: 40000 kB, 100% Client store marker: 0 Current Files: 9 Old Files: 0 Deleted Files: 0 Directories: 5 Enabled: yes I'm not sure what results you actually get. Also, what platform are you on? And could you try placing the -m option before the "info" command instead of after? Thanks, Chris. -- _____ __ _ \ __/ / ,__(_)_ | Chris Wilson Cambs UK | / (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer | \__/_/_/_//_/___/ | We are GNU : free your mind & your software | From brendon at netcal.com Fri May 29 21:04:54 2015 From: brendon at netcal.com (Brendon Baumgartner) Date: Fri, 29 May 2015 20:04:54 +0000 Subject: [Box Backup] machine readable option gone? In-Reply-To: References: Message-ID: Sorry for top-posting. I can't get outlook to behave today. After playing with it a bit, I find that this works: bbstoreaccounts -mc /etc/boxbackup/bbstored.conf info 2 From: Boxbackup [mailto:boxbackup-bounces at boxbackup.org] On Behalf Of Chris Wilson Sent: Friday, May 29, 2015 10:52 To: Box Backup Subject: Re: [Box Backup] machine readable option gone? Hi Brendon, On Fri, 29 May 2015, Brendon Baumgartner wrote: > It seems the "-m" option is gone in build 3572. The command below give > me help. If I remove -m, it works. > > # /usr/sbin/bbstoreaccounts info -m 2 That's interesting. The code is still there and it works for me: undertaker:bbackupd chris$ ../../bin/bbstoreaccounts/bbstoreaccounts -c testfiles/bbstored.conf info 1234567 -m Account ID: 0x01234567 Account Name: Last object ID: 0xe Used: 45 blocks, 90.00 kB, 0% | | Current files: 35 blocks, 70.00 kB, 0% | | Old files: 0 blocks, 0.00 B, 0% | | Deleted files: 0 blocks, 0.00 B, 0% | | Directories: 10 blocks, 20.00 kB, 0% | | Soft limit: 10000 blocks, 19.53 MB, 50% |******** | Hard limit: 20000 blocks, 39.06 MB, 100% |****************| Client store marker: 0 Current Files: 9 Old Files: 0 Deleted Files: 0 Directories: 5 Enabled: yes undertaker:bbackupd chris$ ../../bin/bbstoreaccounts/bbstoreaccounts -mc testfiles/bbstored.conf info 1234567 Account ID: 0x01234567 Account Name: Last object ID: 0xe Used: 90 kB, 0% Current files: 70 kB, 0% Old files: 0 kB, 0% Deleted files: 0 kB, 0% Directories: 20 kB, 0% Soft limit: 20000 kB, 50% Hard limit: 40000 kB, 100% Client store marker: 0 Current Files: 9 Old Files: 0 Deleted Files: 0 Directories: 5 Enabled: yes I'm not sure what results you actually get. Also, what platform are you on? And could you try placing the -m option before the "info" command instead of after? Thanks, Chris. -- _____ __ _ \ __/ / ,__(_)_ | Chris Wilson Cambs UK | / (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer | \__/_/_/_//_/___/ | We are GNU : free your mind & your software | _______________________________________________ Boxbackup mailing list Boxbackup at boxbackup.org http://lists.boxbackup.org/mailman/listinfo/boxbackup ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: