Announcement

Collapse
No announcement yet.

Mirth file move error help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mirth file move error help

    Hi, I am using Mirth 3.10.1 on a Windows server. Java version 1.8.0_301. I have a simple channel (attached with SFTP info stripped). All it does is watch a directory, look for a file, sends them out to an SFTP. When done processing (on the source tab) move the processed file to a processed folder. When it tries to move it, the below error occurs.



    ERROR (com.mirth.connect.connectors.file.FileReceiver:50 0): Error processing file in channel: 7f2db458-6c50-4307-9638-8e70d0c37087
    com.mirth.connect.connectors.file.FileConnectorExc eption: Error moving file from [smb://epic-nas.et1240.epichosted.com/xfr/nonprd/fromODB/EDI/IntradoHouseCalls/OutToIntrado//Reminders.txt] to [C:/temp/Reminders.txt_processed_15-09-21_08-50-36.751]
    at com.mirth.connect.connectors.file.FileReceiver.pro cessFile(FileReceiver.java:482)
    at com.mirth.connect.connectors.file.FileReceiver.pro cessFiles(FileReceiver.java:328)
    at com.mirth.connect.connectors.file.FileReceiver.pol l(FileReceiver.java:239)
    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)
    Attached Files

  • #2
    That file move does not work that way. It is relative to the source directory (your SMB location).

    Workarounds:

    1) write the file locally in your channel (delete after processing on the SMB file reader of course)
    2) Mount the network file system locally. This is trivial in Linux since mounted filesystem do not need a logged in user. In Windows it is possible to, just a bit more painful
    Diridium Technologies, Inc.
    https://diridium.com

    Comment


    • #3
      Hi i tried waht I think you meant with similar result, ERROR (com.mirth.connect.connectors.file.FileReceiver:50 0): Error processing file in channel: 7f2db458-6c50-4307-9638-8e70d0c37087
      com.mirth.connect.connectors.file.FileConnectorExc eption: Error moving file from [smb://epic-nas.et1240.epichosted.com/xfr/nonprd/fromODB/EDI/IntradoHouseCalls/OutToIntrado//Reminders.txt] to [W:/fromODB/EDI/IntradoHouseCalls/OutToIntrado/SuccessToIntrado/Reminders.txt_processed_15-09-21_15-00-21.697]
      at com.mirth.connect.connectors.file.FileReceiver.pro cessFile(FileReceiver.java:482)
      at com.mirth.connect.connectors.file.FileReceiver.pro cessFiles(FileReceiver.java:328)
      at com.mirth.connect.connectors.file.FileReceiver.pol l(FileReceiver.java:239)
      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)

      Comment


      • #4
        If you did map a network drive your source reader should not be of type SMB anymore, just a normal file reader as if all the files are local to the server. Mirth does not know the difference between a networked drive letter or a local one. That is the beauty of it.
        Diridium Technologies, Inc.
        https://diridium.com

        Comment


        • #5
          Hi Pacmano, If I use file, Mirth wont let me use a username and password, it greys out. The only way I can see to get that is with SMB.

          Comment


          • #6
            To be clear:

            1) on the server that runs the mirth engine network mount the file system as a drive letter (this means you already have the SMB file system mounted so you do NOT need an SMB reader).
            2) on the server that runs the mirth engine make sure mirth is running as a named user (not the user the installer uses by default) that has network permissions
            Diridium Technologies, Inc.
            https://diridium.com

            Comment


            • #7
              Thanks this is where it gets odd. I mapped the files system to drive W. The Method is a file (not SMB). when I do a test read I get "unable to connect. " But of course in file explorer I can read and write fine.I am stumped. Mirth is running as svc_mirthadmin. I am logged in as svc_mirthadmin.

              Comment


              • #8
                You sure the path in Mirth is expressed correctly? See https://forums.mirthproject.io/forum...-reader-solved
                Diridium Technologies, Inc.
                https://diridium.com

                Comment


                • #9
                  this version works not sure what I did differently but thanks! (attached pic)
                  Attached Files

                  Comment


                  • #10
                    Interesting! I never use the SMB reader, thanks for sharing!
                    Diridium Technologies, Inc.
                    https://diridium.com

                    Comment

                    Working...
                    X