git push heroku master fails with SSH Key Fingerprint - node.js

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

Related

Gitlab pushing first project failed due to could not read from remote repository

I was new to Gitlab was trying to push my project from local machine to Gitlab.
Have done the SSH key and followed the instructions at Gitlab. Done the Git global setup. Was trying to add an existing folder , so i followed the instructions listed
cd existing_folder
git init
git remote add origin https://gitlab.com/sss/testnode.git
git add .
git commit -m "Initial commit"
git push -u origin master
but failed at the last step at the git push. The error message was
Tried adding the remote origin, but it was told it already exists. So not sure where it went wrong. Please help, much appreciated :)
Have done the SSH key
The problem is that you have defined your origin as HTTPS, not SSH.
Try:
git remote set-url origin git#gitlab.com:sss/testnode.git
That will override origin URL.
Independently, make sure your SSH key does work and allows GitLab to authenticate you as your GitLab account with:
ssh -T git#gitlab.com
Check out your credentials, if they are invalid, it wont give u to upload changes.
For Windows check this: https://www.digitalcitizen.life/credential-manager-where-windows-stores-passwords-other-login-details
For Linux check this: https://askubuntu.com/questions/30907/password-management-applications (if you do not know how to change credentials via terminal)

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.

Git push heroku master does nothing

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

gitlab error - the remote en hung up unexpectedly

I installed Gitlab on my Ubuntu successfully(gitlab.domain.com), on a client PC I installed Git (windows 7), then run Git Bash to generate SSH keys with command: ssh-keygen -t rsa -C "username#domain.com" to create private/public keys on C:\Users\AccountName.ssh
Then, add public key to profile on installed gitlab. Then can clone/push on Git Bash.
However, I can not reproduce this on other PCs, I tried some PCs, created new users, new ssh keys...
but always encounter that error "The remote end hung up unexpectedly", sometimes can clone but also get that error when pushing.
I can only clone/push on first PC. I'm so confused, don't know what I missed. I'm trying to get my team on Git
Thanks a lot for any advice
Make sure you are pointing it at the correct git server. Also - login on your Jenkins server (Under the jenkins user) and ssh to git#your-git-server and make sure to select 'yes' to add the server to your known hosts.
I had the same error and it was an access-level problem :
my user only had guest access to my project so it wasn't able to clone it. I changed the access level to developper and it solved my problem

Resources