Error: EACCES: permission denied, mkdir '/tmp/jsreport/cli'



  • Not sure what happened cloned the process from a working server and I got this following the same steps.

     jsreport start
    /usr/lib/node_modules/jsreport-cli/lib/getTempPaths.js:36
          throw err
          ^
    
    Error: EACCES: permission denied, mkdir '/tmp/jsreport/cli'
        at Object.mkdirSync (fs.js:987:3)
        at tryCreate (/usr/lib/node_modules/jsreport-cli/lib/getTempPaths.js:33:8)
        at Object.createPaths (/usr/lib/node_modules/jsreport-cli/lib/getTempPaths.js:22:9)
        at Object.<anonymous> (/usr/lib/node_modules/jsreport-cli/lib/commander.js:72:11)
        at Module._compile (internal/modules/cjs/loader.js:1063:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
        at Module.load (internal/modules/cjs/loader.js:928:32)
        at Function.Module._load (internal/modules/cjs/loader.js:769:14)
        at Module.require (internal/modules/cjs/loader.js:952:19)
        at require (internal/modules/cjs/helpers.js:88:18) {
      errno: -13,
      syscall: 'mkdir',
      code: 'EACCES',
      path: '/tmp/jsreport/cli'
    
    
    

  • administrators

    hi! hmm i recommend checking the permissions you have over the /tmp or /tmp/jsreport folder (if exists) and verify if you are able to create a folder at /tmp or /tmp/jsreport with the current logged user you have in the OS. this error is just the OS complaining the logged user does not have the necessary permissions to create a folder at /tmp



  • Thanks that's what I thought strange that I did not have issue on the first server with same setup

    ubuntu@reports:/tmp/jsreport$ sudo sudo chmod -R 777 /tmp/jsreport/
    ubuntu@reports:/tmp/jsreport$ mkdir /tmp/jsreport/cli

Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.