[bug] Uploading package with user and channel generates an error
Environment details
I have a local package:
> conan list "general/0.3.56@company/stable"
Local Cache
general
general/0.3.56@company/stable
Trying to upload this to conan_server-2.0.4 running on linux results in following error:
> conan upload "general/0.3.56@company/stable" -r server2
ERROR: invalid literal for int() with base 10: '2023-04-25T11:26:37Z'. [Remote: server2]`
I see the following at the server side:
192.168.5.98 - - [25/Apr/2023 15:32:37] "GET /v2/conans/general/0.3.56/company/stable/revisions HTTP/1.1" 500 62
Uploading to a conan_server-1.59.0 does work.
Creating the package without user and channel, the upload to both works.
Steps to reproduce
No response
Logs
No response
Hi @jputcu
Thanks for your report. I am trying to reproduce, but unfortunately I haven't managed to do so.
- I am running
python server_launcher.pyfrom code. Conan 2.0 server might not work with gunicorn, how are you launching it? - I suspect that there might be something corrupted in your server storage, could you please try to remove your server cache (or at least that specific package, or use temporarily another empty folder), and see if the failure persists?
Hello
You are correct, I removed the ~/.conan_server/data and tried reuploading the package with user and channel and now it worked.
I'm currently just evaluation conan_server 2, so just started from the command line >conan_server.
I'm currently just evaluation conan_server 2, so just started from the command line >conan_server.
I'd recommend using ArtifactoryCE, it is completely free, and it is more performant than conan-server, plus other useful things (Web UI, permissions, generic repositories...)
I'm the sole C++ developer at the company, so performance will not be an issue.
I would like to run it on FreeBSD, so docker is not an option and docker-server will be much simpler.