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 » ma01 library error

Post new topic  Reply to topic
 ma01 library error « View previous topic :: View next topic » 
Author Message
dyevin
PostPosted: Wed Jan 05, 2011 6:45 am    Post subject: ma01 library error Reply with quote

Novice

Joined: 27 May 2003
Posts: 11
Location: Phoenix, Arizona

I'm trying to use support pack ma01 in AIX to put a message to a queue, with the source being an AIX file. My queue manager is running. My command, run as an mq user, looks like this:

q -oDPSBKQMT1/GSP.ICE.MESSAGES -F/icemsg_rap3

I receive the following response, with a RC of 8:

Error loading MQ library

I couldn't find this error addressed in either the ma01 README or by searching this forum. Can anyone suggest what I'm overlooking? Thanks.

Don
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jan 05, 2011 6:50 am    Post subject: Re: ma01 library error Reply with quote

Grand High Poobah

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

dyevin wrote:
Can anyone suggest what I'm overlooking?


The machine on which you're running only has client installed?

The machine on which you're running has the PATH set curisously?

The machine is 32/64bit and the q app is the other version?

Other problems are undoubtably possible.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
dyevin
PostPosted: Wed Jan 05, 2011 7:08 am    Post subject: Reply with quote

Novice

Joined: 27 May 2003
Posts: 11
Location: Phoenix, Arizona

Vitor:

Thanks for the quick response. The AIX machine where I'm running the q command has both the MQ version 6 client and server installed. Both the CPU and the kernel are 64-bit. If I include the -l parm in the command, I get RC 8 for the mqic32 and mqic values, and RC 2 for the mqm value. I'm not sure what you mean about the PATH. Does it need to contain a particular directory? Thanks.

Don
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jan 05, 2011 7:48 am    Post subject: Reply with quote

Grand High Poobah

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

dyevin wrote:
If I include the -l parm in the command, I get RC 8 for the mqic32 and mqic values, and RC 2 for the mqm value.


That "2" sounds like a binding connection working & throwing out a separate reason code (2 is a failed completion code from WMQ & an odd choice from an app). I don't remember sitting here where q reports reason codes to but I'm sure someone else does.

dyevin wrote:
I'm not sure what you mean about the PATH. Does it need to contain a particular directory?


Clearly it needs to contain the /opt/mqm/lib where the server side lives and whereever the client is installed.

Here's a question: given that WMQ is installed on this box, where is the queue manager you're trying to use running & what happens if you specify it's name?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
dyevin
PostPosted: Wed Jan 05, 2011 1:42 pm    Post subject: RESOLVED: ma01 library error Reply with quote

Novice

Joined: 27 May 2003
Posts: 11
Location: Phoenix, Arizona

I'm not sure why, but running the q program as the root user resolved my problem. The permissions on the program were 777, and the root user didn't have any mq references in its PATH.

Thanks, Vitor, for your suggestions and time.

Don
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jan 05, 2011 1:48 pm    Post subject: Re: RESOLVED: ma01 library error Reply with quote

Grand High Poobah

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

dyevin wrote:
I'm not sure why, but running the q program as the root user resolved my problem.


That's fairly scary. And normally unnecessary.

Odd.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jan 06, 2011 2:27 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Please don't put enduser software into /usr/mqm/bin.

Please don't confuse permissions on the installed MQ files with permissions on enduser binaries.

If this worked as root and failed as whatever user ran the program in the first place, it's almost certainly because the user in question did not have necessary access to the installed mq files, and not because of any permissions issues on the q program itself.
Back to top
View user's profile Send private message
dyevin
PostPosted: Thu Jan 06, 2011 12:11 pm    Post subject: Reply with quote

Novice

Joined: 27 May 2003
Posts: 11
Location: Phoenix, Arizona

Thanks for the excellent points, mqjeff.

I didn't believe that the permissions for the q program were a factor, but I included that information in case any potential poster thought it might be relevant.

I've never encountered a problem performing any MQ function when logged in as the user in question (mqmuser), which is why I couldn't understand receiving the error response. I reviewed the files in /usr/mqm/bin and couldn't find an obvious problem. Since I couldn't open a PMR on support pack ma01, I decided to bounce my issue past this forum. I appreciate the suggestions and cautions from you and Vitor.

Don
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jan 06, 2011 12:15 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The error about Unable to Load MQ Library means that something was wrong with the permissions.

OR it could simply be that the binary you have was built as a 64-bit binary and you had 32-bit libraries on the path, or vice versa.

Logging in as root may have resolved the second case because you did NOT have /usr/mqm/bin or etc. on the PATH of the root user.
Back to top
View user's profile Send private message
HubertKleinmanns
PostPosted: Thu Jan 06, 2011 10:47 pm    Post subject: Reply with quote

Shaman

Joined: 24 Feb 2004
Posts: 732
Location: Germany

You should also check the library path. On AIX this is set via the variable LIBPATH (LD_LIBRARY_PATH on other Unixes). LIBPATH should point to the 64 bit libraries.
_________________
Regards
Hubert
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » ma01 library error
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.