web stats
Error File is not reabable - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2014, 07:43 AM
nesswaw nesswaw is offline
OBX.1 Kenobi
 
Join Date: May 2014
Posts: 42
nesswaw is on a distinguished road
Default Error File is not reabable

Hi all,

We migrated from Mirth 2.2.1 from Mirth 3.0.3 and since we have alert mail with Channel File Reader Source => File Writer Destination:

Code:
File is not readable.
Jun 23, 2014 5:26:55 PM
Source Connector (File Reader) error
com.mirth.connect.connectors.file.FileConnectorException: File is not readable.
	at com.mirth.connect.connectors.file.FileReceiver.processFile(FileReceiver.java:301)
	at com.mirth.connect.connectors.file.FileReceiver.processFiles(FileReceiver.java:236)
	at com.mirth.connect.connectors.file.FileReceiver.poll(FileReceiver.java:192)
	at com.mirth.connect.donkey.server.channel.PollConnector$PollConnectorTask.run(PollConnector.java:141)
	at java.util.TimerThread.mainLoop(Unknown Source)
	at java.util.TimerThread.run(Unknown Source)
However the files are processed correctly.

Do you have an idea?

Thank's
Reply With Quote
  #2  
Old 06-27-2014, 03:55 AM
nesswaw nesswaw is offline
OBX.1 Kenobi
 
Join Date: May 2014
Posts: 42
nesswaw is on a distinguished road
Default

Up?
Reply With Quote
  #3  
Old 07-01-2014, 06:54 AM
nesswaw nesswaw is offline
OBX.1 Kenobi
 
Join Date: May 2014
Posts: 42
nesswaw is on a distinguished road
Default

Up?
Reply With Quote
  #4  
Old 07-01-2014, 06:59 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,111
narupley is on a distinguished road
Default

That happens when the File Reader comes across an entry that isn't readable due to OS permissions, or that isn't a file (like a symlink). Other valid files in the polling window will still process correctly.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #5  
Old 07-01-2014, 11:20 PM
nesswaw nesswaw is offline
OBX.1 Kenobi
 
Join Date: May 2014
Posts: 42
nesswaw is on a distinguished road
Default

Hi,

Thanks for your response.

The OS permissions is OK

Seeking, I change various settings:

Before:

- Polling frequency: 5'000ms
- Check File age: 1'000ms

After:

- Polling frequency: 10'000ms
- Check File age: 3'000ms

And since I have no error, why?

System OS latence?
Lock copy source file?

I do not know...

Thanks
Reply With Quote
  #6  
Old 05-20-2015, 01:25 AM
mourisj mourisj is offline
Mirth Guru
 
Join Date: Feb 2007
Location: Luxembourg
Posts: 407
mourisj is an unknown quantity at this point
Default

Hello,

We have this same problem happening with version 3.2.1.

It is definitely not a problem of file permissions, as the various directories concerned are filled with files by one single application each, or by copying manually files to these directories.

I have currently one characteristic situation that makes this error appear:
When copying/writing a large amount of files (several hundred) at once, have them processed, and during the processing adding more files to the directory makes this error message appear numerous times.
It looks like the growing and falling number of files causes trouble.

Symlinks are not involved (but possibly subdirectories, still investigationg this one).
__________________
JJ Mouris
FFE Luxembourg
IT-Department
Reply With Quote
  #7  
Old 07-30-2015, 07:12 AM
charan charan is offline
Mirth Newb
 
Join Date: Apr 2015
Posts: 24
charan is on a distinguished road
Send a message via Yahoo to charan Send a message via Skype™ to charan
Default NOt able to Move file using FileUtils ; getting error

Hello Narupley,

Greetings for the day !!.

I am trying to move a file from one location to another location if it fails on header validation .

Because the file is containing more than 10,000 records and i have enabled batch processing.

If header of file is wrong , i dont want it to iterate through entire 10,000 records and want to move file on header level validation .

I am trying to use FileUtils.moveFile(src,dest) , but its throwing below error.

Can you please help me in this , how can i make it sucessfull here .

You mostly help all , i do expect help here .

I am not able to attach my chanel .

[2015-07-30 20:36:41,398] ERROR (postprocessor:?): :: Message Errored BecauseJavaException: java.io.IOException: Failed to delete original file 'C:\Users\Admin\Documents\MirthExamples\csvexample s\File Reader\processed_30-07-15_19-22-42.483.csv' after copy to 'C:\Users\Admin\Documents\MirthExamples\csvexample s\error\20150730083641.csv'
Reply With Quote
  #8  
Old 03-22-2017, 01:21 AM
nesswaw nesswaw is offline
OBX.1 Kenobi
 
Join Date: May 2014
Posts: 42
nesswaw is on a distinguished road
Default

hello,

I have again the same problem with Mirth 3.4.2.8129

Error: Source Connector (File Reader) error
com.mirth.connect.connectors.file.FileConnectorExc eption: File is not readable.
at com.mirth.connect.connectors.file.FileReceiver.pro cessFile(FileReceiver.java:315)
at com.mirth.connect.connectors.file.FileReceiver.pro cessFiles(FileReceiver.java:247)
at com.mirth.connect.connectors.file.FileReceiver.pol l(FileReceiver.java:203)
at com.mirth.connect.donkey.server.channel.PollConnec torJob.execute(PollConnectorJob.java:49)
at org.quartz.core.JobRunShell.run(JobRunShell.java:2 13)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run (SimpleThreadPool.java:557)

Error Message: File is not readable.
Error Type: Source Connector
Channel ID: 976fd088-aec1-42f1-ae4e-23bb0c5eb32b
Connector Name: Source
Connector Type: File Reader

But The files are processed correctly.

How to prevent this errors? A Mirth Bug?

Thanks
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


All times are GMT -8. The time now is 01:14 AM.


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