New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgraded from 4.0.6 to 4.0.7 deleted all bookmarks #1390
Comments
yep mine are missing as well. the folders are there but no bookmarks. Just saw an update for bookmarks to 4.0.8 but that did not fix it. thanks. and nothing in the database table bookmarks ?? |
same problem here |
same here ! :( |
I was able to restore my bookmarks by reimporting all entries from a valid database backup to the oc_bookmarks table. All categories were still available but the sorting into sub folders was missing. Although moving the bookmarks into the related sub folders caused several error messages being displayed in the gui, they were successfully moved to the folders. So at the end I was able to recover my data. |
so the urls are still there in the db? can you please give a more detailed instruction? |
I was able to restore some of my bookmarks thanks to firefox and Floccus. Now all my firefox bookmarks are back (I updated to 4.0.8 in between), but I still lost some old bookmarks that weren't sync on firefox (or any other browser) |
hmm. I used bookmarks without sync. I have some old db backup, I'll try what I can do with it. It looks like in my db, there are all bookmarks gone. |
yea my bookmark entries in the database were empty also. I wasnt using an external sync. Nextcloud was my sync :-) . Halfway glanced at nextcloud/updater-ocredactedxxx/backups/nextcloud-20.0.5.2-1611693483 but nothing saying database jumped out at me. Luckily my instance had a zfs snapshot . Within the old snapshot I exported bookmarks from nextcloud. then on the current instance I deleted bookmarks ( because the folder structure was intact ) , and then imported bookmarks from within nextcloud. Never directly touched either database. Also posted comments at: https://www.reddit.com/r/NextCloud/comments/l5w061/updating_bookmarks_andor_nextcloud_erased_all/ |
No, the table is indeed empty. You need to have a valid backup to re-import the bookmark entries. |
This issue reminds me of a similar one that struggles with character encoding corrections/regression (in the calendar app). Was anything in that direction changes in Bookmarks? |
@sreutter Take a look. MariaDB [nextcloud]> select * from oc_bookmarks;
Empty set (0.001 sec) |
I'm so sorry guys. The update deleted all bookmarks. I'm pulling my hair out over this again. 😱 😡 v4.0.8 fixed the underlying bug but didn't recover your bookmarks. If you're lucky and have a backup you can follow this guide: #1305 (comment) |
I do have the same. It seems to me that the update to 4.0.8 deleted all bookmarks. |
@cbwoog You likely updated to v4.0.7 first which had the bug. |
If I've learned anything from these incidents it's that I need collaborators but at least people that review code changes for mistakes, like it's done in the server repository. |
unluckily, I'm not a progammer, but I could help in testing the app before the release? |
Because of this bug I tried removing and reinstalling bookmarks. However, installation gives this error: Error: An exception occurred while executing 'SELECT SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_bookmarks_shared_folders' doesn't exist` What should I do ? |
@teemue When dropping the bookmarks tables you also need to delete all entries related to the bookmarks app from oc_migrations. This will cause all migrations to be rerun. for the record: Re-installation is not necessary for fixing this. If you've been affected and want your bookmarks back, follow: https://github.com/nextcloud/bookmarks/wiki/Recovering-from-DB-Backup if you have other means of getting your bookmarks back do that. Update to v4.0.8 should fix the software issue that caused the removal. Automated integrity checks for Updates and Repair steps have landed and together with reviews from @stijink (:tada:) will make sure this hopefully doesn't happen again in the future. |
Could you provide me with an information on how to delete those entries? Thanks in advance :) |
Oh, sure. Usually |
In addition to the above, I've just landed a failsafe feature in floccus that will cause it to refuse execution of a sync run if more than 50% of local bookmarks are to be deleted. This should be an additional safeguard against any possible misconfigurations or software bugs. Take care! |
I had a big impact instance with thousands of users who lost their bookmarks. |
@fossxplorer I'm sorry for your troubles. I'm available at https://gitter.im/nextcloud-bookmarks/community for support |
Describe the bug
My script upgraded the Nextcloud Bookmarks from 4.0.6 to 4.0.7 recently, and the bookmarks are completely gone.
Recent shows nothing, and the entries in the database are empty either.
#1305 again?
To Reproduce
Expected behavior
The bookmarks are not touched during the updates.
Screenshots
Desktop (please complete the following information):
Server (please complete the following information):
Additional context
Add any other context about the problem here.
Web server error log
Nextcloud log (nextcloud/data/nextcloud.log)
Browser log
The text was updated successfully, but these errors were encountered: