Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: FTP Step in Workflow throws an Exception #4775

Open
danielvarju opened this issue Jan 11, 2025 · 3 comments
Open

[Bug]: FTP Step in Workflow throws an Exception #4775

danielvarju opened this issue Jan 11, 2025 · 3 comments

Comments

@danielvarju
Copy link

Apache Hop version?

2.11.0

Java version?

OpenJDK Runtime Environment (build 23.0.1+11-39)

Operating system

Windows

What happened?

Hi,

When I test the FTP connection in the FTP step (workflow), I get the access error. In the 2.09.0 version everything works normally. I cannot retrieve any data via FTP in version 2.11.0.

_ERROR: Error while trying to send files. Exception :
com.jcraft.jsch.JSchAlgoNegoFailException: Algorithm negotiation fail: algorithmName="server_host_key" jschProposal="ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256" serverProposal="ssh-rsa,ssh-dss"
Algorithm negotiation fail: algorithmName="server_host_key" jschProposal="ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256" serverProposal="ssh-rsa,ssh-dss"
ERROR: org.apache.hop.core.exception.HopWorkflowException:
com.jcraft.jsch.JSchAlgoNegoFailException: Algorithm negotiation fail: algorithmName="server_host_key" jschProposal="ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256" serverProposal="ssh-rsa,ssh-dss"
Algorithm negotiation fail: algorithmName="server_host_key" jschProposal="ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256" serverProposal="ssh-rsa,ssh-dss"

at org.apache.hop.workflow.actions.sftp.SftpClient.login(SftpClient.java:178)
at org.apache.hop.workflow.actions.sftpput.ActionSftpPut.execute(ActionSftpPut.java:757)
at org.apache.hop.workflow.Workflow.executeFromStart(Workflow.java:751)
at org.apache.hop.workflow.Workflow.executeFromStart(Workflow.java:894)
at org.apache.hop.workflow.Workflow.executeFromStart(Workflow.java:453)
at org.apache.hop.workflow.Workflow.startExecution(Workflow.java:313)
at org.apache.hop.workflow.engines.local.LocalWorkflowEngine.startExecution(LocalWorkflowEngine.java:248)
at org.apache.hop.ui.hopgui.file.workflow.HopGuiWorkflowGraph.lambda$start$10(HopGuiWorkflowGraph.java:3723)
at java.base/java.lang.Thread.run(Thread.java:1575)

Caused by: com.jcraft.jsch.JSchAlgoNegoFailException: Algorithm negotiation fail: algorithmName="server_host_key" jschProposal="ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256" serverProposal="ssh-rsa,ssh-dss"
at com.jcraft.jsch.KeyExchange.guess(KeyExchange.java:157)
at com.jcraft.jsch.Session.receive_kexinit(Session.java:614)
at com.jcraft.jsch.Session.connect(Session.java:336)
at com.jcraft.jsch.Session.connect(Session.java:198)
at org.apache.hop.workflow.actions.sftp.SftpClient.login(SftpClient.java:173)
... 8 more_

Issue Priority

Priority: 2

Issue Component

Component: Workflows

@hansva
Copy link
Contributor

hansva commented Jan 11, 2025

Are you sure this is an FTP server and not an SFTP server? It seems the server is responding with ssh-rsa as suggested encryption which makes me believe its SFTP

@hansva
Copy link
Contributor

hansva commented Jan 11, 2025

Ah it seems they disabled ssh-rsa in a recent version for security reasons. We should be able to allow this again see AntonShuvaev/elasticsearch4idea#120

@danielvarju
Copy link
Author

Sorry, yes it is a SFTP Server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants