Closed Bug 426241 Opened 18 years ago Closed 18 years ago

Weave client wiped out server data on first synch after 0.1.27 update

Categories

(Cloud Services :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: abillings, Unassigned)

Details

I updated my home computer to Weave 0.1.27 when it was released yesterday. I've synched often since then. Today, I opened my work laptop, installed 0.1.27 immediately, and then did a synch. Rather than synching down changes from the server, the logs indicate that my work laptop's weave installation decided to wipe the data on the server and do an upload. I'll have to stop weave from synching at home and wipe the server data again, I expect. Here is my verbose log of this first session post 0.1.27 install: 2008-03-31 11:24:49 Service.Main INFO Weave Sync Service Initializing 2008-03-31 11:24:49 Service.Main INFO Weave scheduler enabled 2008-03-31 11:24:49 Service.Main DEBUG Logging in 2008-03-31 11:24:49 Service.Main INFO Using server URL: https://services.mozilla.com/user/dfba9baf82ab25da08625aa27370c44fb46cdf5a/ 2008-03-31 11:24:49 Service.DAV DEBUG Logging in 2008-03-31 11:24:49 Service.DAV DEBUG GET request for 2008-03-31 11:24:50 Service.DAV DEBUG GET request for meta/version 2008-03-31 11:24:50 Service.Main INFO Server version too low. Wiping server data. 2008-03-31 11:24:50 Service.DAV DEBUG PROPFIND request for 2008-03-31 11:24:50 Service.DAV DEBUG DELETE request for meta/ 2008-03-31 11:24:50 Service.Main DEBUG 204 2008-03-31 11:24:50 Service.DAV DEBUG DELETE request for user-data/ 2008-03-31 11:24:50 Service.Main DEBUG 204 2008-03-31 11:24:50 Service.DAV DEBUG DELETE request for private/ 2008-03-31 11:24:50 Service.Main DEBUG 204 2008-03-31 11:24:50 Service.DAV DEBUG DELETE request for .htaccess 2008-03-31 11:24:50 Service.DAV WARN _makeRequest: got status 403 2008-03-31 11:24:50 Service.Main DEBUG 403 2008-03-31 11:24:50 Service.DAV DEBUG DELETE request for public/ 2008-03-31 11:24:50 Service.Main DEBUG 204 2008-03-31 11:24:50 Service.DAV DEBUG GET request for meta/ 2008-03-31 11:24:50 Service.DAV WARN _makeRequest: got status 404 2008-03-31 11:24:50 Service.DAV DEBUG Creating path: meta 2008-03-31 11:24:50 Service.DAV DEBUG MKCOL request for meta 2008-03-31 11:24:50 Service.DAV DEBUG PUT request for meta/version 2008-03-31 11:24:50 Service.DAV DEBUG GET request for private/privkey 2008-03-31 11:24:50 Service.DAV WARN _makeRequest: got status 404 2008-03-31 11:24:50 Service.Main DEBUG Generating new RSA key 2008-03-31 11:24:50 Service.Util DEBUG Running command: /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/extensions/{340c2bbc-ce74-4362-90b5-7c26312808ef}/openssl/unix/exec.sh /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/weave/tmp openssl genrsa -out privkey.pem 2048 2008-03-31 11:24:53 Service.Util DEBUG Running command: /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/extensions/{340c2bbc-ce74-4362-90b5-7c26312808ef}/openssl/unix/exec.sh /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/weave/tmp openssl rsa -in privkey.pem -out pubkey.pem -outform PEM -pubout 2008-03-31 11:24:53 Service.Util DEBUG Running command: /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/extensions/{340c2bbc-ce74-4362-90b5-7c26312808ef}/openssl/unix/exec.sh /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/weave/tmp openssl pkcs8 -in privkey.pem -out enckey.pem -topk8 -v2 aes-256-cbc -passout file:pass 2008-03-31 11:24:53 Service.DAV DEBUG GET request for private/ 2008-03-31 11:24:53 Service.DAV WARN _makeRequest: got status 404 2008-03-31 11:24:53 Service.DAV DEBUG Creating path: private 2008-03-31 11:24:53 Service.DAV DEBUG MKCOL request for private 2008-03-31 11:24:53 Service.DAV DEBUG GET request for public/ 2008-03-31 11:24:53 Service.DAV WARN _makeRequest: got status 404 2008-03-31 11:24:53 Service.DAV DEBUG Creating path: public 2008-03-31 11:24:53 Service.DAV DEBUG MKCOL request for public 2008-03-31 11:24:53 Service.DAV DEBUG PUT request for private/privkey 2008-03-31 11:24:53 Service.DAV DEBUG PUT request for public/pubkey 2008-03-31 11:24:53 Chrome.Window INFO Login successful 2008-03-31 11:24:53 Chrome.Window INFO Login successful 2008-03-31 11:27:28 Chrome.Window INFO Sync window closed 2008-03-31 11:54:49 Service.Main INFO Running scheduled sync 2008-03-31 11:54:49 Service.DAV DEBUG LOCK request for 2008-03-31 11:54:50 Service.SnapStore INFO Read saved snapshot from disk 2008-03-31 11:54:50 Service.BmkEngine INFO Beginning sync 2008-03-31 11:54:50 Service.DAV DEBUG GET request for user-data/ 2008-03-31 11:54:50 Service.DAV WARN _makeRequest: got status 404 2008-03-31 11:54:50 Service.DAV DEBUG Creating path: user-data 2008-03-31 11:54:50 Service.DAV DEBUG MKCOL request for user-data 2008-03-31 11:54:50 Service.DAV DEBUG GET request for user-data/bookmarks/ 2008-03-31 11:54:50 Service.DAV WARN _makeRequest: got status 404 2008-03-31 11:54:50 Service.DAV DEBUG Creating path: user-data/bookmarks 2008-03-31 11:54:50 Service.DAV DEBUG MKCOL request for user-data/bookmarks 2008-03-31 11:54:50 Service.BmkEngine DEBUG Getting status file from server 2008-03-31 11:54:50 Service.DAV DEBUG GET request for user-data/bookmarks/status.json 2008-03-31 11:54:50 Service.DAV WARN _makeRequest: got status 404 2008-03-31 11:54:50 Service.BmkEngine INFO Server has no status file, Initial upload to server 2008-03-31 11:55:15 Service.Util DEBUG Running command: /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/extensions/{340c2bbc-ce74-4362-90b5-7c26312808ef}/openssl/unix/exec.sh /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/weave/tmp openssl rand -base64 -out output 128 2008-03-31 11:55:15 Service.Util DEBUG Running command: /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/extensions/{340c2bbc-ce74-4362-90b5-7c26312808ef}/openssl/unix/exec.sh /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/weave/tmp openssl rsautl -encrypt -pubin -inkey key -in input -out tmp-output 2008-03-31 11:55:15 Service.Util DEBUG Running command: /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/extensions/{340c2bbc-ce74-4362-90b5-7c26312808ef}/openssl/unix/exec.sh /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/weave/tmp openssl base64 -in tmp-output -out output 2008-03-31 11:55:15 Service.DAV DEBUG PUT request for user-data/bookmarks/keys.json 2008-03-31 11:55:15 Service.Crypto DEBUG Encrypting data 2008-03-31 11:55:15 Service.Util DEBUG Running command: /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/extensions/{340c2bbc-ce74-4362-90b5-7c26312808ef}/openssl/unix/exec.sh /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/weave/tmp openssl aes-256-cbc -e -a -salt -in input -out output -pass file:pass 2008-03-31 11:55:15 Service.Crypto DEBUG Done encrypting data 2008-03-31 11:55:15 Service.DAV DEBUG PUT request for user-data/bookmarks/snapshot.json 2008-03-31 11:55:15 Service.DAV DEBUG PUT request for user-data/bookmarks/deltas.json 2008-03-31 11:55:15 Service.DAV DEBUG PUT request for user-data/bookmarks/status.json 2008-03-31 11:55:15 Service.BmkEngine INFO Full upload to server successful 2008-03-31 11:55:15 Service.BmkEngine INFO Initial upload to server successful 2008-03-31 11:55:15 Service.SnapStore INFO Saving snapshot to disk 2008-03-31 11:55:15 Service.BmkEngine INFO Local snapshot version: 0 2008-03-31 11:55:15 Service.BmkEngine INFO Server status: 0 2008-03-31 11:55:15 Service.BmkEngine INFO Server maxVersion: 0 2008-03-31 11:55:15 Service.BmkEngine INFO Server snapVersion: 0 2008-03-31 11:55:16 Service.BmkEngine INFO Sync complete: no changes needed on client or server 2008-03-31 11:55:16 Service.DAV DEBUG UNLOCK request for 2008-03-31 12:24:49 Service.Main INFO Running scheduled sync 2008-03-31 12:24:50 Service.DAV DEBUG LOCK request for 2008-03-31 12:24:50 Service.BmkEngine INFO Beginning sync 2008-03-31 12:24:50 Service.DAV DEBUG GET request for user-data/ 2008-03-31 12:24:50 Service.DAV DEBUG GET request for user-data/bookmarks/ 2008-03-31 12:24:50 Service.BmkEngine DEBUG Getting status file from server 2008-03-31 12:24:50 Service.DAV DEBUG GET request for user-data/bookmarks/status.json 2008-03-31 12:24:50 Service.BmkEngine INFO Got status file from server 2008-03-31 12:24:50 Service.DAV DEBUG GET request for user-data/bookmarks/keys.json 2008-03-31 12:24:50 Service.Util DEBUG Running command: /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/extensions/{340c2bbc-ce74-4362-90b5-7c26312808ef}/openssl/unix/exec.sh /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/weave/tmp openssl base64 -d -in input -out tmp-output 2008-03-31 12:24:50 Service.Util DEBUG Running command: /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/extensions/{340c2bbc-ce74-4362-90b5-7c26312808ef}/openssl/unix/exec.sh /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/weave/tmp openssl rsa -in key -out tmp-key -passin file:pass 2008-03-31 12:24:50 Service.Util DEBUG Running command: /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/extensions/{340c2bbc-ce74-4362-90b5-7c26312808ef}/openssl/unix/exec.sh /Users/abillings/Library/Application Support/Firefox/Profiles/grzcadgw.Default User/weave/tmp openssl rsautl -decrypt -inkey tmp-key -in tmp-output -out output 2008-03-31 12:24:50 Service.BmkEngine INFO Downloading server deltas 2008-03-31 12:24:50 Service.DAV DEBUG GET request for user-data/bookmarks/deltas.json 2008-03-31 12:24:50 Service.BmkEngine INFO Local snapshot version: 0 2008-03-31 12:24:50 Service.BmkEngine INFO Server status: 0 2008-03-31 12:24:50 Service.BmkEngine INFO Server maxVersion: 0 2008-03-31 12:24:50 Service.BmkEngine INFO Server snapVersion: 0 2008-03-31 12:24:51 Service.BmkEngine INFO Sync complete: no changes needed on client or server 2008-03-31 12:24:51 Service.DAV DEBUG UNLOCK request for
This is entirely intentional.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WONTFIX
It is intentional that with two machines running 0.1.27 that one will upload to the server and then the second will wipe out the upload? How do I synch between the two machines then? The one that uploaded first had folders and data that I wanted sent to the second...
As an aside, I keep making a "media" folder in my bookmarks and moving my media bookmarks into it. Because of issues like this, I've done this at least three or four times now as I keep getting the places instance with this change wiped out. It makes me want to stop using/testing weave when I can't get get this one folder to survive on its home machine and propagate to the others.
Er, wait, it wiped the server even though the server version was already at '2'? (2 is the current STORAGE_FORMAT_VERSION, the constant the addon uses internally). If you sync, then restart firefox, does it wipe the server on login?
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
(In reply to comment #3) > As an aside, I keep making a "media" folder in my bookmarks and moving my media > bookmarks into it. Because of issues like this, I've done this at least three > or four times now as I keep getting the places instance with this change wiped > out. It makes me want to stop using/testing weave when I can't get get this one > folder to survive on its home machine and propagate to the others. That is sad, but unrelated (no?). Do you have a test case I can reproduce? If so, please file a bug asap!
If I had one, I would. Trying to get my two laptops and my home computer to synch are what produced the last few bugs I logged. As to your question in comment 4, no, it appears to work normally now but I'm not at the other computer. The scenario was: 1. Home Computer (HC): Install 0.1.27, synch data. Data appears to synch to server normally. 2. Work Laptop (WL): Go to work next day, install 0.1.27, synch data, WL weave then wipes data on server without me telling it to do so... 3. WL then continues to synch normally from that point on. After the party tonight, we'll see what happens with HC but I expect to either have it be told that no changes are necessary (making it out of synch with WL) or to receive the bookmark data from WL and attempt to merge it in. The HC was where I had done a bunch of work cleaning up and reorganizing bookmarks. I am wanting to get those changes to propagate to WL but am failing to do so with Weave, so far. (See conversation last week in person about 0.1.24 issues.)
Are you experiencing wipes when you shouldn't? I'm not able to reproduce this. It's possible the version check is interpreting some failure codes (like 503 server unavailable, for example) as "wrong version" and wiping the server. That is a pretty unlikely error at this point, though, given the amount of overcapacity we have.
I am not able to get an unexpected wipe. Closing as worksforme.
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → WORKSFORME
Component: Weave → General
Product: Mozilla Labs → Weave
Target Milestone: -- → ---
QA Contact: weave → general
You need to log in before you can comment on or make changes to this bug.