Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-15274

[fiware-stackoverflow] Docker container not started due to nodejs error

    Details

      Description

      Created question in FIWARE Q/A platform on 07-01-2019 at 13:01
      Please, ANSWER this question AT https://stackoverflow.com/questions/54074462/docker-container-not-started-due-to-nodejs-error

      Question:
      Docker container not started due to nodejs error

      Description:
      I am running

      sudo docker run -d --name cloud-portal -v /opt/stack/dockercloudportal/config.js:/opt/fiware-cloud-portal/config.js -p 8000:8000 cloud-portal

      But it gives me nodejs error as below:

      /opt/fiware-cloud-portal/node_modules/express/node_modules/debug/src/node.js:120
      exports.inspectOpts = Object.keys(process.env).filter(key => {
      ^
      SyntaxError: Unexpected token >
      at Module._compile (module.js:439:25)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)
      at Object.<anonymous> (/opt/fiware-cloud-portal/node_modules/express/node_modules/debug/src/index.js:9:19)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)

      Do I have to add any more dependencies?
      Docker image has been build successfully but docker container goes to exit state.

        Activity

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        Assignee Backlog Manager [ backlogmanager ]
        fla Fernando Lopez made changes -
        HD-Enabler Cloud Portal [ 10860 ]
        Description
        Created question in FIWARE Q/A platform on 07-01-2019 at 13:01
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/54074462/docker-container-not-started-due-to-nodejs-error


        +Question:+
        Docker container not started due to nodejs error

        +Description:+
        I am running

        sudo docker run -d --name cloud-portal -v /opt/stack/dockercloudportal/config.js:/opt/fiware-cloud-portal/config.js -p 8000:8000 cloud-portal


        But it gives me nodejs error as below:

        /opt/fiware-cloud-portal/node_modules/express/node_modules/debug/src/node.js:120
        exports.inspectOpts = Object.keys(process.env).filter(key =&gt; {
                                                                   ^
        SyntaxError: Unexpected token &gt;
            at Module._compile (module.js:439:25)
            at Object.Module._extensions..js (module.js:474:10)
            at Module.load (module.js:356:32)
            at Function.Module._load (module.js:312:12)
            at Module.require (module.js:364:17)
            at require (module.js:380:17)
            at Object.&lt;anonymous&gt; (/opt/fiware-cloud-portal/node_modules/express/node_modules/debug/src/index.js:9:19)
            at Module._compile (module.js:456:26)
            at Object.Module._extensions..js (module.js:474:10)
            at Module.load (module.js:356:32)


        Do I have to add any more dependencies?
        Docker image has been build successfully but docker container goes to exit state.
        Created question in FIWARE Q/A platform on 07-01-2019 at 13:01
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/54074462/docker-container-not-started-due-to-nodejs-error


        +Question:+
        Docker container not started due to nodejs error

        +Description:+
        I am running

        sudo docker run -d --name cloud-portal -v /opt/stack/dockercloudportal/config.js:/opt/fiware-cloud-portal/config.js -p 8000:8000 cloud-portal


        But it gives me nodejs error as below:

        /opt/fiware-cloud-portal/node_modules/express/node_modules/debug/src/node.js:120
        exports.inspectOpts = Object.keys(process.env).filter(key =&gt; {
                                                                   ^
        SyntaxError: Unexpected token &gt;
            at Module._compile (module.js:439:25)
            at Object.Module._extensions..js (module.js:474:10)
            at Module.load (module.js:356:32)
            at Function.Module._load (module.js:312:12)
            at Module.require (module.js:364:17)
            at require (module.js:380:17)
            at Object.&lt;anonymous&gt; (/opt/fiware-cloud-portal/node_modules/express/node_modules/debug/src/index.js:9:19)
            at Module._compile (module.js:456:26)
            at Object.Module._extensions..js (module.js:474:10)
            at Module.load (module.js:356:32)


        Do I have to add any more dependencies?
        Docker image has been build successfully but docker container goes to exit state.
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: