[Chicago] Digital Ocean, pip, and UFW on Ubuntu
Don Drake
don at drakeconsulting.com
Wed Dec 21 16:15:47 EST 2016
Failure in name resolution means DNS is not getting through. Open up port 53 tcp/udp.
-Don
--
Don Drake
http://www.drakeconsulting.com/
312-560-1574
800-733-2143
> On Dec 21, 2016, at 3:09 PM, Aaron Elmquist <elmq0022 at umn.edu> wrote:
>
> Sure thing.
>
> pip install requests
>
> Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f01a85fa390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/requests/
>
> This repeats 4 more times. I see 5 times is the default in the docs.
>
> Could not find a version that satisfies the requirement requests (from versions: )
> No matching distribution found for requests
>
> By the way temporarily disabling the firewall resolves this.
>
> sudo ufw disable
>
> Collecting requests
> Downloading requests-2.12.4-py2.py3-none-any.whl (576kB)
> 100% |████████████████████████████████| 583kB 1.0MB/s
> Installing collected packages: requests
> Successfully installed requests-2.12.4
>
> sudo ufw enable
>
> Toggling the firewall is probably bad.
>
> Output from sudo ufw status:
>
> To Action From
> -- ------ ----
> 22 ALLOW Anywhere
> 80/tcp ALLOW Anywhere
> 21/tcp ALLOW Anywhere
> OpenSSH ALLOW Anywhere
> Nginx Full ALLOW Anywhere
> 3128/tcp ALLOW Anywhere
> 3128 ALLOW Anywhere
>
> 22 (v6) ALLOW Anywhere (v6)
> 80/tcp (v6) ALLOW Anywhere (v6)
> 21/tcp (v6) ALLOW Anywhere (v6)
> OpenSSH (v6) ALLOW Anywhere (v6)
> Nginx Full (v6) ALLOW Anywhere (v6)
> 3128/tcp (v6) ALLOW Anywhere (v6)
> 3128 (v6) ALLOW Anywhere (v6)
>
> Thanks for the help.
>
> On Wed, Dec 21, 2016 at 2:38 PM, Carl Karsten <carl at personnelware.com <mailto:carl at personnelware.com>> wrote:
> There are lots of reasons for why pip fails. we can guess, but that's generally a bad idea.
>
> cut/paste the command and *all* of the output.
>
> On Wed, Dec 21, 2016 at 2:07 PM, Aaron Elmquist <elmq0022 at umn.edu <mailto:elmq0022 at umn.edu>> wrote:
> I recently deployed a DigitalOcean droplet with Ubuntu and followed the documentation to harden the server and get Flask up and running with Gunicorn and Nginx.
>
> However, after configuring UFW, I found I cannot get pip to work without disabling the firewall. I tried allowing port 3128 for pip, but that has not resolved my issue.
>
> I'm hoping someone on the list has encountered this issue before and found a fix.
>
> Thanks,
>
> Aaron
>
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org <mailto:Chicago at python.org>
> https://mail.python.org/mailman/listinfo/chicago <https://mail.python.org/mailman/listinfo/chicago>
>
>
>
>
> --
> Carl K
>
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org <mailto:Chicago at python.org>
> https://mail.python.org/mailman/listinfo/chicago <https://mail.python.org/mailman/listinfo/chicago>
>
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> https://mail.python.org/mailman/listinfo/chicago
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20161221/406fff94/attachment.html>
More information about the Chicago
mailing list