Score:0

EACCESS - Permission denied - Reading file using fs in Node through docker-compose

us flag

I've invested/wasted more than 5 days now trying to run an Open-source ERP system, Gauzy, in Ubuntu 20.04. What I've been facing is that this software is run by using command docker-compose up and the API server created by this can only be accessed over HTTP, but frontend requires HTTPS.

To make it support HTTPS, I can't set-up the certificates in Nest.JS because of EACCESS - Permission denied when reading the files. If I place the two files (certificate.pem and private.pem) in any other directory than root like etc or srv, the error changes to ENOENT.

The error: enter image description here

I've tried multiple answers over this and other platforms which seem like guesses and none worked.

The files are in root for now, I've tried in sub-directory in root as well, same error, and apart from root, ENOENT. enter image description here

What to do to make this EACCESS issue fixed?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.