·
Added a discussion

HI,
I Cannot launch jot server (I use plesk), my log file:
{"message":"Server Error","stack":"Error: EACCES: permission denied, open '/usr/local/psa/var/modules/letsencrypt/etc/live/cryptoservices.xyz/cert.pem'\n    at Object.openSync (fs.js:465:3)\n    at Object.readFileSync (fs.js:368:35)\n    at parse (/var/www/vhosts/cryptoservices.xyz/jot-server/node_modules/create-server/index.js:72:27)\n    at Array.forEach ()\n    at create (/var/www/vhosts/cryptoservices.xyz/jot-server/node_modules/create-server/index.js:64:8)\n    at new createServer (/var/www/vhosts/cryptoservices.xyz/jot-server/node_modules/primus/index.js:1118:40)\n    at Object. (/var/www/vhosts/cryptoservices.xyz/jot-server/modules/server.js:20:18)\n    at Module._compile (internal/modules/cjs/loader.js:1256:30)\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1277:10)\n    at Module.load (internal/modules/cjs/loader.js:1105:32)","errno":-13,"syscall":"open","code":"EACCES","path":"/usr/local/psa/var/modules/letsencrypt/etc/live/cryptoservices.xyz/cert.pem","domain":{"_events":{},"_eventsCount":3,"members":[]},"domainThrown":true,"level":"error","label":"jot-server/app.js","timestamp":"2020-08-04T12:20:09.357Z"}
That is my config file:
{
"port":5100,
"mode":"",
"log":"log.log",
"domains":["*"],
"transformer":"sockjs",
"root":"/usr/local/psa/var/modules/letsencrypt/etc/live/cryptoservices.xyz/",
"cert":"cert.pem",
"key":"privkey.pem",
"OFFLINE":0,
"ONLINE":1,
"AWAY":2
}
I cant change the permissions on the files and its better for the security, so what can I do ?

  • 1795
Comments
    • Hello!

      Seems like there is wrong path to the root folder with certs. Are you sure that cert.pem and privkey.pem files are both in /usr/local/psa/var/modules/letsencrypt/etc/live/cryptoservices.xyz/ folder ?

      If so, try please to remove symbol "/" in the end of the  "root" param, so you root option should look like this:

      "root":"/usr/local/psa/var/modules/letsencrypt/etc/live/cryptoservices.xyz"

      and try to run again. 

      • Hi and thanks for your reply, I tried with and without "/", and it's the same... The 2 files are in this folder

        • Sorry, I haven't recognized the error.
          You should login as root and run the jot server under root or try to change permissions of the file at least to 644 under root account and then run as you like, otherwise jot server will not be able to read the file.

          Login or Join to comment.