1833758 Members
2789 Online
110063 Solutions
New Discussion

swinstall message

 
Sonison James
Frequent Advisor

swinstall message

I am doing an swinstall of a depot that I created and I get the following message.

"madera:/home/james/testagent.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.

swinstall command:
swinstall -s $PWD/testagent.depot TestAgent

The installation seems to go through and there is no problem otherwise. However I am curious as to why this message occurs. The swagent.log file also indicates no problem.
4 REPLIES 4
Jeff Schussele
Honored Contributor

Re: swinstall message

Hi James,

Never seen that message before, but normally HP logs all sw util msgs in /var/adm/sw directory. And normally one must be root to run most sw.... utils - I wonder if you ran this as a "normal" user & you didn't have perms to log the activity.
Check /var/adm/sw/swinstall.log on this system to see if it indeed logged there. Else I think you'd have had to override that log dir location.
Hey & if it installed AOK - no harm no foul.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Tim Adamson_1
Honored Contributor

Re: swinstall message

Hi,

The message is probably caused by the way the depot was packaged.

Can you post how you packaged the depot?

There is no harm in the message as you obviously have seen and the install succeeded.


Tim

Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
Sonison James
Frequent Advisor

Re: swinstall message

I prepared the depot in this way

swpackage -v -s agent.psf -x media_type=tape @ test.depot
Tim Adamson_1
Honored Contributor

Re: swinstall message

Hi,

Thanks for posting your command.

The media_type=tape option makes SD-UX think it is a tape archive and hence the swinstall log can't be written to a tape/cdrom source. The message can be safely ignored!

Hope it helps.


Tim
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.