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 » Global Cache - Error on setting the cache policy using file

Post new topic  Reply to topic
 Global Cache - Error on setting the cache policy using file « View previous topic :: View next topic » 
Author Message
WMD
PostPosted: Tue Mar 26, 2013 7:34 pm    Post subject: Global Cache - Error on setting the cache policy using file Reply with quote

Novice

Joined: 26 Mar 2013
Posts: 12

While trying to create the Global Cache policy using the (sample) Policy file replaced the Broker Name and the Listener host.

I am getting the below error. I have no clue why am getting this error.

Kindly share your ideas on this. Thanks in advance.

MB8BROKER stopped
C:\Program Files\IBM\MQSI\8.0.0.1>mqsichangebroker MB8BROKER -b G:\policy_one_broker_ha.xml
BIP7195E: The policy in the policy file ''G:\policy_one_broker_ha.xml'', specifed for the cache manager, is invalid.
The broker, with name ''MB8BROKER'' and listener host ''X.X.X.X'', is not defined in the policy.
The policy must include a definition for this broker.
The broker configuration has not been changed.
Ensure that this broker is defined in the policy.
If the broker is already defined, check that the name and listener host specifi
d for this broker match the name and listener host specified in the policy.

BIP8081E: An error occurred while processing the command.
An error occurred while the command was running; the command has cleaned up and
ended.
Use messages prior to this one to determine the cause of the error.
Check for some common problems:
Does the user id have the correct authorities (for example a member of the mqbkrs group)?
Is any operating system limit set too low to allow the command to run?
Is the environment correctly set up?
Correct the problem and retry the command, otherwise, contact your IBM support center.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Mar 27, 2013 4:44 am    Post subject: Reply with quote

Jedi Knight

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

It seems that the edit to the policy file caused this issue. Go back to the original policy file, or post your new policy file here so we can see what changes you made to it.
_________________
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
WMD
PostPosted: Wed Mar 27, 2013 5:52 am    Post subject: Global Cache - Error on setting the cache policy using file Reply with quote

Novice

Joined: 26 Mar 2013
Posts: 12

Thanks for your response.

I am just changing the BROKER name(to MB8BROKER) and listenerHost(tried with both localhost & IP address).

Here is the complete policy file:
<?xml version="1.0" encoding="UTF-8"?>
<cachePolicy xmlns="http://www.ibm.com/xmlns/prod/websphere/messagebroker/globalcache/policy-1.0">
<broker name="MB8BROKER" listenerHost="localhost">
<catalogs>2</catalogs>
<portRange>
<startPort>2806</startPort>
<endPort>2825</endPort>
</portRange>
</broker>
</cachePolicy>

Error says, "The policy must include a definition for this broker."
I am not sure what definion of the Broker does the policy file expects.

Thanks.
Back to top
View user's profile Send private message
iShakir
PostPosted: Wed Mar 27, 2013 7:47 am    Post subject: Reply with quote

Apprentice

Joined: 07 Mar 2013
Posts: 47

This behaviour is indicative of having the wrong listenerHost set. I would suggest that you specifically go through these steps to ensure that you have got it right.

Interestingly I tried the same with localhost and it didn't like it, I believe you would need to have localhost defined in the broker registry for this to work.

What I did was:

mqsistart <broker_name>
mqsireportproperties <broker_name> -o CacheManager -a

I then got the "listenerHost" property out of that, and added it to the policy file.

mqsistop <broker_name>
mqsichangebroker <broker_name> -b <path_to_file>

And all seemed happy, hope this works out.


Last edited by iShakir on Wed Mar 27, 2013 7:56 am; edited 1 time in total
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Mar 27, 2013 7:53 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

iShakir wrote:
I had a play around with this - it turns out that the cache uses a different listener host to your local machine. Not sure exactly how this works, but I suppose the point is it does!

presumably it merely doesn't listen to "localhost" but listens to some other qualified name of the host.

Otherwise, excellent first post!
Back to top
View user's profile Send private message
iShakir
PostPosted: Wed Mar 27, 2013 7:58 am    Post subject: Reply with quote

Apprentice

Joined: 07 Mar 2013
Posts: 47

mqjeff wrote:
iShakir wrote:
I had a play around with this - it turns out that the cache uses a different listener host to your local machine. Not sure exactly how this works, but I suppose the point is it does!

presumably it merely doesn't listen to "localhost" but listens to some other qualified name of the host.

Otherwise, excellent first post!


Indeed, I must have revised my post a little too late

For anyone who may be reading this, the statement in the quote is indeed incorrect. I have updated the original post to reflect this
Back to top
View user's profile Send private message
WMD
PostPosted: Wed Mar 27, 2013 8:14 am    Post subject: Reply with quote

Novice

Joined: 26 Mar 2013
Posts: 12

I created the Broker and set the Global cache policy file with 2 catalog servers.

mqsistop MB8BROKER
mqsichangebroker MB8BROKER -b H:\policy.xml
mqsistart MB8BROKER

<?xml version="1.0" encoding="UTF-8"?>
<cachePolicy xmlns="http://www.ibm.com/xmlns/prod/websphere/messagebroker/globalcache/policy-1.0">
<broker name="MB8BROKER" listenerHost="X.X.X.X">
<catalogs>2</catalogs>
<portRange>
<startPort>4500</startPort>
<endPort>4519</endPort>
</portRange>
</broker>
</cachePolicy>


(all commands are successful)

Once Broker restarted, when I check the Global cache properies against all execution groups and it says cache disabled.

Per my understanding, "<catalogs>2</catalogs>" should set the first two EGs as both Catalog & Container servers.
But cache itself is disabled.

Please advise. Many thanks in advance.
Back to top
View user's profile Send private message
iShakir
PostPosted: Wed Mar 27, 2013 8:31 am    Post subject: Reply with quote

Apprentice

Joined: 07 Mar 2013
Posts: 47

How are you getting this information about it saying the cache is disabled? In my similar setup I created a default execution group and ran:

mqsireportproperties <broker_name> -e <eg_name> -o ComIbmCacheManager -r

And it reported the two properties:

enablecatalogService='true'
enableContainerService='true'

It would be useful to know what are in these fields in your setup.

Also, if you're unsure as to whether or not cache components have started, it's worth looking in the syslog between when you executed mqsistart and about 30 seconds after, if you see any of:

BIP 7155 - The execution group has established a connection to the broker global cache
BIP 7162 - Catalog server in execution group has started
BIP 7163 - Container server in execution group has started

then cache components are starting up and your setup is probably good.

(Note these won't appear until you have enough execution groups to satisfy the number of catalog / containers specified in the policy file!)
Back to top
View user's profile Send private message
WMD
PostPosted: Wed Mar 27, 2013 11:21 am    Post subject: Global Cache - Error on setting the cache policy using file Reply with quote

Novice

Joined: 26 Mar 2013
Posts: 12

Please find the complete sequence of steps below:


C:\Program Files\IBM\MQSI\8.0.0.1>mqsireportproperties BRK -o CacheManager -a

CacheManager
uuid='CacheManager'
policy='disabled'
portRange='2826-2845'
listenerHost='W.X.Y.Z'
shutdownMode='fast'

BIP8071I: Successful command completion.

C:\Program Files\IBM\MQSI\8.0.0.1>mqsistop BRK
BIP8071I: Successful command completion.

C:\Program Files\IBM\MQSI\8.0.0.1>type H:\GC\BRK.xml
n++<?xml version="1.0" encoding="UTF-8"?>
<cachePolicy xmlns="http://www.ibm.com/xmlns/prod/websphere/messagebroker/global
cache/policy-1.0">
<broker name="BRK" listenerHost="W.X.Y.Z">
<catalogs>2</catalogs>
<portRange>
<startPort>6500</startPort>
<endPort>6519</endPort>
</portRange>
</broker>
</cachePolicy>

C:\Program Files\IBM\MQSI\8.0.0.1>mqsilist BRK
-----------------------------------
BIP1286I: Execution group 'default' on broker 'BRK' is running.
-----------------------------------
BIP1286I: Execution group 'EG1' on broker 'BRK' is running.
-----------------------------------
BIP1286I: Execution group 'EG2' on broker 'BRK' is running.
BIP8071I: Successful command completion.

C:\Program Files\IBM\MQSI\8.0.0.1>mqsistop BRK
BIP8071I: Successful command completion.

C:\Program Files\IBM\MQSI\8.0.0.1>mqsichangebroker BRK -b H:\GC\BRK.xml
BIP8071I: Successful command completion.

C:\Program Files\IBM\MQSI\8.0.0.1>mqsistart BRK
BIP8096I: Successful command initiation, check the system log to ensure that the
component started without problem and that it continues to run without problem.


C:\Program Files\IBM\MQSI\8.0.0.1>mqsireportproperties BRK -o CacheManager -a

CacheManager
uuid='CacheManager'
policy='H:\GC\BRK.xml'
portRange='2826-2845' (Note##: Port range doesn't changed based on the Policy file)
listenerHost='W.X.Y.Z'
shutdownMode='fast'

BIP8071I: Successful command completion.

C:\Program Files\IBM\MQSI\8.0.0.1>mqsicacheadmin BRK -c showPlacement
BIP7188E: The command cannot determine connection details for the WebSphere eXtr
eme Scale catalog server in broker 'BRK'

Check that the global cache in this broker is enabled, and the broker is running
. Alternatively, retry the command, setting the following property, specifying t
he host name of the computer where the catalog server is located, and the listen
er port of the catalog server:
-cep hostname:port

C:\Program Files\IBM\MQSI\8.0.0.1>mqsicacheadmin BRK -c showPlacement
BIP7188E: The command cannot determine connection details for the WebSphere eXtr
eme Scale catalog server in broker 'BRK'

Check that the global cache in this broker is enabled, and the broker is running
. Alternatively, retry the command, setting the following property, specifying t
he host name of the computer where the catalog server is located, and the listen
er port of the catalog server:
-cep hostname:port

C:\Program Files\IBM\MQSI\8.0.0.1>mqsicacheadmin BRK -c listHosts
BIP7188E: The command cannot determine connection details for the WebSphere eXtr
eme Scale catalog server in broker 'BRK'

Check that the global cache in this broker is enabled, and the broker is running
. Alternatively, retry the command, setting the following property, specifying t
he host name of the computer where the catalog server is located, and the listen
er port of the catalog server:
-cep hostname:port

C:\Program Files\IBM\MQSI\8.0.0.1>mqsireportproperties BRK -e default -o ComIbmC
acheManager -r

ComIbmCacheManager
uuid='ComIbmCacheManager'
userTraceLevel='none'
traceLevel='none'
userTraceFilter='none'
traceFilter='none'
overrideTraceSpec=''
enableCatalogService=''
enableContainerService=''
enableJMX=''
listenerPort=''
listenerHost=''
haManagerPort=''
jmxServicePort=''
connectionEndPoints=''
catalogClusterEndPoints=''
status='none'

BIP8071I: Successful command completion.
Back to top
View user's profile Send private message
WMD
PostPosted: Wed Apr 03, 2013 11:23 am    Post subject: Reply with quote

Novice

Joined: 26 Mar 2013
Posts: 12

Issue got resolved on applying the Fixpack 8.0.0.2.

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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Global Cache - Error on setting the cache policy using file
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.