Author |
Message
|
bkiran2020 |
Posted: Tue Apr 18, 2017 11:15 am Post subject: MQ services object issue. |
|
|
 Master
Joined: 20 Jan 2011 Posts: 243 Location: US
|
We had defined one MQ service object to start some application.
Few time when we restarted the service using START/STOP SERVICE(<NAME>) command. We are unable to find the SERVICE status and still the app process is down.
We are running the script manually to fix the issue.
Could you please suggest  |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Apr 18, 2017 11:26 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Error message in the logs? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
bkiran2020 |
Posted: Tue Apr 18, 2017 11:31 am Post subject: |
|
|
 Master
Joined: 20 Jan 2011 Posts: 243 Location: US
|
bruce2359 wrote: |
Error message in the logs? |
I don't see any error message in QMGR error logs. |
|
Back to top |
|
 |
gbaddeley |
Posted: Tue Apr 18, 2017 4:27 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Does START SERVICE respond that it has started the service successfully?
Do you have any other similar services that are working correctly?
Carefully check all the SERVICE attribute settings. A simple mistake can result in the command failing. Can you post a display of the service definition? _________________ Glenn |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Apr 18, 2017 6:56 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Can you start the service manually from a shell/command prompt? From the MQExplorer? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Apr 19, 2017 4:11 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
If it works when you start the queue manager, but doesn't work when you use MQSC, then there's some kind of state that the application is holding on to, and failing to find or etc after it launches the second time.
If it doesn't start when you start the queue manager, then you probably don't have the right permissions - services run under the user that is running the queue manager (this is very likely mqm - so normally you would write a service script that used sudo or contact admin). _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
gbaddeley |
Posted: Wed Apr 19, 2017 4:30 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
bkiran2020 wrote: |
bruce2359 wrote: |
Error message in the logs? |
I don't see any error message in QMGR error logs. |
There should be something in the qmgr error logs when a service is started. eg.
AMQ5028: The Server 'xxxxxxxx' has started. ProcessId(9999999).
or
AMQ5042: Request to start SERVICE - xxxxxxxx failed.
preceded by another message in the error containing the reason why it failed. _________________ Glenn |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Apr 19, 2017 7:00 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Use MQSC command to display the service definition. Post the results here.
Open a shell, and issue the MQSC START SERVICE command. Post the command and results here. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
hughson |
Posted: Thu Apr 20, 2017 4:19 am Post subject: Re: MQ services object issue. |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
bkiran2020 wrote: |
We had defined one MQ service object to start some application.
Few time when we restarted the service using START/STOP SERVICE(<NAME>) command. We are unable to find the SERVICE status and still the app process is down. |
Could you show us your SERVICE object definition please? _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
bkiran2020 |
Posted: Thu Apr 20, 2017 7:22 am Post subject: Re: MQ services object issue. |
|
|
 Master
Joined: 20 Jan 2011 Posts: 243 Location: US
|
hughson wrote: |
bkiran2020 wrote: |
We had defined one MQ service object to start some application.
Few time when we restarted the service using START/STOP SERVICE(<NAME>) command. We are unable to find the SERVICE status and still the app process is down. |
Could you show us your SERVICE object definition please? |
I am unable to display the service status.
dis svstatus(triggerdlq)
4 : dis svstatus(triggerdlq)
AMQ8147: WebSphere MQ object triggerdlq not found. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Apr 20, 2017 7:30 am Post subject: Re: MQ services object issue. |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
bkiran2020 wrote: |
hughson wrote: |
bkiran2020 wrote: |
We had defined one MQ service object to start some application.
Few time when we restarted the service using START/STOP SERVICE(<NAME>) command. We are unable to find the SERVICE status and still the app process is down. |
Could you show us your SERVICE object definition please? |
I am unable to display the service status.
dis svstatus(triggerdlq)
4 : dis svstatus(triggerdlq)
AMQ8147: WebSphere MQ object triggerdlq not found. |
We're after the service object definition, not its status:
DISPLAY SERVICE(servicename) _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
bkiran2020 |
Posted: Thu Apr 20, 2017 7:45 am Post subject: Re: MQ services object issue. |
|
|
 Master
Joined: 20 Jan 2011 Posts: 243 Location: US
|
bruce2359 wrote: |
bkiran2020 wrote: |
hughson wrote: |
bkiran2020 wrote: |
We had defined one MQ service object to start some application.
Few time when we restarted the service using START/STOP SERVICE(<NAME>) command. We are unable to find the SERVICE status and still the app process is down. |
Could you show us your SERVICE object definition please? |
I am unable to display the service status.
dis svstatus(triggerdlq)
4 : dis svstatus(triggerdlq)
AMQ8147: WebSphere MQ object triggerdlq not found. |
We're after the service object definition, not its status:
DISPLAY SERVICE(servicename) |
SERVICE(triggerdlq) CONTROL(QMGR)
SERVTYPE(COMMAND)
STARTCMD(C:\Program Files\IBM\WebSphere MQ\bin\appget.bat)
STARTARG(-m IBMQMR) STOPCMD(C:\Program Files\IBM\WebSphere MQ\bin\appget.bat)
STOPARG(-m IBMQMR)
DESCR(trigger the dlq handler)
STDOUT()
STDERR() ALTDATE(2015-09-0
ALTTIME(12.00.44) |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Apr 20, 2017 8:29 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Post your appget.bat code.
What happens if you exec the appget.bat in a shell? Post the results here. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Apr 20, 2017 11:23 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Also, you shouldn't as a recommended practice, keep any user code in "C:\Program Files\IBM\WebSphere MQ\bin", or any MQ product directory.
You can also look at altering the STDOUT attribute to write to a file instead of nowhere. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
hughson |
Posted: Thu Apr 20, 2017 3:53 pm Post subject: Re: MQ services object issue. |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
bkiran2020 wrote: |
SERVICE(triggerdlq) CONTROL(QMGR)
SERVTYPE(COMMAND)
STARTCMD(C:\Program Files\IBM\WebSphere MQ\bin\appget.bat)
STARTARG(-m IBMQMR) STOPCMD(C:\Program Files\IBM\WebSphere MQ\bin\appget.bat)
STOPARG(-m IBMQMR)
DESCR(trigger the dlq handler)
STDOUT()
STDERR() ALTDATE(2015-09-08)
ALTTIME(12.00.44) |
Your problem is that you have defined it as a SERVTYPE(COMMAND).
Knowledge Center says this:-
Knowledge Center wrote: |
SERVTYPE
Specifies the mode in which the service is to run:
COMMAND
A command service object. Multiple instances of a command service object can be executed concurrently. You cannot monitor the status of command service objects.
SERVER
A server service object. Only one instance of a server service object can be executed at a time. The status of server service objects can be monitored using the DISPLAY SVSTATUS command. |
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
|