singularityhub / sregistry-cli

Singularity Global Client for container management
https://singularityhub.github.io/sregistry-cli/
Mozilla Public License 2.0
14 stars 18 forks source link

Compatibility between cli and sregistry versions? #213

Closed Trophime closed 5 years ago

Trophime commented 5 years ago

Hi, I wonder if there is some compatibility issue with sregistry-cli version and sregistry version. I've tried to push an image with 0.1.39 cli version to a 0.0.94 sregistry and I got:

sregistry search [client|registry] [database|sqlite:////home/LNCMI-G/trophime/.singularity/sregistry.db] ERROR The server returned a malformed response.

Best C

vsoch commented 5 years ago

What do the server logs say? (docker-compose logs)

vsoch commented 5 years ago

There was an update of sregistry server (a while back) to use the Nginx upload module, so if you didn’t update your server you will need to use an earlier version of the client.

Trophime commented 5 years ago

Unfortunately I don't have access to the server log :(

vsoch commented 5 years ago

Did you just update the client? If so, go back to the previous version.

Trophime commented 5 years ago

The previous version is indeed working!

vsoch commented 5 years ago

Also, are you not able to communicate with whomever runs your server? They can give you a more direct response about if there’s a change.

Trophime commented 5 years ago

The server used to be was administred by @victorsndvg ... But I don't know who is in charge of it right now. I'm checking that

vsoch commented 5 years ago

Great! What happened to @victorsndvg? He used to post on here a lot and it's been a while.

To give you some docs about the changes you are seeing, a little less than a year ago the server was upload to use the nginx upload module which allows for much faster uploads.

And of course on the same date the client was also updated. You are getting that message because you have a client sending a ping to an endpoint that doesn't exist, and the fix is to keep your version of sregistry cli less than 0.0.88.

victorsndvg commented 5 years ago

Dear @vsoch and @Trophime ,

I'm no longer working for the project/institution which I've to use/deploy sregistry. This means that I don't have access/rights to administer services ...

Anyway, @Trophime I remember that I containerize sregistry to freeze the working version at that moment. If you take a look to the registry, you are going to see several sregistry versions. 0.0.94 and 0.0.98 versions are available, and probably latest is the recomended version to interact with the registry

Hope to helpful.

Best regards!

Trophime commented 5 years ago

Thanks @victorsndvg indeed it works fine with your sregistry image ;)

Best

vsoch commented 5 years ago

Safe and fun journeys ahead @victorsndvg ! It's been a pleasure working with you these last few years.