ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » MQ services object issue.

Post new topic  Reply to topic Goto page 1, 2  Next
 MQ services object issue. « View previous topic :: View next topic » 
Author Message
bkiran2020
PostPosted: Tue Apr 18, 2017 11:15 am    Post subject: MQ services object issue. Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Tue Apr 18, 2017 11:26 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
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
View user's profile Send private message
bkiran2020
PostPosted: Tue Apr 18, 2017 11:31 am    Post subject: Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Tue Apr 18, 2017 4:27 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
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
View user's profile Send private message
bruce2359
PostPosted: Tue Apr 18, 2017 6:56 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
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
View user's profile Send private message
mqjeff
PostPosted: Wed Apr 19, 2017 4:11 am    Post subject: Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Wed Apr 19, 2017 4:30 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
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
View user's profile Send private message
bruce2359
PostPosted: Wed Apr 19, 2017 7:00 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
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
View user's profile Send private message
hughson
PostPosted: Thu Apr 20, 2017 4:19 am    Post subject: Re: MQ services object issue. Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
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
View user's profile Send private message Visit poster's website
bkiran2020
PostPosted: Thu Apr 20, 2017 7:22 am    Post subject: Re: MQ services object issue. Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Thu Apr 20, 2017 7:30 am    Post subject: Re: MQ services object issue. Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
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
View user's profile Send private message
bkiran2020
PostPosted: Thu Apr 20, 2017 7:45 am    Post subject: Re: MQ services object issue. Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Thu Apr 20, 2017 8:29 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
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
View user's profile Send private message
mqjeff
PostPosted: Thu Apr 20, 2017 11:23 am    Post subject: Reply with quote

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
View user's profile Send private message
hughson
PostPosted: Thu Apr 20, 2017 3:53 pm    Post subject: Re: MQ services object issue. Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » MQ services object issue.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.