Operating System - HP-UX
1757776 Members
2450 Online
108863 Solutions
New Discussion юеВ

Re: New package doesn't write to logfile

 
Lexz
Occasional Contributor

New package doesn't write to logfile

Good day.

I have problems adding a SG package on our cluster.
I copied the cntl file from a running package and edit it. In de file I can see that it logs to тАЬ$0.logтАЭ i.e. package.cntl.log in this case.
Now IтАЩm pretty sure I did all the necessary actions the chcheckconf тАУC and cmcheckconf тАУP gave no errors.
The problem is that the package doesnтАЩt start and doesnтАЩt write to its log.

When I start the package this is what I get:

# cmrunpkg templex
Running package templex on node node1
Node node1 is currently unable to run package templex.
Unable to run package templex on node node1
Check the syslog and pkg log files for more detailed information
cmrunpkg: Unable to start some package or package instances

Now the templex.cntl.log remains empty and in the syslog all I see is:

Aug 22 09:31:48 node1 CM-CMD[29387]: cmrunpkg templex
Aug 22 09:31:49 node1 CM-CMD[29387]: Request from root on node node1 to start package templex
Aug 22 09:31:49 node1 cmcld[4483]: Request from root on node node1 to start package templex
Aug 22 09:31:49 node1 cmcld[4483]: Unable to start package templex. Node node1 not enabled to run it.
Aug 22 09:31:49 node1 CM-CMD[29387]: Request from root on node node1 to start package templex failed

Nothing as you see. I have no clue where to look for the cause of this package not starting.
What could cause this package not to log?

Any help would be appreciated.

Kind regards,

Lexz.
3 REPLIES 3
melvyn burnard
Honored Contributor

Re: New package doesn't write to logfile

well firstly, did you enable the package?
do a cmviewcl -v and check what is set for the switching. it must be enabled to eb able to run it on a node.
as you have logged above:
Unable to start package templex. Node node1 not enabled to run it.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Lexz
Occasional Contributor

Re: New package doesn't write to logfile

Bingo...

I feel pretty stupid.
Some how I responded to the error message with "yes I know your not able to run it but why don't you write something usefull in your log?"

Sorry I never used the -n option on cmmodpkg before, on the cluster I worked with.
Not sure why but I never needed it to enable a new package to run on that cluster.
Maybe an older SG version?

Anyway, thanks for your answer.

Kind regards,

Lexz
Lexz
Occasional Contributor

Re: New package doesn't write to logfile

Solved as sugested in this thread.