Start error



  • Crated in server on AWS and have error loading. I am following instructions from my previous install except everything is new versions of software.

    reporter.log

    2022-03-20T15:51:02.881Z - info: Initializing jsreport (version: 3.4.1, configuration file: jsreport.config.json, nodejs: 17.7.2)
    2022-03-20T15:51:02.884Z - info: Searching for available extensions in /home/ubuntu/jsreportapp/
    2022-03-20T15:51:02.925Z - info: Extensions location cache contains up to date information, skipping crawling in /home/ubuntu/jsreportapp/
    2022-03-20T15:51:02.928Z - info: Found 38 extension(s)
    2022-03-20T15:51:03.138Z - error: Error occurred during reporter init: Error: Error when loading extension cli@2.2.5
    Error: Extension "cli" is not compatible with "core" extension. Missing ".requires" information in "cli" definition
        at validateMinimalVersion (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/extensions/validateMinimalVersion.js:24:11)
        at Object._useOne (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/extensions/extensionsManager.js:158:9)
        at Object._useMany (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/extensions/extensionsManager.js:99:38)
        at Object.init (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/extensions/extensionsManager.js:74:19)
        at MainReporter.init (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/reporter.js:199:36)
        at async Commander.executeCommand (/home/ubuntu/jsreportapp/node_modules/jsreport-cli/lib/commander.js:242:22)
        at Object._useOne (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/extensions/extensionsManager.js:248:15)
        at Object._useMany (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/extensions/extensionsManager.js:99:38)
        at Object.init (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/extensions/extensionsManager.js:74:19)
        at MainReporter.init (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/reporter.js:199:36)
        at async Commander.executeCommand (/home/ubuntu/jsreportapp/node_modules/jsreport-cli/lib/commander.js:242:22)
    

    error.log

    2022-03-20T15:51:03.138Z - error: Error occurred during reporter init: Error: Error when loading extension cli@2.2.5
    Error: Extension "cli" is not compatible with "core" extension. Missing ".requires" information in "cli" definition
        at validateMinimalVersion (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/extensions/validateMinimalVersion.js:24:11)
        at Object._useOne (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/extensions/extensionsManager.js:158:9)
        at Object._useMany (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/extensions/extensionsManager.js:99:38)
        at Object.init (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/extensions/extensionsManager.js:74:19)
        at MainReporter.init (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/reporter.js:199:36)
        at async Commander.executeCommand (/home/ubuntu/jsreportapp/node_modules/jsreport-cli/lib/commander.js:242:22)
        at Object._useOne (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/extensions/extensionsManager.js:248:15)
        at Object._useMany (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/extensions/extensionsManager.js:99:38)
        at Object.init (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/extensions/extensionsManager.js:74:19)
        at MainReporter.init (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/reporter.js:199:36)
        at async Commander.executeCommand (/home/ubuntu/jsreportapp/node_modules/jsreport-cli/lib/commander.js:242:22)
    

    package.json

    {
      "name": "jsreport-server",
      "dependencies": {
        "@sendgrid/mail": "^7.6.2",
        "axios": "^0.26.1",
        "jsreport": "^3.4.1",
        "jsreport-assets": "^1.7.2",
        "jsreport-chrome-pdf": "^1.10.0",
        "jsreport-cli": "^2.2.5",
        "jsreport-docx": "^2.10.2",
        "jsreport-fs-store": "^2.9.2",
        "jsreport-fs-store-aws-s3-persistence": "^1.4.2",
        "jsreport-html-to-xlsx": "^2.8.6",
        "jsreport-import-export": "^2.1.1",
        "jsreport-mssql-store": "^1.5.0",
        "jsreport-pptx": "^0.7.6",
        "jsreport-resources": "^2.1.0",
        "jsreport-static-pdf": "^0.4.0",
        "jsreport-xlsx": "^2.5.0",
        "pdfjs-dist": "^2.13.216",
        "react-copy-to-clipboard": "^5.0.4",
        "worker-loader": "^3.0.8"
      }
    }
    

    server.js

    const jsreport = require('jsreport')()
    
    if (process.env.JSREPORT_CLI) {
      // export jsreport instance to make it possible to use jsreport-cli
      module.exports = jsreport
    } else {
      jsreport.init().then(() => {
        // running
      }).catch((e) => {
        // error during startup
        console.error(e.stack)
        process.exit(1)
      })
    }
    


  • Error: Extension "cli" is not compatible with "core" extension. Missing ".requires" information in "cli" definition



  • Please see the v3 migration instructions
    https://jsreport.net/learn/v3-migration-guide

    The npm packages are now scoped in @jsreport. So all your custom extensions npm packages look like @jsreport/jsreport-mssql-store now.

    Also note, that your package.json includes many duplicated packages. For example
    jsreport-assets is already part of the jsreport package. See here the packages that are already part of the jsreport.



  • @jan_blaha Thank you for the response I made the changes and was able to get a clean launch. But when I added these two packages I go this launch error.

    {
      "name": "jsreport-server",
      "main": "server.js",
      "scripts": {
        "start": "node server",
        "jsreport": "jsreport"
      },
      "jsreport": {
        "entryPoint": "server.js"
      },
      "dependencies": {
        "@jsreport/jsreport-chrome-pdf": "^3.1.0",
        "@jsreport/jsreport-fs-store": "^3.1.0",
        "jsreport": "^3.4.1"
      }
    }
    ```2022-03-21T09:14:16.620Z - error: Error occurred during reporter init: Error: Error when starting http redirect server on port 5488. listen EADDRINUSE: address already in use :::5488
        at Server.setupListenHandle [as _listen2] (node:net:1372:16)
        at listenInCluster (node:net:1420:12)
        at Server.listen (node:net:1508:7)
        at /home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-express/lib/main.js:67:43
        at new Promise (<anonymous>)
        at /home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-express/lib/main.js:66:16
        at Object.start (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-express/lib/main.js:125:13)
        at Object.<anonymous> (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-express/lib/main.js:319:30)
        at async ListenerCollection.fire (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/shared/listenerCollection.js:157:21)
        at async MainReporter.init (/home/ubuntu/jsreportapp/node_modules/@jsreport/jsreport-core/lib/main/reporter.js:244:7)
    
    2022-03-21T09:14:15.641Z - info: Initializing jsreport (version: 3.4.1, configuration file: jsreport.config.json, nodejs: 17.7.2)
    2022-03-21T09:14:15.644Z - info: Searching for available extensions in /home/ubuntu/jsreportapp/
    2022-03-21T09:14:15.694Z - info: Extensions location cache contains up to date information, skipping crawling in /home/ubuntu/jsreportapp/
    2022-03-21T09:14:15.698Z - info: Found 35 extension(s)
    2022-03-21T09:14:15.798Z - info: Using extension authentication@3.2.0
    2022-03-21T09:14:15.921Z - info: Using extension base@3.0.0
    2022-03-21T09:14:15.926Z - info: Using extension child-templates@3.0.1
    2022-03-21T09:14:15.927Z - info: Using extension cli@3.1.0
    2022-03-21T09:14:15.929Z - info: Using extension components@3.2.0
    2022-03-21T09:14:15.931Z - info: Using extension data@3.0.1
    2022-03-21T09:14:15.932Z - info: Using extension express@3.3.1
    2022-03-21T09:14:16.125Z - info: Using extension freeze@3.0.1
    2022-03-21T09:14:16.127Z - info: Using extension fs-store@3.1.0
    2022-03-21T09:14:16.183Z - info: Using extension handlebars@3.0.0
    2022-03-21T09:14:16.185Z - info: Using extension import-export@3.1.1
    2022-03-21T09:14:16.195Z - info: Using extension jsrender@3.0.0
    2022-03-21T09:14:16.196Z - info: Using extension licensing@3.0.2
    2022-03-21T09:14:16.209Z - info: Using extension localization@3.2.0
    2022-03-21T09:14:16.209Z - info: Using extension npm@3.1.1
    2022-03-21T09:14:16.221Z - info: Using extension pdf-utils@3.3.0
    2022-03-21T09:14:16.224Z - info: Using extension reports@3.0.3
    2022-03-21T09:14:16.226Z - info: Using extension tags@3.1.0
    2022-03-21T09:14:16.228Z - info: Using extension text@3.0.0
    2022-03-21T09:14:16.229Z - info: Using extension version-control@3.1.0
    2022-03-21T09:14:16.239Z - info: Using extension assets@3.3.0
    2022-03-21T09:14:16.249Z - info: Using extension authorization@3.2.0
    2022-03-21T09:14:16.252Z - info: Using extension browser-client@3.1.0
    2022-03-21T09:14:16.254Z - info: Using extension chrome-pdf@3.1.0
    2022-03-21T09:14:16.257Z - info: Using extension docx@3.2.0
    2022-03-21T09:14:16.259Z - info: Using extension html-to-xlsx@3.2.0
    2022-03-21T09:14:16.299Z - info: html-to-xlsx detected chrome as available html engine
    2022-03-21T09:14:16.300Z - info: Using extension pptx@3.1.0
    2022-03-21T09:14:16.302Z - info: Using extension scheduling@3.0.1
    2022-03-21T09:14:16.335Z - info: Using extension scripts@3.2.0
    2022-03-21T09:14:16.336Z - info: Using extension static-pdf@3.0.0
    2022-03-21T09:14:16.336Z - info: Using extension studio@3.4.0
    2022-03-21T09:14:16.415Z - info: Using extension xlsx@3.1.0
    2022-03-21T09:14:16.436Z - info: Using extension public-templates@3.0.0
    2022-03-21T09:14:16.437Z - info: Using extension sample-template@3.1.0
    2022-03-21T09:14:16.439Z - info: Using extension studio-theme-dark@3.0.1
    2022-03-21T09:14:16.440Z - info: Using general timeout for rendering (reportTimeout: 60000)
    2022-03-21T09:14:16.441Z - info: Using fs provider for template store.
    2022-03-21T09:14:16.452Z - info: fs store is persisting using fs for /home/ubuntu/jsreportapp/data
    2022-03-21T09:14:16.459Z - info: fs store is loading data
    2022-03-21T09:14:16.482Z - info: fs store is initialized successfully
    2022-03-21T09:15:45.312Z - info: Initializing jsreport (version: 3.4.1, configuration file: jsreport.config.json, nodejs: 17.7.2)
    2022-03-21T09:15:45.316Z - info: Searching for available extensions in /home/ubuntu/jsreportapp/
    2022-03-21T09:15:45.354Z - info: Extensions location cache contains up to date information, skipping crawling in /home/ubuntu/jsreportapp/
    2022-03-21T09:15:45.358Z - info: Found 35 extension(s)
    2022-03-21T09:15:45.466Z - info: Using extension authentication@3.2.0
    2022-03-21T09:15:45.607Z - info: Using extension base@3.0.0
    2022-03-21T09:15:45.612Z - info: Using extension child-templates@3.0.1
    2022-03-21T09:15:45.614Z - info: Using extension cli@3.1.0
    2022-03-21T09:15:45.616Z - info: Using extension components@3.2.0
    2022-03-21T09:15:45.617Z - info: Using extension data@3.0.1
    2022-03-21T09:15:45.618Z - info: Using extension express@3.3.1
    2022-03-21T09:15:45.806Z - info: Using extension freeze@3.0.1
    2022-03-21T09:15:45.807Z - info: Using extension fs-store@3.1.0
    2022-03-21T09:15:45.863Z - info: Using extension handlebars@3.0.0
    2022-03-21T09:15:45.865Z - info: Using extension import-export@3.1.1
    2022-03-21T09:15:45.875Z - info: Using extension jsrender@3.0.0
    2022-03-21T09:15:45.876Z - info: Using extension licensing@3.0.2
    2022-03-21T09:15:45.887Z - info: Using extension localization@3.2.0
    2022-03-21T09:15:45.888Z - info: Using extension npm@3.1.1
    2022-03-21T09:15:45.901Z - info: Using extension pdf-utils@3.3.0
    2022-03-21T09:15:45.903Z - info: Using extension reports@3.0.3
    2022-03-21T09:15:45.905Z - info: Using extension tags@3.1.0
    2022-03-21T09:15:45.907Z - info: Using extension text@3.0.0
    2022-03-21T09:15:45.908Z - info: Using extension version-control@3.1.0
    2022-03-21T09:15:45.920Z - info: Using extension assets@3.3.0
    2022-03-21T09:15:45.930Z - info: Using extension authorization@3.2.0
    2022-03-21T09:15:45.933Z - info: Using extension browser-client@3.1.0
    2022-03-21T09:15:45.935Z - info: Using extension chrome-pdf@3.1.0
    2022-03-21T09:15:45.938Z - info: Using extension docx@3.2.0
    2022-03-21T09:15:45.940Z - info: Using extension html-to-xlsx@3.2.0
    2022-03-21T09:15:45.979Z - info: html-to-xlsx detected chrome as available html engine
    2022-03-21T09:15:45.980Z - info: Using extension pptx@3.1.0
    2022-03-21T09:15:45.982Z - info: Using extension scheduling@3.0.1
    2022-03-21T09:15:46.014Z - info: Using extension scripts@3.2.0
    2022-03-21T09:15:46.015Z - info: Using extension static-pdf@3.0.0
    2022-03-21T09:15:46.015Z - info: Using extension studio@3.4.0
    2022-03-21T09:15:46.092Z - info: Using extension xlsx@3.1.0
    2022-03-21T09:15:46.112Z - info: Using extension public-templates@3.0.0
    2022-03-21T09:15:46.113Z - info: Using extension sample-template@3.1.0
    2022-03-21T09:15:46.115Z - info: Using extension studio-theme-dark@3.0.1
    2022-03-21T09:15:46.117Z - info: Using general timeout for rendering (reportTimeout: 60000)
    2022-03-21T09:15:46.117Z - info: Using fs provider for template store.
    2022-03-21T09:15:46.126Z - info: fs store is persisting using fs for /home/ubuntu/jsreportapp/data
    2022-03-21T09:15:46.134Z - info: fs store is loading data
    2022-03-21T09:15:46.162Z - info: fs store is initialized successfully


  • @jan_blaha Ah cool I see you you have built all the packages into 3.4 amazing thank you

    2022-03-21T09:23:04.543Z - info: Initializing jsreport (version: 3.4.1, configuration file: jsreport.config.json, nodejs: 17.7.2)
    2022-03-21T09:23:04.547Z - info: Searching for available extensions in /home/ubuntu/jsreportapp/
    2022-03-21T09:23:04.574Z - info: Extensions location cache /tmp/jsreport/core/locations.json contains older information, crawling
    2022-03-21T09:23:04.771Z - info: Found 35 extension(s)
    2022-03-21T09:23:04.889Z - info: Using extension base@3.0.0
    2022-03-21T09:23:04.897Z - info: Using extension child-templates@3.0.1
    2022-03-21T09:23:04.902Z - info: Using extension cli@3.1.0
    2022-03-21T09:23:04.904Z - info: Using extension components@3.2.0
    2022-03-21T09:23:04.907Z - info: Using extension data@3.0.1
    2022-03-21T09:23:04.908Z - info: Using extension express@3.3.1
    2022-03-21T09:23:05.336Z - info: Using extension freeze@3.0.1
    2022-03-21T09:23:05.339Z - info: Using extension fs-store@3.1.0
    2022-03-21T09:23:05.481Z - info: Using extension handlebars@3.0.0
    2022-03-21T09:23:05.484Z - info: Using extension import-export@3.1.1
    2022-03-21T09:23:05.501Z - info: Using extension jsrender@3.0.0
    2022-03-21T09:23:05.503Z - info: Using extension licensing@3.0.2
    2022-03-21T09:23:05.531Z - info: Using extension localization@3.2.0
    2022-03-21T09:23:05.533Z - info: Using extension npm@3.1.1
    2022-03-21T09:23:05.538Z - info: Using extension pdf-utils@3.3.0
    2022-03-21T09:23:05.541Z - info: Using extension reports@3.0.3
    2022-03-21T09:23:05.544Z - info: Using extension tags@3.1.0
    2022-03-21T09:23:05.547Z - info: Using extension text@3.0.0
    2022-03-21T09:23:05.549Z - info: Using extension version-control@3.1.0
    2022-03-21T09:23:05.567Z - info: Using extension assets@3.3.0
    2022-03-21T09:23:05.582Z - info: Using extension authorization@3.2.0
    2022-03-21T09:23:05.587Z - info: Using extension browser-client@3.1.0
    2022-03-21T09:23:05.591Z - info: Using extension chrome-pdf@3.1.0
    2022-03-21T09:23:05.595Z - info: Using extension docx@3.2.0
    2022-03-21T09:23:05.598Z - info: Using extension html-to-xlsx@3.2.0
    2022-03-21T09:23:05.674Z - info: html-to-xlsx detected chrome as available html engine
    2022-03-21T09:23:05.675Z - info: Using extension pptx@3.1.0
    2022-03-21T09:23:05.677Z - info: Using extension scheduling@3.0.1
    2022-03-21T09:23:05.735Z - info: Using extension scripts@3.2.0
    2022-03-21T09:23:05.737Z - info: Using extension static-pdf@3.0.0
    2022-03-21T09:23:05.739Z - info: Using extension studio@3.4.0
    2022-03-21T09:23:05.840Z - info: Using extension xlsx@3.1.0
    2022-03-21T09:23:05.876Z - info: Using extension public-templates@3.0.0
    2022-03-21T09:23:05.878Z - info: Using extension sample-template@3.1.0
    2022-03-21T09:23:05.881Z - info: Using extension studio-theme-dark@3.0.1
    2022-03-21T09:23:05.885Z - info: Using general timeout for rendering (reportTimeout: 60000)
    2022-03-21T09:23:05.885Z - info: Using fs provider for template store.
    2022-03-21T09:23:05.896Z - info: fs store is persisting using fs for /home/ubuntu/jsreportapp/data
    2022-03-21T09:23:05.913Z - info: fs store is loading data
    2022-03-21T09:23:05.921Z - info: fs store is initialized successfully
    2022-03-21T09:23:05.976Z - info: Creating default express app.
    2022-03-21T09:23:06.020Z - info: jsreport server successfully started on http port: 5488
    2022-03-21T09:23:06.022Z - info: Verifying license key free
    2022-03-21T09:23:06.023Z - info: Using free license
    2022-03-21T09:23:06.041Z - info: Migrating templates chrome settings (waitForNetworkIddle -> waitForNetworkIdle)
    2022-03-21T09:23:06.046Z - info: Migration successful
    2022-03-21T09:23:06.261Z - info: Initializing worker threads
    2022-03-21T09:23:06.650Z - info: 2 worker threads initialized in 389ms
    2022-03-21T09:23:06.650Z - info: Starting temp files cleanup with 180000ms threshold
    2022-03-21T09:23:06.651Z - info: reporter initialized

Log in to reply
 

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