Don't have access to Heroku app

筅森魡賤 提交于 2021-01-29 00:29:05

问题


I have a mystery app in Heroku. It's called weird-app-5536

When I try to push my code to Heroku I get this message:

  Your account my_email@geemail.com does not have access to weird-app-5536.
 !  
 !  SSH Key Fingerprint: *************************************************

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

When I try...

heroku apps

I get a list of my apps, but it does not include the mystery app, weird-app-5536.

I can't destroy or rename the weird-app-5536 app. It always says I don't have access. The app does not appear on my list of apps on the Heroku website.

When I type

git remote -v

I get this:

heroku  git@heroku.com:weird-app-5536.git (fetch)
heroku  git@heroku.com:weird-app-5536.git (push)
origin  git@github.com:thisisme/my_code.git (fetch)
origin  git@github.com:thisisme/my_code.git (push)

I deleted my old ssh keys. I created a new one and added it to Heroku

I can create new apps and they show up on my list of apps.

As far as I know I only have one Heroku account.

Stumped. I don't know where to go from here.


回答1:


What's happened is the git repo on which you're working is tied to an old remote. No need to contact heroku or anything... Just remove the heroku git remote and readd it.

Remove by running:

git remote rm heroku

Readd with:

heroku git:remote -a appname

More here: https://devcenter.heroku.com/articles/git




回答2:


Honestly, I would try to get a hold of Heroku support. It might be possible that you were listed as a contributor to another app by someone but weren't given write access? Heroku support is probably your best bet.



来源:https://stackoverflow.com/questions/27697956/dont-have-access-to-heroku-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!