Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

Proxy and uploading not working #11

Open
mattrei opened this issue Jul 9, 2013 · 1 comment
Open

Proxy and uploading not working #11

mattrei opened this issue Jul 9, 2013 · 1 comment

Comments

@mattrei
Copy link

mattrei commented Jul 9, 2013

Hi,

I installed Flask Proxy succesfully.
I just figured out in your documentation that you also have to set the group of the proxy-pypi user to apache (at least here on RHEL).

However it seems I have no luck: downloading and uploading packages just do not work.

Uploading: pip gives me a "Upload failed (405): METHOD NOT ALLOWED" when using the pip command.

Downloading: i have set to timeout to 60 according the docs but it just does not download it, says no distribution found.
The Flask Pypi log for instance for pip install -i https://myserver/simple Django just shows

2013-07-09 11:39:23,783 [DEBUG] Requesting index for: Django
2013-07-09 11:39:23,783 [DEBUG] Didnt found package: Django in local repository. Using proxy.
2013-07-09 11:39:23,825 [INFO] Starting new HTTP connection (1): pypi.python.org
2013-07-09 11:39:23,954 [DEBUG] "GET /simple/Django/ HTTP/1.1" 301 0
2013-07-09 11:39:23,957 [INFO] Starting new HTTPS connection (1): pypi.python.org
2013-07-09 11:39:24,108 [DEBUG] "GET /simple/Django/ HTTP/1.1" 200 957
2013-07-09 11:39:24,110 [DEBUG] The url was redirected
2013-07-09 11:39:38,999 [DEBUG] Requesting index for: Django
2013-07-09 11:39:39,000 [DEBUG] Didnt found package: Django in local repository. Using proxy.
2013-07-09 11:39:39,036 [INFO] Starting new HTTP connection (1): pypi.python.org
2013-07-09 11:39:39,099 [DEBUG] "GET /simple/Django/ HTTP/1.1" 301 0
2013-07-09 11:39:39,101 [INFO] Starting new HTTPS connection (1): pypi.python.org
2013-07-09 11:39:39,250 [DEBUG] "GET /simple/Django/ HTTP/1.1" 200 957
2013-07-09 11:39:39,251 [DEBUG] The url was redirected
2013-07-09 11:40:19,144 [DEBUG] Requesting index for: Django
2013-07-09 11:40:19,145 [DEBUG] Didnt found package: Django in local repository. Using proxy.
2013-07-09 11:40:19,170 [INFO] Starting new HTTP connection (1): pypi.python.org
2013-07-09 11:40:19,422 [DEBUG] "GET /simple/Django/ HTTP/1.1" 301 0
2013-07-09 11:40:19,424 [INFO] Starting new HTTPS connection (1): pypi.python.org
2013-07-09 11:40:19,576 [DEBUG] "GET /simple/Django/ HTTP/1.1" 200 957
2013-07-09 11:40:19,577 [DEBUG] The url was redirected
2013-07-09 11:41:20,235 [DEBUG] Requesting index for: Django
2013-07-09 11:41:20,235 [DEBUG] Didnt found package: Django in local repository. Using proxy.
2013-07-09 11:41:20,278 [INFO] Starting new HTTP connection (1): pypi.python.org
2013-07-09 11:41:20,376 [DEBUG] "GET /simple/Django/ HTTP/1.1" 301 0
2013-07-09 11:41:20,378 [INFO] Starting new HTTPS connection (1): pypi.python.org
2013-07-09 11:41:20,527 [DEBUG] "GET /simple/Django/ HTTP/1.1" 200 957
2013-07-09 11:41:20,529 [DEBUG] The url was redirected

Firewall etc. not running.

Thank you,
Matthias

@tzulberti
Copy link
Owner

Hi.

I am also using apache, so the error seems to be with some kind of configuration on Apache. Could you post your apache configuration (the host file you created for the proxy)? Also tell me which version of apache are you running?

For the seccond issue, please check if going to: http://miserver/simple/Django. If it takes more than 60 seconds, please update the timeout configuration. It shouldn't be taking that long so I will check what is happening.

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

No branches or pull requests

2 participants