logseq / logseq

A privacy-first, open-source platform for knowledge management and collaboration. Download link: http://github.com/logseq/logseq/releases. roadmap: http://trello.com/b/8txSM12G/roadmap
https://logseq.com
GNU Affero General Public License v3.0
30.76k stars 1.79k forks source link

Permission Denied error while "Export public graph pages as html" #10752

Open 0xdeee opened 6 months ago

0xdeee commented 6 months ago

Search first

What Happened?

I tried to make a page public and export it using command "Export public graph pages as html"

This process got exited with this error message - The graph logseq_local_/Users/{{user}}/Library/Mobile Documents/iCloud~com~logseq~logseq/Documents/knowledge-graph can not be read:Error: EACCES: permission denied, scandir '/Users/{{user}}/Library/Mobile Documents/iCloud~com~logseq~logseq/Documents/knowledge-graph/static/css/Inter (web)'

Adding to that, everytime I switch between graph, refresh logseq app or restart it... im getting the same error.

screensnap:

Screenshot 2023-12-23 at 12 34 34

Reproduce the Bug

  1. Go to any page -> option -> select "Make it public for publishing"
  2. execute command with CMD + SHIFT + P -> Export public graph pages as html

Expected Behavior

No response

Screenshots

No response

Desktop or Mobile Platform Information

App Version: 0.10.2 Git Revision: 8871bee Platform: Mozilla/5.0 (Macintosh Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML like Gecko) Logseq/0.10.2 Chrome/118.0.5993.159 Electron/27.1.3 Safari/537.36 Language: en-GB Plugins: logseq-kanban-board (v1.17.10), logseq-awesome-ui (v2.4.0), logseq-journals-calendar (v0.10.10), logseq-smart-typing (v0.14.1), logseq-markdown-table (v1.8.0), logseq-bullet-threading (v1.1.4), logseq-omnivore (v1.13.6), logseq-reminder (v0.8.3), logseq-plugin-gpt3-openai (v1.13.2), logseq-tabs (v1.19.3)

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

andelf commented 6 months ago

Could you provide your custom.css file? It seems that the customization has caused this bug.

0xdeee commented 6 months ago

Could you provide your custom.css file? It seems that the customization has caused this bug.

@andelf I dont have any changes in my custom.css file

Screen Recording 25-12-2023 at 10.26 PM.webm

andelf commented 6 months ago

@0xdeee Thanks. Could you check where the text "static/css/Inter (web)" from? It's kind of weird.

0xdeee commented 6 months ago

@andelf It seems like after I tried to Export public graph pages as html it generated some files & folder (the "static" dir) in the root folder of my graph. and since my graph is inside the icloud directory, it ran into some permission issues for some unclear reason.

but this error popup went away after I deleted the static folder with root access. seems like this issue is specific to users who are syncing their graph in icloud with improper permission privileges and trying to export public pages.

github-actions[bot] commented 1 week ago

Hi There! πŸ‘‹

We haven't seen any activity on this issue in a while :sleeping:, and we just wanted to make sure that it's still relevant. If you're still experiencing this issue, you might find it helpful to update to the latest version of Logseq. The latest version includes bug fixes and new features that may help to resolve this issue, and you can download it from our website. If updating to the latest version doesn't help, please let us know by adding a comment πŸ’¬. We're here to help!

If the issue has been resolved or is no longer relevant, that's great news! πŸŽ‰ We'll go ahead and close this issue to keep our backlog organized. Please note that this issue will be closed automatically in 20 days if there is no further activity. If you need more time to resolve the issue or provide more information, please just let us know by adding a comment.

Access additional Logseq πŸš€ resources:

Thanks for your contributions to Logseq! If you have any other issues or feature requests, please don't hesitate to let us know. We always welcome pull requests too!