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

fix(FTP Node): FTP connection failed due to missing password credential in node #8131

Merged

Conversation

vacitbaydarman
Copy link
Contributor

@vacitbaydarman vacitbaydarman commented Dec 21, 2023

Summary

The credentials have been defined in the setup, but the password data was not passed to the connect method. As a result, the node throws the following exception.

Error: connect->getConnection: All configured authentication methods failed
at fmtError (/Users/mehmetvacitbaydarman/Desktop/FiWork/Azure/Fi.N8n/node_modules/.pnpm/ssh2-sftp-client@7.2.3/node_modules/ssh2-sftp-client/src/utils.js:55:18)
at SftpClient.connect (/Users/mehmetvacitbaydarman/Desktop/FiWork/Azure/Fi.N8n/node_modules/.pnpm/ssh2-sftp-client@7.2.3/node_modules/ssh2-sftp-client/src/index.js:218:13)
at Object.execute (/Users/mehmetvacitbaydarman/Desktop/FiWork/Azure/Fi.N8n/packages/nodes-base/nodes/Ftp/Ftp.node.ts:519:6)
at Workflow.runNode (/Users/mehmetvacitbaydarman/Desktop/FiWork/Azure/Fi.N8n/packages/workflow/src/Workflow.ts:1307:8)
at /Users/mehmetvacitbaydarman/Desktop/FiWork/Azure/Fi.N8n/packages/core/src/WorkflowExecute.ts:1061:29

Related tickets and issues

Include links to Linear ticket or Github issue or Community forum post. Important in order to close automatically and provide context to reviewers.

Review / Merge checklist

  • PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use (no-changelog) otherwise. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.

    A bug is not considered fixed, unless a test is added to prevent it from happening again.
    A feature is not complete without tests.

@CLAassistant
Copy link

CLAassistant commented Dec 21, 2023

CLA assistant check
All committers have signed the CLA.

@n8n-assistant n8n-assistant bot added community Authored by a community member node/improvement New feature or request labels Dec 22, 2023
@Joffcom
Copy link
Member

Joffcom commented Jan 2, 2024

Hey @vacitbaydarman,

Thanks for the PR, I have just taken a quick look connecting to an SFTP server using a private key and it is working as expected. Looking at this PR it shouldn't cause anything to break but it would be nice to have a bit more context behind this one, Typically an SFTP server would be configured to accept either key or password based authentication in your configuration is the user password also required when performing key based authentication?

@vacitbaydarman
Copy link
Contributor Author

vacitbaydarman commented Jan 2, 2024 via email

@Joffcom
Copy link
Member

Joffcom commented Jan 2, 2024

Hey @vacitbaydarman,

Perfect thanks, I wondered if that was the case and I was thinking back to my old managed file transfer days around some of the settings that were commonly used and I don't think I ever had a case where someone wanted to use use both key based and password based for the same session 😄

I will give this another test in the morning to make sure it is all good but I can't see this breaking anything.

@vacitbaydarman
Copy link
Contributor Author

vacitbaydarman commented Jan 2, 2024 via email

@Joffcom Joffcom merged commit e056aa9 into n8n-io:master Jan 9, 2024
8 checks passed
MiloradFilipovic added a commit that referenced this pull request Jan 10, 2024
* master:
  ci: Validate docs urls for langchain nodes as well (no-changelog) (#8271)
  fix: Small ui fixes to workflow cred setup modal (no-changelog) (#8280)
  fix: Fix issue with API key being required for the Qdrant Node (#8237)
  feat(Coda Node): Add User-Agent for requests to Coda (no-changelog) (#7771)
  fix(FTP Node): FTP connection failed due to missing password credential in node (#8131)
  ci: Fix lint setup in `chat` package (no-changelog) (#8275)
  ci: Fix codecov reporting, and include all packages (no-changelog) (#8276)
  fix(core): Fix test webhook deregistration (#8247)
  docs: Update links in deprecated langchain nodes to avoid linting errors (no-changelog) (#8273)
  fix: Fix user reinvites on FE and BE (#8261)
  docs: Update primaryDocumentation urls for nodes updated in #7651 (no-changelog) (#8270)
  feat: Add Chat Trigger node (#7409)
  fix(Github Trigger Node): Enforce SSL validation by default (#8265)
  fix(editor): Tweaking button sizes in execution preview (#8206)
  fix(core): Avoid wrapping `ExecutionBaseError` to prevent misreporting to Sentry (no-changelog) (#8262)
@github-actions github-actions bot mentioned this pull request Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Authored by a community member node/improvement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants