-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
No files in sub directories created from sync on new device #549
Comments
Okay so it's not just me. I got a new phone and tried to set it up using a URI. The sync APPEARS to work properly but it never makes any files or directories. I tried again from a desktop client setting up a new sync and same thing - it parses the folder and file names from the server as you can see it doing this but it never actually makes any files on the new device. |
@jasonlaguidice Yes, that's exactly my observation. The current version 0.24.2 works on all devices that already existed and were just updated to this version. Adding a new device does result in the behaviour you (and me) described. |
Thank you for opening the issue, and sorry for your inconvenience! Unfortunately, I have not reproduced it yet. Would you mind if I ask you to share the report of the new device, and logs? How to dump them is documented on this doc. |
Report:
When choosing "set up as a subsequent device" I cannot capture the logs because the log to file feature gets toggled off as soon as the synchronization starts. What should I do to remedy this? |
Same issue here 😢 |
Same here, only part of the files are sync to the new device The log of getting files from db to the chunk(? I'm not sure) seems good as the number of files are correct as ~10000, |
Same issue. Setting up Obsidian/livesync on new devices doesn't pull files from the remote DB. Fetching the database from remote seems to complete without any errors. But no files appear. Tried rebuilding local and remote databases from local files and it uploads to the remote DB ok. But when trying to fetch to new devices its still the same, process completes but no files show up. Tried setting up a fresh Obsidian install on Windows 11 24H2 and Debian 12. Same problem on both devices. |
I am so sorry for being absent! I have rewrote the library used in Self-hosted LiveSync recently. I will be going to fix the problem with this. Sorry for your inconvenience! |
No worries, no need to be sorry. I am appreciating your work and efforts to a great extent, take whatever time it needs. There are more important things in life. |
The newest 0.24.4 resolved the issue for me, really appreciate for all the work and contribution |
Tried again with new vault and plugin version 0.24.5. Still the same behavior: No files and directories are created although the sync "seems" to work when looking into the log. |
What does the sync icon look like? Mine wasn't defaulting to LiveSync after pulling in the remote config - I had to manually go into setup and select LiveSync. Also noticed that empty folders are not replicated, once you add content it replicates the folder. |
New test with new Obsidian vault and newly installed plugin, this time with version 0.24.6. I checked sync setting, all good. Behaviour as before: The sync process goes over all files and folders but does not create any of them locally. I do not have empty folders, I have > 300 files in dozends of folders. All gets "scanned", but nothing created. |
I've managed to get it working (I think?) but it's convoluted. I THINK this summarizes the steps I took to get mine working properly: On an older already-synced device with a working copy of your vault:
Some number of Obsidian restarts will likely be required to get this to stabilize and the database will say it's locked (if I remember correctly) until you manually unlock it Now, on the new device you want to sync (and all other subsequent devices)... If you have already attempted a sync, remove the vault and delete all files associated. On Android, clear storage for the app. On other platforms - do what is necessary to start fresh
Return to the original device and unlock the database. Change the sync preferences to Live Sync Return to the new device and change the sync preferences to live sync. It seems as if the detection of the database migration doesn't work properly and the database ends up split. You need to update the plugin from an existing old copy and force-overwrite the contents of the remote/couchdb database... then you can successfully join new clients in. |
Abstract
I added a new device to sync. Sync seems to fetch all chunks from the remote and processes all remote files. Nevertheless, all files in subfolders are not created on the local device. Also, the folder structure is not created.
Expected behaviour
Actually happened
Reproducing procedure
Aditional observations
The text was updated successfully, but these errors were encountered: