web stats
Problem processing files through NFS share - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2007, 02:06 PM
geoffm33 geoffm33 is offline
What's HL7?
 
Join Date: Jun 2007
Posts: 2
geoffm33
Default Problem processing files through NFS share

I am trying to process files that are located on a different Linux server than Mirth, but are accessible through an NFS share.

I am sharing the files out from server MERKEL as such:

# cat /etc/exports
/nfs-share larynx(rw,sync)


I am mounting it on server LARYNX as such:

# cat /etc/fstab
merkel:/nfs-share /mnt/merkel nfs rsize=8192,wsize=8192,timeo=14,intr

I can access the files from the command line as root and a general user. I can move them, copy them, delete them, etc.

Here is the directory it is looking for files:

[devuser@LARYNX ~]$ ls -lt /mnt/merkel
total 12
-rwxrwxrwx 1 devuser devuser 4873 Jun 5 15:38 test.hl7


When I setup a channel to look at the NFS share for *.hl7 and move them after processing (as well as delete) to a local directory on the Mirth server (Larynx), the channel just repetitively processes the file without moving. So it keeps inserting the data from the files to the database, creates PDF files of the data, etc. Over and over until the channel is disabled.

Any thoughts as to why it isn't moving the file?

Thanks!
Reply With Quote
  #2  
Old 06-05-2007, 02:28 PM
brendanh brendanh is offline
Mirth Employee
 
Join Date: Aug 2006
Posts: 191
brendanh
Default Re:Problem processing files through NFS share

Yes, this happened to me one day when I was testing on a windows share. I think this is a problem with Java, and we cannot do anything to fix it. It's been a while, but I think the solution I came up with was to set "Delete after read" to "no" and specify a move-to directory.
__________________
Brendan Haverlock | Mirth Software Engineer | Mirth Corporation
Reply With Quote
  #3  
Old 06-06-2007, 10:34 AM
geoffm33 geoffm33 is offline
What's HL7?
 
Join Date: Jun 2007
Posts: 2
geoffm33
Default Re:Problem processing files through NFS share

I just tried that and it still won't work. Here is what is showing up in the error log:

