cog icon indicating copy to clipboard operation
cog copied to clipboard

Cog push not overriding latest

Open jlalmes opened this issue 1 year ago • 6 comments

I cannot push a new version to my model.

The logs show that the cog push command succeeded, but the model is never updated.

...
latest: digest: sha256:c9882636155e96ce5d87aed60b137485d472cf092a5fa60dff027720c3f21c53 size: 4954
Image 'r8.im/xxx/yyy' pushed

Run your model on Replicate:
    https://replicate.com/xxx/yyy

The same hash (c9882636155e96ce5d87aed60b137485d472cf092a5fa60dff027720c3f21c53) is shown each time I rerun the command & this matches the most recent version on the Replicate UI.

Screenshot 2024-04-15 at 19 53 18

jlalmes avatar Apr 15 '24 23:04 jlalmes

Additional info:

Just tried creating a new model xxx/yyy2 and pushing to that, and it failed with the following message:

Unable to find image 'r8.im/xxx/yyy2:latest' locally
docker: Error response from daemon: manifest for r8.im/xxx/yyy2:latest not found: manifest unknown: Failed to fetch "latest".
See 'docker run --help'.

ⅹ Failed to get type signature: exit status 125
Error: Process completed with exit code 1.

Yes, I am sure that I have created the model in the replicate UI under the correct account before pushing :)

jlalmes avatar Apr 15 '24 23:04 jlalmes

I have quite similar issue, but hash has changed on the platform but the running code from previous version.

App3x avatar Apr 16 '24 15:04 App3x

I'm having exactly the same issue, I tried the second approach and I'm getting the same error.

hamzaraouzi avatar Apr 17 '24 10:04 hamzaraouzi

updated docker to lastest and docker buildx prune -f and solved

App3x avatar Apr 17 '24 12:04 App3x

Thanks for reporting, @jlalmes

https://github.com/replicate/cog/pull/1621 should address this. We'll release new versions of Cog and replicate/setup-cog with this fix this week.

zeke avatar Apr 17 '24 21:04 zeke