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 API Support » amqsputc is hanging and giving 2059 error after some time

Post new topic  Reply to topic
 amqsputc is hanging and giving 2059 error after some time « View previous topic :: View next topic » 
Author Message
rajak
PostPosted: Thu Jul 20, 2006 1:20 am    Post subject: amqsputc is hanging and giving 2059 error after some time Reply with quote

Newbie

Joined: 18 Jul 2006
Posts: 8

Hi,

The QM Is in Linux and client is windows.

I am trying to connect through MQSERVER as env variable.

AMQSPUTC hangs and after some time it gives 2059 error.

Can somebody help me on this.

The error msg in Event viewer is

"
Event Type: Error
Event Source: WebSphere MQ
Event Category: None
Event ID: 9213
Date: 7/20/2006
Time: 2:03:15 PM
User: N/A
Computer: INDAS3IBM427
Description:
A communications error for TCP/IP occurred.

An unexpected error occurred in communications.

The return code from the TCP/IP(recv) [TIMEOUT] 180 seconds call was 0 (X'0'). Record these values and tell the systems administrator. "
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jul 20, 2006 1:31 am    Post subject: Reply with quote

Grand High Poobah

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

Have a search through this forum for 2059 - it is the most popular reason code!

Have you ever got this to work? If not are you certain that the MQSERVER elements are spelt correctly (obvious I know but you'd be amazed how many times I've seen a duff channel name - or perhaps you wouldn't...). Also are you certain there's no firewall between client and server, and if there is that the relevant ports are open? Are you using DNS names or IP addresses? If the former try the latter.

And of course, my personal favorite - are you sure the MQSERVER variable is in scope for amqsputc? (Yes, people do get that wrong. Hard to believe but true. I was one of them once.... )

If it works and then doesn't what changes? Can you pin down a pattern?

Do the search. Everybody's had this problem at one time or another and most of them have posted
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
rajak
PostPosted: Thu Jul 20, 2006 3:10 am    Post subject: Reply with quote

Newbie

Joined: 18 Jul 2006
Posts: 8

This is the environment variable i have set,.

MQSERVER=SYSTEM.AUTO.SVRCONN/TCP/10.128.33.168(1480)

Ya i am able to connect and use amqsputc in a AIX MQ, but i am unable to do it in Linux. I even done a full search and done most of the things said in the discussion, but it didnt help me.

There is no firewall, i can able to ping and telnet to the MQ Server from Client.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jul 20, 2006 3:21 am    Post subject: Reply with quote

Grand High Poobah

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

I notice you have another thread running about a Linux listener - is that the same queue manager? If it is, the listener in that thread is defined to use 1460 not 1480 as shown above!

Are there any log messages or FDCs that seem associated with the connection attempt (i.e. about the same time)?

Try defining your own SVRCONN; I never entirely trust the automatic objects. Also try a telnet to the port; if something answers but telnet goes over the listener's correctly attached to that port. If you get something like "Connection Refused" the listener's not working.

2059 is not only the most common reason code, it's the hardest to pin down.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
rajak
PostPosted: Thu Jul 20, 2006 4:19 am    Post subject: Reply with quote

Newbie

Joined: 18 Jul 2006
Posts: 8

Hi,

That is a different Q manager.

And i found this error in /var/mqm/errors directory.

07/20/2006 05:20:07 PM
AMQ9213: A communications error for bind occurred.

EXPLANATION:
An unexpected error occurred in communications.
ACTION:
The return code from the bind(/tmp/MQSeries.3662) call was 13 (X'D'). Record
these values and tell the systems administrator.

And also i am not sure, whether my two threads depends and one is the cause of other?

Thanks..
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jul 20, 2006 4:30 am    Post subject: Reply with quote

Grand High Poobah

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

rajak wrote:
That is a different Q manager.



Felt it was worth posing the question (not the first time I've seen a confused port number)...

So you've got two queue managers, one that throws 2059 when you try and connect to it, both complaining about TCP/IP bind errors? As you say, if it's a coincidence it's an odd one!

If you shut down one of them (including the listener object) does the bind problem go away? Also does the other queue manager exhibit a 2059 on connect?

(And did you try a new SVRCONN channel? It's looking increasingly like a long shot but still worth a spin IMHO).

Also worth investigating what the return code means....
_________________
Honesty is the best policy.
Insanity is the best defence.
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 API Support » amqsputc is hanging and giving 2059 error after some time
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.