Just started trying out Logseq and messed up my graphs on Desktop, iPad and iPhone so I just deleted th Logseq apps, my graphs and fodlers, including the iCloud Logseq folder with the Logseq icon on it. I just expected Logseq to recreate the folder when I reinstalled the app, but that’s not the case.
In the desktop app I get error message like
The directory /Users/mikaelja/Library/Mobile Documents/iCloud~com~logseq~logseq/Documents/Ipadtest has been renamed or deleted, the editor will be disabled for this graph, you can unlink the graph.
The graph logseq_local_/Users/mikaelja/Library/Mobile Documents/iCloud~com~logseq~logseq/Documents/Ipadtest can not be read:Error: ENOENT: no such file or directory, scandir /Users/mikaelja/Library/Mobile Documents/iCloud~com~logseq~logseq/Documents/Ipadtest
On my iPad I see things like file:///private/var/mobile/Library/Mobile%20Documents/com~apple~CloudDocs/7EC2D587-4BA7-4E17-B728-9CE202680BB5/ has been renamed or deleted, the editor will be disabled for this graph, you can unlink the graph.
Is this a known behaviour? Any ideas for how to fix it?
Add new graph, enable the iCloud sync and give the graph a name. I don’t get any options to select where to put the graph.
I get the Journal page for today and start writing. I can create new pages and links.
BUT if I switch to another graph, created in the same way moments earlier, I get an empty graph and the error message The directory file:///private/var/mobile/Library/Mobile%20Documents/iCloud~com~logseq~logseq/Documents/iCloud_sync_test has been renamed or deleted, the editor will be disabled for this graph, you can unlink the graph.
I can’t find any of the created files or folders on my iCloud Drive. There is no Logseq folder on iCloud Drive
But that’s the problem - the Logseq folder on iCloud Drive is missing (since I deleted it, trying to get a fresh new start). I tried to uninstall Logseq and reinstall again but still no folder with the Logseq logo.
Well, now I’ve tried again and made sure to restart again after just installing Logseq again. The thing is I don’t get a chance to select where to put the new graph. And even if I would there is still no Logseq folder on iCloud Drive.
Any new graph is apparently created locally in the Logseq folder on my iPad. It’s like of Logseq is unaware of iCloud. Just checked my iCloud settings and Logseq is enabled to use iCloud.
Uninstalling the Logseq app, on iPad, iPhone and macOS.
delete the Logseq folder on iCloud, using the Files app on iPadOS.
empty the trash on iCloud Drive in the Files app on iPadOS.
Checked the Files app: no Logseq folders left. The trash can is still empty.
Checked the Files app: no Logseq folders found. The trash can is still empty.
I get the Welcome to Logseq-screen with the options to create a new graph or select an existing graph. I don’t get the welcome screen showing the iCloud Logseq folder and the information about how information is stored. Instead I get this:
Too weird. I can’t reproduce the issue following your steps. The Logseq folder always created as expected on my devices.
There might be something blocking the directory to be created. And the logic for creating directory is in the attached codebase above.
I can only reproduce the error you provided via settings → <Your name> → iCloud → Toggling Logseq to disable. I don’t know if this is what you mentioned as
checked my iCloud settings and Logseq is enabled to use iCloud.
Can you take a screen on it?
Anyway, the issue is Logseq can’t access iCloud by some reason. Maybe it’s an issue of Apple. We can’t reproduce the issue with the provided clues.