urlopen error Tunnel connection failed: 503 Forwarding failure - urllib2

OS: ubuntu14.04LTS python2.7
http_proxy="127.0.0.1:8118"
use Privoxy socket to http
when i use urllib2 open url
urlopen error Tunnel connection failed: 503 Forwarding failure
what is error?

Related

Error: tunneling socket could not be established, cause=connect ETIMEDOUT 171.23.64.1:8888 while requesting http request in Postman

While sending requests in postman the above mentioned error is occurred and while the requests are success in browser.
I am unable to send requests in postman. please solve this issue...

An existing connection was forcibly closed by the remote host (net::ERR_HTTP2_PROTOCOL_ERROR)

I have unique apache http server which deliver html/css/js ressources for all clients.
each client access to his private account with subdomain
client-1.myurl.com
client-2.myurl.com
And I use mod_macro with ProxyPass to map request of a subdomain url to an external ip server:
by example
https://pastebin.com/Xp8ydjZD
But sometimes i got net::ERR_HTTP2_PROTOCOL_ERROR in my console while navigating on my website and a lot 503 errors, here is my apache log error file : https://pastebin.com/PjU7D3Py
Various error in apache log :
An existing connection was forcibly closed by the remote host. ...
AH01102: error reading status line from remote server at.myurl.com:8082, referer: https://at.myurl....
No connection could be made because the target machine actively refused it. : AH00957: HTTPS: attempt to connect to zzz.zz.zzz.zz:8082 (ij.myurl.com) failed....
AH01114: HTTP: failed to make connection to backend: ij.myurl.com, referer:...
Screenshot

Unable to start OHS component

Middleware: Oracle HTTP Server(OHS)
Version: 12.2.1.3
Configured Oracle HTTP Server(OHS) in standalone mode. Node manager is running perfectly. While starting "./startComponent.sh ohs1" i am getting the below error,
"""
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
Error: Error occurred while performing nmConnect : Cannot connect to Node Manager. : Unrecognized SSL message, plaintext connection?
"""
The solution found in internet is to changing the SecureListener to false in Nodemanager properties file.
When i did that i got the below error,
"""
weblogic.nodemanager.NMConnectException: Connection refused (Connection refused). Could not connect to NodeManager. Check that it is running at localhost/XXX.0.X.X:XXXX.
Error: Error occurred while performing nmConnect : Cannot connect to Node Manager. : Connection refused (Connection refused). Could not connect to NodeManager. Check that it is running at localhost/XXX.0.X.X:XXXX.
"""
And the solution for this is Setting the SecureListener to true in node manager properties file.
I am confused. Can someone help in resolving these errors?
Installed Oracle Access Manager(OAM) and OHS on same machine, but installed OHS in Standalone mode in different folder. After that, uninstalled OHS and Installed OHS in the same folder where i installed OAM, It worked.

pip install failing with 407 Proxy Authentication Required

I am trying to use the below pip install command, but its failing with Proxy authentication required issue. I have already configured my proxies inside my RHEL7.x Server.
Command Used: `pip install --proxy https://'username:pwd'#proxy:host --upgrade pip`
Logs:
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/
This is the first thing you should try:
Open the command prompt(CMD).
Export the proxy settings :
:\set http_proxy=http://username:password#proxyAddress:port
:\set https_proxy=https://username:password#proxyAddress:port
Install the package you want to install:
:\pip install PackageName
Error 407 means that the authentication for the proxy is missing / wrong. Remove the ' from the username:pwd part, i.e. use: pip install --proxy https://username:pwd#proxy:host.
Try opening an internet connection from that server just prior to installing the Python package, as another option.
If this is not helping, try the the options given in the answers to the questions here, here and here.
Open the terminal then execute:
export http_proxy=http://username:password#proxyAddress:port
export https_proxy=https://username:password#proxyAddress:port
I try this in git bash, in Windows.
I did not find a better answer with no password in a environment variable.
You could save this code, creating a ".bashrc" file in your home directory.
There's authentication problem while connecting to proxy which causes 407 proxy issue.
Execute following commands to set proxy for your system.
set HTTPS_PROXY=https://User_Name:Password#proxy_address:Port
set https_proxy=https://User_Name:Password#proxy_address:Port
set HTTP_PROXY=http://User_Name:Password#proxy_address:Port
set http_proxy=http://User_Name:Password#proxy_address:Port
Note: Check your environment environment variable has HTTP_PROXY/ HTTPS_PROXY variable set. If Yes, verify if those are set to correct values.
As these values overwrite your current values.

What is 502 Proxy error? How to Resolve it

When i try to login into Artifactory web appliaction ,its showing proxy error. The Error message is below.
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /artifactory/webapp/login.html.
Reason: Error reading from remote server
Apache/2.2.15 (CentOS) Server at XX.XX.XX.XX Port 80
Any Solution for this?