pypi-server icon indicating copy to clipboard operation
pypi-server copied to clipboard

404 error while uploading package

Open k0nsta opened this issue 4 years ago • 1 comments

Hi guys!

I can't understand what is wrong:

my .pypirc

[distutils]
index-servers =
  pserver


[pserver]
repository: http://123.12.12.12:8050/pypi
username: user
password: password

I use an external DB and run server as a docker container:

docker run -p 8050:80 --restart=always -v /home/ubuntu/pypackages:/var/lib/pypi-server -e 'postgres://[email protected]/pypi_server' -d mosquito/pypi-server:latest

Then I run python setup.py sdist register upload -r pserver and got error:

Submitting dist/mypackage-1.0.0.tar.gz to http://123.12.12.12:8050/pypi
Upload failed (404): Not Found
error: Upload failed (404): Not Found

The server log:

[W 200828 16:21:23 httputil:774] multipart/form-data missing headers
[I 200828 16:21:23 package:242] Calling action: file_upload
[W 200828 16:21:24 web:2064] 404 POST /pypi (172.31.25.168) 515.85ms

k0nsta avatar Aug 28 '20 16:08 k0nsta

Any update on this ? I am having the same issue

akashkroy avatar Sep 01 '21 10:09 akashkroy