Yet another linking issue
Hi team,
Longtime user of Zotero here. Thank you for such a great program!
I just updated my OS to Windows 10 (from 7) on a fresh SDD. I sync Zotero database via the Zotero service, and use relative links to a shared Syncthing folder to maintain files across computers. I re-synced my storage folders after reinstalling the OS, and reinstalled Zotero. Pointed the 'Linked Attachment Base Directory' to the sync folder as usual, and then re-synched from the Zotero cloud. This should AFAIK have worked!
However, clicking on attachments Zotero is still searching the default C:/Users/NAME/Zotero/storage directory. In addition, all the attachments have switched from 'links' (with chain) to normal storage.
Q: how to fix? What would have caused this behaviour in the first place?
NB: in the console, 'extensions.zotero.baseAttachmentPath' does indeed point to the correct place, but Zotero is still searching the default storage directory.
Longtime user of Zotero here. Thank you for such a great program!
I just updated my OS to Windows 10 (from 7) on a fresh SDD. I sync Zotero database via the Zotero service, and use relative links to a shared Syncthing folder to maintain files across computers. I re-synced my storage folders after reinstalling the OS, and reinstalled Zotero. Pointed the 'Linked Attachment Base Directory' to the sync folder as usual, and then re-synched from the Zotero cloud. This should AFAIK have worked!
However, clicking on attachments Zotero is still searching the default C:/Users/NAME/Zotero/storage directory. In addition, all the attachments have switched from 'links' (with chain) to normal storage.
Q: how to fix? What would have caused this behaviour in the first place?
NB: in the console, 'extensions.zotero.baseAttachmentPath' does indeed point to the correct place, but Zotero is still searching the default storage directory.
Assuming you have a backup of your Windows 7 disk, you would just need to copy the contents of the 'storage' folder to the 'storage' folder in your current data directory.
Not how I thought it could work, since it still functioned well across multiple machines and synced well, despite the Zotero data directory not being synched.
Is there any way to shift the stored files to linked files? The directory structure should be the exact same.
ZotFile can convert stored files to linked files.
I'll look into Zotfile converting my entire library back to linked files and will post here if this fixes the problem. I still don't understand how the problem happened in the first place though!
Again, you were either just opening these files on the computer where they were created or you were syncing the 'storage' folder within the data directory separately from Zotero file syncing.
The distinguishing between 'stored' and 'linked' attachments seems to be the problem.
I can't explain what exactly you're misremembering — maybe you had multiple accounts and are thinking of a different one, maybe you're forgetting how you had Syncthing set up, maybe you only ever opened files on one computer — but you're confused about this. You have always had these 4000+ stored-file items in your database.
If you're going to post here, you're going to have to accept that we know what we're talking about.
Perhaps I have misunderstood the issue then and it has nothing to do with linked or stored files. Thank you for looking into this.
What I am trying to explain is that the files were never stored on 'zotero/storage' on this system. I have double checked my backup of the formatted drive and can confirm this. In the past, I simply pointed my 'Linked Attachment Base Directory' to the sync folder, and things worked fine. I expected this behaviour to continue on the new install and it hasn't. So..... any ideas?
The files were absolutely stored within 'storage' on the computer where they were created. If you think they weren't, you are misremembering. Stored files are created within 'storage' on the computer where they are added — always, no exceptions. The only way they would be available anywhere else would be if you used Zotero file syncing (either Zotero Storage or WebDAV, and only the former if you since purged your files via your storage settings on the website) or if you were syncing the 'storage' folder yourself outside of Zotero. There is no other way this works. I would guess that you simply had been opening the files on the computer where they were originally added and didn't realize they weren't available elsewhere.
If you deleted the 'storage' folder on the computer where they files were added and you never synced them anywhere else, you would need to restore them from a backup from that computer.
If you share a zip of the zotero.sqlite file (or a link to it) from that backup with us at support@zotero.org with a link to this thread, we can look at it and try to shed some light on what you're seeing. But the Linked Attachment Base Directory setting is not relevant for the vast majority of your files.