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.

Latest Version Fails Post install when permissions are tight

See original GitHub issue

This is a Bug Report

Description

For bug reports:

  • What went wrong? Post install for serverless fails

  • What did you expect should have happened? Post install to complete

  • What was the config you used? N/A

  • What stacktrace or error message from your provider did you see?

> serverless@1.15.1 postinstall /usr/local/lib/node_modules/serverless
> node ./scripts/postinstall.js

/usr/local/lib/node_modules/serverless/node_modules/write-file-atomic/index.js:132
    throw err
    ^

Error: EACCES: permission denied, open '/root/.serverlessrc.3405600948'
    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Function.writeFileSync [as sync] (/usr/local/lib/node_modules/serverless/node_modules/write-file-atomic/index.js:117:17)
    at createConfig (/usr/local/lib/node_modules/serverless/lib/utils/config/index.js:30:19)
    at getConfig (/usr/local/lib/node_modules/serverless/lib/utils/config/index.js:44:5)
    at Object.get (/usr/local/lib/node_modules/serverless/lib/utils/config/index.js:90:18)
    at isTrackingDisabled (/usr/local/lib/node_modules/serverless/lib/utils/isTrackingDisabled.js:6:22)
    at Object.<anonymous> (/usr/local/lib/node_modules/serverless/lib/utils/segment.js:9:30)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/serverless/lib/classes/Utils.js:14:17)

Similar or dependent issues:

Additional Data

This is failing on circleci 2.0 where permission are apparently too strict.

  • Serverless Framework Version you’re using: 1.15
  • Operating System: Debian

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
rupakgcommented, Jun 8, 2017

@jtslear @abalone0204 temporary fix by doing:

npm config set unsafe-perm=true

Investigating root cause. Thanks to @alexdebrie for temp workaround.

0reactions
pmuenscommented, Jun 9, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error installing R packages: permission denied [R]
I recently updated both R (4.0.2) and RStudio (1.3.1073) installations on my computer (Windows 8.1 64bit). Then, I ran some old code and...
Read more >
Permission error on postinstall from App Store - Ask Different
I'm trying to install an application using the App Store on Mavericks. The download succeeds, but the install hangs at the very end...
Read more >
NVIDIA CUDA Installation Guide for Linux
The installation instructions for the CUDA Toolkit on Linux.
Read more >
Allow apps to specify optional permissions in the manifest
In many cases, applications request permissions that are noncritical for basic functionality in order to provide the user with maximum convenience.
Read more >
Frequently Asked Questions about the GNU Licenses
Does the GPL require that source code of modified versions be posted to the ... a certain program can be used only under...
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