JSreport full install error on Ubuntu 16.04.2

  • Hey everyone,

    Fresh install of Ubuntu 16.04.2 LTS, node installed via nvm ( node v8.11.3, npm 6.2.0)

    Following full install instractions

    npm install jsreport-cli -g
    mkdir jsreportapp
    cd jsreportapp
    jsreport init
    jsreport configure
    jsreport start 

    However this as far as I can go : (

    linux@ubuntu:~/jsreportapp$ jsreport init && jsreport configure && jsreport start
    jsreport installation not found, installing jsreport latest version now, wait a moment...
    jsreport installation finished..
    Creating server.js
    Creating package.json
    Creating default config jsreport.config.json
    ? Do you want to enable web server? Yes
    ? Which protocol should web server use? http
    ? Specify the http port for web server: 5488
    ? Do you want to enable authentication in web server? No
    ? Do you want to persist jsreport objects and logs on disk? Yes everything saved on disk
    ? Can jsreport trust the rendering requests and allow access to local files and modules? No
    ? Should jsreport reuse processes to speed up the rendering? Yes
    ? Would you like that we create some default examples for you? Yes
    config saved in: /home/linux/jsreportapp/jsreport.config.json
    2018-07-18T20:39:09.777Z - info: Initializing jsreport@2.1.1 in development mode using configuration file: jsreport.config.json
    2018-07-18T20:39:09.782Z - info: Searching for available extensions in /home/linux/jsreportapp/
    2018-07-18T20:39:09.883Z - error: Error occured during reporter init Error: EISDIR: illegal operation on a directory, read
    An error has occurred when trying to initialize jsreport (2). EISDIR: illegal operation on a directory, read (1).
    caused by error (2) -> stack = Error:
        at instance.init.then.catch (/home/linux/jsreportapp/node_modules/jsreport-cli/lib/instanceHandler.js:31:29)
        at <anonymous>
    caused by error (1) -> meta = {"cause":{"errno":-21,"code":"EISDIR","syscall":"read"},"isOperational":true,"errno":-21,"code":"EISDIR","syscall":"read"}, stack = Error:

    Any ideas?

  • can you check what you have in folder /tmp/jsreport?
    Don't you have there DIRECTORY tmp/jsreport/core/locations.json ?
    Because the error looks like that.
    Thank you

    It could help to remove /tmp/jsreport and start jsreport again.

  • removing /tmp/jsreport and following the installation steps once more resolved the issue.


Log in to reply

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