question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Permission Errors

See original GitHub issue

I tried to reinstall/upgrade the extensions and now I am getting permissions errors… does this need sudo or something!?

Failed to read content scripts { Error: EACCES: permission denied, open '/Users/bradennapier/Library/Application Support/Electron/extensions/fmkadmapgofadopljbjfkapdkoienihi/build/inject.js'
    at Object.fs.openSync (fs.js:584:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
    at Object.fs.readFileSync (fs.js:491:33)
    at Object.fs.readFileSync (ELECTRON_ASAR.js:505:29)
    at readArrayOfFiles (/Users/bradennapier/Desktop/Dash OS/IDE/projects/dash-desktop/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:235:23)
    at Array.map (native)
    at contentScriptToEntry (/Users/bradennapier/Desktop/Dash OS/IDE/projects/dash-desktop/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:242:21)
    at Array.map (native)
    at injectContentScripts (/Users/bradennapier/Desktop/Dash OS/IDE/projects/dash-desktop/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:250:48)
    at loadExtension (/Users/bradennapier/Desktop/Dash OS/IDE/projects/dash-desktop/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:279:3)
    at Function.BrowserWindow.addExtension (/Users/bradennapier/Desktop/Dash OS/IDE/projects/dash-desktop/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:375:7)
    at Function.BrowserWindow.addDevToolsExtension (/Users/bradennapier/Desktop/Dash OS/IDE/projects/dash-desktop/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:405:40)
    at /Users/bradennapier/Desktop/Dash OS/IDE/projects/dash-desktop/node_modules/electron-devtools-installer/dist/index.js:74:30
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:109:7)
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/Users/bradennapier/Library/Application Support/Electron/extensions/fmkadmapgofadopljbjfkapdkoienihi/build/inject.js' }
[17:22:47.104] [info] App Finished Startup Procedure
Failed to read content scripts { Error: EACCES: permission denied, open '/Users/bradennapier/Library/Application Support/Electron/extensions/fmkadmapgofadopljbjfkapdkoienihi/build/inject.js'
    at Object.fs.openSync (fs.js:584:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
    at Object.fs.readFileSync (fs.js:491:33)
    at Object.fs.readFileSync (ELECTRON_ASAR.js:505:29)
    at readArrayOfFiles (/Users/bradennapier/Desktop/Dash OS/IDE/projects/dash-desktop/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:235:23)
    at Array.map (native)
    at contentScriptToEntry (/Users/bradennapier/Desktop/Dash OS/IDE/projects/dash-desktop/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:242:21)
    at Array.map (native)
    at injectContentScripts (/Users/bradennapier/Desktop/Dash OS/IDE/projects/dash-desktop/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:250:48)
    at loadExtension (/Users/bradennapier/Desktop/Dash OS/IDE/projects/dash-desktop/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:279:3)
    at Array.forEach (native)
    at loadDevToolsExtensions (/Users/bradennapier/Desktop/Dash OS/IDE/projects/dash-desktop/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:285:13)
    at WebContents.<anonymous> (/Users/bradennapier/Desktop/Dash OS/IDE/projects/dash-desktop/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:296:5)
    at emitOne (events.js:96:13)
    at WebContents.emit (events.js:191:7)
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/Users/bradennapier/Library/Application Support/Electron/extensions/fmkadmapgofadopljbjfkapdkoienihi/build/inject.js' }
connected to remotedev-server

The entire thing is broken now and just errors on startup.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:10
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
riccardolardicommented, Sep 29, 2017

I had permission error in $home/.config/Electron … /build/inject.js (Arch Linux) so I changed that to writable and it solved the issue, not sure how right this feels though

1reaction
bradennapiercommented, Sep 22, 2017

I went and recursively set permissions to R&W inside of the package and it fixed the issue for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix: Word Cannot Complete the Save due to a File Permission ...
What causes 'Word cannot complete the save due to a File Permission Error'? · Solution 1: Saving the document as a different name...
Read more >
[Solved] Word Cannot Complete The Save Due To A File ...
Word File Permission Error is mainly caused when you don't have editing privileges for the file you're trying to save the file.
Read more >
How to Fix Word File Permission Error on Mac - Saintlad
First things first, don't panic. A file permission error isn't a critical issue. It just lets you know that you don't have permission...
Read more >
Solved – Word Cannot Complete the Save due to File ...
The error message that word cannot complete the save due to a file permission occurs when saving files. This post shows how to...
Read more >
Troubleshoot Permission Issues - Bitnami Documentation
In this how-to guide you will learn how to deal with permission errors in your application. You will learn how Bitnami configures permissions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found