Skip to content

Phantom installation failed (Stretch) #97

@ncharlot

Description

@ncharlot

Sorry another issue with the role:

This time it's about NodeJS dependency phantomjs-prebuit:

TASK [sebalix.odoo : Install Odoo dependencies (npm)] 
******************************************************************************************
changed: [145.239.194.108] => (item={'name': 'less', 'version': '2.7.2'})
changed: [145.239.194.108] => (item={'name': 'less-plugin-clean-css', 'version': '1.5.1'})
failed: [145.239.194.108] (item={'name': 'phantomjs-prebuilt', 'version': '2.1.15'}) => {"changed": false, "cmd": "/usr/bin/npm install --global ''", "item": {"name": "phantomjs-prebuilt", "version": "2.1.15"}, "msg": "Error extracting archive\nPhantom installation failed { Error:********@2.1.15 install script 'node install.js'.\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\nnpm ERR! If you do, this is most likely a problem with the phantomjs-prebuilt package,\nnpm ERR! not with npm itself.\nnpm ERR! Tell the author that this fails on your system:\nnpm ERR!     node install.js\nnpm ERR! You can get information on how to open an issue for this project with:\nnpm ERR!     npm bugs phantomjs-prebuilt\nnpm ERR! Or if that isn't available, you can get their info via:\nnpm ERR!     npm owner ls phantomjs-prebuilt\nnpm ERR! There is likely additional logging output above.\n\nnpm ERR! Please include the following file with any support request:\nnpm ERR!     /home/debian/npm-debug.log", "rc": 1, "stderr": "Error extracting archive\nPhantom installation failed { Error: Command failed: tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2\ntar (child): bzip2: Cannot exec: No such file or directory\ntar (child): Error is not recoverable: exiting now\ntar: Child returned status 2\ntar: Error is not recoverable: exiting now\n\n    at ChildProcess.exithandler (child_process.js:199:12)\n    at emitTwo (events.js:106:13)\n    at ChildProcess.emit (events.js:191:7)\n    at maybeClose (internal/child_process.js:920:16)\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)\n  killed: false,\n  code: 2,\n  signal: null,\n  cmd: 'tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2' } Error: Command failed: tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2\ntar (child): bzip2: Cannot exec: No such file or directory\ntar (child): Error is not recoverable: exiting now\ntar: Child returned status 2\ntar: Error is not recoverable: exiting now\n\n    at ChildProcess.exithandler (child_process.js:199:12)\n    at emitTwo (events.js:106:13)\n    at ChildProcess.emit (events.js:191:7)\n    at maybeClose (internal/child_process.js:920:16)\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)\nnpm ERR! Linux 4.9.0-6-amd64\nnpm ERR! argv \"/usr/bin/node\" \"/usr/bin/npm\" \"install\" \"--global\" \"[email protected]\"\nnpm ERR! node v6.14.3\nnpm ERR! npm  v3.10.10\nnpm ERR! code ELIFECYCLE\n\nnpm ERR! [email protected] install: `node install.js`\nnpm ERR! Exit status 1\nnpm ERR! \nnpm ERR! Failed at the [email protected] install script 'node install.js'.\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\nnpm ERR! If you do, this is most likely a problem with the phantomjs-prebuilt package,\nnpm ERR! not with npm itself.\nnpm ERR! Tell the author that this fails on your system:\nnpm ERR!     node install.js\nnpm ERR! You can get information on how to open an issue for this project with:\nnpm ERR!     npm bugs phantomjs-prebuilt\nnpm ERR! Or if that isn't available, you can get their info via:\nnpm ERR!     npm owner ls phantomjs-prebuilt\nnpm ERR! There is likely additional logging output above.\n\nnpm ERR! Please include the following file with any support request:\nnpm ERR!     /home/debian/npm-debug.log\n", "stderr_lines": ["Error extracting archive", "Phantom installation failed { Error: Command failed: tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2", "tar (child): bzip2: Cannot exec: No such file or directory", "tar (child): Error is not recoverable: exiting now", "tar: Child returned status 2", "tar: Error is not recoverable: exiting now", "", "    at ChildProcess.exithandler (child_process.js:199:12)", "    at emitTwo (events.js:106:13)", "    at ChildProcess.emit (events.js:191:7)", "    at maybeClose (internal/child_process.js:920:16)", "    at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)", "  killed: false,", "  code: 2,", "  signal: null,", "  cmd: 'tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2' } Error: Command failed: tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2", "tar (child): bzip2: Cannot exec: No such file or directory", "tar (child): Error is not recoverable: exiting now", "tar: Child returned status 2", "tar: Error is not recoverable: exiting now", "", "    at ChildProcess.exithandler (child_process.js:199:12)", "    at emitTwo (events.js:106:13)", "    at ChildProcess.emit (events.js:191:7)", "    at maybeClose (internal/child_process.js:920:16)", "    at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)", "npm ERR! Linux 4.9.0-6-amd64", "npm ERR! argv \"/usr/bin/node\" \"/usr/bin/npm\" \"install\" \"--global\" \"[email protected]\"", "npm ERR! node v6.14.3", "npm ERR! npm  v3.10.10", "npm ERR! code ELIFECYCLE", "", "npm ERR! [email protected] install: `node install.js`", "npm ERR! Exit status 1", "npm ERR! ", "npm ERR! Failed at the [email protected] install script 'node install.js'.", "npm ERR! Make sure you have the latest version of node.js and npm installed.", "npm ERR! If you do, this is most likely a problem with the phantomjs-prebuilt package,", "npm ERR! not with npm itself.", "npm ERR! Tell the author that this fails on your system:", "npm ERR!     node install.js", "npm ERR! You can get information on how to open an issue for this project with:", "npm ERR!     npm bugs phantomjs-prebuilt", "npm ERR! Or if that isn't available, you can get their info via:", "npm ERR!     npm owner ls phantomjs-prebuilt", "npm ERR! There is likely additional logging output above.", "", "npm ERR! Please include the following file with any support request:", "npm ERR!     /home/debian/npm-debug.log"], "stdout": "/usr/bin/phantomjs -> /usr/lib/node_modules/phantomjs-prebuilt/bin/phantomjs\n\n> [email protected] install /usr/lib/node_modules/phantomjs-prebuilt\n> node install.js\n\nConsidering PhantomJS found at /usr/bin/phantomjs\nLooks like an `npm install -g`\nCould not link global install, skipping...\nDownloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2\nSaving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2\nReceiving...\n\nReceived 22866K total.\nExtracting tar contents (via spawned process)\n", "stdout_lines": ["/usr/bin/phantomjs -> /usr/lib/node_modules/phantomjs-prebuilt/bin/phantomjs", "", "> [email protected] install /usr/lib/node_modules/phantomjs-prebuilt", "> node install.js", "", "Considering PhantomJS found at /usr/bin/phantomjs", "Looks like an `npm install -g`", "Could not link global install, skipping...", "Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2", "Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2", "Receiving...", "", "Received 22866K total.", "Extracting tar contents (via spawned process)"]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions