Git push heroku master does nothing - node.js

I am on windows 7.
I followed the documentation on heroku there: https://devcenter.heroku.com/articles/nodejs
when I execute
git push heroku master
it does absolutely nothing and I get no error. I tried to re-generate my ssh key, to delete everything and do it again. Always the same.
Sorry for providing so few info but as I have no error message, it is really difficult for me to figure out...

If anyone else has this problem, my issue was that I was not pushing from my local master branch to heroku/master. You have to either push from your local master branch to heroku/master or run the command
git push heroku yourbranch:master
This is from the heroku documentation here

Ok. SSH Key problem. So if you have no error message on window, try to re-created manually your ssh key following this instruction and it will work. Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedly

Might be a bit late, but just wanted to add the following:
A simple login over the cli resolved the issue for me.
heroku login

Comment above ^ worked for me:
heroku login

Related

git push heroku master fails with SSH Key Fingerprint

When I want to git push heroku master it says
! Syntax is: git#heroku.com:<app>.git where <app> is your app's name.
!
! SSH Key Fingerprint: [fingerprint things here]
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
How do I fix this? Screenshot with Error
I tried a lot but nothing helped
(sorry if my english is bad, im from germany)
I`m running my bot on UptimeRobot with Glitch

Heroku Login cmd permission issue for Windows 10

I installed heroku cli.
$ heroku --version
heroku-cli/6.14.36-15f8a25 (windows-x64) node-v8.7.0
Started cmd.exe as admin
$ heroku login (asked me for username and password)
After I provided the username and password. I get the following error:
! EACCES: connect EACCES 34.234.38.27:443
I tried using gitbash to login in heroku. I get the same error message if I try same thing in git bash using the following cmd:
winpty heroku login
I have looked everywhere I could. Most places have closed the tickets but there is no solution anywhere. I also tried deleting the heroku folder from appdata/local/ but that also didn't help. I know its permission issue. I get a better error message when I try
$ heroku update
heroku-cli: Updating plugins... done
! Get https://cli-assets.heroku.com/branches/v6/manifest.json: dial tcp 52.84.64.82:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
I want to host a small NodeJS app for free. What are my other options because if I have to spend so much time just deploying then maybe it is not an option.
maybe your problem is the firewall or the antivirus, add the exception for the address that shows you (34.234.38.27:443), and do the test. Also check your antivirus if it is not blocking you heroku cli, and always run in administrator mode
You can also do the following. Enable debugging during login. Make sure to redact your password from the output before sending it to support! Enable it by running set HEROKU_DEBUG=true; set HEROKU_DEBUG_HEADERS=1; heroku login on Windows to get more information.
Good luck with your app my friend!

Error occurring in localhost but not on my website even though the code is the same - how?

I am getting an error on a form submit in localhost, but no errors on my live website.
The error is: Error: Can't set headers after they are sent.
I ran git diff to see the differences between my remote and local repos, and there were some since I had made a couple of changes. Those changes were: adding a custom bootstrap configuration (I wanted to change the base font from 14 to 18px) and uninstalling New Relic, an npm package for analytics. I am not sure how any of that would have caused the error, I am just trying to explain thoroughly.
My remote git repository is the code behind my live site, which is not getting this error, so I decided to make my local files match my remote, so I ran:
git fetch origin
git reset --hard origin/master
git clean -f
and then ran git diff again and there were no differences this time. That is what is puzzling to me. It seems like there should be no difference. Thanks in advance for any tips.
As a result of some earlier testing I had created duplicate usernames, and this error is only occurring when logged in with one of the duplicates, which only exist in my local DB. That explains why I was getting this error in localhost and not in my live site.

GitHub SSH access not working

I have created a new user on github under our organization which will be used for auto deployment. I followed the article on https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/#platform-linux.
Somehow, when I tried to clone the repository to the server, it worked once. The code was running properly, and I exit the server. Today, we released an update to the code, and I wanted to deploy the code manually to the server, so I ssh'd into the server and tried to pull the repository with git pull. It gave me Permission denied error. After some debugging I realized that the ssh-agent wasn't running. So I executed the following commands:
eval "$(ssh-agent -s)"
ssh-add .ssh/id_rsa_staging
Now, when I try ssh -T git#github.com, I see the welcome message which is:
Hi *****! You've successfully authenticated, but GitHub does not provide shell access.
But when I try to pull from the repository, I am continuously getting this error message:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I checked the repository and the user has read access to it. I double checked if the keys match on github and server, yes they do. I tried generating new keys. I tried using ssh/config file. Nothing helped...
I appreciate any help & suggestions!
Update:
So I figured out that git clone command is working properly, but even when I try git pull right after git clone, it is giving the error.
If you are using sudo to git pull/push to the remote you need to ensure you used sudo to generate your SSH keys. Otherwise you will not be using the same keys that you originally generated.
github doc for reference
I had the exact same issue.
For me what worked was
Go to repo on github which you have cloned and wanna pull with
Under the code-download option copy SSH link
Enter following command in your terminal -->
git remote set-url origin paste_SSH_link

gitolite error after adding a repo in the goitolite.conf

I am getting below error while trying to push gitolite-admin repo after adding a repo name in gitolite.conf.
Below is the error.
Cloning works fine and I have already pushed some of the pub keys to the repo.
open conf/gitolite.conf-compiled.pm.new failed: Permission denied<<newline>>
system() failed,gitolite compile,-> 6400
Whereas cloning and pushing works fine for testing repo.
Gitolite user is gitolite3 and apache user writes to it and the protocol which am using is http.
Not sure where exactly it is failing. Help is much appreciated.

Resources