Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Help: Estherbot Deploy issues in Heroku #33

Open
ghost opened this issue Sep 18, 2016 · 8 comments
Open

Need Help: Estherbot Deploy issues in Heroku #33

ghost opened this issue Sep 18, 2016 · 8 comments

Comments

@ghost
Copy link

ghost commented Sep 18, 2016

I'm a newbie. Following directions provided by Estherbot to create my own bot. I can't seem to figure out what errors are crashing the build. Can anyone help?

-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NPM_CONFIG_PRODUCTION=true
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
Resolving node version (latest stable) via semver.io...
Downloading and installing node 5.11.1...
Using default npm version: 3.8.6
-----> Restoring cache
Skipping cache restore (new runtime signature)
-----> Building dependencies
Installing node modules (package.json)
npm ERR! git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294: Cloning into bare repository '/app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294'...
npm ERR! git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294: remote: Invalid username or password.
npm ERR! git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294: fatal: Authentication failed for 'https://github.com/skhavari/smooch-bot.git/'
npm ERR! Linux 3.13.0-95-generic
npm ERR! argv "/tmp/build_cb141affb38eeddccc6d35fb56168a4f/esthercrawford-EstherBot-0772fde/.heroku/node/bin/node" "/tmp/build_cb141affb38eeddccc6d35fb56168a4f/esthercrawford-EstherBot-0772fde/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_cb141affb38eeddccc6d35fb56168a4f/esthercrawford-EstherBot-0772fde/.npmrc"
npm ERR! node v5.11.1
npm ERR! npm v3.8.6
npm ERR! code 128
npm ERR! Command failed: git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294
npm ERR! Cloning into bare repository '/app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294'...
npm ERR! remote: Invalid username or password.
npm ERR! fatal: Authentication failed for 'https://github.com/skhavari/smooch-bot.git/'
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! /tmp/build_cb141affb38eeddccc6d35fb56168a4f/esthercrawford-EstherBot-0772fde/npm-debug.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
Some possible problems:
- Node version not specified in package.json
https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed

@viv1ag
Copy link

viv1ag commented Sep 27, 2016

## I have also got similar issue. Please let us know how to fix it?

`-----> Node.js app detected
-----> Creating runtime environment

   NPM_CONFIG_LOGLEVEL=error
   NPM_CONFIG_PRODUCTION=true
   NODE_ENV=production
   NODE_MODULES_CACHE=true

-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)

   Resolving node version (latest stable) via semver.io...
   Downloading and installing node 5.11.1...
   Using default npm version: 3.8.6

-----> Restoring cache
Skipping cache restore (new runtime signature)
-----> Building dependencies
Installing node modules (package.json)
npm ERR! git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294: Cloning into bare repository '/app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294'...
npm ERR! git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294: remote: Invalid username or password.
npm ERR! git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294: fatal: Authentication failed for 'https://github.com/skhavari/smooch-bot.git/'
npm ERR! Linux 3.13.0-95-generic
npm ERR! argv "/tmp/build_4b42cde67d08a56029f47e87faac442e/esthercrawford-EstherBot-0772fde/.heroku/node/bin/node" "/tmp/build_4b42cde67d08a56029f47e87faac442e/esthercrawford-EstherBot-0772fde/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_4b42cde67d08a56029f47e87faac442e/esthercrawford-EstherBot-0772fde/.npmrc"
npm ERR! node v5.11.1
npm ERR! npm v3.8.6
npm ERR! code 128

   npm ERR! Command failed: git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294
   npm ERR! Cloning into bare repository '/app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294'...
   npm ERR! remote: Invalid username or password.
   npm ERR! fatal: Authentication failed for 'https://github.com/skhavari/smooch-bot.git/'
   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!     /tmp/build_4b42cde67d08a56029f47e87faac442e/esthercrawford-EstherBot-0772fde/npm-debug.log

-----> Build failed

   We're sorry this build is failing! You can troubleshoot common issues here:
   https://devcenter.heroku.com/articles/troubleshooting-node-deploys

   Some possible problems:

   - Node version not specified in package.json
   https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version

   Love,
   Heroku

! Push rejected, failed to compile Node.js app.
! Push failed`

@dgdelira
Copy link

Having similar problem here:

