Missing Collection and sub collections
Hello Zotero forum,
Yesterday (Nov 13) I was creating a new SubCollection within a Collection (with right click ‘New Collection’) when the Collection and an estimated 30 sub-collections within it disappeared with an est 400 record citations.
I’m a neophyte using stand alone Zotero on my office workstation, synched to Zotero.org . My workstation runs Windows 7 Enterprise 2009. Browser is Firefox 52.21 (32 bit).
I found the current citations using the zotero.org website and sorting by date (2017July to present): the citations are still online but all in one huge file “My Library”. I sample checked the citations on my stand alone Zotero and it looks like they are still there but they are no longer organized into the collection\sub collection folders.
There were no error messages. I have not added any new data.
I’ve looked at the Forum and do not see information that might help me with this.
I wonder if I can restore from my workstation hard drive or … ?
I cannot open the sqlite file on my workstation hard drive.
On my workstation c:\users\name\Zotero there are 3 files:
zotero.sqlite date modified: 14/11/2017
Zotero.sqlite.bak date modified: 12/11/2017
Zotero.sqlite.1.bak date modified: 10/11/2017
Is the Zotero Data Directory documentation current ?
https://www.zotero.org/support/zotero_data
Should I follow the section on "restoring from the last automatic backup" ?
Thank you for any assistance. / Ann
Yesterday (Nov 13) I was creating a new SubCollection within a Collection (with right click ‘New Collection’) when the Collection and an estimated 30 sub-collections within it disappeared with an est 400 record citations.
I’m a neophyte using stand alone Zotero on my office workstation, synched to Zotero.org . My workstation runs Windows 7 Enterprise 2009. Browser is Firefox 52.21 (32 bit).
I found the current citations using the zotero.org website and sorting by date (2017July to present): the citations are still online but all in one huge file “My Library”. I sample checked the citations on my stand alone Zotero and it looks like they are still there but they are no longer organized into the collection\sub collection folders.
There were no error messages. I have not added any new data.
I’ve looked at the Forum and do not see information that might help me with this.
I wonder if I can restore from my workstation hard drive or … ?
I cannot open the sqlite file on my workstation hard drive.
On my workstation c:\users\name\Zotero there are 3 files:
zotero.sqlite date modified: 14/11/2017
Zotero.sqlite.bak date modified: 12/11/2017
Zotero.sqlite.1.bak date modified: 10/11/2017
Is the Zotero Data Directory documentation current ?
https://www.zotero.org/support/zotero_data
Should I follow the section on "restoring from the last automatic backup" ?
Thank you for any assistance. / Ann
Check your Zotero profile directory and your Firefox profile directory (if you were using Zotero for Firefox previously) for a 'zotero' directory, and then check the zotero.sqlite* files in there.
You can try 1) backing up all three of those zotero.sqlite* files, 2) temporarily disabling auto-sync, and then 3) swapping in zotero.sqlite.bak (if it still has a November 12th date) as zotero.sqlite to see if the collections come back that way. If so, we can walk you through keeping that version.
Yes, it's possible that I accidentally selected "Delete" ... alas . Thank you.
I am a long-time (years) user of Zotero and have used the new stand-alone version successfully since September. I am very certain that I did not delete and sub-collections.
I will try to recover my items, but this sure is irritating. I wonder: was there any record of a Zotero server hiccup around 6:00 PM EST on Nov. 13th?
Thanks.
Is there anything that I need to do to keep that recovered file?
@JohnWolff: No server hiccup, but you might gotten switched to a different data directory in the Zotero 5.0 upgrade (particularly if you had previously used both Zotero for Firefox and Zotero Standalone and they were pointed at different data directories). If you're still having trouble, start a new thread and we can walk you through looking for another data directory with the missing data.
What did I miss?
If I re-restore the files, how can they be sync-ed to/with the server?
The web online did not sync.
Did a Manual sync; did not work.
Closed the stand alone, closed the online, logged off/log on computer
Stand alone - resync button says "last sync 2 sec ago"
Web online - now has the collections/sub-collections but "no items found" in any of the restored collections/sub-collections (items appear in "MyLibrary")
Did another Manual Resync from the stand alone - did not work.
Suggestions?
1) Go to the Advanced → Files and Folders pane of the Zotero preferences and click Config Editor.
2) Search for recursiveCollections and double-click it to toggle it to 'true'.
3) Click on the parent collection, which should now show all descendent items.
4) Drag those items to another temporary collection.
5) Sync. Zotero will send up the collection lists for those items again, which will include the original collections they're in plus the temporary collection.
6) Assuming that works, go back to the Config Editor and disable recursiveCollections if you don't want it on, and then delete the temporary collection.
(You can skip the recursiveCollections step if it's easy for you to select all the items those collections (e.g., through a search for a common tag) — the point is just that you want to add all those items to a temporary collection to trigger the re-upload.)
Is there a way to "select all" items in the collection and drag the selection... or are you saying drag each item to another temporary collection?
"You can try 1) backing up all three of those zotero.sqlite* files, 2) temporarily disabling auto-sync, and then 3) swapping in zotero.sqlite.bak (if it still has a November 12th date) as zotero.sqlite to see if the collections come back that way."
I've got three sqlite files on the hard drive now, all of which are backed up elsewhere: zotero.sqlite-journal, zotero.sqlite.1.bak (dated Aug 23, prior to my accidental deletion), and zotero.sqlite.bak (w/ today's date).
I moved zotero.sqlite (dated today) to another drive so I could replace it with the backup from the date before this happened. Is that right? Then I tried to rename zotero.sqlite.1.bak as "zotero.sqlite," but I'm told "The name “zotero.sqlite” with extension “.bak” is already taken. Please choose a different name."
When that didn't work, I opened Zotero and said "yes" to the question, "do you want to import the file zotero.sqlite.1.bak." I got the error message that the file's invalid.
So, what am I doing wrong in step 3?
Thanks!
Jennifer
If you're getting an error at Zotero startup once you've restored the zotero.sqlite file, you'll need to say what exact message you're getting.
Also note that there's more up-to-date documentation for this that you should follow:
https://www.zotero.org/support/zotero_data#restoring_from_the_last_automatic_backup
One question before I do. I'm trying to restore a bunch of collections, so I think I need to restore to online library "to force Zotero to upload the local version of the library, overwriting previously synced changes," per that other documentation. That won't "disappear" the files that are stored online, will it (given the backup sqlite file has data but no files)?