heroku / heroku-repo

Plugin for heroku CLI that can manipulate the repo
MIT License
682 stars 111 forks source link

Error when using heroku repo:gc -a appname #95

Open YashRunwal opened 4 years ago

YashRunwal commented 4 years ago

When I try to run following command

heroku repo:gc -a indian-notes-classifier

It gives me following error:

The requested URL returned error: 404 Not Found

Why is that and how can i solve this?

Soumi7 commented 4 years ago

I am having the same error. Did Anyone find a way to resolve the issue?

AdarshPan commented 4 years ago

I am also having the same error . Any Updates? It's urgent!!

Soumi7 commented 4 years ago

No! None! The mainterners of this repo havent answered.

edmorley commented 4 years ago

For urgent issues I would recommend opening a support ticket: https://help.heroku.com/

AdarshPan commented 4 years ago

I have already opened a ticket just now ...let's hope for the best @edmorley Thanks for the link and the suggestion.

AdarshPan commented 4 years ago

Guys ...... You got any updates?? no update in the ticket yet.....

parthrangarajan commented 3 years ago

Hey, any updates?!

edmorley commented 3 years ago

If you get "404 Not Found" when running heroku repo:gc it means the Git repository for the app does not exist.

This can be the case for:

Regardless of the reason, the fact that the repo doesn't exist means that there's no need to GC it (GC cleans up an existing repo, but if there is no repo, no cleanup is needed).

Out of curiosity, how are people ending up here? Is there a guide/FAQ saying to heroku repo:gc for troubleshooting? If so, there's likely a better way to fix the underlying issue. For example use heroku repo:reset to just delete the repo and start fresh, or if you want to clear the build cache (eg to solve a build problem or reduce slug size bloat in certain cases), then use this other plugin/command instead: https://github.com/heroku/heroku-builds#purge-build-cache

patrik-csak commented 2 years ago

I ended up here from How To Reduce a Large Heroku Slug Size (thoughtbot.com) after purging the build cache failed to reduce my slug to under 500M

nhungL commented 10 months ago

@patrik-csak were you able to solve it eventually? I'm having both the slug size issue and 404 not found

patrik-csak commented 10 months ago

@nhungL iirc, i re-architected my project to make it smaller