[pca] pca: Failed (unknown file type)
Evan Bradley
ebradley03 at gmail.com
Tue Sep 23 15:00:56 CEST 2008
Hi Martin,
> Can you check whether you got 119254-42.* in the
> current directory, and if so, what it contains?
Nothing related to any patches in the current directory
> Next step would be to re-run pca like this:
>
> ./pca.pl --user=... --passwd=... --debug --download 119254-58
>
> This gives debug output from wget as well, which could be helpful.
Here is the output from the above command:
[286-root at machine_name-/path/to/pca] pca --user=<username>
--passwd=<password> --debug --download 119254-58
Option download: 1
Option patchdir: /current/working/directory/.
Option user: <username>
Option passwd: <password>
Option debug: 1
ARGV: 119254-58
Version: 20080911-01
Using /usr/sfw/bin/wget (1.10.2, 11002)
Prerequisites for threads not met, setting threads to 0
Never update
Expanded patch list: 119254-58
xref now : Tue Sep 23 08:43:53 2008
xref current: Tue Sep 23 08:32:16 2008
xref age : 697
Local file /var/tmp/patchdiag.xref is up to date
Reading from /usr/bin/showrev -p 2>/dev/null
Using /var/tmp/patchdiag.xref from Sep/22/08
Bad patch installed: 119757-08
Bad patch installed: 120272-12
121133-02 required by 119254: already installed
Host: <machine_name> (SunOS 5.10/Generic_120011-14/sparc/sun4u)
List: 119254-58
Patch IR CR RSB Age Synopsis
------ -- - -- --- --- -------------------------------------------------------
119254 42 < 58 RS- 57 SunOS 5.10: Install and Patch Utilities Patch
Downloading 119254-58 (1/1)
Trying http://sunsolve.sun.com/ (1/1)
/usr/sfw/bin/wget
"http://sunsolve.sun.com/pdownload.do?target=119254-58&method=h"
--header="Authorization: Basic ZWJyYWRsZXkwMTpFdmFuNDIwIQ==" -O
/current/working/directory/./119254-58.tmp
--08:43:59-- http://sunsolve.sun.com/pdownload.do?target=119254-58&method=h
=> `/current/working/directory/./119254-58.tmp'
Resolving sunsolve.sun.com... 192.18.108.40
Connecting to sunsolve.sun.com|192.18.108.40|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://sunsolve.sun.com/CDW/119254-58.zip;jsessionid=f3cd242873597061b34557f586a0
[following]
--08:44:00-- http://sunsolve.sun.com/CDW/119254-58.zip;jsessionid=f3cd242873597061b34557f586a0
=> `/current/working/directory/./119254-58.tmp'
Reusing existing connection to sunsolve.sun.com:80.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
[ <=>
] 80 --.--K/s
08:44:00 (3.13 MB/s) - `/current/working/directory/./119254-58.tmp' saved [80]
substr outside of string at /path/to/pca line 740.
Use of uninitialized value in string eq at /path/to/pca line 740.
Unknown Filetype: /current/working/directory/./119254-58.tmp
Failed (unknown file type)
Failed (patch not found)
------------------------------------------------------------------------------
Download Summary: 1 total, 0 successful, 0 skipped, 1 failed
> BTW, is this a free Sun Online Account or is it connected to a support contract (not that it matters for
> 119254, which is a free security patch)?
It is connected to a support contract
Thanks for the help, I really appreciate it. I too went through the
'403 error' smpatch madness earlier this year, so if I can get pca
working and replace smpatch I'll be very happy!
Evan
On Tue, Sep 23, 2008 at 3:33 AM, Martin Paul <martin at par.univie.ac.at> wrote:
> Hi,
>
>> Downloading 119254-58 (1/274)
>> Trying http://sunsolve.sun.com/ (1/1)
>> substr outside of string at /path/to/pca/pca.pl line 740.
>> Use of uninitialized value in string eq at /path/to/pca/pca.pl line 740.
>> Failed (unknown file type)
>
> This tells me that pca received a file from sunsolve which is too short to
> actually be a patch. Can you check whether you got 119254-42.* in the
> current directory, and if so, what it contains?
>
> Next step would be to re-run pca like this:
>
> ./pca.pl --user=... --passwd=... --debug --download 119254-58
>
> This gives debug output from wget as well, which could be helpful.
>
>> I've verified that the username and password are both correct, as I
>> can log into sunsolve.com with no problems.
>
> That would have been my first idea as well. BTW, is this a free Sun Online
> Account or is it connected to a support contract (not that it matters for
> 119254, which is a free security patch)?
>
>> The pca script itself is stored on the network, and not on the local
>> machine...should that matter?
>
> No, that doesn't matter at all.
>
>> I can post the verbose output of the above command tomorrow if it is
>> desired.
>
> Please do so.
>
> The perl warning messages shown by pca in your example are a bug in pca with
> handling files that are too short to actually be patches. I've fixed that in
> the development release now.
>
> Martin.
>
>
More information about the pca
mailing list