{"action":"created","issue":{"url":"https://api.github.com/repos/progrium/dokku/issues/1719","labels_url":"https://api.github.com/repos/progrium/dokku/issues/1719/labels{/name}","comments_url":"https://api.github.com/repos/progrium/dokku/issues/1719/comments","events_url":"https://api.github.com/repos/progrium/dokku/issues/1719/events","html_url":"https://github.com/progrium/dokku/issues/1719","id":118947196,"number":1719,"title":"NPM Installation Failure","user":{"login":"developit","id":105127,"avatar_url":"https://avatars.githubusercontent.com/u/105127?v=3","gravatar_id":"","url":"https://api.github.com/users/developit","html_url":"https://github.com/developit","followers_url":"https://api.github.com/users/developit/followers","following_url":"https://api.github.com/users/developit/following{/other_user}","gists_url":"https://api.github.com/users/developit/gists{/gist_id}","starred_url":"https://api.github.com/users/developit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developit/subscriptions","organizations_url":"https://api.github.com/users/developit/orgs","repos_url":"https://api.github.com/users/developit/repos","events_url":"https://api.github.com/users/developit/events{/privacy}","received_events_url":"https://api.github.com/users/developit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-26T00:26:56Z","updated_at":"2015-11-26T01:11:49Z","closed_at":null,"body":"### Description of problem:\r\nWhen trying to deploy a node app, dependency installation fails silently.\r\nWhen run with `NPM_CONFIG_LOGLEVEL=info`, no abnormal output is shown.  It appears as though the `npm install` process is being terminated after a time limit?\r\n\r\n### Output\r\n\r\n```sh\r\nAPP (master) $ git push dokku master\r\nCounting objects: 56, done.\r\nDelta compression using up to 8 threads.\r\nCompressing objects: 100% (52/52), done.\r\nWriting objects: 100% (56/56), 11.19 KiB | 0 bytes/s, done.\r\nTotal 56 (delta 18), reused 0 (delta 0)\r\n-----> Cleaning up...\r\n-----> Building APP from herokuish...\r\n-----> Adding BUILD_ENV to build environment...\r\n-----> Node.js app detected\r\n       \r\n-----> Creating runtime environment\r\n       \r\n       NPM_CONFIG_LOGLEVEL=error\r\n       NPM_CONFIG_PRODUCTION=false\r\n       NODE_ENV=development\r\n       NODE_MODULES_CACHE=true\r\n       \r\n-----> Installing binaries\r\n       engines.node (package.json):  4.x\r\n       engines.npm (package.json):   2.x\r\n       \r\n       Resolving node version 4.x via semver.io...\r\n       Downloading and installing node 4.2.2...\r\n       Resolving npm version 2.x via semver.io...\r\n       Downloading and installing npm 2.14.13 (replacing version 2.14.7)...\r\n       \r\n-----> Restoring cache\r\n       Skipping cache restore (new runtime signature)\r\n       \r\n-----> Building dependencies\r\n       Pruning any extraneous modules\r\n       Installing node modules (package.json)\r\nremote: /tmp/buildpacks/heroku-buildpack-nodejs/lib/dependencies.sh: line 1:   280 Killed                  npm install --unsafe-perm --userconfig $build_dir/.npmrc 2>&1\r\n       \r\n-----> Build failed\r\n       \r\n       We're sorry this build is failing! You can troubleshoot common issues here:\r\n       https://devcenter.heroku.com/articles/troubleshooting-node-deploys\r\n       \r\n       If you're stuck, please submit a ticket so we can help:\r\n       https://help.heroku.com/\r\n       \r\n       Love,\r\n       Heroku\r\n       \r\nTo dokku@HOST:APP\r\n ! [remote rejected] master -> master (pre-receive hook declined)\r\nerror: failed to push some refs to 'dokku@HOST:APP'\r\n```\r\n\r\n\r\n```\r\n$ uname -a\r\nLinux dokku 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n$ docker version\r\nClient:\r\n Version:      1.8.2\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   0a8c2e3\r\n Built:        Thu Sep 10 19:19:00 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.8.2\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   0a8c2e3\r\n Built:        Thu Sep 10 19:19:00 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\n$ docker -D info\r\nContainers: 7\r\nImages: 62\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 76\r\n Dirperm1 Supported: false\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 3.13.0-57-generic\r\nOperating System: Ubuntu 14.04.3 LTS\r\nCPUs: 1\r\nTotal Memory: 490 MiB\r\nName: dokku\r\nID: I2CT:WRVO:YZZN:3G62:LKEX:TDLZ:SZGY:QAFO:WXML:WCAV:N3DF:WGDV\r\nWARNING: No swap limit support\r\n\r\n$ dokku version\r\n0.4.4\r\n\r\n$ dokku plugin\r\n  00_dokku-standard    0.4.0 enabled    dokku core standard plugin\r\n  20_events            0.4.0 enabled    dokku core events logging plugin\r\n  apps                 0.4.0 enabled    dokku core apps plugin\r\n  backup               0.4.0 enabled    dokku core backup plugin\r\n  build-env            0.4.0 enabled    dokku core build-env plugin\r\n  certs                0.4.0 enabled    dokku core certificate management plugin\r\n  checks               0.4.0 enabled    dokku core checks plugin\r\n  common               0.4.0 enabled    dokku core common plugin\r\n  config               0.4.0 enabled    dokku core config plugin\r\n  docker-options       0.4.0 enabled    dokku core docker-options plugin\r\n  dokku-mongo          1.0.0 enabled    dokku mongo service plugin\r\n  dokku-postgres       1.0.0 enabled    dokku postgres service plugin\r\n  domains              0.4.0 enabled    dokku core domains plugin\r\n  enter                0.4.0 enabled    dokku core enter plugin\r\n  git                  0.4.0 enabled    dokku core git plugin\r\n  logs                 0.4.0 enabled    dokku core logs plugin\r\n  named-containers     0.4.0 enabled    dokku core named containers plugin\r\n  nginx-vhosts         0.4.0 enabled    dokku core nginx-vhosts plugin\r\n  plugin               0.4.0 enabled    dokku core plugin plugin\r\n  ps                   0.4.0 enabled    dokku core ps plugin\r\n  shell                0.4.0 enabled    dokku core shell plugin\r\n  tags                 0.4.0 enabled    dokku core tags plugin\r\n  tar                  0.4.0 enabled    dokku core tar plugin\r\n\r\n$ cat /home/dokku/<app>/nginx.conf\r\nserver {\r\n  listen      [::]:80;\r\n  listen      80;\r\n  server_name <app>.<host> ;\r\n  access_log  /var/log/nginx/<app>-access.log;\r\n  error_log   /var/log/nginx/<app>-error.log;\r\n\r\n  location    / {\r\n\r\n    gzip on;\r\n    gzip_min_length  1100;\r\n    gzip_buffers  4 32k;\r\n    gzip_types    text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml  application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml;\r\n    gzip_vary on;\r\n    gzip_comp_level  6;\r\n\r\n    proxy_pass  http://<app>;\r\n    proxy_http_version 1.1;\r\n    proxy_set_header Upgrade $http_upgrade;\r\n    proxy_set_header Connection upgrade;\r\n    proxy_set_header Host $http_host;\r\n    proxy_set_header X-Forwarded-Proto $scheme;\r\n    proxy_set_header X-Forwarded-For $remote_addr;\r\n    proxy_set_header X-Forwarded-Port $server_port;\r\n    proxy_set_header X-Request-Start $msec;\r\n  }\r\n  include /home/dokku/<app>/nginx.conf.d/*.conf;\r\n}\r\n```\r\n\r\n### Environment details\r\nDokku on DigitalOcean via their template.\r\n\r\n### How was dokku installed?\r\nDigitalOcean image, then upgraded via `apt-get install herokuish dokku`.\r\n\r\n### How reproducible\r\nI'm not sure.\r\n"},"comment":{"url":"https://api.github.com/repos/progrium/dokku/issues/comments/159771894","html_url":"https://github.com/progrium/dokku/issues/1719#issuecomment-159771894","issue_url":"https://api.github.com/repos/progrium/dokku/issues/1719","id":159771894,"user":{"login":"developit","id":105127,"avatar_url":"https://avatars.githubusercontent.com/u/105127?v=3","gravatar_id":"","url":"https://api.github.com/users/developit","html_url":"https://github.com/developit","followers_url":"https://api.github.com/users/developit/followers","following_url":"https://api.github.com/users/developit/following{/other_user}","gists_url":"https://api.github.com/users/developit/gists{/gist_id}","starred_url":"https://api.github.com/users/developit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developit/subscriptions","organizations_url":"https://api.github.com/users/developit/orgs","repos_url":"https://api.github.com/users/developit/repos","events_url":"https://api.github.com/users/developit/events{/privacy}","received_events_url":"https://api.github.com/users/developit/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T01:11:49Z","updated_at":"2015-11-26T01:11:49Z","body":"Also, if it helps, I just repeated my steps with this basic starter project (which also works on Heroku) and it fails the same way:  github.com/developit/express-es6-rest-api"}}