Publii
Publii copied to clipboard
[Bug]: Throwing file errors on Apple Silicon
Operating system
macOS Monterey 12.6 / Apple M1 Pro
Publii version
0.41.1 (build 15919) and also tried 0.40.3 (build 15745)
Post editor
None
Bug description
App throws an error on accepting license terms:
Uncaught Exception:
Error: ENOENT: no such file or directory, open '/Users/USERNAME/Documents/Publii/config/app-config.json'
at Object.openSync (node:fs:585:3)
at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1812)
at Object.writeFileSync (node:fs:2157:35)
at IpcMainImpl.
If you quit and restart the app, it's possible to accept terms, but then adding a site throws a different error:
Uncaught Exception:
Error: ENOENT: no such file or directory, mkdir '/Users/USERNAME/Documents/Publii/sites/x'
at Object.mkdirSync (node:fs:1336:3)
at Site.createDirectories (/Applications/Publii.app/Contents/Resources/app.asar/back-end/site.js:68:12)
at Site.create (/Applications/Publii.app/Contents/Resources/app.asar/back-end/site.js:46:18)
at IpcMainImpl.
If you then quit and restart, accept terms, go to app setting, change sites location and hit save, it throws another error:
Uncaught Exception:
Error: ENOENT: no such file or directory, open '/Users/USERNAME/Documents/Publii/config/app-config.json'
at Object.openSync (node:fs:585:3)
at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1812)
at Object.writeFileSync (node:fs:2157:35)
at IpcMainImpl.
I've checked the file system and all the files it says it can't find are there.
Steps to reproduce
- Install and launch
- Click Accept
--
- Install and launch
- Click Accept (if applicable)
- Enter website name and author name
- Click Create website
--
- Install and launch
- Click Accept
- Click App settings
- Change Sites location
- Click Save
Relevant log output
No response
Hi,
Did you give Publii access to the files on your computer? It looks like Publii is unable to access your filesystem.
Publii is listed under Full Disk Access
@momorgan - I see two possible reasons - could you tell me if:
- the username contains some special character or spaces?
- your documents are synced to some cloud service like Google Drive?
Hi,
- No, just letters and a dot
- No, nothing like that
Thanks
@momorgan - unfortunately at this moment I have no idea what can be a reason of your issues - I have spot one bug during saving theme settings, but it is not related to your errors :/