Troubleshooting XenCenter Proxy Authentication Issues

Troubleshooting XenCenter Proxy Authentication Issues

book

Article ID: CTX224154

calendar_today

Updated On:

Description



XenCenter does not connect to a proxy server

  • One common problem with using a proxy server is that the client (XenCenter) can’t connect to it. You may receive the following error when trying to connect to a XenServer host after configuring to use a proxy server in XenCenter:
  • You may also receive the following error when trying to check for updates:
  • You can get more detailed information from the XenCenter log:
2017-05-19 18:07:29,911 ERROR XenAdmin.Actions.AsyncAction [26] - System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.158.149.45:81
 

XenCenter can connect to a proxy server but not authenticate (HTTP 407 error)
  • The main error around XenCenter proxy authentication support is HTTP 407 error, which means failure to authenticate to the proxy server. This can happen when trying to do anything which requires a connection to a XenServer host:
 
  • As well as when checking for updates:

Resolution



The possible issues you may encounter when configuring a proxy server in XenCenter are:
  • XenCenter does not connect to the proxy server
  • XenCenter can connect to the proxy server but not authenticate (HTTP 407 error)




XenCenter does not connect to a proxy server

You can try the following methods to troubleshoot:
  1. Check the proxy server’s configuration, such as correct ports, firewall settings, etc.
  2. Check proxy settings in XenCenter. Make sure the IP address and port of the proxy server are correct. One simple way to test is to telnet to the proxy server’s IP address and port from XenCenter to make sure the connection between XenCenter and the proxy server is good.
 

XenCenter can connect to a proxy server but not authenticate (HTTP 407 error)

Reasons that can result in HTTP 407 error:
  • Wrong credentials - either the username, password or both are incorrect.
  • Wrong authentication method selected - the proxy server may give one or more methods which the client (XenCenter) can use to authenticate with it. If the selected authentication method in XenCenter (Basic or Digest) is not one of the options being provided by the proxy server, then XenCenter chooses not to try to authenticate. So, make sure to use the correct settings in XenCenter which match up to the ones the proxy server is expecting. 
LOG Lines
Below are all the proxy related log lines in xencenter.log: ProvideProxyAuthentication and ProxyAuthenticationMethod are keywords to trace proxy related issues.
 
017-05-09 11:08:16,683 INFO  XenAdmin.Dialogs.OptionsPages.ConnectionOptionsPage [Main program thread] - Connection Tab Settings -
2017-05-09 11:08:16,683 INFO  XenAdmin.Dialogs.OptionsPages.ConnectionOptionsPage [Main program thread] - === ProxySetting: 2
2017-05-09 11:08:16,683 INFO  XenAdmin.Dialogs.OptionsPages.ConnectionOptionsPage [Main program thread] - === ProxyAddress: 12.13.14.156
2017-05-09 11:08:16,683 INFO  XenAdmin.Dialogs.OptionsPages.ConnectionOptionsPage [Main program thread] - === ProxyPort: 8080
2017-05-09 11:08:16,683 INFO  XenAdmin.Dialogs.OptionsPages.ConnectionOptionsPage [Main program thread] - === ByPassProxyForServers: False
2017-05-09 11:08:16,683 INFO  XenAdmin.Dialogs.OptionsPages.ConnectionOptionsPage [Main program thread] - === ProvideProxyAuthentication: True
2017-05-09 11:08:16,683 INFO  XenAdmin.Dialogs.OptionsPages.ConnectionOptionsPage [Main program thread] - === ProxyAuthenticationMethod: 1
2017-05-09 11:08:16,683 INFO  XenAdmin.Dialogs.OptionsPages.ConnectionOptionsPage [Main program thread] - === ConnectionTimeout: 20000
 

 

Issue/Introduction

This article provides general guidance to troubleshoot XenCenter proxy authentication related-issues.

Additional Information

https://docs.xenserver.com/en-us/xencenter/current-release/intro-options.html