Failure: Cannot connect to retrieve Database/current.zip: Internal Server E

Hello

I have installed an update connection proxy and I have registered it

smpatch get

patchpro.backout.directory-""

patchpro.baseline.directory-/var/sadm/spool

patchpro.download.directory-/var/sadm/spool

patchpro.install.types -rebootafter:reconfigafter:standard

patchpro.patch.source-https://getupdates1.sun.com/

patchpro.patchset-current

patchpro.proxy.host -""

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

patchpro.proxy.port -8080

patchpro.proxy.user -""

patchsvr setup -l

Patch source URL: file:/patchsvr

Cache location: /export/home/proxycashe

I also did smpatch analyze > file

and I downloaded the patches (*.jar) and copied them to

/patchsvr/Patches

But I don't really now from where to get the files: current.zip and detectors.jar

I searched for them on the server and I found :

/var/sadm/spool/cache/Database/https%3A%2F%2Fgetupdates1.sun.com%2F%2FDatabase% 2Fcurrent.zip

/var/sadm/spool/cache/https%3A%2F%2Fgetupdates1.sun.com%2F%2Fdetectors.jar

and I copyed them in /patchsvr/Database and /patchsvr/Misc

On an update connection client I did:

#smpatch set patchpro.patch.source=http://192.168.0.71:3816/solaris/

#smpatch analyze

Failure: Cannot connect to retrieve Database/current.zip: Internal Server Error

Can you please help me.

Thanks.

[1419 byte] By [hs@tdn.dea] at [2007-11-27 11:33:26]
# 1

Can you please confirm the following

Your client machine does it use Solaris 10, if not what operating system are you using?

[ please add answer to forum ]

It would also be handy to review your current patch environment for both the proxy and client servers, so please post the output of the following:

$ showrev -p | cut -d" " -f2 | sort > /tmp/showrev-p

$ egrep '11978[8|9]|12033[5|6]|12108[1|2]' /tmp/showrev-p

$ egrep '12111[8|9]|12145[3|4]|12156[3|4]|12446[3|6]' /tmp/showrev-p

$ egrep'12223[1|2]|12300[3|4|5|6]|124463|12461[4|5]|1241[71|87]' > /tmp/showrev-p

ForumModeratora at 2007-7-29 16:51:15 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 2

My client is a Solaris 10

On the proxy:

# egrep '11978[8|9]|12033[5|6]|12108[1|2]' /tmp/showrev-p

119789-08

120336-04

121082-06

# egrep '12111[8|9]|12145[3|4]|12156[3|4]|12446[3|6]' /tmp/showrev-p

121119-09

121119-12

121454-02

124466-02

egrep '12223[1|2]|12300[3|4|5|6]|124463|12461[4|5]|1241[71|87]' /tmp/showrev-p

123004-02

123006-05

124187-03

124189-02

124615-01

On the client:

egrep '11978[8|9]|12033[5|6]|12108[1|2]' /tmp/showrev-p

120336-04

121082-06

egrep '12111[8|9]|12145[3|4]|12156[3|4]|12446[3|6]' /tmp/showrev-p

121119-09

121454-02

124466-02

egrep '12223[1|2]|12300[3|4|5|6]|124463|12461[4|5]|1241[71|87]' /tmp/showrev-p

123004-02

123006-05

124187-03

124189-02

124615-01

hs@tdn.dea at 2007-7-29 16:51:15 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 3

Note that the correct setting for a Solaris 10 client attached to an LPS/Sun UC Proxy is:

# smpatch set patchpro.patch.source=http://192.168.0.71:3816/

You would only use a trailing 'solaris/' on Solaris 8 and 9 clients.

I would also recommend that apply some patches to the systems:

On the proxy:

123004-03

124187-06

On the client:

121119-12

123004-03

124187-06

Let us know if this resolves your issues.

ForumModeratora at 2007-7-29 16:51:15 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 4

I installed those pathces but now when I type smpatch analyze on the client I receive this:

Error: Unable to download document : "xml/motd.xml"

Cannot connect to retrieve motd.xml: motd.xml not found

Unable to display any message of the day notices from Sun Microsystems. Refer to the log file for additional information.

Error: Unable to download entitlement information using the update server proxy.

Cannot connect to retrieve : default not found

hs@tdn.dea at 2007-7-29 16:51:15 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 5

Please can you run the following commands on your proxy:

# rm /var/sadm/spool/patchsvr/*current.zip

# rm /var/sadm/spool/patchsvr/*detectors.jar

# patchsvr stop

# patchsvr start

# patchsvr setup -l

And the following commands on your client:

# rm /var/sadm/spool/cache/Database/*current.zip

# rm /var/sadm/spool/cache/*detectors.jar

# smpatch get

# smpatch analyze -C patchpro.log.level=3 -C patchpro.debug=true

# ls -laR /var/sadm/spool/cache

And forward us the output generated.

ForumModeratora at 2007-7-29 16:51:15 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 6

On the proxy I cannot execute:

# rm /var/sadm/spool/patchsvr/*current.zip

# rm /var/sadm/spool/patchsvr/*detectors.jar

because /var/sadm/spool/patchsvr/ is empty.

# patchsvr setup -l

Patch source URL: file:/patchsvr

Cache location: /export/home/proxycashe

On the client:

I removed the *current.zip and *detectors.jar

# smpatch get

patchpro.backout.directory-""

patchpro.baseline.directory-/var/sadm/spool

patchpro.download.directory-/var/sadm/spool

patchpro.install.types -rebootafter:reconfigafter:standard

patchpro.patch.sourcehttp://192.168.0.71:3816/https://getupdates1.sun.com/

patchpro.patchset-current

patchpro.proxy.host -""

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

patchpro.proxy.port -8080

patchpro.proxy.user -""

# smpatch analyze -C patchpro.log.level=3 -C patchpro.debug=true

Effective proxy host : ""

Effective proxy port : "8080"

Effective proxy user : ""

... Submitting download request against a GUUS server

... ... Hostname of URL is 192.168.0.71

... ... Filename of URL is /xml/motd.xml

... ... File path portion of URL is /xml/motd.xml

Defining request header : IF_MODIFIED_SINCE... valueThu Jan 01 02:00:00 EET 1970

... Caught IO Exception.

((HttpURLConnection)connection).getResponseCode() : 404

((HttpURLConnection)connection).getResponseMessage() : motd.xml not found

Error: Unable to download document : "xml/motd.xml"

Cannot connect to retrieve motd.xml: motd.xml not found

Unable to display any message of the day notices from Sun Microsystems. Refer to the log file for additional information.

Effective proxy host : ""

Effective proxy port : "8080"

Effective proxy user : ""

... Submitting download request against a GUUS server

... ... Hostname of URL is 192.168.0.71

... ... Filename of URL is /detector/detectors.jar

... ... File path portion of URL is /detector/detectors.jar

Effective proxy host : ""

Effective proxy port : "8080"

Effective proxy user : ""

Last Modified Date read: Thu Jan 01 02:00:00 EET 1970

... Submitting download request against a GUUS server

... ... Hostname of URL is 192.168.0.71

... ... Filename of URL is /database/current.zip

... ... File path portion of URL is /database/current.zip

Defining request header : IF_MODIFIED_SINCE... valueThu Jan 01 02:00:00 EET 1970

Key 1 : Content-Type = application/java-archive

Key 2 : Content-Length = 3750071

Key 3 : content-disposition = attachment; filename=detectors.jar

Key 4 : Date = Thu, 26 Jul 2007 05:26:25 GMT

Key 5 : Server = Apache Tomcat/4.0.5 (HTTP/1.1 Connector)

Key 6 : Content-length = 3750071

Defining request header : IF_MODIFIED_SINCE... valueThu Jan 01 02:00:00 EET 1970

Key 1 : Content-Type = application/zip

Key 2 : Content-Length = 323247

Key 3 : content-disposition = attachment; filename=current.zip

Key 4 : Date = Thu, 26 Jul 2007 05:26:26 GMT

Key 5 : Server = Apache Tomcat/4.0.5 (HTTP/1.1 Connector)

Key 6 : Content-length = 323247

Last Modified Date value written to /var/sadm/spool/cache/Database/http%3A%2F%2F192.168.0.71%3A3816%2F%2FDatabase%2 Fcurrent.zip.lmd is 0

Date format for this value: Thu Jan 01 02:00:00 EET 1970

Last Modified Date file updated : /var/sadm/spool/cache/Database/http%3A%2F%2F192.168.0.71%3A3816%2F%2FDatabase%2 Fcurrent.zip.lmd

Last Modified Date value written to /var/sadm/spool/cache/http%3A%2F%2F192.168.0.71%3A3816%2F%2Fdetectors.jar.lmd is 0

Date format for this value: Thu Jan 01 02:00:00 EET 1970

Last Modified Date file updated : /var/sadm/spool/cache/http%3A%2F%2F192.168.0.71%3A3816%2F%2Fdetectors.jar.lmd

Effective proxy host : ""

Effective proxy port : "8080"

Effective proxy user : ""

Effective proxy host : ""

Effective proxy port : "8080"

Effective proxy user : ""

... Submitting download request against a GUUS server

... ... Hostname of URL is 192.168.0.71

... ... Filename of URL is /entitlement/

... ... File path portion of URL is /entitlement/

Defining request header : IF_MODIFIED_SINCE... valueThu Jan 01 02:00:00 EET 1970

... Caught IO Exception.

((HttpURLConnection)connection).getResponseCode() : 404

((HttpURLConnection)connection).getResponseMessage() : default not found

Error: Unable to download entitlement information using the update server proxy.

Cannot connect to retrieve : default not found

# ls -laR /var/sadm/spool/cache

/var/sadm/spool/cache:

total 7358

drwxr-xr-x6 rootsys 512 Jul 26 08:25 .

drwxr-xr-x3 rootsys 512 Jul 19 00:25 ..

drwxr-xr-x2 rootroot 512 Jul 26 08:25 Database

drwxr-xr-x2 rootroot 512 Jul 26 08:26 entitlement

-rw-r--r--1 rootroot3750071 Jul 26 08:25 http%3A%2F%2F192.168.0.71%3A3816%2F%2Fdetectors.jar

-rw-r--r--1 rootroot 14 Jul 26 08:25 http%3A%2F%2F192.168.0.71%3A3816%2F%2Fdetectors.jar.lmd

drwxr-xr-x3 rootsys 512 Jul 19 00:35 updatemanager

drwxr-xr-x2 rootroot 512 Jul 26 08:26 xml

/var/sadm/spool/cache/Database:

total 662

drwxr-xr-x2 rootroot 512 Jul 26 08:25 .

drwxr-xr-x6 rootsys 512 Jul 26 08:25 ..

-rw-r--r--1 rootroot323247 Jul 26 08:25 http%3A%2F%2F192.168.0.71%3A3816%2F%2FDatabase%2Fcurrent.zip

-rw-r--r--1 rootroot 14 Jul 26 08:25 http%3A%2F%2F192.168.0.71%3A3816%2F%2FDatabase%2Fcurrent.zip.lmd

/var/sadm/spool/cache/entitlement:

total 4

drwxr-xr-x2 rootroot 512 Jul 26 08:26 .

drwxr-xr-x6 rootsys 512 Jul 26 08:25 ..

/var/sadm/spool/cache/updatemanager:

total 6

drwxr-xr-x3 rootsys 512 Jul 19 00:35 .

drwxr-xr-x6 rootsys 512 Jul 26 08:25 ..

drwxr-xr-x2 rootsys 512 Jul 19 00:35 analysis.results

/var/sadm/spool/cache/updatemanager/analysis.results:

total 4

drwxr-xr-x2 rootsys 512 Jul 19 00:35 .

drwxr-xr-x3 rootsys 512 Jul 19 00:35 ..

/var/sadm/spool/cache/xml:

total 4

drwxr-xr-x2 rootroot 512 Jul 26 08:26 .

drwxr-xr-x6 rootsys 512 Jul 26 08:25 ..

hs@tdn.dea at 2007-7-29 16:51:15 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 7

The commands given for the proxy were under the assumption that the cache was in the default location. Please run the commands below on your proxy:

# rm /export/home/proxycashe/*current.zip

# rm /export/home/proxycashe/*detectors.jar

# patchsvr stop

# patchsvr start

Then run the following command on the client:

# smpatch analyze -C patchpro.log.level=3 -C patchpro.debug=true

And forward us the command output generated.

ForumModeratora at 2007-7-29 16:51:15 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 8

this are the files from the proxy server

ls /export/home/proxycashe/

%2Fsolaris%2F%3Faction%3DdownloadRealizationDetectors%26name%3Ddetectors%26vers ion%3D2.1

%2Fsolaris%2F%3Faction%3DgetEntitlement%26name%3D%26version%3D2.1

%2Fsolaris%2F%3Faction%3DgetFile%26name%3DDatabase%2Fcurrent.zip%26version%3D2. 1

%2Fsolaris%2F%3Faction%3DgetFile%26name%3Dcategory%2Fdefault%26version%3D2.1

%2Fsolaris%2F%3Faction%3DgetFile%26name%3Dcollection%2Fdefault%26version%3D2.1

%2Fsolaris%2F%3Faction%3DpatchDownload%26version%3D2.1%26patchId%3D119789-07

and I removed:

%2Fsolaris%2F%3Faction%3DgetFile%26name%3DDatabase%2Fcurrent.zip%26version%3D2. 1

%2Fsolaris%2F%3Faction%3DdownloadRealizationDetectors%26name%3Ddetectors%26vers ion%3D2.1

on the client:

# smpatch analyze -C patchpro.log.level=3 -C patchpro.debug=true

Effective proxy host : ""

Effective proxy port : "8080"

Effective proxy user : ""

... Submitting download request against a GUUS server

... ... Hostname of URL is 192.168.0.71

... ... Filename of URL is /xml/motd.xml

... ... File path portion of URL is /xml/motd.xml

Defining request header : IF_MODIFIED_SINCE... valueThu Jan 01 02:00:00 EET 1970

... Caught IO Exception.

((HttpURLConnection)connection).getResponseCode() : 404

((HttpURLConnection)connection).getResponseMessage() : motd.xml not found

Error: Unable to download document : "xml/motd.xml"

Cannot connect to retrieve motd.xml: motd.xml not found

Unable to display any message of the day notices from Sun Microsystems. Refer to the log file for additional information.

Effective proxy host : ""

Effective proxy port : "8080"

Effective proxy user : ""

Effective proxy host : ""

Effective proxy port : "8080"

Effective proxy user : ""

Last Modified Date read: Thu Jan 01 02:00:00 EET 1970

... Submitting download request against a GUUS server

... ... Hostname of URL is 192.168.0.71

... ... Filename of URL is /database/current.zip

... ... File path portion of URL is /database/current.zip

Defining request header : IF_MODIFIED_SINCE... valueThu Jan 01 02:00:00 EET 1970

Key 1 : Content-Type = application/zip

Key 2 : Content-Length = 323247

Key 3 : content-disposition = attachment; filename=current.zip

Key 4 : Date = Thu, 26 Jul 2007 08:09:02 GMT

Key 5 : Server = Apache Tomcat/4.0.5 (HTTP/1.1 Connector)

Key 6 : Content-length = 323247

Last Modified Date value written to /var/sadm/spool/cache/Database/http%3A%2F%2F192.168.0.71%3A3816%2F%2FDatabase%2 Fcurrent.zip.lmd is 0

Date format for this value: Thu Jan 01 02:00:00 EET 1970

Last Modified Date file updated : /var/sadm/spool/cache/Database/http%3A%2F%2F192.168.0.71%3A3816%2F%2FDatabase%2 Fcurrent.zip.lmd

Effective proxy host : ""

Effective proxy port : "8080"

Effective proxy user : ""

Effective proxy host : ""

Effective proxy port : "8080"

Effective proxy user : ""

... Submitting download request against a GUUS server

... ... Hostname of URL is 192.168.0.71

... ... Filename of URL is /entitlement/

... ... File path portion of URL is /entitlement/

Defining request header : IF_MODIFIED_SINCE... valueThu Jan 01 02:00:00 EET 1970

... Caught IO Exception.

((HttpURLConnection)connection).getResponseCode() : 404

((HttpURLConnection)connection).getResponseMessage() : default not found

Error: Unable to download entitlement information using the update server proxy.

Cannot connect to retrieve : default not found

hs@tdn.dea at 2007-7-29 16:51:15 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 9

Hi

Would you please check for us that :

You may log into Sunsolve using the same username/passwd with which the Update Connection service plan was registered and download a non-free patch

Can you also tell us if there is an HTTP proxy between the Update Connection client system and the Update Connection proxy. If so, from the Client system please lauch a browser and ensure you can load https://verisign.com (notice that is http"s")

Thank you.

ForumModeratora at 2007-7-29 16:51:15 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 10

With my account I can download any patch.

I don't have any proxies in my network.

hs@tdn.dea at 2007-7-29 16:51:15 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 11

Proxy Server perform the following

# patchsvr setup -c /var/sadm/spool/patchsvr

# patchsvr stop

# patchsvr start

can you also give us the following information from a client

at your site

# smpatch get

This is so we bring everything by to default and try to investigate further the issue

as it could be looking for the default location to be valid.

If you still have problems after this please add your current problems on this forum

ForumModeratora at 2007-7-29 16:51:15 > top of Java-index,Administration Tools,Sun Update Connection-System...