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 » IBM MQ Installation/Configuration Support » Problem with /var/mqm/errors/AMQERR01.log

Post new topic  Reply to topic
 Problem with /var/mqm/errors/AMQERR01.log « View previous topic :: View next topic » 
Author Message
NotMe
PostPosted: Wed Dec 16, 2009 5:24 am    Post subject: Problem with /var/mqm/errors/AMQERR01.log Reply with quote

Apprentice

Joined: 25 Nov 2009
Posts: 26

I'm trying to establish a mq client connection using the env vars MQCHLTAB and MQCHLLIB. I've copied over the AMQCLCHL.TAB file but when I run ./amqsputc I get a 2058 which is understandable because I probably have something configured wrong, but that is not what bugs me. What bugs is that my failures do not show up in /var/mqm/errors/AMQERR0?.log on the client machine or in /var/mqm/qmgrs/<QM>/errors/AMQERR0?.log on the server machine on a regular basis. After attempting this multiple times it might write to the error once an hour or so, but nothing consistent. I've researched this and can't seem to find anything that would explain why it behaves this way. Has anyone experienced this before? Why wouldn't a failure write to the log file every time? Any hints/suggestions/ideas? Thanks in advance...
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Dec 16, 2009 5:42 am    Post subject: Re: Problem with /var/mqm/errors/AMQERR01.log Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

NotMe wrote:
Why wouldn't a failure write to the log file every time?


Nothing's failed - your application's been given a reason code to work with. The logs are for non-application reportable errors.

The problem with your configuration is a badly spelt queue manager name, posssibly in the wrong case.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
exerk
PostPosted: Wed Dec 16, 2009 5:47 am    Post subject: Re: Problem with /var/mqm/errors/AMQERR01.log Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Vitor wrote:
...The problem with your configuration is a badly spelt queue manager name, posssibly in the wrong case.


Was that deliberate?
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Dec 16, 2009 5:48 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA


_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Wed Dec 16, 2009 5:52 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

Vitor,

Spelt was an important staple in parts of Europe from the Bronze Age to medieval times.
Back to top
View user's profile Send private message AIM Address
NotMe
PostPosted: Wed Dec 16, 2009 5:57 am    Post subject: Re: Problem with /var/mqm/errors/AMQERR01.log Reply with quote

Apprentice

Joined: 25 Nov 2009
Posts: 26

Vitor wrote:

Nothing's failed - your application's been given a reason code to work with. The logs are for non-application reportable errors.


OK, That's understandable but why is there no consistency? Why would it write to the logs sometime and not others? What am I missing here?

spelt?
Back to top
View user's profile Send private message
exerk
PostPosted: Wed Dec 16, 2009 6:02 am    Post subject: Re: Problem with /var/mqm/errors/AMQERR01.log Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

NotMe wrote:
spelt?


A form of wheat - the best form of which for Vitor consists of a liquid component, i.e. beer!
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Dec 16, 2009 6:09 am    Post subject: Re: Problem with /var/mqm/errors/AMQERR01.log Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

NotMe wrote:
What am I missing here?


The difference between errors the queue manager logs, and errors it reports to the application.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
NotMe
PostPosted: Wed Dec 16, 2009 7:38 am    Post subject: Re: Problem with /var/mqm/errors/AMQERR01.log Reply with quote

Apprentice

Joined: 25 Nov 2009
Posts: 26

Vitor wrote:
The problem with your configuration is a badly spelt queue manager name, posssibly in the wrong case.


Why would amqscnxc work and not amqsputc? I am using a Queue Manager group would that make a difference? As I understand it if you are using the AMQCLCHL.TAB file then you only need two env vars, MQCHLTAB and MQCHLLIB. Something is definitely amiss...
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Dec 16, 2009 7:46 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
am using a Queue Manager group would that make a difference? As I understand it if you are using the AMQCLCHL.TAB file then you only need two env vars, MQCHLTAB and MQCHLLIB. Something is definitely amiss...

Please post the complete keyboard/screen conversation. Include the environment variables you set/exported.

Also, post the CLNTCONN definitions from your channel table.
_________________
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
NotMe
PostPosted: Wed Dec 16, 2009 8:54 am    Post subject: Reply with quote

Apprentice

Joined: 25 Nov 2009
Posts: 26

bruce2359 wrote:
Please post the complete keyboard/screen conversation. Include the environment variables you set/exported.


./amqscnxc
Sample AMQSCNXC start
Connecting to the default queue manager
with no client connection information specified.
Connection established to queue manager QM1
Sample AMQSCNXC end

./amqsputc QM1 STORAGE
Sample AMQSPUT0 start
MQCONN ended with reason code 2058

export MQCHLLIB=/var/mqm
export MQCHLTAB=AMQCLCHL.TAB



Quote:

Also, post the CLNTCONN definitions from your channel table.



DEFINE CHANNEL ('QM1.CLIENT') CHLTYPE(SVRCONN) +
TRPTYPE(TCP) +
DESCR(' ') +
HBINT(300) +
MAXMSGL(4194304) +
MCAUSER(' ') +
RCVDATA(' ') +
RCVEXIT(' ') +
SCYDATA(' ') +
SCYEXIT(' ') +
SENDDATA(' ') +
SENDEXIT(' ') +
SSLCAUTH(REQUIRED) +
SSLCIPH(' ') +
SSLPEER(' ') +
KAINT(AUTO) +
MONCHL(QMGR) +
COMPMSG(NONE) +
COMPHDR(NONE) +
SHARECNV(10) +
MAXINST(999999999) +
MAXINSTC(999999999) +
REPLACE


DEFINE CHANNEL ('QM1.CLIENT') CHLTYPE(CLNTCONN) +
TRPTYPE(TCP) +
CONNAME('10.1.26.100(1414)') +
LOCLADDR(' ') +
DESCR(' ') +
HBINT(300) +
MAXMSGL(4194304) +
QMNAME(' ') +
RCVDATA(' ') +
RCVEXIT(' ') +
SCYDATA(' ') +
SCYEXIT(' ') +
SENDDATA(' ') +
SENDEXIT(' ') +
USERID(' ') +
SSLCIPH(' ') +
SSLPEER(' ') +
KAINT(AUTO) +
COMPMSG(NONE) +
COMPHDR(NONE) +
SHARECNV(10) +
AFFINITY(PREFERRED) +
CLNTWGHT(0) +
REPLACE
Back to top
View user's profile Send private message
bbburson
PostPosted: Wed Dec 16, 2009 9:16 am    Post subject: Reply with quote

Partisan

Joined: 06 Jan 2004
Posts: 378
Location: Nowhere near a queue manager

NotMe wrote:
./amqsputc QM1 STORAGE


Reverse the order of the arguments. amqsputc takes QUEUE name first and QUEUE MANAGER name second.
Back to top
View user's profile Send private message
NotMe
PostPosted: Wed Dec 16, 2009 10:10 am    Post subject: Reply with quote

Apprentice

Joined: 25 Nov 2009
Posts: 26

bbburson wrote:
Reverse the order of the arguments. amqsputc takes QUEUE name first and QUEUE MANAGER name second.


Wow! I am not feeling very smart right now. Don't know how I could have missed something so simple. I reversed the order and I still get a 2058 when using the Queue Manager name but I get a 2538 when using the Queue Manager Group name. But thanks to your help and patience I feel I am getting closer.

./amqsputc STORAGE.MIDDLE QM1
Sample AMQSPUT0 start
MQCONN ended with reason code 2058

./amqsputc STORAGE.MIDDLE QMGROUP1
Sample AMQSPUT0 start
MQCONN ended with reason code 2538
Back to top
View user's profile Send private message
NotMe
PostPosted: Wed Dec 16, 2009 10:22 am    Post subject: Reply with quote

Apprentice

Joined: 25 Nov 2009
Posts: 26

bbburson wrote:

Reverse the order of the arguments. amqsputc takes QUEUE name first and QUEUE MANAGER name second.


Got it! I reversed the order as you suggested but it still wasn't working so then I just supplied the queue name as an arg and it works fine. I think this might be because I am using an Queue Manager Group so the Queue Manager name confuses it but I'm not sure. Again thanks for all your help and patience n
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Dec 16, 2009 10:48 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
QMNAME(' ') +

In a client channel table, QMNAME can take on several forms. A group-name is one form. You stated that you used a group-name in your test.

A QNAME of (' ') in a clntconn definition means use this as a possible qmgr IF the ampsput did NOT specify a qmgr name. Your test specified QM1.
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Problem with /var/mqm/errors/AMQERR01.log
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.