MuleSoft · SFTP Connector
SFTP:CONNECTIVITY
Short answer
SFTP:CONNECTIVITY means the connection to the SFTP server was interrupted. Check the network path and the server, and compare the server's log with the Mule app's log for the same moment.
VerifiedLast verified
01Error text
Error type: SFTP:CONNECTIVITY02Likely causes
- The connection to the SFTP server was interrupted.
- The server may require a specific encrypted channel, such as particular ciphers, key exchange algorithms or authentication keys.
03How to fix it
- Raise the logging level on the SFTP server and read its log for the same attempt. For OpenSSH, review
sshd_config. - Reproduce the problem with an SFTP client such as Cyberduck or FileZilla, using the same host, port and user.
- Turn on verbose logging: in
log4j2.xmladd<AsyncLogger name="org.mule.extension.sftp" level="DEBUG"/>. For SSH detail add<AsyncLogger name="org.apache.sshd" level="TRACE"/>, which produces a high log volume, so remove it afterward. - Handle the failure with an error handler of type
SFTP:CONNECTIVITY.
04Official documentation
→Related errors
- SFTP:CANNOT_REACHSFTP:CANNOT_REACH means an error occurred while connecting to the SFTP server host and port. Typically the remote side refuses the connection, for example because nothing is listening on that address and port.
- SFTP:CONNECTION_TIMEOUTSFTP:CONNECTION_TIMEOUT means the attempt to connect to the SFTP server timed out. Confirm the server is reachable from where the Mule app runs before changing anything in the flow.
- SFTP:KEY_EXCHANGE_FAILEDSFTP:KEY_EXCHANGE_FAILED means the app started an SSH connection to the server and failed at the key exchange step. Compare the algorithms the server requires with what the connector offers, using the server configuration and SSH trace logging.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer