1836551 Members
2019 Online
110102 Solutions
New Discussion

Re: swinstall error.

 
Venkatakrishna P.V_1
Occasional Advisor

swinstall error.

Hi,
we are trying to install patches on HP-UX 10.20, depot file is copied in hard disk. While installing, swinstall stops installation with error " logfile on this target or source. Possibly the media is read-only or there is a permission problem. Check the daemon"
more over the installer is assuming that the source is from tape drive, where as depot file is on hard disk.

swinstall -x match_target=true -s /users/sysadmin/222/PHKL_9270.depot

======= 07/16/04 20:08:43 IST BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@pcsphp2".

* Beginning Selection
* Target connection succeeded for "pcsphp2:/".
* "pcsphp2:/users/sysadmin/222/PHKL_9270.depot": This source is
a tape device.
* "pcsphp2:/users/sysadmin/222/PHKL_9270.depot": Cannot open
the logfile on this target or source. Possibly the media is
read-only or there is a permission problem. Check the daemon
logfile and "/var/tmp/swagent.log" on this host for more
information.
ERROR: Cannot continue the "swinstall" task.
* Selection had errors.



======= 07/16/04 20:08:50 IST END swinstall SESSION (non-interactive)

Please suggest in solving this problem.

Thanks in Adv..

Krishna.
9 REPLIES 9
Bharat Katkar
Honored Contributor

Re: swinstall error.

Krishna,
Try doing this:

# cd /users/sysadmin/222/
# swinstall -s ./PHKL_9270.depot

See if it works.
Regards,
You need to know a lot to actually know how little you know
Muthukumar_5
Honored Contributor

Re: swinstall error.

Try to copy /users/sysadmin/222/PHKL_9270.depot to the /tmp directory. what is the permission to the directory /users/sysadmin/222/. It may be a problem.

Check the permission of PHKL_9270.depot ,located it at /tmp directory and use the swinstall from / now.

get the list of products or file-sets from the depot using as like
swlist -s /tmp/PHKL_9270.depot

Install the products,
swinstall -s /tmp/PHKL_9270.depot -x match_target=true
Easy to suggest when don't know about the problem!
Venkatakrishna P.V_1
Occasional Advisor

Re: swinstall error.

Hi All,
bharat,
Tried ur suggestion, swinstall started SAM and stopped at error " Could not contact host "./PHKL_9270.depot". Make sure the hostname is correct."....

Muthukumar,
Non-Interactive installation started and stoped with following error.
# swinstall -s /tmp/PHKL_9270.depot -x match_target=true PHKL_9270

======= 07/16/04 22:37:02 IST BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@pcsphp2".

* Beginning Selection
* Target connection succeeded for "pcsphp2:/".
* "pcsphp2:/tmp/PHKL_9270.depot": This source is a tape device.
* "pcsphp2:/tmp/PHKL_9270.depot": Cannot open the logfile on
this target or source. Possibly the media is read-only or
there is a permission problem. Check the daemon logfile and
"/var/tmp/swagent.log" on this host for more information.
ERROR: No software has been selected.
ERROR: Cannot continue the "swinstall" task.
* Selection had errors.



======= 07/16/04 22:37:09 IST END swinstall SESSION (non-interactive)

... i am unable to understand why installer is assuming source as tape... when -s switch specify the source from harddisk...

thanks and rgds..

krishna..
Muthukumar_5
Honored Contributor

Re: swinstall error.

what is in the depot. can you able to go into that. ll /tmp/PHKL_9270.depot.

Try to start the swinstall without the -x option as normally as,

swinstall -s /tmp/PHKL_9270.depot

Is there any message's in the deomon log(swagentd).


Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: swinstall error.

Is there some information(s) in /var/adm/sw/swagentd.log and /var/tmp/swagent.log files.
Easy to suggest when don't know about the problem!
Venkatakrishna P.V_1
Occasional Advisor

Re: swinstall error.

Hi Muthukumar,
Plz.. find the following errors.

# swinstall -s /tmp/PHKL_9270.depot PHKL_9270

======= 07/17/04 13:17:09 IST BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@pcsphp2".

* Beginning Selection
* Target connection succeeded for "pcsphp2:/".
* "pcsphp2:/tmp/PHKL_9270.depot": This source is a tape device.
* "pcsphp2:/tmp/PHKL_9270.depot": Cannot open the logfile on
this target or source. Possibly the media is read-only or
there is a permission problem. Check the daemon logfile and
"/var/tmp/swagent.log" on this host for more information.
ERROR: Could not apply the software selection "PHKL_9270" because
there are no product variations that are compatible with the
destination host(s). To select incompatible software, specify
the "-x allow_incompatible=true" option on the command line.
* Software selection failed for "pcsphp2:/tmp/PHKL_9270.depot".
ERROR: No software has been selected.
ERROR: Cannot continue the "swinstall" task.
* Selection had errors.
======= 07/17/04 13:17:15 IST END swinstall SESSION (non-interactive)

# tail swagentd.log

NOTE: The target "/tmp/PHKL_9270.depot" currently open for reading
is a tape. pid=19621 07/17/04 13:17:14 IST
* Agent pid=19620 completed. 07/17/04 13:17:14 IST
* Agent pid=19621 completed. 07/17/04 13:17:15 IST.

# tail swagent.log
======= 07/17/04 13:17:12 IST BEGIN install AGENT SESSION (pid=19620)
(jobid=pcsphp2-0248)

* Agent session started for user "root@pcsphp2". (pid=19620)

======= 07/17/04 13:17:14 IST END install AGENT SESSION (Cancelled)
(pid=19620) (jobid=pcsphp2-0248)

suggest me how i can change the source from tape to directory...
i think by changing source the problem will be fixed..

Rgds,

Krishna

Mohanasundaram_1
Honored Contributor

Re: swinstall error.

Hi Krish,

Lets get some details sorted out.

1) when you unshared the patch did you get any error.

2) cksum of the patch is correct?

3) if you had problems for the above to questions then download the patch again and perform the checks again.

4) First check

# swlist -s /tmp/PHKL_9270.depot

and see if you get any errors. Fix errors.

5) Perform swinstall -s /tmp/PHKL_9270.depot.

6) If you still get errors then restart the swagentd
# /sbin/init.d/swagentd stop
# /sbin/init.d/swagentd start

Let us know how it goes.

Cheers,
Mohan.
Attitude, Not aptitude, determines your altitude
Muthukumar_5
Honored Contributor

Re: swinstall error.

your swagentd is working normally without any problem.. I hope the problem is because of the permission of PHKL*.depot file. what is the permission and contents of the depot file..

get the permission with ls -l /tmp/PHKL_9270.depot; if it is file (_rx.... ) then use file PHKL_9270.depot

If you are installing this software depot which located in tape drive to harddisk, then mount the tape drive into harddisk with mount command.

The use swinstall -s /path to mount point/ .. or copy to /tmp/ directory.. with the permission to install it.

Can use try swinstall as ,

To avoid getting the package is avaible in tape drive,

swinstall -s /tmp/PHKL_9270.depot -x source_type=directory

permission problem(s):
swinstall -l -s /tmp/PHKL_9270.depot

or
swinstall -l -s /tmp/PHKL_9270.depot -x write_remote_files=false

or use fully as,

swinstall -l -s /tmp/PHKL_9270.depot -x source_type=directory write_remote_files=true

see swinstall man page for -l option and write_remote_files.

I don't have 10.20 and that depot to test.

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!
Kim_18
Advisor

Re: swinstall error.

I have an old 10.20 system and went back and looked through the /var/adm/sw/swagentd.log files and the "..... open for reading is a tape...." seems to be a standard message in the 10.20 world. I see this message in my logs for every disk depot that I have installed. Therefore, I do not think your problem is with trying to read a tape. You may want to write the logfile to another area that you know you have permission to write to:
swinstall -x logfile=/tmp/logfile -x match_target=true -s /users/sysadmin/222/PHKL_9270.depot

Kim