Giter Site home page Giter Site logo

Comments (9)

jonbartels avatar jonbartels commented on June 10, 2024

I think the relevant code is -

if (connectorProperties.isDirectoryRecursion()) {

and
public List<String> listDirectories(String fromDir) throws Exception {

I'm not sure whats going on but see how the Sftpconnection does a cwd then an ls? I wonder if you're seeing repeated cd calls then the ls?

Mirth Connect uses JSch for SFTP. Are there any similar issue reports for JSch? In other words, is this an MC issue or a JSch issue?

Turning up logging for JSch might also show what commands are being issued.

from connect.

michaelmarcuccio avatar michaelmarcuccio commented on June 10, 2024

With Mirth upgrading to log4j2, how do you enable JSch logging?
Service won't start using the old way: logger.JSch = DEBUG

from connect.

jonbartels avatar jonbartels commented on June 10, 2024

https://forums.mirthproject.io/forum/mirth-connect/support/12545-sftp-file-reader-connection-log JSch logging is weird. You have to add a deploy script.

from connect.

michaelmarcuccio avatar michaelmarcuccio commented on June 10, 2024

I got the logs working, but after researching a bit it turns out JSch logs do not log anything past auth info.
"It can get you a lot of info about the connection process (key exchange and such). But there is practically no such thing as debug output for the core functionality after authentication, at least for SFTP." This is also what I am seeing in the debug level logs. No info on actual transactions.

Maybe I am just mistaken on the functionality of SFTP polling. Is it logical for a single folder to take 1 second to poll but a folder and 3 subdirectories 4 seconds total to poll? I was under the assumption that it would be less than O(n).

from connect.

jonbartels avatar jonbartels commented on June 10, 2024

Is your log output really getting a single polling event or is it getting multiple polling events?

from connect.

michaelmarcuccio avatar michaelmarcuccio commented on June 10, 2024

If you are asking about the JSch logs from the Mirth server, there are many many rows of logging the sftp connection/security info. But there is no logging of the actual request such as ls/cd.

from connect.

michaelmarcuccio avatar michaelmarcuccio commented on June 10, 2024

This may just be a weird way my SFTP server logs requests. If anyone else has logs from their SFTP server of Mirth polling subdirectories that would help.

from connect.

jonbartels avatar jonbartels commented on June 10, 2024

@michaelmarcuccio - I haven't had time to try it yet but could this be verified with a docker-compose set of containers with MC and an SFTP server?

Launch both containers and have MC chatter with the SFTP server then look at the logs from each.

from connect.

michaelmarcuccio avatar michaelmarcuccio commented on June 10, 2024

@jonbartels yeah that would work, I guess it all depends on how good the sftp server's logs are to maybe get more details.

from connect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.