Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

405 Method Not allowed #17

Closed
adepretis opened this issue Nov 6, 2017 · 3 comments
Closed

405 Method Not allowed #17

adepretis opened this issue Nov 6, 2017 · 3 comments

Comments

@adepretis
Copy link
Contributor

adepretis commented Nov 6, 2017

When uploading a package using python setup.py sdist upload -r mypypi I get:

Submitting dist/mydist-1.0.3.dev0.tar.gz to http://my.pypi.domain/
Upload failed (405): Method Not Allowed

The server log shows:

[W 171106 16:05:26 httputil:774] multipart/form-data missing headers
[W 171106 16:05:26 web:2063] 405 POST / (10.10.10.10) 2.77ms

I tried this with several packages, even official ones, just to be sure - not a single one passes :-(

@mosquito
Copy link
Owner

mosquito commented Nov 6, 2017

I guess you have wrong url in your .pypirc. Please pay attention to this article.

@adepretis
Copy link
Contributor Author

@mosquito I tried http://my.pypi.domain (405 Method Not Allowed), http://my.pypi.domain/ (405 Method Not Allowed) and http://my.pypi.domain/pypi (404 Not Found) as mentioned in the README. What would be the correct URL?

One thing that might be of relevance: for various reasons we are currently accessing the pypi-server through port 9003 ... so it is actually: http://my.pypi.domain:9003 (405), http://my.pypi.domain:9003/ (405) or http://my.pypi.domain:9003/pypi (404).

The .pypirc looks like this:

[distutils]
index-servers =
    mypypi

[mypypi]
repository=http://my.pypi.domain:9003/pypi
username=myuser
password=mypassword

Right now there is no reverse proxy (Apache, nginx, HAproxy) involved - we are accessing the pypi-server directly.

What am I missing?

@adepretis
Copy link
Contributor Author

Sorry, my bad: when playing around (and initially missing the /pypi in the repository URL) somehow the register action got lost along the way. Without having the package registered, a HTTP error code 404 is returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants