Martin Paul wrote:
> Gerard,
>
>> pike-root% /etc/scripts/pca -l 137137
>> ...
>> pike-root% /etc/scripts/pca -d 137137-09
>
> That's a common issue. pca behaves differently when you specify either a
> patch ID or a patch ID plus revision. In the first case, it resolves
> dependencies and shows you all required patches as well. In the second
> case, it will only show (or download or install) the specified patch
> without resolving dependencies.
>
>> Where am i wrong? And why the patch isn't downloaded on the proxy server?
>
> From the output you show, pca downloaded the patch through the proxy,
> so it should be stored there, too. Try to add "debug=1" to
> pca-proxy.conf and look at /tmp/pca-proxy-debug.txt to see what's going on.
>
there's nothing special, and the patches are again downloaded into the
client.
as i said before, i have a proxy server into a zone in a os2008.11 machine.
The client isn't able to use patchdiag.xref on the proxy, due to this error:
13:13:33 ERROR 500: Update option unavailable: Can't write to
/var/apache2/2.2/cgi-bin/pca-proxy.cgi.
This error is appearing on the client machine, with -V:
pike-root% /etc/scripts/./pca -X .
--xrefurl=http://www2/cgi-bin/pca-proxy.cgi
--patchurl=http://www2/cgi-bin/pca-proxy.cgi -V -d 139555
Option download: 1
Option xrefdir: /var/tmp/.
Option patchdir: /var/tmp/.
Option patchurl: http://www2/cgi-bin/pca-proxy.cgi?
Option xrefurl: http://www2/cgi-bin/pca-proxy.cgi?
Option syslog: local6
Option debug: 1
ARGV: 139555
Version: 20090408-01
Config files: /etc/scripts/./pca.conf
Using /usr/sfw/bin/wget (1.10.2, 11002, https)
Prerequisites for threads not met, setting threads to 0
Never update
Expanded patch list: 139555
Downloading xref file to /var/tmp/./patchdiag.xref
Trying http://www2/cgi-bin/pca-proxy.cgi?
/usr/sfw/bin/wget "http://www2/cgi-bin/pca-proxy.cgi?patchdiag.xref" -O
/var/tmp/./patchdiag.xref
--13:13:33-- http://www2/cgi-bin/pca-proxy.cgi?patchdiag.xref
=> `/var/tmp/./patchdiag.xref'
Resolving www2... 192.168.64.31
Connecting to www2|192.168.64.31|:80... connected.
HTTP request sent, awaiting response... 500 Update option unavailable:
Can't write to /var/apache2/2.2/cgi-bin/pca-proxy.cgi
13:13:33 ERROR 500: Update option unavailable: Can't write to
/var/apache2/2.2/cgi-bin/pca-proxy.cgi.
Failed
The server is configured as follow:
root at www2:/var/apache2/2.2/cgi-bin# cat /etc/pca-proxy.conf
xrefdir=/www/pca
patchdir=/www/pca
user=XXXX
passwd=XXXX
debug=1
update=auto
and apache (from sun) is configured as
normal:root at www2:/var/apache2/2.2/cgi-bin# ls -l
total 377
-r-xr-xr-x 1 webservd webservd 138810 Apr 8 13:59 pca
-r-xr-xr-x 1 webservd webservd 138810 Apr 8 13:59 pca-proxy.cgi
-r-xr-xr-x 1 root bin 294 Dec 16 15:55 printenv
-r-xr-xr-x 1 root bin 779 Dec 16 15:55 test-cgi
does it mean that apache need to write the file pca? That seems to be ok
if i chmod pca* (chmod +w pca*)
And here is the proxy log:
Mon Jun 8 14:02:57 2009: Option xrefdir: /www/pca
Mon Jun 8 14:02:57 2009: Option patchdir: /www/pca
Mon Jun 8 14:02:57 2009: Option user: XXXXXX
Mon Jun 8 14:02:57 2009: Option passwd: XXXXXX
Mon Jun 8 14:02:57 2009: Option update: auto
Mon Jun 8 14:02:57 2009: Option debug: 1
Mon Jun 8 14:02:57 2009: Option proxy: patchdiag.xref
Mon Jun 8 14:02:57 2009: ARGV: patchdiag.xref
Mon Jun 8 14:02:57 2009: Version: 20090408-01
Mon Jun 8 14:02:57 2009: Config files: /etc/pca-proxy.conf
Mon Jun 8 14:02:57 2009: Using /usr/sfw/bin/wget (1.10.2, 11002, https)
Mon Jun 8 14:02:57 2009: Prerequisites for threads not met, setting
threads to 0
Mon Jun 8 14:02:57 2009: Auto update
Mon Jun 8 14:02:57 2009: pca mtime : Wed Apr 8 13:59:41 2009
Mon Jun 8 14:02:57 2009: pca now : Mon Jun 8 14:02:57 2009
Mon Jun 8 14:02:57 2009: pca ctime : Mon Jun 8 14:02:38 2009
Mon Jun 8 14:02:57 2009: pca age : 19
Mon Jun 8 14:02:57 2009: age lower than interval
Mon Jun 8 14:02:57 2009: Requested file: patchdiag.xref
Mon Jun 8 14:02:57 2009: xref mtime: Mon Jun 8 12:02:39 2009
Mon Jun 8 14:02:57 2009: xref now : Mon Jun 8 14:02:57 2009
Mon Jun 8 14:02:57 2009: xref ctime: Mon Jun 8 12:02:39 2009
Mon Jun 8 14:02:57 2009: xref age : 7218
Mon Jun 8 14:02:57 2009: Local file /www/pca/patchdiag.xref is up to date
Mon Jun 8 14:03:10 2009: Option xrefdir: /www/pca
Mon Jun 8 14:03:10 2009: Option patchdir: /www/pca
Mon Jun 8 14:03:10 2009: Option user: XXXXXXX
Mon Jun 8 14:03:10 2009: Option passwd: XXXXXXX
Mon Jun 8 14:03:10 2009: Option update: auto
Mon Jun 8 14:03:10 2009: Option debug: 1
Mon Jun 8 14:03:10 2009: Option proxy: 138217-01
Mon Jun 8 14:03:10 2009: ARGV: 138217-01
Mon Jun 8 14:03:10 2009: Version: 20090408-01
Mon Jun 8 14:03:10 2009: Config files: /etc/pca-proxy.conf
Mon Jun 8 14:03:10 2009: Using /usr/sfw/bin/wget (1.10.2, 11002, https)
Mon Jun 8 14:03:10 2009: Prerequisites for threads not met, setting
threads to 0
gerard