Unitech / Unitech/pm2

pm2 cannot access ssl cert files even though the user has access to those through nodecert group

Open
#5,437 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.