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 » WebSphere Message Broker (ACE) Support » Error after changing broker to work as a MQ service

Post new topic  Reply to topic
 Error after changing broker to work as a MQ service « View previous topic :: View next topic » 
Author Message
alechko
PostPosted: Wed Mar 23, 2011 2:56 am    Post subject: Error after changing broker to work as a MQ service Reply with quote

Apprentice

Joined: 12 Jan 2005
Posts: 37

Hi,

I've changed my broker to work as an MQ Service of the QMGR so that it will start and stop with the qmgr.
After stopping the broker and changing it work as an MQ service, I tried starting it again but it just gave me a normal "Successful command completion" but didn't really start to run.
I checked the MQ Service stdout file and saw the following error:
Code:

MQSI 7.0.0.2
/opt/ibm/mqsi/7.0

Failed to open file /var/mqsi/registry/BRKPRD01/HASharedWorkPath with error Permission denied
Failed to open file /var/mqsi/registry/BRKPRD01/HASharedWorkPath with error Permission denied
BIP8081 An exception was caught while processing the command, 'Unable to format an ImbException message for output, ImbException message number is BIP2113'.


I checked the /var/mqsi/registry/BRKPRD01/ directory and there is no file called HASharedWorkPath.
I compared the environment to a different server which is configured the same and works perfectly and I don't see any difference.

Here are the steps I did:
Code:

mqsistop BRKPRD01
mqsichangebroker BRKPRD01 -d defined
mqsistart BRKPRD01


Here are the permissions of the /var/mqsi directory:
Code:

-bash-3.2$ ll /var/mqsi/
total 32484
drwxrwxr-x 7 mqm  mqbrkrs     4096 Dec 20 20:54 common
drwxrwsr-x 3 mqm  mqbrkrs     4096 Dec 22 17:15 components
-rw-r--r-- 1 root root          26 Mar 23 12:03 install.properties
drwxr-xr-x 2 wmb  mqm         4096 Mar 22 18:05 jdbc
drwx------ 2 root root       16384 Dec 20 17:12 lost+found
drwxrwxr-x 2 mqm  mqbrkrs     4096 Mar 22 18:00 odbc
drwxrwxr-x 2 wmb  mqm         4096 Mar 23 11:51 p4
drwxrws--- 3 mqm  mqbrkrs     4096 Dec 22 17:15 registry
-rwxr--r-- 1 wmb  mqm         9838 Mar 22 18:07 ServiceCatalog.properties
drwxrwxr-x 2 mqm  mqbrkrs     4096 Mar 21 15:31 shared-classes
drwxr-xr-x 2 wmb  mqm         4096 Mar 23 11:52 trace
-rw-r----- 1 root mqbrkrs 33152080 Mar 23 12:35 user.log
drwxrwxr-x 3 mqm  mqbrkrs     4096 Dec 20 20:54 XML
drwxrwxr-x 3 mqm  mqbrkrs     4096 Dec 20 20:54 XSL

-bash-3.2$ ll /var/mqsi/registry/
total 4
drwxrws--- 3 wmb mqbrkrs 4096 Dec 22 17:15 BRKPRD01
-rw-rw---- 1 mqm mqbrkrs    0 Mar 23 12:04 LOCK


Any ideas why this is happening?

Thanks,
Alik
Back to top
View user's profile Send private message Send e-mail
lancelotlinc
PostPosted: Wed Mar 23, 2011 3:43 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

What service Id are you using to start the message broker? Here is a service file you can use as an example:

Code:

#!/bin/sh
#
# chkconfig:
# description:
# processname:
#

#
# Start the Broker
#


. /opt/ibm/mqsi/7.0/bin/mqsiprofile

ODBCINI=/var/mqsi/odbc/odbc64.ini; export ODBCINI


case $1 in
stop)
    echo "mqbrkrs: Stopping Broker"
     echo "odbcini = $ODBCINI"
   /bin/su mqbrkrs -c -m "mqsistop <yourbrokername>"
   /bin/sleep 5
    echo "mqm: Stopping Queue Manager"
   /bin/su - mqm -c "/opt/mqm/bin/endmqm -c <yourqmgrname>"
   /bin/sleep 2
    echo "mqm: Stopping Channel Listener";
   /bin/su - mqm -c "/opt/mqm/bin/endmqlsr -m <yourqmgrname>";
   /bin/sleep 2
    ;;

start)
    echo "mqm: Starting Queue Manager"
    echo "odbcini = $ODBCINI"
   /bin/su - mqm -c "/opt/mqm/bin/strmqm <yourqmgrname>" &
   /bin/sleep 60
    echo "mqm: Starting Channel Initiator"
   /bin/su - mqm -c "/opt/mqm/bin/runmqchi -m <yourqmgrname>" &
   /bin/sleep 20
    echo "mqm: Starting Channel Listener"
   /bin/su - mqm -c "/opt/mqm/bin/runmqlsr -t TCP -m <yourqmgrname> -p 1414" &
   /bin/sleep 5
    echo "mqbrkrs: Starting Broker"
   /bin/su mqbrkrs -c -m "mqsistart <yourbrokername>"
    echo "odbcini = $ODBCINI"
   /bin/sleep 5
    ;;

*)
    echo "Usage: $0 {start|stop}"
    ;;
esac

_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Mar 23, 2011 4:19 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Of course, if you are using the queue manager to start the broker, then the service id will always be the mqm user as documented.

It seems somewhat likely that you have not done the necessary things to ensure that the mqsiprofile is executed by the MQ service. The documentation on starting the broker as a qmgr service should explain the steps needed, if there are any other than mqsichangebroker -d.

Is the qmgr in question an MI queue manager? If so, you may need to make sure the Broker is an MI broker.
Back to top
View user's profile Send private message
alechko
PostPosted: Wed Mar 23, 2011 8:02 am    Post subject: Reply with quote

Apprentice

Joined: 12 Jan 2005
Posts: 37

thanks for your replies.

First of all, I'm not using a MI QMGR or Broker.
Second, you can see on the error output of the stdout that it did succeed on executing the mqsiprofile script
Quote:

MQSI 7.0.0.2
/opt/ibm/mqsi/7.0


I followed the infocenter section on how to define the broker as an MQ service: http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/be13790_.htm

As i mentioned before that worked great on two other environments.

Here is the output of the mqsireportbroker:
Code:

-bash-3.2$ mqsireportbroker BRKPRD01
BIP8927I: Broker Name 'BRKPRD01'
 Install path = '/opt/ibm/mqsi/7.0'
 Work path = '/var/mqsi'
 Broker UUID = 'e5899792-0e80-11e0-9842-0a6600a40000'
 Process id = '25045'
 Queue Manager = 'QMBRKPRD01'
 User lil path = ''
 User exit path = ''
 Active user exits = ''
 LDAP principal = ''
 LDAP credentials = ''
 ICU converter path = ''
 Trusted (fastpath) Queue Manager application = 'false'
 Configuration change timeout = '300' seconds
 Internal configuration timeout = '60' seconds
 Statistics major interval = '60' minutes
 Operation mode = 'enterprise'
 Fixpack capability level = 'all' (effective level '7.0.0.2')
 Broker registry format = 'v7.0'
 Administration security = 'inactive'
 Multi-instance Broker = 'false'
 Shared Work Path = 'none'
 Start as WebSphere MQ Service = 'defined'


BIP8071I: Successful command completion.

and the definition of the MQ Service in the QMGR:
Code:

dis SERVICE(MQSI_BRKPRD01)
     2 : dis SERVICE(MQSI_BRKPRD01)
AMQ8629: Display service information details.
   SERVICE(MQSI_BRKPRD01)                   CONTROL(QMGR)
   SERVTYPE(COMMAND)
   STARTCMD(/opt/ibm/mqsi/7.0/bin/runMQService)
   STARTARG(/opt/ibm/mqsi/7.0/bin BRKPRD01)
   STOPCMD(/opt/ibm/mqsi/7.0/bin/endMQService)
   STOPARG(/opt/ibm/mqsi/7.0/bin BRKPRD01)
   STDOUT(/var/mqsi/common/log/BRKPRD01.mqservice.log)
   STDERR(/var/mqsi/common/log/BRKPRD01.mqservice.log)
   DESCR( )                                ALTDATE(2011-03-02)
   ALTTIME(11.44.11)


Any help would be greatly appreciated.

Thanks again,
Alik
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Error after changing broker to work as a MQ service
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.