nodejs / docker-node

Official Docker Image for Node.js :whale: :turtle: :rocket:
https://hub.docker.com/_/node/
MIT License
8.25k stars 1.97k forks source link

error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libidn.so.11: file too short #338

Closed karneaud closed 3 years ago

karneaud commented 7 years ago

I'm using docker-compose with theimage: node:latest to run my node related application and on install i get the error message

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" docker-mas | npm ERR! node v7.6.0 docker-mas | npm ERR! npm v4.1.2 docker-mas | npm ERR! code 128 docker-mas | docker-mas | npm ERR! Command failed: git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/karneaud/smoothState.js.git /root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295 docker-mas | npm ERR! Cloning into bare repository '/root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295'... docker-mas | npm ERR! git-remote-https: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libidn.so.11: file too short docker-mas | npm ERR! docker-mas | npm ERR!

my package.json

{
  "name": "gulp-pugitude",
  "version": "0.1.5",
  "description": "Easy Static Site Builder with Pug (Jade), Sass, and Live-Server",
  "main": "gulpfile.js",
  "dependencies": {
    "sass-mediaqueries":"*",
    "typeplate-starter-kit":"*",
    "smoothstate":"https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request",
    "hover.css":"*",
    "animate.css":"*",
    "aos":"*"
  },
  "devDependencies": {
    "gulp": "*",
    "pug": "*",
    "gulp-clean-css": "*",
    "gulp-concat": "^2.6.0",
    "gulp-dest": "^0.2.3",
    "browser-sync": "*",
    "gulp-pug": "*",
    "gulp-rename": "^1.2.2",
    "gulp-sass": "*",
    "gulp-uglify": "^1.5.3",
    "gulp-if": "*",
    "gulp-autoprefixer":"*",
    "gulp-plumber":"*"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/wandrewkeech/gulp-pugitude.git"
  },
  "keywords": [
    "gulp",
    "jade",
    "pug",
    "sass",
    "live-server",
    "easy",
    "minimal"
  ],
  "author": "Andy Keech <w.andrew.keech@gmail.com> (http://www.github.com/wandrewkeech)",
  "license": "ISC",
  "bugs": {
    "url": "https://github.com/wandrewkeech/gulp-pugitude/issues"
  },
  "homepage": "https://github.com/wandrewkeech/gulp-pugitude#readme"
}

Is this a problem with the image or with npm? I'm not sure my nom-debug.log

npm info it worked if it ends with ok npm info using npm@4.1.2 npm info using node@v7.6.0 npm info git [ 'clone', npm info git '--template=/root/.npm/_git-remotes/_templates', npm info git '--mirror', npm info git 'https://github.com/karneaud/smoothState.js.git', npm info git '/root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295' ] npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/karneaud/smoothState.js.git /root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295: Cloning into bare repository '/root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295'... npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/karneaud/smoothState.js.git /root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295: git-remote-https: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libidn.so.11: file too short npm ERR! Linux 4.4.47-boot2docker npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request" npm ERR! node v7.6.0 npm ERR! npm v4.1.2 npm ERR! code 128

npm ERR! Command failed: git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/karneaud/smoothState.js.git /root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295 npm ERR! Cloning into bare repository '/root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295'... npm ERR! git-remote-https: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libidn.so.11: file too short npm ERR! npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /app/npm-debug.log root@fa524c14a7c4:/app# vim /app/npm-debug.log

