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 » FileInput node not pulling files from shared folder.

Post new topic  Reply to topic Goto page 1, 2  Next
 FileInput node not pulling files from shared folder. « View previous topic :: View next topic » 
Author Message
ravipydi
PostPosted: Tue Mar 24, 2015 9:33 am    Post subject: FileInput node not pulling files from shared folder. Reply with quote

Novice

Joined: 17 May 2006
Posts: 11

I am having issue pulling files from a shared directory using FileINputNode.
I have written a test interface (FileInputNode --> Compute --> FileOutputNode). I am accessing a shared folder in the network (Ex: \\testfs05\Inbound\TestFolderIn\. When I deploy the flow and put a test message in the input folder, the file is not getting picked up. I do see that the node created mqsitransitinm mqsibackout and mqsiarchive fodlers when I deployed the flow which indicates it was able to access the folder. When I drop a file, I see a 0 byte file with the same in the mqsistransitin/locks folder. But the actual file is not getting picked up after that. Message Broker is running on a Windows Server. I have tried this in MB7 and IIB9. Same issue on both the versions. Any help is appreciated.
Back to top
View user's profile Send private message
nelson
PostPosted: Tue Mar 24, 2015 9:48 am    Post subject: Reply with quote

Partisan

Joined: 02 Oct 2012
Posts: 313

Do you see any errors? If you see the 0 bytes file in the mqsitransit/locks directory in fact the file was detected and locked preventing other flows to pick that file.
Back to top
View user's profile Send private message
ravipydi
PostPosted: Tue Mar 24, 2015 9:56 am    Post subject: Reply with quote

Novice

Joined: 17 May 2006
Posts: 11

Hi Nelson, Thanks for the reply. No, I did not see any errors in the event log. I tried with debug mode enabled. It never got initiated either.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Mar 24, 2015 10:15 am    Post subject: Re: FileInput node not pulling files from shared folder. Reply with quote

Grand High Poobah

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

ravipydi wrote:
When I drop a file, I see a 0 byte file with the same in the mqsistransitin/locks folder. But the actual file is not getting picked up after that.


Is whatever's creating the file and/or whatever is supporting the shared folder (I assume the Windows OS but whatever) properly releasing the file lock? I don't mean the 0 byte file (which is a broker device to stop the file being picked up twice) but the file system lock. It sounds to be that broker can see the file in the directory but can't get exclusive access to move it. Because:

ravipydi wrote:
Message Broker is running on a Windows Server.


And you must have seen the "File in use" message trying to work on a Windows file at some point and

ravipydi wrote:
I have tried this in MB7 and IIB9. Same issue on both the versions.


Both versions with a FileInput problem? More like it's the shared storage with the problem.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
ravipydi
PostPosted: Tue Mar 24, 2015 10:48 am    Post subject: Reply with quote

Novice

Joined: 17 May 2006
Posts: 11

Hi Vitor, thanks for the response. Since I am testing, I am manually dropping a small text file onto the input directory. I have even tried stopping the flow before dropping the file.

I am able to even delete the file from the input folder when the flow is running and it is not throwing any errors.

It looks like this has to be some permission issue on the shared storage system. I was told that there are no restrictions for any users on shared file system. I will research more on this. I will let you know if I find anything.

Thanks for the help.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Mar 24, 2015 10:52 am    Post subject: Reply with quote

Grand High Poobah

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

For experimental purposes, point the flow at a non-shared location (using mqsiapplybaroverride or similar) and see if the flow picks the file up. If it does, this points the finger firmly at the shared storage. If not, you know to look elsewhere.....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
MB Developer
PostPosted: Tue Mar 24, 2015 11:23 am    Post subject: Reply with quote

Disciple

Joined: 03 Feb 2014
Posts: 179

Hi ravipydi,

find the error by using User trace , file trace etc.

Better to go for User trace and post that user trace details...
_________________
Thanks....
Back to top
View user's profile Send private message
ganesh
PostPosted: Tue Mar 24, 2015 11:25 am    Post subject: Reply with quote

Master

Joined: 18 Jul 2010
Posts: 294

Quote:
When I deploy the flow and put a test message in the input folder, the file is not getting picked up.


Check to see if your file name matches the value in your file input node.
Back to top
View user's profile Send private message
nelson
PostPosted: Tue Mar 24, 2015 11:51 am    Post subject: Reply with quote

Partisan

Joined: 02 Oct 2012
Posts: 313

MB Developer wrote:
Hi ravipydi,

find the error by using User trace , file trace etc.

Better to go for User trace and post that user trace details...


ravipydi wrote:


I did not see any errors in the event log. I tried with debug mode enabled. It never got initiated either.


ganesh wrote:

Check to see if your file name matches the value in your file input node.


ravipydi said he is able to see the "locking file" in mqsistransitin/locks, so the broker is actually watching the file.
Back to top
View user's profile Send private message
ravipydi
PostPosted: Tue Mar 24, 2015 12:48 pm    Post subject: Reply with quote

Novice

Joined: 17 May 2006
Posts: 11

That is correct. I just set it to * when I noticed it was not worked to see if it can pick any file at all.
Back to top
View user's profile Send private message
Halloween
PostPosted: Tue Mar 24, 2015 12:49 pm    Post subject: Reply with quote

Acolyte

Joined: 11 Mar 2015
Posts: 60

I saw this many times from people doing this...
But as I see from his statement he can delete the file from Input directory.

What could have happened is you saved file as .txt file but as you have hidden file extensions you might not know the File extension which you have not put in the File name

Try giving the filename.txt or what ever extension you gave.

Also try to do with wild char like * so that any file can be picked up..

that way you can resolve issue if it is till not picked up after specifying file name as * then we need to see what the issue is
Back to top
View user's profile Send private message
ravipydi
PostPosted: Tue Mar 24, 2015 2:26 pm    Post subject: Reply with quote

Novice

Joined: 17 May 2006
Posts: 11

I finally got it to work. It's the permission issue. I have suspected that, so did many of you. But I did not have a way to tell if that is correct because there were no errors in the Event log. So, instead of reading from the shared folder, I tried writing to it. Now, I can see the error in the event log.

My problem is that Message Broker is running under Local System in Windows Services. I do not have a way to provide access to the Local System to a shared folder. So, I changed Message Broker to run under a System Account which I know has access to the shared folder. I have tested this in IIB9 and it worked. Thank you all for your help.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Mar 24, 2015 10:40 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.

ravipydi wrote:

My problem is that Message Broker is running under Local System in Windows Services. I do not have a way to provide access to the Local System to a shared folder. So, I changed Message Broker to run under a System Account which I know has access to the shared folder. I have tested this in IIB9 and it worked. Thank you all for your help.


You have found a big hole and dug yourself out of it. Well done.

If you were running in say a Windows MSCS Cluster you have to run the broker under a properly configured account (especially if the DC is Server 2012 and the IIB nodes are Server 2008).
My best practice tip is to run NOTHING that wants to use MQ (and by inference Broker) under the default System Account. MQ V8 makes it difficult to use it securely so why not set from the beginning and use a named account and go from there. Even on my Windows Development Laptop Broker/IIB has its own account.

IMHO the Default System Account is a windows bodge as far as I'm concerned and like all version of IE should be taken outside and dealt with humanely.
_________________
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
fjb_saper
PostPosted: Wed Mar 25, 2015 4:13 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

For those of you like me who are not 150% fluent in English, here is a link to the definition of bodge:
http://en.wiktionary.org/wiki/bodge
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Mar 25, 2015 4:20 am    Post subject: Reply with quote

Grand High Poobah

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

fjb_saper wrote:
For those of you like me who are not 150% fluent in English


This includes many of our American associates, and many British born more recently to which the phrase "bodge" belongs to an earlier, older generation.

Mine.
_________________
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 Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » FileInput node not pulling files from shared folder.
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.