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 » FileRead Node unable to read remote file after Brokerrestart

Post new topic  Reply to topic
 FileRead Node unable to read remote file after Brokerrestart « View previous topic :: View next topic » 
Author Message
gauravg
PostPosted: Tue Aug 09, 2016 11:49 pm    Post subject: FileRead Node unable to read remote file after Brokerrestart Reply with quote

Novice

Joined: 12 Jan 2016
Posts: 14

Hi,

We have a simple message flow to read remote file from ftp server. We are using ftp configurable service in which servername, securityIdentity,protocol,scanDelay are specified.

Remote ServerDirectory and Directory are set using localenvironment before hitting fileread node. Protocol is SFTP


At first deployment, this flow works perfectly fine by fetching file from remote directory. However if Integration Node(broker) is restarted, then it is not able to fetch files from remote directory until there is next deployment.
Once redeployed, again it starts fetching files.

In trace, it shows no file match and flow controls passes from "no match" terminal of fileread node. There is no exception also anywhere.

Node is configured to read file as "Whole File". Since before node restarts, it is working fine, that means sftp connection is properly set and server is responding to ftp request by fileread node.

Please suggest what can be the root cause for this. where we need to dig into more detail.

thanks
gaurav
Back to top
View user's profile Send private message
gauravg
PostPosted: Wed Aug 10, 2016 1:51 am    Post subject: Reply with quote

Novice

Joined: 12 Jan 2016
Posts: 14

Just to update, IIB version is 10.0.0.4

Thanks
Back to top
View user's profile Send private message
adubya
PostPosted: Wed Aug 10, 2016 3:34 am    Post subject: Reply with quote

Partisan

Joined: 25 Aug 2011
Posts: 377
Location: GU12, UK

Have you checked the broker error log at startup for any FTP related errors ?
_________________
Independent Middleware Consultant
andy@knownentity.com
Back to top
View user's profile Send private message Send e-mail
gauravg
PostPosted: Wed Aug 10, 2016 4:13 am    Post subject: Reply with quote

Novice

Joined: 12 Jan 2016
Posts: 14

There are no ftp errors at broker startup.
Back to top
View user's profile Send private message
gauravg
PostPosted: Thu Aug 11, 2016 7:42 am    Post subject: Reply with quote

Novice

Joined: 12 Jan 2016
Posts: 14

Can someone please suggest here where can be the problem.

Thanks
Back to top
View user's profile Send private message
adubya
PostPosted: Thu Aug 11, 2016 7:50 am    Post subject: Reply with quote

Partisan

Joined: 25 Aug 2011
Posts: 377
Location: GU12, UK

Sounds like PMR territory to me.
_________________
Independent Middleware Consultant
andy@knownentity.com
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu Aug 11, 2016 7:54 am    Post subject: Reply with quote

Grand High Poobah

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

gauravg wrote:
Can someone please suggest here where can be the problem.


So if I'm reading your post correctly, the problem is not that the flow tries to read the remote file and hangs, it's that the flow opens the FileRead node, fails to detect the remote file and passes control to the "no match" terminal until the flow is redeployed, when it correctly reads the file the first time and then repeats the "no match" behavior.

I'm going to assume that your design is that you read "data.txt" from the remote location, process it and then at some later point you're trying to read the new/latest/next copy of "data.txt" from that location, which doesn't work. If so, the problem is the sftp server at the remote end. It's either believing that you've already got the file because the connection is still open, or because you still have a file lock on "data.txt", albeit the copy with the previous contents. The redeploy fixes it by dropping the connection / releasing the lock / cleaning up.

If the FileRead node is going to the "no match" terminal, it's because the remote sftp server is telling it there's no file. Welcome to the world of ftp, enjoy your stay.

I'll also refer to you to @mqjeff's many excellent expositions on why this kind of file based processing is problematic even when the protocol doesn't collapse under you.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Aug 11, 2016 7:56 am    Post subject: Reply with quote

Grand High Poobah

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

adubya wrote:
Sounds like PMR territory to me.


Sounds more like a problem for whoever administers the remote FTP server to me.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Aug 11, 2016 8:01 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Compare the contents of the directory before the first file read and after the first file read.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Aug 11, 2016 8:05 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Vitor wrote:


Welcome to the world of ftp, enjoy your stay.



Yet, in some parts of the world they insist on using FTP to move ALL data around. I could name (but won't) a place where they do this even though they have MQ at both ends AND channels between the servers.
This is real time data that needs to be delivered promptly and correctly. Deaf ears result when they get told that FTP is not the way to do this day in, day out.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Aug 11, 2016 8:31 am    Post subject: Reply with quote

Grand High Poobah

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

smdavies99 wrote:
Yet, in some parts of the world they insist on using FTP to move ALL data around.


And it's a pain for us all, including the OP.

Well not me, I got it banned here. Still working on eliminating the transfer of data in file form; as an interim measure I've made the problems elucidated by our most worthy associate the purview of a different team.

If I don't get paged for it, it's not a problem.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Aug 11, 2016 9:06 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Vitor wrote:
I've made the problems elucidated by our most worthy associate the purview of a different team.


I imagine it's interesting to see the faces of a development team when they hear the words "Halting Problem".
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Aug 11, 2016 11:18 am    Post subject: Reply with quote

Grand High Poobah

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

mqjeff wrote:
Vitor wrote:
I've made the problems elucidated by our most worthy associate the purview of a different team.


I imagine it's interesting to see the faces of a development team when they hear the words "Halting Problem".


It's fun. I sit the 2 teams in a room and watch through the window, often with popcorn.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Aug 11, 2016 11:15 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Vitor, you're one of a shrinking number of people who appreciate the dangers of using files and file transfer for important purposes.

The other one is a certain Mr Murphy.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Aug 11, 2016 11:31 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

zpat wrote:
Vitor, you're one of a shrinking number of people who appreciate the dangers of using files and file transfer for important purposes.

The other one is a certain Mr Murphy.



that is probably because we started out in this industry when paper tape and/or punched cards were being used as a data transfer method.
Us will soon be put out to grass and the file transfer fans will themselves. good riddance I say
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
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 » FileRead Node unable to read remote file after Brokerrestart
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.