[pca] Problem install patch which the proxy has already started to download

Michele Vecchiato michele.vecchiato at gmail.com
Mon Dec 27 14:42:10 CET 2010


2010/12/27 Richard Skelton <Richard.Skelton at infineon.com>:
> Hi,
> There is a problem with PCA when trying to install a patch from a proxy when
> the patch is already being downloaded by the proxy:-
> 120185 21 < 22 RS-   6 StarOffice 8 (Solaris): Update 17
>
> Looking for 120185-22 (25/212)
> Trying http://pcaproxy/cgi-bin/pca-proxy.cgi?
> Failed (Error 500: Another instance of pca is downloading 120185-22 to
> /var/apache2/htdocs/pca right now)
> Trying Oracle
>
> Please enter My Oracle Support Account User:
>
>
> PCA never exits and I had to kill it :-(
>
> My PCA version is 20101221-01 for both the client and the proxy.
>
I have the same problem, but the error is "404 file not found..."

See here for more details:

*** Test my valid MOS account on PCA proxy server ***

root at pcaproxysrv # pca --supplevel
Determining MOS Support Levels

SW: Existing Oracle software and Sun middleware
OS: Solaris patches and updates
PUB: Oracle Open Office/StarOffice and patch utilities
FMW: Firmware, drivers, bios, system controller software, ALOM/ILOM, diagnostics
root at pcaproxysrv #

*** Find my PCA cache proxy server dir and rename the StarOffice patch  ***

root at pcaproxysrv # grep DocumentRoot /etc/apache2/httpd.conf | egrep -v ^#
DocumentRoot "/patches/pca"
root at pcaproxysrv # mv /patches/pca/120185-22.zip /patches/pca/_120185-22.zip

*** Test to download from a pca client ***

root at pcaclient # pca -l 120185
Using /var/tmp/pca/patchdiag.xref from Dec/26/10
Host: pcaclient (SunOS 5.10/Generic_142900-02/sparc/sun4u)
List: 120185 (1/6)

Patch  IR   CR RSB Age Synopsis
------ -- - -- --- --- -------------------------------------------------------
120185 20 < 22 RS-   6 StarOffice 8 (Solaris): Update 17
root at pcaclient #
root at pcaclient # pca -d 120185 -V
Option download: 1
Option xrefdir: /var/tmp/pca
Option patchdir: /var/tmp/pca
Option patchurl: https://pcaproxysrv/cgi-bin/pca-proxy.cgi?
Option xrefurl: https://pcaproxysrv/cgi-bin/pca-proxy.cgi?
Option ignore: Veritas|VERITAS|VRTS|VxVM|VxFS|NetBackup|Netbackup
Option syslog: local4.info
Option dltries: 5
Option threads: 5
Option update: auto
Option pcaurl: https://pcaproxysrv/stable/
Option debug: 1
Command: /usr/bin/pca
ARGV: 120185
Version: 20101221-01
CWD: /
Config files: /etc/pca.conf
Found /usr/sfw/bin/wget (1.12, 11200, https)
Using /usr/sfw/bin/wget
Found /usr/bin/uname
Prerequisites for threads not met, setting threads to 0
Auto update
pca mtime : Mon Dec 27 11:21:50 2010
pca now   : Mon Dec 27 13:47:00 2010
pca ctime : Mon Dec 27 11:39:45 2010
pca age   : 7635
age lower than interval
Expanded patch list: 120185
xref mtime: Sun Dec 26 21:07:04 2010
xref now  : Mon Dec 27 13:47:00 2010
xref ctime: Mon Dec 27 11:40:24 2010
xref age  : 7596
Local file /var/tmp/pca/patchdiag.xref is up to date
osname from uname: SunOS
Reading from /usr/bin/showrev -p  2>/dev/null
Using /var/tmp/pca/patchdiag.xref from Dec/26/10
Bad patch installed: 141506-05
SUNWswmt patches: 106125 106126 107171 107172 108987 108988 110763
111666 111667 112951 114194 119254 119255
Host: pcaclient (SunOS 5.10/Generic_142900-02/sparc/sun4u)
List: 120185 (1/6)

Patch  IR   CR RSB Age Synopsis
------ -- - -- --- --- -------------------------------------------------------
120185 20 < 22 RS-   6 StarOffice 8 (Solaris): Update 17

Looking for 120185-22 (1/1)
Trying https://pcaproxysrv/cgi-bin/pca-proxy.cgi?
/usr/sfw/bin/wget --progress=dot:binary
"https://pcaproxysrv/cgi-bin/pca-proxy.cgi?120185-22" --timeout 3600
-O /var/tmp/pca/120185-22.tmp
--2010-12-27 13:47:07--  https://pcaproxysrv/cgi-bin/pca-proxy.cgi?120185-22
Resolving pcaproxysrv... XXX.XXX.XXX.XXX (my internal IP)
Connecting to pcaproxysrv|XXX.XXX.XXX.XXX (my internal IP)|:443... connected.
WARNING: cannot verify pcaproxysrv's certificate, issued by

`/C=MyCountry/L=MySite/O=MyCompany/OU=MyOrganizationUnit/CN=pcaproxysrv/emailAddress=my-email at company.com':
 Self-signed certificate encountered.
HTTP request sent, awaiting response... 404 120185-22 not found
2010-12-27 13:47:39 ERROR 404: 120185-22 not found.

Failed (Error 404: 120185-22 not found)
Trying Oracle

Please enter My Oracle Support Account User:

*** Send a CTRL-C because pca is in "waiting loop" ***

^C
ERROR: Caught a SIGINT
Cleanup
Removing /var/tmp/pca/.pcaLock.download.120185-22
root at pcaclient #

*** Re-download the patch form my pca cache proxy server ***

root at pcaproxysrv # pca -d -V 120185
Option download: 1
Option xrefdir: /patches/pca
Option patchdir: /patches/pca
Option user: <user>
Option passwd: <passwd>
Option syslog: local4.info
Option dltries: 5
Option wgetproxy: http://MyCompanyInternetProxy:8080
Option threads: 5
Option debug: 1
Command: /usr/bin/pca
ARGV: 120185
Version: 20101221-01
CWD: /tmp
Config files: /etc/pca.conf
Found /usr/sfw/bin/wget (1.12, 11200, https)
Using /usr/sfw/bin/wget
Found /usr/bin/uname
Prerequisites for threads not met, setting threads to 0
Never update
Expanded patch list: 120185
xref mtime: Sun Dec 26 21:07:04 2010
xref now  : Mon Dec 27 14:03:05 2010
xref ctime: Mon Dec 27 11:05:05 2010
xref age  : 10680
Local file /patches/pca/patchdiag.xref is up to date
osname from uname: SunOS
Reading from /usr/bin/showrev -p  2>/dev/null
Using /patches/pca/patchdiag.xref from Dec/26/10
SUNWswmt patches: 106125 106126 107171 107172 108987 108988 110763
111666 111667 112951 114194 119254 119255
Host: pcaproxysrv (SunOS 5.10/Generic_144488-04/sparc/sun4u)
List: 120185 (1/6)

Patch  IR   CR RSB Age Synopsis
------ -- - -- --- --- -------------------------------------------------------
120185 -- < 22 RS-   6 StarOffice 8 (Solaris): Update 17

Looking for 120185-22 (1/1)
Trying Oracle
Trying https://getupdates.oracle.com/ (1/5)
Adding to /tmp/pca.567543: header=Authorization: Basic <base64-user-passwd>
/usr/sfw/bin/wget --progress=dot:binary
"https://getupdates.oracle.com/all_unsigned/120185-22.zip" --execute

https_proxy=http://MyCompanyInternetProxy:8080
--ca-certificate=/usr/bin/pca -O /patches/pca/120185-22.tmp
--2010-12-27 14:03:11--
https://getupdates.oracle.com/all_unsigned/120185-22.zip
Resolving MyCompanyInternetProxy... xxx.xxx.xxx.xxx (my internal IP
internet proxy)
Connecting to MyCompanyInternetProxy|xxx.xxx.xxx.xxx (my internal IP
internet proxy)|:8080... connected.
Proxy request sent, awaiting response... 302 Moved Temporarily
Location:

https://a248.e.akamai.net/f/248/21808/15m/sun.download.akamai.com/21808/patches/patchroot/all_unsigned/120185-22.zip?AuthParam=1293455070_0754209fef79d12cf74

adcf913bdee63&TicketId=C1Ra%2BkuJVFU%3D&GroupName=SWUP&FilePath=/21808/patches/patchroot/all_unsigned/120185-22.zip&File=120185-22.zip
[following]
--2010-12-27 14:03:14--

https://a248.e.akamai.net/f/248/21808/15m/sun.download.akamai.com/21808/patches/patchroot/all_unsigned/120185-22.zip?AuthParam=1293455070_0754209fef79d12cf74

adcf913bdee63&TicketId=C1Ra%2BkuJVFU%3D&GroupName=SWUP&FilePath=/21808/patches/patchroot/all_unsigned/120185-22.zip&File=120185-22.zip
Connecting to MyCompanyInternetProxy|xxx.xxx.xxx.xxx (my internal IP
internet proxy)|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 292265504 (279M) [application/zip]
Saving to: `/patches/pca/120185-22.tmp'

    0K ................ ................ ................  0%  659K 7m12s
  384K ................ ................ ................  0% 1.77M 4m54s
  768K ................ ................ ................  0% 2.86M 3m48s
 1152K ................ ................ ................  0% 3.07M 3m14s
 1536K ................ ................ ................  0% 3.13M 2m52s
 1920K ................ ................ ................  0% 1.47M 2m55s
 2304K ................ ................ ................  0% 2.76M 2m44s
 2688K ................ ................ ................  1% 2.26M 2m38s
[...more output truncated...]
284160K ................ ................ ................ 99% 3.16M 0s
284544K ................ ................ ................ 99% 1.59M 0s
284928K ................ ................ ................ 99% 2.82M 0s
285312K ............                                      100% 3.34M=2m6s

2010-12-27 14:05:21 (2.22 MB/s) - `/patches/pca/120185-22.tmp' saved
[292265504/292265504]

Removing /tmp/pca.567543
Done
------------------------------------------------------------------------------
Download Summary: 1 total, 1 successful, 0 skipped, 0 failed
root at pcaproxysrv #

*** Retry from my pca client after "manual" pca proxy download ***

root at pcaclient # pca -d 120185 -V
Option download: 1
Option xrefdir: /var/tmp/pca
Option patchdir: /var/tmp/pca
Option patchurl: https://pcaproxysrv/cgi-bin/pca-proxy.cgi?
Option xrefurl: https://pcaproxysrv/cgi-bin/pca-proxy.cgi?
Option ignore: Veritas|VERITAS|VRTS|VxVM|VxFS|NetBackup|Netbackup
Option syslog: local4.info
Option dltries: 5
Option threads: 5
Option update: auto
Option pcaurl: https://pcaproxysrv/stable/
Option debug: 1
Command: /usr/bin/pca
ARGV: 120185
Version: 20101221-01
CWD: /
Config files: /etc/pca.conf
Found /usr/sfw/bin/wget (1.12, 11200, https)
Using /usr/sfw/bin/wget
Found /usr/bin/uname
Prerequisites for threads not met, setting threads to 0
Auto update
pca mtime : Mon Dec 27 11:21:50 2010
pca now   : Mon Dec 27 13:52:03 2010
pca ctime : Mon Dec 27 11:39:45 2010
pca age   : 7938
age lower than interval
Expanded patch list: 120185
xref mtime: Sun Dec 26 21:07:04 2010
xref now  : Mon Dec 27 13:52:03 2010
xref ctime: Mon Dec 27 11:40:24 2010
xref age  : 7899
Local file /var/tmp/pca/patchdiag.xref is up to date
osname from uname: SunOS
Reading from /usr/bin/showrev -p  2>/dev/null
Using /var/tmp/pca/patchdiag.xref from Dec/26/10
Bad patch installed: 141506-05
SUNWswmt patches: 106125 106126 107171 107172 108987 108988 110763
111666 111667 112951 114194 119254 119255
Host: pcaclient (SunOS 5.10/Generic_142900-02/sparc/sun4u)
List: 120185 (1/6)

Patch  IR   CR RSB Age Synopsis
------ -- - -- --- --- -------------------------------------------------------
120185 20 < 22 RS-   6 StarOffice 8 (Solaris): Update 17

Looking for 120185-22 (1/1)
Trying https://pcaproxysrv/cgi-bin/pca-proxy.cgi?
/usr/sfw/bin/wget --progress=dot:binary
"https://pcaproxysrv/cgi-bin/pca-proxy.cgi?120185-22" --timeout 3600
-O /var/tmp/pca/120185-22.tmp
--2010-12-27 13:52:10--  https://pcaproxysrv/cgi-bin/pca-proxy.cgi?120185-22
Resolving pcaproxysrv... XXX.XXX.XXX.XXX (my internal IP)
Connecting to pcaproxysrv|XXX.XXX.XXX.XXX (my internal IP)|:443... connected.
WARNING: cannot verify pcaproxysrv's certificate, issued by

`/C=MyCountry/L=MySite/O=MyCompany/OU=MyOrganizationUnit/CN=pcaproxysrv/emailAddress=my-email at company.com':
 Self-signed certificate encountered.
HTTP request sent, awaiting response... 200 OK
Length: 292265504 (279M) [application/zip]
Saving to: `/var/tmp/pca/120185-22.tmp'

    0K ................ ................ ................  0% 4.29M 65s
  384K ................ ................ ................  0% 6.73M 53s
  768K ................ ................ ................  0% 4.22M 57s
 1152K ................ ................ ................  0% 6.46M 54s
 1536K ................ ................ ................  0% 6.69M 51s
 1920K ................ ................ ................  0% 5.71M 51s
 2304K ................ ................ ................  0% 5.98M 50s
 2688K ................ ................ ................  1% 2.17M 60s
[...more output truncated...]
282240K ................ ................ ................ 99% 6.66M 0s
282624K ................ ................ ................ 99% 6.53M 0s
283008K ................ ................ ................ 99% 6.47M 0s
283392K ................ ................ ................ 99% 6.61M 0s
283776K ................ ................ ................ 99% 6.71M 0s
284160K ................ ................ ................ 99% 6.47M 0s
284544K ................ ................ ................ 99% 6.57M 0s
284928K ................ ................ ................ 99% 6.58M 0s
285312K ............                                      100% 6.83M=47s

2010-12-27 13:52:58 (5.96 MB/s) - `/var/tmp/pca/120185-22.tmp' saved
[292265504/292265504]

Done
------------------------------------------------------------------------------
Download Summary: 1 total, 1 successful, 0 skipped, 0 failed
root at pcaclient #
>
>

By
Michele

--
Michele Vecchiato
Blog <http://michelevecchiato.wordpress.com>



More information about the pca mailing list