Quote:
ERROR 2007-06-05 17:36:32,173 [8b167ccd-590d-4b34-9ecc-072229e6a75d_source_connector._fileEndpoint#-1874518172.receiver.1] org.mule.impl.Defa
ultComponentExceptionStrategy: Caught exception in Exception Strategy for: 8b167ccd-590d-4b34-9ecc-072229e6a75d: org.mule.MuleException: Fail
ed to move file "/mnt/merkel/test.hl7" to "/tmp/MIRTHOUT/test.hl7.05-06-07_17-36-31.951". The file already exists.
org.mule.MuleException: Failed to move file "/mnt/merkel/test.hl7" to "/tmp/MIRTHOUT/test.hl7.05-06-07_17-36-31.951". The file already exist
s.
at com.webreach.mirth.server.mule.providers.file.File MessageReceiver.processFile(FileMessageReceiver.ja va:222)
at com.webreach.mirth.server.mule.providers.file.File MessageReceiver.poll(FileMessageReceiver.java:114)
at org.mule.providers.PollingMessageReceiver.run(Poll ingMessageReceiver.java:73)
at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)
at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650)
at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :675)
at java.lang.Thread.run(Unknown Source)
ERROR 2007-06-05 17:36:33,419 [8b167ccd-590d-4b34-9ecc-072229e6a75d_source_connector._fileEndpoint#-1874518172.receiver.1] org.mule.impl.Defa
ultComponentExceptionStrategy: Caught exception in Exception Strategy for: 8b167ccd-590d-4b34-9ecc-072229e6a75d: org.mule.MuleException: Fail
ed to move file "/mnt/merkel/test.hl7" to "/tmp/MIRTHOUT/test.hl7.05-06-07_17-36-33.176". The file already exists.
org.mule.MuleException: Failed to move file "/mnt/merkel/test.hl7" to "/tmp/MIRTHOUT/test.hl7.05-06-07_17-36-33.176". The file already exist
s.
at com.webreach.mirth.server.mule.providers.file.File MessageReceiver.processFile(FileMessageReceiver.ja va:222)
at com.webreach.mirth.server.mule.providers.file.File MessageReceiver.poll(FileMessageReceiver.java:114)
at org.mule.providers.PollingMessageReceiver.run(Poll ingMessageReceiver.java:73)
at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)
at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650)
at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :675)
at java.lang.Thread.run(Unknown Source)
ERROR 2007-06-05 17:36:34,634 [8b167ccd-590d-4b34-9ecc-072229e6a75d_source_connector._fileEndpoint#-1874518172.receiver.1] org.mule.impl.Defa
ultComponentExceptionStrategy: Caught exception in Exception Strategy for: 8b167ccd-590d-4b34-9ecc-072229e6a75d: org.mule.MuleException: Fail
ed to move file "/mnt/merkel/test.hl7" to "/tmp/MIRTHOUT/test.hl7.05-06-07_17-36-34.422". The file already exists.
org.mule.MuleException: Failed to move file "/mnt/merkel/test.hl7" to "/tmp/MIRTHOUT/test.hl7.05-06-07_17-36-34.422". The file already exist
s.
at com.webreach.mirth.server.mule.providers.file.File MessageReceiver.processFile(FileMessageReceiver.ja va:222)
at com.webreach.mirth.server.mule.providers.file.File MessageReceiver.poll(FileMessageReceiver.java:114)
at org.mule.providers.PollingMessageReceiver.run(Poll ingMessageReceiver.java:73)
at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)
at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650)
at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :675)
at java.lang.Thread.run(Unknown Source)
ERROR 2007-06-05 17:36:35,860 [8b167ccd-590d-4b34-9ecc-072229e6a75d_source_connector._fileEndpoint#-1874518172.receiver.1] org.mule.impl.Defa
ultComponentExceptionStrategy: Caught exception in Exception Strategy for: 8b167ccd-590d-4b34-9ecc-072229e6a75d: org.mule.MuleException: Fail
ed to move file "/mnt/merkel/test.hl7" to "/tmp/MIRTHOUT/test.hl7.05-06-07_17-36-35.637". The file already exists.
org.mule.MuleException: Failed to move file "/mnt/merkel/test.hl7" to "/tmp/MIRTHOUT/test.hl7.05-06-07_17-36-35.637". The file already exist
s.
at com.webreach.mirth.server.mule.providers.file.File MessageReceiver.processFile(FileMessageReceiver.ja va:222)
at com.webreach.mirth.server.mule.providers.file.File MessageReceiver.poll(FileMessageReceiver.java:114)
at org.mule.providers.PollingMessageReceiver.run(Poll ingMessageReceiver.java:73)
at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)
at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650)
at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :675)
at java.lang.Thread.run(Unknown Source)
ERROR 2007-06-05 17:36:37,113 [8b167ccd-590d-4b34-9ecc-072229e6a75d_source_connector._fileEndpoint#-1874518172.receiver.1] org.mule.impl.Defa
ultComponentExceptionStrategy: Caught exception in Exception Strategy for: 8b167ccd-590d-4b34-9ecc-072229e6a75d: org.mule.MuleException: Fail
ed to move file "/mnt/merkel/test.hl7" to "/tmp/MIRTHOUT/test.hl7.05-06-07_17-36-36.862". The file already exists.
org.mule.MuleException: Failed to move file "/mnt/merkel/test.hl7" to "/tmp/MIRTHOUT/test.hl7.05-06-07_17-36-36.862". The file already exist
s.
at com.webreach.mirth.server.mule.providers.file.File MessageReceiver.processFile(FileMessageReceiver.ja va:222)
at com.webreach.mirth.server.mule.providers.file.File MessageReceiver.poll(FileMessageReceiver.java:114)
at org.mule.providers.PollingMessageReceiver.run(Poll ingMessageReceiver.java:73)
at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)
at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650)
at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :675)
at java.lang.Thread.run(Unknown Source)
ERROR 2007-06-05 17:37:23,632 [8b167ccd-590d-4b34-9ecc-072229e6a75d_source_connector._fileEndpoint#-1874518172.receiver.1] org.mule.impl.Defa
ultComponentExceptionStrategy: Caught exception in Exception Strategy for: 8b167ccd-590d-4b34-9ecc-072229e6a75d: org.mule.MuleException: Fail
ed to move file "/mnt/merkel/test.hl7" to "/tmp/MIRTHOUT/test.hl7.05-06-07_17-36-38.116". The file already exists.
org.mule.MuleException: Failed to move file "/mnt/merkel/test.hl7" to "/tmp/MIRTHOUT/test.hl7.05-06-07_17-36-38.116". The file already exist
s.
The file certainly doesn't exist in the destination location as it is named with the current timestamp. Not sure what the issue could be.
Reply With Quote
  #4  
Old 07-23-2008, 07:48 AM
ricber ricber is offline
Mirth Guru
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 181
ricber
Default Re:Problem processing files through NFS share

Hi all,

after some test I found the solution. I'm working on a windows environment but I think that all issues are produced by the same error.

After generat "File already exist" message many times I checked share permissions and NTFS permissions, and after assign "Modify" NTFS permission to the user everything worked fine!.

If anyone can confirm this in *nix environment it could be great!

HTH,

Ricard Bernat
Reply With Quote
  #5  
Old 09-02-2010, 10:50 PM
Fysicon Fysicon is offline
Mirth Newb
 
Join Date: May 2010
Posts: 24
Fysicon is on a distinguished road
Default Problem processing files through SMB share

Hello,

I'm experiencing the same problem when accessing a share using SMB and trying to move the processed or failed files to a local folder.
I'm not sure what your solution was as to my information i've enough NTFS rights on both the remote as the local path.

Can you explain a bit further please ?

(I'm using Mirth 1.8.2.4472)
Reply With Quote
  #6  
Old 11-19-2010, 02:14 PM
edvanbaak edvanbaak is offline
Mirth Newb
 
Join Date: Aug 2010
Posts: 23
edvanbaak is on a distinguished road
Default

I was also able to add "Modify" and "write" permissions for the users on the Security (not sharing) Tab of the NTFS folder. After that, it worked!
Reply With Quote
  #7  
Old 12-29-2010, 10:07 AM
jboby jboby is offline
Mirth Newb
 
Join Date: Aug 2010
Posts: 13
jboby is on a distinguished road
Default

never worked for me. wound up leaving both the "move-to directory" and "move-to filename" fields blank and creating a new "File writer" destination to fix the problem.

curiouser and curiouser.

also strange .. "delete file after read" does not work for me either (sftp'ing file from remote host to local - storing file local - hoping to delete file from host afterward ... not working). anybody have any idea why that might be? i'm getting the dreaded 'Failed to delete file "*" as part of the file move operation. ... are these two things related?

Last edited by jboby; 12-29-2010 at 10:12 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File Reader to read files from Network Share baziz Support 3 12-09-2008 11:28 AM
1.8 RC2 not processing? dugjohnson Support 6 10-21-2008 11:44 AM
X12/EDI Processing sgidwani General Discussion 6 02-22-2008 03:51 PM
Processing Mirth's output files JAVARUNNER Support 4 02-07-2008 02:51 PM
Share database conn. info. across different destinations? nshaik Development 1 09-18-2006 03:10 PM


All times are GMT -8. The time now is 11:12 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation