smpatch analyze error: Failure: Cannot connect to retrieve detectors: RSA p

Has anyone seen this before?

I just installed Sun Update Manager on a E250 running Solaris 10. I tried registering using the Wizard, but when I chose the "Apply updates manually" button, then Finish, I get the message: System registration failed; exiting application

and the Wizard ends.

Am I missing a step?

[333 byte] By [kakazu] at [2007-11-26 6:03:08]
# 1

If I use the Wizard, and choose "Register to Manage Updates", fill in the requested info, then press "Finish", I get the message: "Internet Connection Failure". It doesn't seem to think that the system is connected to the outside world.

This machine is behind a firewall, and is being NAT'ed. It has both incoming & outgoing HTTPS enabled. Are there any more ports that need to be opened? Is there any problems with being NAT'ed?

kakazu at 2007-7-6 13:27:26 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 2
Hi,Can you confirm if this problem is still happening.If so can you post the full error message that you receive.Cheers,Scott
ForumModerator at 2007-7-6 13:27:26 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 3

Hi Scott:

I have failures when doing registration via the GUI or smpatch from a shell. Output of smpatch command as follows:

# smpatch analyze

Failure: Cannot connect to retrieve detectors: Connection refused

Relevant entries in /var/adm/messages (hostname is host01):

Aug 25 21:40:29 host01 root: [ID 702911 user.crit] => com.sun.patchpro.cli.PatchServices@5e3974 <=com.sun.patchpro.util.CannotConnectException: Cannot connect to retrieve detectors: Connection refused

Aug 25 21:40:29 host01at com.sun.patchpro.util.CachingDownloader.establishConnection(CachingDownloader.java:611)

Aug 25 21:40:29 host01at com.sun.patchpro.util.CachingDownloader.setSourceURL(CachingDownloader.java:273)

Aug 25 21:40:29 host01at com.sun.patchpro.util.CachingDownloader.setupCache(CachingDownloader.java:199)

Aug 25 21:40:29 host01at com.sun.patchpro.util.CachingDownloader.<init>(CachingDownloader.java:184)

Aug 25 21:40:29 host01 root: [ID 702911 user.crit] => com.sun.patchpro.cli.PatchServices@5e3974 <=at com.sun.patchpro.server.ServerPatchServiceProvider.downloadFile(ServerPatchServiceProvider.java:746)

Aug 25 21:40:29 host01at com.sun.patchpro.server.ServerPatchServiceProvider.downloadRealizationDetectors(ServerPatchServiceProvider.java:568)

Aug 25 21:40:29 host01at com.sun.patchpro.server.PatchServerProxy.downloadRealizationDetectors(PatchServerProxy.java:121)

Aug 25 21:40:29 host01at com.sun.patchpro.analysis.HostAnalyzer$RealizationSetAuto.downloadDetectorsWithPOST(HostAnalyzer.java:1183)

Aug 25 21:40:29 host01at com.sun.patchpro.analysis.HostAnalyzer$RealizationSetAuto.downloadDetectors(HostAnalyzer.java:1154)

Aug 25 21:40:29 host01 root: [ID 702911 user.crit] => com.sun.patchpro.cli.PatchServices@5e3974 <=at com.sun.patchpro.analysis.HostAnalyzer$RealizationSetAuto.prepare(HostAnalyzer.java:873)

Aug 25 21:40:29 host01at com.sun.patchpro.analysis.HostAnalyzer.downloadDetectors(HostAnalyzer.java:299)

Aug 25 21:40:29 host01at com.sun.patchpro.model.PatchProModel.downloadDetectors(PatchProModel.java:1764)

Aug 25 21:40:29 host01at com.sun.patchpro.model.PatchProStateMachine$4.run(PatchProStateMachine.java:245)

Aug 25 21:40:29 host01at com.sun.patchpro.util.State.run(State.java:266)

Aug 25 21:40:29 host01 root: [ID 702911 user.crit] => com.sun.patchpro.cli.PatchServices@5e3974 <=at java.lang.Thread.run(Thread.java:595)

Aug 25 21:40:29 host01 Caused by:

Aug 25 21:40:29 host01 java.net.ConnectException: Connection refused

Aug 25 21:40:29 host01at java.net.PlainSocketImpl.socketConnect(Native Method)

Aug 25 21:40:29 host01at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

Aug 25 21:40:29 host01 root: [ID 702911 user.crit] => com.sun.patchpro.cli.PatchServices@5e3974 <=at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

Aug 25 21:40:29 host01at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

Aug 25 21:40:29 host01at java.net.Socket.connect(Socket.java:507)

Aug 25 21:40:29 host01at java.net.Socket.connect(Socket.java:457)

Aug 25 21:40:29 host01at sun.net.NetworkClient.doConnect(NetworkClient.java:157)

Aug 25 21:40:29 host01 root: [ID 702911 user.crit] => com.sun.patchpro.cli.PatchServices@5e3974 <=at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)

Aug 25 21:40:29 host01at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)

Aug 25 21:40:29 host01at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:280)

Aug 25 21:40:29 host01at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:337)

Aug 25 21:40:29 host01at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:176)

Aug 25 21:40:30 host01 root: [ID 702911 user.crit] => com.sun.patchpro.cli.PatchServices@5e3974 <=at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:736)

Aug 25 21:40:30 host01at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:162)

Aug 25 21:40:30 host01at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:828)

Aug 25 21:40:30 host01at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getOutputStream(HttpsURLConnectionOldImpl.java:200)

Aug 25 21:40:30 host01at com.sun.patchpro.util.Downloader.connectToURL(Downloader.java:294)

Aug 25 21:40:30 host01 root: [ID 702911 user.crit] => com.sun.patchpro.cli.PatchServices@5e3974 <=at com.sun.patchpro.util.CachingDownloader.establishConnection(CachingDownloader.java:583)

Aug 25 21:40:30 host01at com.sun.patchpro.util.CachingDownloader.setSourceURL(CachingDownloader.java:273)

Aug 25 21:40:30 host01at com.sun.patchpro.util.CachingDownloader.setupCache(CachingDownloader.java:199)

Aug 25 21:40:30 host01at com.sun.patchpro.util.CachingDownloader.<init>(CachingDownloader.java:184)

Aug 25 21:40:30 host01at com.sun.patchpro.server.ServerPatchServiceProvider.downloadFile(ServerPatchServiceProvider.java:746)

Aug 25 21:40:30 host01 root: [ID 702911 user.crit] => com.sun.patchpro.cli.PatchServices@5e3974 <=at com.sun.patchpro.server.ServerPatchServiceProvider.downloadRealizationDetectors(ServerPatchServiceProvider.java:568)

Aug 25 21:40:30 host01at com.sun.patchpro.server.PatchServerProxy.downloadRealizationDetectors(PatchServerProxy.java:121)

Aug 25 21:40:30 host01at com.sun.patchpro.analysis.HostAnalyzer$RealizationSetAuto.downloadDetectorsWithPOST(HostAnalyzer.java:1183)

Aug 25 21:40:30 host01at com.sun.patchpro.analysis.HostAnalyzer$RealizationSetAuto.downloadDetectors(HostAnalyzer.java:1154)

Aug 25 21:40:30 host01at com.sun.patchpro.analysis.HostAnalyzer$RealizationSetAuto.prepare(HostAnalyzer.java:873)

Aug 25 21:40:30 host01 root: [ID 702911 user.crit] => com.sun.patchpro.cli.PatchServices@5e3974 <=at com.sun.patchpro.analysis.HostAnalyzer.downloadDetectors(HostAnalyzer.java:299)

Aug 25 21:40:30 host01at com.sun.patchpro.model.PatchProModel.downloadDetectors(PatchProModel.java:1764)

