The following error message appears when you run the smpatch analyze in remote mode against a local patch server:
# smpatch analyze -u root Authenticating as user: root Type /? for help, pressing <enter> accepts the default denoted by [ ] Please enter a string value for: password :: root-password Loading Tool: com.sun.admin.patchmgr.cli.PatchMgrCli from pserver-2 Login to pserver-2 as user root was successful. Download of com.sun.admin.patchmgr.cli.PatchMgrCli from pserver-2 was successful. Assessing patches for machine pserver-2. Please wait... Patch analysis failed. com.sun.patchpro.util.CannotConnectException: Cannot connect to retrieve patchprodb.zip: Server returned HTTP response code: 500 for URL: http://pserver-1:3816/solaris/. |
You might see this error message if one of the following situations occur:
One of the servers in the local patch server chain is down.
The web proxy of the local patch server is not configured to reach the Internet.
The local patch server is pointing to a bad patch source.
Address these issues by doing the following:
If one of the local patch servers in the chain is down, log in to that patch server and restart the web services.
# patchsvr stop Shutting down Local Patch Server # patchsvr start Starting Local Patch Server |
If the web proxy is not configured to reach the Internet, ensure that the host name of the web proxy and the port number are correctly specified.
# patchsvr stop Shutting down Local Patch Server # patchsvr setup -x web-proxy-host:port # patchsvr start Starting Local Patch Server |
If the specified patch source is bad, check the value.
# patchsvr setup -l |
If the value is correct, see if one of the other two problems is the cause of the analysis failure. A valid patch source is a URL that begins with the http:// or file:/ notation. The URL of a local patch server must terminate with a slash, such as http://patchserver:3816/solaris/.
If the value is incorrect, correct the patch source value.
# patchsvr setup -p patch-source-url |