1827382 Members
4188 Online
109963 Solutions
New Discussion

swa errors

 
catastro
Super Advisor

swa errors

Hi to all. I have a little problem with getting started with swa. I installed the depot which I downloaded from hp and always I try to run the swa report -s or swa get -p -t I get always this error:

ERROR: Cannot find the Java run-time environment needed to run the "swa report" command.

I have installed the JRE 1.4 on my system (and prior to this one I have the jre6=:

Jre14 1.4.2.11.00 Java2 1.4 RTE
Jre60 1.6.0.02.00 Java 6.0 JRE

I installed the jre1.4 from the FOE installation CDs. I am not able to find it anywhere else. My system is an HP-UX 11iv1.
Any help would be gratefull...
12 REPLIES 12
Jaime Bolanos Rojas.
Honored Contributor

Re: swa errors

Hi Catastro,

Check the SWA readme file to see what is the version that is requiring. Also go through this thread, that talks about the same error:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1132022&admit=109447626+1225893967638+28353475

Regards,

Jaime.
Work hard when the need comes out.
catastro
Super Advisor

Re: swa errors

Thanks for the thread Jaime. I just looked at it, and it didn't help at all.
I just removed the jre version 6 and now I have another problem that is not related with java (I think):

explo:/opt/java6/bin# swa get -p -t explo.catastro.minhac.es

======= 11/05/08 15:36:01 MET BEGIN Get New Software From HP Preview
(user=rootsc) (jobid=explo)

* Analyzing Required Disk Space
ERROR: Analysis file /root/.swa/cache/swa_analysis.xml does not exist
* Analyzing Required Disk Space failed with 1 error.

======= 11/05/08 15:36:02 MET END Get New Software From HP Preview failed
with 1 error. (user=rootsc) (jobid=explo)

NOTE: More information may be found in the Software Assistant logfile
"/var/opt/swa/swa.log".
Torsten.
Acclaimed Contributor

Re: swa errors

Hi,

first you need to run the "swa report", if successful run "swa get", see

http://docs.hp.com/en/5992-3930/ch03s01.html?btnPrev=%AB%A0prev

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
catastro
Super Advisor

Re: swa errors

Hi Torsten. It keeps telling the same thig as the beginning. It could not find the Java run-time enviroment. It has installed the jre14 as I showed at the beginning of the thread and removed the jre6.

ERROR: Cannot find the Java run-time environment needed to run the "swa report" command.
Bob E Campbell
Honored Contributor

Re: swa errors

More fun with Java...

SWA will look for Java under "/opt/java1.5/jre/bin/java" and then "/opt/java1.4/jre/bin/java". Other locations can be specified with the environment variable $SWA_JAVA_HOME.

JRE 1.5 is recommended.
catastro
Super Advisor

Re: swa errors

Hi bob. Could you tell me where to set that enviroment variable in a config file in order to keep it even after rebooting the system?
I guess I could not set the path for pointing to java6, am I right? Thanks
catastro
Super Advisor

Re: swa errors

Hi. I got at least after looking through a lot of web sites the JRE 1.5 for hp-ux. Now it works, but with a little error now.

ERROR: Unexpected error while downloading CRL from "http://crl.verisign.comRSASecureServer.crl" specified by extended option "crl_url". It may be necessary to specify a proxy. Alternatively, you may choose to disable CRL checking. Error was "Connection timed out".

I know I have to put a proxy somewhere, but do't remember the format. I think it has to be placed in /etc/opt/swa/swa.conf, right?
But in which format should be written?
Or it is better to configure it in /etc/opt/sec_mgmt/spc/spc_config? The format as I can see in this file is https_proxy=https://10.57.222.43:443 and my proxy server ip is 10.57.222.43
But it keeps telling me the error. Any idea?
catastro
Super Advisor

Re: swa errors

Now I got this error:

ERROR: Failed to read: https://ftp.itrc.hp.com/wpsl/bin/doc.pl/screen=wpslDownloadPatch/swa_catalog.xml.gz?PatchName=/export/patches/swa_catalog.xml.gz Message: URL cannot be opened. Connection timed out

How can I solve this situation? It happens sometimes maybe because the HP server is not avalable?
Bob E Campbell
Honored Contributor

Re: swa errors

Both problems are related to proxies. Assuming the same proxy exists for each you can use:

-x proxy=http://myProxy:8888

with "myProxy" and "8888" replaced as needed by your proxy and port. This is set globally in /etc/opt/swa/swa.conf or for each user within ~/.swa.conf.
catastro
Super Advisor

Re: swa errors

Hi bob. I used the -x option in order to force the use of my proxy server but keeps telling the same thing.
I downloaded manually the xml file and unzipped in my home directory but still tries to download the catalog, and fails in that.
I guess there is a way to download the catalog myself (I know it is not the way it is designed to work), unzip the file in some FS, and make the swa get that xml file.
The question now is where to unzip the file? In which directory in order for the swa to use it?
catastro
Super Advisor

Re: swa errors

Ok, I said nothing as I got the answer myself now.
After downloadin the catalog from https://ftp.itrc.hp.com/wpsl/bin/doc.pl/screen=wpslDownloadPatch/swa_catalog.xml.gz?PatchName=/export/patches/swa_catalog.xml.gz I have to put the file in the directory /root/.swa/cache, uncompress it with gzip -d <...> and execute the swa command and so it works fine.
I don't know why it does not download the catalog from the URL itself, and it has something to be with the proxy, any ideas of what could it be?
catastro
Super Advisor

Re: swa errors

Now everything is solved.
I was a dummies thing.
I didn't remember that we changed our proxy's ip to another one and I was trying to go through the old one, and so it could not download anything.
But manually works well, so another way of making it work.
Thanks to all for your help...