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.

Improve error for invalid permissions on Linux

See original GitHub issue

I’m running into this on ubuntu 20.04 while having prisma@2.20.1 installed globally.

prisma db push --preview-feature

Environment variables loaded from prisma/.env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "debug-migrate", schema "public" at "playground-database-postgres.cluster-clfeqqifnebj.eu-west-1.rds.amazonaws.com:5432"

PostgreSQL database debug-migrate created at playground-database-postgres.cluster-clfeqqifnebj.eu-west-1.rds.amazonaws.com:5432


🚀  Your database is now in sync with your schema. Done in 2.54s

Running generate... (Use --skip-generate to skip the generators)
Error: EACCES: permission denied, copyfile '/home/millsp/.cache/prisma/master/60ba6551f29b17d7d6ce479e5733c70d9c00860e/debian-openssl-1.1.x/query-engine' -> '/usr/local/lib/node_modules/prisma/query-engine-debian-openssl-1.1.x'

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
millspcommented, Apr 8, 2021

Right, I just remembered now that we mentioned this should handled in fetch-engine. Thanks.

0reactions
pantharshit00commented, Jul 18, 2021

@omar-dulaimi You need to fix permissions of your npm cache folder, please read this part of npm documentation:https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Permission Issues - Bitnami Documentation
Permission errors are usually associated with Linux and macOS installations. ... To improve user-experience, the bitnami user can have ownership (with write ...
Read more >
How To Resolve Permission Denied Error On Ubuntu/Debian?
Method 1: Sudo command missing. Step 1: This is one of the very common mistakes that experienced Linux users also make and has...
Read more >
How to fix Error You do not have permission to access…
How to fix Error You do not have permission to access… · 1. Log into cPanel · 2. Follow the File Manager icon...
Read more >
Invalid File Permission Error When Enabling SSH Key In ...
I added a keypair to the /root/.ssh folder. Cockpit recognized it and it showed up under the Authentication screen. Attempting to enable it ......
Read more >
How do I solve "Incorrect permission on/usr/lib/policykit-1 ...
1 Answer 1 · Thanks, sudo chmod 5755 /usr/lib/policykit-1/polkit-agent-helper-1 is secure. It worked for me. · Worked perfectly, should be flagged ...
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