0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'install', 1 verbose cli '--save', 1 verbose cli 'git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request' ] 2 info using npm@4.1.2 3 info using node@v7.6.0 4 silly loadCurrentTree Starting 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 silly fetchPackageMetaData git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request 8 silly fetchOtherPackageData git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request 9 silly cache add args [ 'git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request', 9 silly cache add null ] 10 verbose cache add spec git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request 11 silly cache add parsed spec Result { 11 silly cache add raw: 'git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request', 11 silly cache add scope: null, 11 silly cache add escapedName: null, 11 silly cache add name: null, 11 silly cache add rawSpec: 'git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request', 11 silly cache add spec: 'git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request', 11 silly cache add type: 'hosted', 11 silly cache add hosted: 11 silly cache add { type: 'github', 11 silly cache add ssh: 'git@github.com:karneaud/smoothState.js.git#karneaud-patch-cancel-request', 11 silly cache add sshUrl: 'git+ssh://git@github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request', 11 silly cache add httpsUrl: 'git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request', 11 silly cache add gitUrl: 'git://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request', 11 silly cache add shortcut: 'github:karneaud/smoothState.js#karneaud-patch-cancel-request', 11 silly cache add directUrl: 'https://raw.githubusercontent.com/karneaud/smoothState.js/karneaud-patch-cancel-request/package.json' } } 12 verbose addRemoteGit caching git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request 13 verbose addRemoteGit git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request is a repository hosted by github 14 silly tryClone cloning git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request via git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request 15 verbose tryClone git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295 not in flight; caching 16 verbose correctMkdir /root/.npm/_git-remotes correctMkdir not in flight; initializing 17 info git [ 'clone', 17 info git '--template=/root/.npm/_git-remotes/_templates', 17 info git '--mirror', 17 info git 'https://github.com/karneaud/smoothState.js.git', 17 info git '/root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295' ] 18 error git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/karneaud/smoothState.js.git /root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295: Cloning into bare repository '/root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295'... 18 error git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/karneaud/smoothState.js.git /root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295: git-remote-https: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libidn.so.11: file too short 19 silly fetchPackageMetaData git-remote-https: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libidn.so.11: file too short 19 silly fetchPackageMetaData 19 silly fetchPackageMetaData at ChildProcess.exithandler (child_process.js:211:12) 19 silly fetchPackageMetaData at emitTwo (events.js:106:13) 19 silly fetchPackageMetaData at ChildProcess.emit (events.js:192:7) 19 silly fetchPackageMetaData at maybeClose (internal/child_process.js:890:16) 19 silly fetchPackageMetaData at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 19 silly fetchPackageMetaData killed: false, 19 silly fetchPackageMetaData code: 128, 19 silly fetchPackageMetaData signal: null, 19 silly fetchPackageMetaData cmd: 'git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/karneaud/smoothState.js.git /root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295' } 20 silly rollbackFailedOptional Starting 21 silly rollbackFailedOptional Finishing 22 silly runTopLevelLifecycles Finishing 23 silly install printInstalled 24 verbose stack Error: Command failed: git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/karneaud/smoothState.js.git /root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295 24 verbose stack Cloning into bare repository '/root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295'... 24 verbose stack git-remote-https: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libidn.so.11: file too short 24 verbose stack 24 verbose stack at ChildProcess.exithandler (child_process.js:211:12) 24 verbose stack at emitTwo (events.js:106:13) 24 verbose stack at ChildProcess.emit (events.js:192:7) 24 verbose stack at maybeClose (internal/child_process.js:890:16) 24 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 25 verbose cwd /app 26 error Linux 4.4.47-boot2docker 27 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "git+https://github.com/karneaud/smoothState.js.git#karneaud-patch-cancel-request" 28 error node v7.6.0 29 error npm v4.1.2 30 error code 128 31 error Command failed: git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/karneaud/smoothState.js.git /root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295 31 error Cloning into bare repository '/root/.npm/_git-remotes/git-https-github-com-karneaud-smoothState-js-git-karneaud-patch-cancel-request-a90ff295'... 31 error git-remote-https: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libidn.so.11: file too short 32 error If you need help, you may report this error at: 32 error https://github.com/npm/npm/issues 33 verbose exit [ 1, true ]

                                                                                                                                       91,1          Bot
chorrell commented 6 years ago

What does your Dockerfile look like?

chorrell commented 6 years ago

Or rather, what you have for docker-compose?