Aug 25 21:40:30 host01at com.sun.patchpro.model.PatchProStateMachine$4.run(PatchProStateMachine.java:245)

Aug 25 21:40:30 host01at com.sun.patchpro.util.State.run(State.java:266)

Aug 25 21:40:30 host01at java.lang.Thread.run(Thread.java:595)

This is about all the information regarding this problem I have been able to find on the system.

Hope you can help.

Ben.

bcouldrey at 2007-7-6 13:27:26 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 4
Hi bcouldrey,My first instinct would be to verify you have your proxy settings set correctly. Verify them and your firewall settings to ensure that valid communication can get through.
ForumModerator at 2007-7-6 13:27:26 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 5

> proxy settings set correctly. Verify them and your

Outbound connections do not require a proxy from this host.

> firewall settings to ensure that valid communication

> can get through.

Outbound communication from this host is not subject to firewall rules. The host has been in use for inbound and outbound communications for a number of months so connectivity is not a problem.

If the firewall needs tweaking, what ports should be made available to smpatch?

Thanks,

Ben.

bcouldrey at 2007-7-6 13:27:26 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 6
> If the firewall needs tweaking, what ports should be made available to smpatch?smpatch only uses HTTP (port 80) and HTTPS (port 442)
ncsupport at 2007-7-6 13:27:26 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 7
> smpatch only uses HTTP (port 80) and HTTPS (port 442)So given that this host can access those ports from lynx, mozilla, wget, etc - are there any reasons for the Java exceptions seen in /var/adm/messages when trying to run smpatch analyze?
bcouldrey at 2007-7-6 13:27:26 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 8
I've found similar cases happening to other customers, apparently the problem came from either a wrong port number for the LPS or a wrong patchpro.patch.source.url.Could you please give us the output of this command:$ cat /etc/patch/patch.confThanks
ncsupport at 2007-7-6 13:27:26 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 9

> Could you please give us the output of this command:

>

> $ cat /etc/patch/patch.conf

# Comments removed.

patchpro.sun.user=bcouldrey

patchpro.patchset=recommended

patchpro.patch.source=https\://getupdates.sun.com/solaris/

patchpro.patch.source URL looks not to respond when attempted from a browser window. Is this the wrong URL?

Cheers,

Ben.

bcouldrey at 2007-7-6 13:27:26 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 10

If you have installed Sun Update Connection then you should have:

patchpro.patch.source=https\://updateserver.sun.com/solaris/

patchpro.patchset=patchdb

If not then https\://getupdates.sun.com/solaris/ is the right url.

Also I don't know if those are necessary or related to the issue but in all /etc/patch/patch.conf I've seen those keys were also defined:

patchpro.download.directory

patchpro.sun.passwd

Don't edit the file directly to change those, use the "smpatch set" command.

ncsupport at 2007-7-6 13:27:26 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 11

> If you have installed Sun Update Connection then you

I have.

# smpatch analyze

Failure: Cannot connect to retrieve Database/patchdb.zip: Connection refused

# smpatch get

patchpro.backout.directory-""

patchpro.download.directory/export/home/install/patch/var/sadm/spool

patchpro.install.types -rebootafter:reconfigafter:standard

patchpro.patch.sourcehttps://updateserver.sun.com/solaris/https://getupdates.sun.com/solaris/

patchpro.patchsetpatchdb current

patchpro.proxy.host -""

patchpro.proxy.passwd********

patchpro.proxy.port -8080

patchpro.proxy.user -""

I suspect the inability to download patches with smpatch is related to the fact that host registration still fails... but I get the same errors when attempting to register via the GUI. Any further suggestions?

Thanks.

bcouldrey at 2007-7-6 13:27:26 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 12
Yes I would expect this is because of the registration issue you have encountered. I would recommend contacting SWUP Support and ask them to look into the issue of registration as they are currently investigating this.
ForumModerator at 2007-7-6 13:27:26 > top of Java-index,Administration Tools,Sun Update Connection-System...