ipfs/ipfs-desktop

Snap on Linux: EACCES: permission denied (..) .config/IPFS Desktop/config.json

Open

#1,906 opened on Sep 8, 2021

View on GitHub
 (4 comments) (0 reactions) (1 assignee)JavaScript (5,632 stars) (912 forks)batch import
P2area/linuxhelp wantedkind/bug

Description

I had IPFS desktop running in my taskbar. I told it to show the status, and the app crashed. Now, it just says "IPFS has errored" and won't connect to the network.

Before the crash, I had the IPFS and IPFS Desktop snaps installed. I removed the IPFS snap and this happened soon after. I re-installed IPFS, but that hasn't fixed the problem

This bug seems to occur when upgrading .snap to the new version. – https://github.com/ipfs/ipfs-desktop/issues/1906#issuecomment-916033324

Specifications

  • OS: linux
  • IPFS Desktop Version: 0.16.2
  • Electron Version: 13.1.7
  • Chrome Version: 91.0.4472.124

Error

Error: EACCES: permission denied, open '/home/john/snap/ipfs-desktop/28/.config/IPFS Desktop/config.json'
    at Object.openSync (fs.js:476:3)
    at Object.func [as openSync] (electron/js2c/asar_bundle.js:5:1846)
    at Object.writeFileSync (fs.js:1467:35)
    at ElectronStore._write (/snap/ipfs-desktop/28/resources/app.asar/node_modules/conf/dist/source/index.js:370:16)
    at ElectronStore.set store [as store] (/snap/ipfs-desktop/28/resources/app.asar/node_modules/conf/dist/source/index.js:296:14)
    at ElectronStore.set (/snap/ipfs-desktop/28/resources/app.asar/node_modules/conf/dist/source/index.js:189:20)
    at BrowserWindow.<anonymous> (/snap/ipfs-desktop/28/resources/app.asar/src/webui/index.js:48:11)
    at BrowserWindow.emit (events.js:315:20)

Contributor guide