Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Repository inaccessible for no reason. Unable to install #707

Closed
praveenpuglia opened this issue Apr 3, 2017 · 4 comments
Closed

Repository inaccessible for no reason. Unable to install #707

praveenpuglia opened this issue Apr 3, 2017 · 4 comments

Comments

@praveenpuglia
Copy link

praveenpuglia commented Apr 3, 2017

Published Package - https://atom.io/themes/ghar-syntax
Repository URL - https://github.com/praveenpuglia/ghar-syntax

The username or anything related to repository hasn't changed. Suddenly this doesn't work. When trying to access the following URL, https://www.atom.io/api/packages/ghar-syntax/versions/2.1.0/tarball, I get

{"message":"Repository inaccessible"}

I have another package published https://atom.io/themes/ghar-dark-syntax which works just fine. Please help.

Reference Issue - praveenpuglia/ghar-syntax#1

What have I tried?

I tried publishing a minor version which failed at Git tag not found although 2.4.0 exists on the repository releases.

@rsese
Copy link

rsese commented Apr 20, 2017

Looks like this is still an issue:

apm install  ghar-syntax
Installing ghar-syntax to /Users/rsese/.atom/packages ✗
Unable to download https://www.atom.io/api/packages/ghar-syntax/versions/2.1.0/tarball: 400 Bad Request Repository inaccessible

@jasonrudolph since Lee's OoO, would you be able to take a peek at this 👓? I saw this old issue that mentions the same error message /cc #218 (comment) and it seems like it needed some manual fixing on our end? Also not sure if some of the work you've done recently might already address this too.

@jasonrudolph
Copy link
Contributor

I think I see what happened. @praveenpuglia: It looks like the following events took place:

  1. 2016-06-02 11:34:14 UTC: You created a repository at https://github.com/praveenpuglia/one-dark-syntax. (Repository ID 60258912 on github.com.)
  2. 2016-06-02 11:35:57 UTC: You renamed the repository from "one-dark-syntax" to "ghar-syntax"
  3. 2016-06-02 13:13:45 UTC: You published the ghar-syntax package via apm. The apm registry associated this package with repository ID 60258912 on github.com, so that if you renamed the repository on github.com, apm would still be able to find the repository.
  4. 2016-06-02 13:32:08 UTC: You deleted the repository on github.com.
  5. 2016-06-02 13:33:06 UTC: You created a new repository at https://github.com/praveenpuglia/ghar-syntax. (Repository ID 60266638 on github.com.)

At this point ☝️, when someone runs apm install ghar-syntax, apm tries to fetch the tarball for repository ID 60258912 on github.com, but no such repository exists.

@rsese: There are two possible remedies in situations like this:

  1. An atom.io admin can update the package registry so that the ghar-syntax package points at the new github.com repository ID (60266638).
  2. Alternatively, the package owner can unpublish and republish their package, and that would remove the old (broken) record from the package registry and create a new (working) record in the package registry.

In this case, I've opted for Option 1, and you can now successfully install the package:

$ apm install ghar-syntax
Installing ghar-syntax to /Users/j/.atom/packages ✓

I hope this helps. If you have any questions, please let me know.

@rsese
Copy link

rsese commented Apr 20, 2017

Thanks for the detailed explanation and for fixing it up @jasonrudolph 🙇

An atom.io admin can update the package registry

Ohhh I'll find you or Lee sometime to ask how to do this 🔍

@praveenpuglia
Copy link
Author

@jasonrudolph - Thanks so much for explaining what happened. Learned a great deal! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants