pm2 cannot access ssl cert files even though the user has access to those through nodecert group
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
What's going wrong?
I have a mern stack app which is using lets encrypt ssl certificates and has been downloaded by root user however I have created a user group along with me and root as members with adequate permissions to run the app and its working fine when I do something like node server.js or npm start however when I do pm2 start server.js its still showing EAccess error in order to access those cert files and as per my understanding pm2 will be considered as me in the server and I have enough permissions may I know the work around to comeover this issue?
Thanks.
How could we reproduce this issue?
Supporting information
$ pm2 report
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Use server.js as the reproduction entry point: compare node server.js and npm start with pm2 start server.js under the reported user and group, then collect pm2 report. Done means the certificate access failure is reproduced and a tested workaround or precise explanation of the differing permissions is established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100