-
Notifications
You must be signed in to change notification settings - Fork 141
404 error when using GCS as the storage backend. #257
Comments
The package download endpoint is rendered by pypicloud/pypicloud/views/api.py Line 86 in f264152
What is your There's only a couple places in that function that return a 404. I think the most likely case is the first fetch from the DB fails for some reason, but it's hard to say without knowing more about your setup. Some other things you could try that might be useful for debugging:
|
This happens when trying to run I actually added the
|
For the hash mismatch, I'm not sure what could be causing this. The code to hash the uploaded packages lives here: pypicloud/pypicloud/cache/base.py Lines 135 to 139 in f264152
And it should be stored as metadata on the GCS object. Then when you fetch it, the url will be generated with a Another note: you won't be able to use SQLite as the caching backend if you have multiple pypicloud servers. The point of the cache is to be more performant than the storage (GCS, S3, etc) in a way that can be queried by all of the servers. It has to stay in sync with the storage backend, otherwise you'll get inconsistent results. When you upload a package with two server instances, one of them will perform the upload and update its SQLite cache, but the other one won't know that the package exists. |
I am using GCS as a storage backend. Whenever I update my package and try to install it for the first time, I get the following error.
On subsequent installations, it works fine.
The text was updated successfully, but these errors were encountered: