Buttercup-desktop: Deleted entries and custom fields re-appearing after a while (WebDAV)

Created on 5 Apr 2017  路  18Comments  路  Source: buttercup/buttercup-desktop

Hi, I have a strange issue, using Buttercup 0.11.1-alpha with a WebDAV-Server - after a while and various restarts, old and already deleted entries, folders and/or custom fields are re-appearing in the app. So, I have e.g. four custom fields for an entry which were deleted either one or two days ago and which have been away for at least a day - but now they are back. I also have some folders in the "Trash", although I have already clicked "Empty trash" at least twice since deleting those entries ....
I am pretty much the only person actively using this WebDAV server at the moment, so I have no idea where those "ghost" entries are coming from... any idea? Thanks!

Critical Available Bug

All 18 comments

Hi @smxsm - This sounds like you're getting overwritten copies (old versions) of your archive coming through. To confirm, you're using buttercup GUI and saving files in a webdav sync'd directory, right?

I suspect that your webdav server may either be reverting to old file versions or is completely disregarding your updated copies (saves) and just overwriting them with old copies from the server. You could try saving several times and checking the file size/contents locally and remotely to ensure that the changes are making it to the server.

Hi, thanks for the answer! The files seem to be in sync and the server file is updated when I save... but there was a .DAV folder on the server which had an older "bcup" file in it - I have deleted the folder now and until now (5 restarts) I've had no old data in the Buttercup app ... fingers crossed :)
I hope it doesn't come back again ....

hm, nope, now it happened again, and there is no new ".DAV" folder on the webdav server ... and the .bcup file on the server has the timestamp from my last save yesterday, so everything seems to be ok file-wise... any other idea? :(

Just to add, it's not really that the archive is an old version from day X, if I've added new entries e.g., they are still available and up-to-date ... it's just that (sometimes) already deleted entries, folders or custom values keep coming back like zombies :P

already deleted entries, folders or custom values keep coming back like zombies

Your case is interesting for sure. At this stage I'd still lean towards the issue being with WebDAV, however, as it seems more likely that it's overwriting your local copy.

What you could try to do it copy the file out of your webdav directory and put it somewhere static. Load and save it from there for some time and see if the issue still occurs - my guess is that it probably doesn't - but I'm open minded.

Let's go from there so we can rule some things out 馃檪

Hm, until now everything looks good if I copy the file locally... so it seems to be a problem with the WebDAV communication - but I couldn't find any similar problems with WebDAV or any advice on the net how to configure a WebDAV server to handle problems like this. Do you have any suggestion what I could try on the server to get rid of this? I am running Apache/2.2.22 (Ubuntu) with WebDav module. My Buttercup client is running on a Macbook.
Anything I could try to debug the Buttercup WebDAV / archive usage? I also have my own Buttercup build, so I could add some debug code and build me a new debug version :)

Unsurprisingly, same on Windows .... so it really seems to be an issue with Buttercup and WebDAV - any idea? Do you know if anybody is using WebDAV with buttercup successfully? Thanks :)

Buttercup and WebDAV

I agree that it looks funny here, but if you using a sync client then Buttercup doesn't have much to do with it. It writes to a file and reads from it in a very simple manner.

That being said - @sallar can you think of any peculiarities with our saving system in the GUI? The filesystem has always been a bit more custom here and just want to make sure that we're not missing some complexity here that might behave differently in this scenario..

Ha, I've just tried the new 0.12 version with the direct Cloud integration and opened the WebDAV file directly - now the zombies are gone, after I have deleted them once! :) So it looks like it was only a problem with accessing the file via Windows Explorer or MAC Finder.

So it looks like it was only a problem with accessing the file via Windows Explorer or MAC Finder.

I really hope so. Let us know if it's still reoccurring.

@smxsm @perry-mitchell I'm going to go ahead and close this for now as it seems the new cloud access has solved this issue. If the problem comes back, please do re-open this issue 馃憤 Thanks

Oh no, I've just tried one more time today and guess what ... the zombies are back :( All the changes I've made yesterday are there, so the archive itself is "up-to-date", but there are entries and folders in the trash and also long deleted custom fields in some entries. E.g. the "TestToDelete" folder was deleted and removed from trash at least one week ago :P And the trash was empty yesterday evening...
image
How can this be possible at all? Magic? :)

Sorry to hear @smxsm. Currently it definitely looks like an issue with your WebDAV synchronisation - We can't really affect that with Buttercup so at this stage there's probably no issue with the desktop application.

We'll keep an eye on the webdav sync during our regular testing and will obviously let you know if we see anything of concern. If you do happen to discover what's causing the issue please don't hesitate in filing another issue..

What I did now is:

  • rename the archive file on the server
  • removed the Port 80 vhost entry and only left the 443 entry active for the webdav subdomain
  • installed ntp to sync the server time with a ntp server
  • unmounted the webdav directory in Finder

Until now, it is working .... ;) If the zombies come back, I am out of ideas though ... and may switch to Owncloud :)

Seems that we've been able to reproduce this, though mostly just with trash:

image

^ I've emptied the trash several times, so there seems to be some load issue coupled with webdav possibly.

Seems that trash is completely impossible to empty 馃槄

@smxsm please try the latest version - hopefully we've weeded out the weirdness. There's still some updates to come which may affect your case (#219), but this one should help immensely.

Nice 馃憤 I've updated and I'll let you know if I can see the zombies again :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VARed picture VARed  路  3Comments

mikebowering picture mikebowering  路  5Comments

mannp picture mannp  路  4Comments

frigaut picture frigaut  路  6Comments

KneePham picture KneePham  路  3Comments