`-----> Node.js app detected
-----> Creating runtime environment

   NPM_CONFIG_LOGLEVEL=error
   NPM_CONFIG_PRODUCTION=true
   NODE_ENV=production
   NODE_MODULES_CACHE=true

-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)

   Resolving node version (latest stable) via semver.io...
   Downloading and installing node 5.11.1...
   Using default npm version: 3.8.6

-----> Restoring cache
Skipping cache restore (new runtime signature)
-----> Building dependencies
Installing node modules (package.json)
npm ERR! git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294: Cloning into bare repository '/app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294'...
npm ERR! git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294: remote: Invalid username or password.
npm ERR! git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294: fatal: Authentication failed for 'https://github.com/skhavari/smooch-bot.git/'
npm ERR! Linux 3.13.0-95-generic
npm ERR! argv "/tmp/build_fa3a91b3b1cb9fa1512a5c825ba4daa0/esthercrawford-EstherBot-0772fde/.heroku/node/bin/node" "/tmp/build_fa3a91b3b1cb9fa1512a5c825ba4daa0/esthercrawford-EstherBot-0772fde/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_fa3a91b3b1cb9fa1512a5c825ba4daa0/esthercrawford-EstherBot-0772fde/.npmrc"
npm ERR! node v5.11.1
npm ERR! npm v3.8.6
npm ERR! code 128

   npm ERR! Command failed: git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294
   npm ERR! Cloning into bare repository '/app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294'...
   npm ERR! remote: Invalid username or password.
   npm ERR! fatal: Authentication failed for 'https://github.com/skhavari/smooch-bot.git/'
   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!     /tmp/build_fa3a91b3b1cb9fa1512a5c825ba4daa0/esthercrawford-EstherBot-0772fde/npm-debug.log

-----> Build failed

   We're sorry this build is failing! You can troubleshoot common issues here:
   https://devcenter.heroku.com/articles/troubleshooting-node-deploys

   Some possible problems:

   - Node version not specified in package.json
   https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version

   Love,
   Heroku

! Push rejected, failed to compile Node.js app.
! Push failed`

@paulohenriquesg
Copy link

paulohenriquesg commented Sep 29, 2016

The problem seems to be with a dependency in package.json.

It points to https://github.com/skhavari/smooch-bot.git, and that repository does not exists anymore.

Using the official smooch-bot may solve the problem.

This would mean to replace
"smooch-bot": "https://github.com/skhavari/smooch-bot.git",

by
"smooch-bot": "^1.0.1",

DISCLAIMER: I've not tested it myself!

@nickhamlin
Copy link

The solution above is right: fixing package.json to point to a repo that exists worked for me

@tooaverage
Copy link

@esthercrawford Still having this issue

@jsrothwell
Copy link

@esthercrawford still having this issue

-----> Node.js app detected
-----> Creating runtime environment

   NPM_CONFIG_LOGLEVEL=error
   NPM_CONFIG_PRODUCTION=true
   NODE_VERBOSE=false
   NODE_ENV=production
   NODE_MODULES_CACHE=true

-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)

   Resolving node version 6.x via semver.io...
   Downloading and installing node 6.10.0...
   Using default npm version: 3.10.10

-----> Restoring cache
Skipping cache restore (new runtime signature)
-----> Building dependencies
Installing node modules (package.json)
npm ERR! git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294: Cloning into bare repository '/app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294'...
npm ERR! git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294: remote: Invalid username or password.
npm ERR! git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294: fatal: Authentication failed for 'https://github.com/skhavari/smooch-bot.git/'
npm ERR! Linux 3.13.0-112-generic
npm ERR! argv "/tmp/build_f510c387646550f08b1059f94cc76d7f/esthercrawford-EstherBot-0772fde/.heroku/node/bin/node" "/tmp/build_f510c387646550f08b1059f94cc76d7f/esthercrawford-EstherBot-0772fde/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_f510c387646550f08b1059f94cc76d7f/esthercrawford-EstherBot-0772fde/.npmrc"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code 128

   npm ERR! Command failed: git clone --template=/app/.npm/_git-remotes/_templates --mirror https://github.com/skhavari/smooch-bot.git /app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294
   npm ERR! Cloning into bare repository '/app/.npm/_git-remotes/git-https-github-com-skhavari-smooch-bot-git-5b388294'...
   npm ERR! remote: Invalid username or password.
   npm ERR! fatal: Authentication failed for 'https://github.com/skhavari/smooch-bot.git/'
   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!     /tmp/build_f510c387646550f08b1059f94cc76d7f/esthercrawford-EstherBot-0772fde/npm-debug.log

-----> Build failed

   We're sorry this build is failing! You can troubleshoot common issues here:
   https://devcenter.heroku.com/articles/troubleshooting-node-deploys
   
   Some possible problems:
   
   - Node version not specified in package.json
   https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
   
   Love,
   Heroku

! Push rejected, failed to compile Node.js app.
! Push failed

@shobhitpuri
Copy link

@jsrothwell @tooaverage
#44 pull request should fix it. I was having the same issue and making that fix in package.json to update the smooch-bot url to following "smooch-bot": "https://github.com/smooch/smooch-bot.git", fixed it. You can either change in your fork and build it build it on heroku again. Or you can wait for the PR go in and upadte your forked repo with this one again. Hope it helps!

@w33vils
Copy link

w33vils commented Aug 23, 2017

kindly show me how i can update my repo after making the changes. I have made the changes and when i click on the build on heroku button, it still brings the error with the logs indicating a change hasnt been made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants