Author |
Message
|
lam |
Posted: Fri Jan 26, 2007 3:55 am Post subject: ctrmqm!! |
|
|
Acolyte
Joined: 09 Nov 2006 Posts: 50
|
hi,
I already installed WEBSPHERE MQ on my machine and I've create a QUEUE MANAGER and a queue and its run very well
now I try to remake the same procedure so I log in mqm and I put this commande: crtmqm - q queue.manager
I be suprie by a messge which tell me
ksh: crtmqm: cannot execute
I do not know from which come the probléme.!!!!!!!!please help me
thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jan 26, 2007 3:58 am Post subject: Re: ctrmqm!! |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
lam wrote: |
hi,
I already installed WEBSPHERE MQ on my machine and I've create a QUEUE MANAGER and a queue and its run very well
now I try to remake the same procedure so I log in mqm and I put this commande: crtmqm - q queue.manager
I be suprie by a messge which tell me
ksh: crtmqm: cannot execute
I do not know from which come the probléme.!!!!!!!!please help me
thanks |
Is the user you tried to execute this command with a member of the mqm group?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
lam |
Posted: Fri Jan 26, 2007 4:06 am Post subject: |
|
|
Acolyte
Joined: 09 Nov 2006 Posts: 50
|
yes,
id
uid=126(mqm) gid=104(mqm) |
|
Back to top |
|
 |
sebastianhirt |
Posted: Fri Jan 26, 2007 6:05 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
what does it tell you if you type in
it should write something like this
Code: |
$ which strmqm
/cygdrive/c/WebSphere/WebSphere MQ/bin/strmqm |
but obviously you should have something lile /var/mqm instead of the path in the sample |
|
Back to top |
|
 |
lam |
Posted: Fri Jan 26, 2007 6:39 am Post subject: |
|
|
Acolyte
Joined: 09 Nov 2006 Posts: 50
|
I found crtmqm in /opt/mqm/bin but I have a message tell me that I can't exécute commande
so I try to stop the older one withe the order "endmqm" but I had the same message
I can't see where is the problém!!!!!!!! |
|
Back to top |
|
 |
sebastianhirt |
Posted: Fri Jan 26, 2007 6:43 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
lam wrote: |
I found crtmqm in /opt/mqm/bin but I have a message tell me that I can't exécute commande
so I try to stop the older one withe the order "endmqm" but I had the same message
I can't see where is the problém!!!!!!!! |
What is the exact message?
have you checked the authorities of the files? i.e.
ls -al /opt/mqm/bin/crtmqm |
|
Back to top |
|
 |
lam |
Posted: Fri Jan 26, 2007 6:51 am Post subject: |
|
|
Acolyte
Joined: 09 Nov 2006 Posts: 50
|
the exact message is:
$ crtmqm queue.test
ksh: crtmqm: cannot execute
ll -al crtmqm
lrwxr-xr-x 1 root sys 22 Dec 12 14:37 crtmqm -> /opt/mqm/bin/crtmqm_nd
thanks a lot |
|
Back to top |
|
 |
mvic |
Posted: Fri Jan 26, 2007 6:52 am Post subject: Re: ctrmqm!! |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
lam wrote: |
ksh: crtmqm: cannot execute |
The Korn shell refuses to run 'crtmqm', apparently because the permissions on 'crtmqm' or one of its parent directories do not allow it. If you are running this command as an mqm-group user, then maybe the file permissions got changed on /opt/mqm/bin/crtmqm (/usr/mqm/bin/crtmqm on AIX).
Possible solution : re-install MQ and ensure nothing / no-one changes any file or directory permissions in /opt/mqm (/usr/mqm on AIX) or /var/mqm.
To check the permissions, type:
Code: |
ls -ld /opt
ls -ld /opt/mqm
ls -ld /opt/mqm/bin
ls -l /opt/mqm/bin/crtmqm |
Replace /opt with /usr if typing on AIX. What OS are you on, by the way?
Hope this helps |
|
Back to top |
|
 |
lam |
Posted: Fri Jan 26, 2007 7:00 am Post subject: |
|
|
Acolyte
Joined: 09 Nov 2006 Posts: 50
|
I use HP-UX
$ ls -ld /opt
dr-xr-xr-x 66 bin bin 2048 Dec 12 14:31 /opt
$ ls -ld /opt/mqm
dr-xr-xr-x 12 mqm mqm 1024 Dec 12 14:32 /opt/mqm
$ ls -ld /opt/mqm/bin
dr-xr-xr-x 2 mqm mqm 3072 Dec 12 14:39 /opt/mqm/bin
$ ls -l /opt/mqm/bin crtmqm
lrwxr-xr-x 1 root sys 22 Dec 12 14:37 crtmqm -> /opt/mqm/bin/crtmqm_nd |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Jan 26, 2007 7:03 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
you shouldn't be trying to run /opt/mqm/bin/crtmqm directly.
There should be a symlink in /usr/bin or some such. That's the one you should be trying to run.
There are different permissions on the symlink. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
lam |
Posted: Fri Jan 26, 2007 7:08 am Post subject: |
|
|
Acolyte
Joined: 09 Nov 2006 Posts: 50
|
I tried to run crtmqm from /usr/bin and I have the same message  |
|
Back to top |
|
 |
mvic |
Posted: Fri Jan 26, 2007 7:09 am Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
OK with Jeff's comment taken into account, try
Code: |
ls -l /opt/mqm/bin/crtmqm_nd
ls -l /usr/bin/crtmqm |
|
|
Back to top |
|
 |
lam |
Posted: Fri Jan 26, 2007 7:23 am Post subject: |
|
|
Acolyte
Joined: 09 Nov 2006 Posts: 50
|
$ ls -l /opt/mqm/bin/crtmqm_nd
-r-xr-x--- 1 aziza host 557056 Jan 15 2003 /opt/mqm/bin/crtmqm_nd
ls -l /usr/bin/crtmqm
lrwxr-xr-x 1 root sys 19 Dec 12 14:37 /usr/bin/crtmqm -> /opt/mqm/bin/crtmqm
I tried to change rights and it's run but I HAVE THIS ERROR/
crtmqm queue.teste
/usr/lib/dld.sl: Call to mmap() failed - TEXT /opt/mqm/lib/amqzfu
/usr/lib/dld.sl: Permission denied
AMQ6188: The system could not dynamically load the shared library
'/opt/mqm/lib/amqzfu' due to a problem with the library. The errno was 13 and
the error message was 'Permission denied'. The queue manager will continue
without this library.
The system could not load the module '/opt/mqm/lib/amqzfu' for the installable
service 'AuthorizationService' component 'MQSeries.UNIX.auth.service'. The
system return code was 536895880. The Queue Manager is continuing without this
component.
AMQ6109: An internal WebSphere MQ error has occurred.
THANKS A LOT |
|
Back to top |
|
 |
Philip Morten |
Posted: Fri Jan 26, 2007 7:48 am Post subject: |
|
|
Master
Joined: 07 Mar 2002 Posts: 230 Location: Hursley Park
|
lam wrote: |
$ ls -l /opt/mqm/bin/crtmqm_nd
-r-xr-x--- 1 aziza host 557056 Jan 15 2003 /opt/mqm/bin/crtmqm_nd
|
Is this 5.3 or 6.0 ? Either way that is wrong - that should be owned by user 'mqm' and group 'mqm' - output should start "-r-sr-s--- 1 mqm mqm ". It looks like you installation is corrupted. _________________ Philip Morten
The postings on this site are my own and do not necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
lam |
Posted: Fri Jan 26, 2007 9:17 am Post subject: |
|
|
Acolyte
Joined: 09 Nov 2006 Posts: 50
|
all is ok now
it's was a probléme of permitions
thanks you a lot |
|
Back to top |
|
 |
|