When I'm trying to push python project on heroku using git push heroku master
command I got an error like this.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
How can I solve this error?
You have to add your ssh keys to heroku by running heroku keys:add. Heroku can then verify you and allow access to your repository on heroku. More on this here: https://devcenter.heroku.com/articles/keys
Related
I'm trying to connect pycharm to the django dockerized venv but pycharm get an error about permission denied. "Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/usr/src/qatrackplus/deploy/docker/user-data/.venv": permission denied: unknown"
I already tried to chmod +777 the venv folder in case of rights problem but, pycharm still can't access it...
The solution was to point .../.venv/bin/python and not just .../.venv/ (int the docker file system btw). Why pycharm returned me permission error still haunt my mind but that works now :).
I have a Django project that I have deployed on a heroku web server and use PyCharm as my IDE. I used to be able to interact with my web server with "heroku run bash", however, now when I try running "heroku run bash" I get:
▸ stat /.local/share/heroku/client/bin/heroku: not a directory
▸ fork/exec /.local/share/heroku/client/bin/heroku: not a directory
I'm not sure what has changed, but I can't seem to connect to my heroku webserver anymore. I can still push changes using git push heroku master, but any other interaction with my heroku server doesn't seem to work anymore. I've already checked with Heroku and their systems are running just fine.
How do I reconnect to my heroku web server again with PyCharm? Or just in general?
Thanks in advance for your help!
This is either due to a new version of the CLI or to an OS upgrade.
I experienced the exact same issue on my Mac after upgrading to High Sierra and resolved it by reinstalling the CLI, this time using Homebrew.
Had the same problem. Did the following steps, as described here:
1) brew install heroku/brew/heroku
2) which heroku pointed to /usr/local/bin/heroku so no problems there
3) finally brew link --overwrite heroku
After this, everything was sorted and worked as expected.
I have a development of a django project on my day-to-day laptop. Now I have put together a server with Ubuntu, nginx, gunicorn with postgreSQL.
I have pip't git on both my laptop and server. And done a 'git init' in my project on the laptop.
Now I am trying to push/deploy this on my local server.
I have done tons of commands that, more or less, look like this
git push --set-upstream ssh://admin#192.168.1.240/home/admin/Django/ master
Do not think I have to say that I am new to all this exciting stuff. It is very interesting, but now my head is foggy and I am stuck.
Pointers in right direction are much appreciated! =)
First you have to add and commit to the current local repo. Try 'git add' and 'git commit' for that.
Next, add the remote "server" machine, use "git remote add", such as:
git remote add origin 192.168.1.240:/home/admin/Django
Finally use the 'git push' command to push the local to the remote:
git push origin master
I am doing the reddit pygame boggle challenge. On my laptop it is in a directory called Boggler, but at sourceforge it is called pygame-boggle. When I do 'git push -u origin master' it gives the error in the title. What am I doing wrong? How do I get it to push?
I followed the instructions here: https://sourceforge.net/p/pygame-boggle/code/ref/master/
Have you initialized the repo? It seems like you haven't.
Run the command git init to set up a git repo. Then, add a remote to your repo (wherever it may be, github or bitbucket or any other site) by running the command
git remote add <url to remote here>
I am trying to deploy a Django app to Heroku but I get this strange error when i run the following command.
Any idea why this happens? I've googled it but I found nothing that would help.
root#ubuntu:~/Desktop/djangos/jobs# git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Thanks in advance for any hints/help!
I had same problem , Add your ssh key to heroku by $ heroku keys:add .
check out my blogpost http://www.codesucksmybrain.blogspot.com/2012/04/deploy-django-app-on-heroku-platform.html
Firstly,you should login.
$ heroku login
Enter your Heroku credentials.
Email: adam#example.com
Password:
Could not find an existing public key.
Would you like to generate one? [Yn]
Generating new SSH public key.
Uploading ssh public key /Users/adam/.ssh/id_rsa.pub
Also, if you login, you should try "git pull heroku master" then try to "git push heroku master".
Getting Started
verify that the name of the SSH-KEY is "id_rsa" and that the secret key is the one you believe in this file, if it is safe to re-create the key and leave it with that name "id_rsa"