Error 500 on FTP Upload Node

Describe the problem/error/question

My FTP Node throw an error 500 when trying to upload a file

What is the error message (if any)?

ERROR: The service was not able to process your request

Unknown command

Details

Time

18/08/2023, 11:32:51

HTTP Code

500

Stack

NodeApiError: The service was not able to process your request
    at Object.execute (/opt/homebrew/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/Ftp/Ftp.node.ts:758:16)
    at Workflow.runNode (/opt/homebrew/lib/node_modules/n8n/node_modules/n8n-workflow/src/Workflow.ts:1253:8)
    at /opt/homebrew/lib/node_modules/n8n/node_modules/n8n-core/src/WorkflowExecute.ts:1024:29

Please share your workflow

Share the output returned by the last node

and HTML file transformed to binary data. Saving it locally works well.

Information on your n8n setup

  • n8n version: 1.1.1
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Mac OS
Summary

This text will be hidden

Hey @n8nonmac,

What FTP server are you uploading to?

1 Like

kentucky.o2switch.net - the one I usually use. I can connect without problems on Filezilla

Hey @n8nonmac,

Can you enable the debug logging in Filezilla and send over the output? I suspect it could be an issue with the FTP package we use that we are aware of but seeing the commands filezilla sends will help.

Thank you for looking into it.

Here are the logs:

2023-08-18 14:30:47 47405 1 Status: Resolving address of kentucky.o2switch.net
2023-08-18 14:30:47 47405 1 Status: Connecting to 109.234.162.114:21...
2023-08-18 14:30:47 47405 1 Status: Connection established, waiting for welcome message...
2023-08-18 14:30:47 47405 1 Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
2023-08-18 14:30:47 47405 1 Response: 220-You are user number 1 of 150 allowed.
2023-08-18 14:30:47 47405 1 Response: 220-Local time is now 14:30. Server port: 21.
2023-08-18 14:30:47 47405 1 Response: 220-This is a private system - No anonymous login
2023-08-18 14:30:47 47405 1 Response: 220-IPv6 connections are also welcome on this server.
2023-08-18 14:30:47 47405 1 Response: 220 You will be disconnected after 15 minutes of inactivity.
2023-08-18 14:30:47 47405 1 Command: AUTH TLS
2023-08-18 14:30:48 47405 1 Response: 234 AUTH TLS OK.
2023-08-18 14:30:48 47405 1 Status: Initializing TLS...
2023-08-18 14:30:48 47405 1 Status: Verifying certificate...
2023-08-18 14:30:48 47405 1 Status: TLS connection established.
2023-08-18 14:30:48 47405 1 Command: USER [email protected]
2023-08-18 14:30:48 47405 1 Response: 331 User [email protected] OK. Password required
2023-08-18 14:30:48 47405 1 Command: PASS ****************
2023-08-18 14:30:48 47405 1 Response: 230-Your bandwidth usage is restricted
2023-08-18 14:30:48 47405 1 Response: 230 OK. Current restricted directory is /
2023-08-18 14:30:48 47405 1 Command: SYST
2023-08-18 14:30:48 47405 1 Response: 215 UNIX Type: L8
2023-08-18 14:30:48 47405 1 Command: FEAT
2023-08-18 14:30:48 47405 1 Response: 211-Extensions supported:
2023-08-18 14:30:48 47405 1 Response:  UTF8
2023-08-18 14:30:48 47405 1 Response:  EPRT
2023-08-18 14:30:48 47405 1 Response:  IDLE
2023-08-18 14:30:48 47405 1 Response:  MDTM
2023-08-18 14:30:48 47405 1 Response:  SIZE
2023-08-18 14:30:48 47405 1 Response:  MFMT
2023-08-18 14:30:48 47405 1 Response:  REST STREAM
2023-08-18 14:30:48 47405 1 Response:  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
2023-08-18 14:30:48 47405 1 Response:  MLSD
2023-08-18 14:30:48 47405 1 Response:  PRET
2023-08-18 14:30:48 47405 1 Response:  AUTH TLS
2023-08-18 14:30:48 47405 1 Response:  PBSZ
2023-08-18 14:30:48 47405 1 Response:  PROT
2023-08-18 14:30:48 47405 1 Response:  TVFS
2023-08-18 14:30:48 47405 1 Response:  ESTA
2023-08-18 14:30:48 47405 1 Response:  PASV
2023-08-18 14:30:48 47405 1 Response:  EPSV
2023-08-18 14:30:48 47405 1 Response:  ESTP
2023-08-18 14:30:48 47405 1 Response: 211 End.
2023-08-18 14:30:48 47405 1 Command: OPTS UTF8 ON
2023-08-18 14:30:48 47405 1 Response: 504 Unknown command
2023-08-18 14:30:48 47405 1 Command: PBSZ 0
2023-08-18 14:30:48 47405 1 Response: 200 PBSZ=0
2023-08-18 14:30:48 47405 1 Command: PROT P
2023-08-18 14:30:48 47405 1 Response: 200 Data protection level set to "private"
2023-08-18 14:30:48 47405 1 Status: Logged in
2023-08-18 14:30:48 47405 1 Status: Retrieving directory listing...
2023-08-18 14:30:48 47405 1 Command: PWD
2023-08-18 14:30:48 47405 1 Response: 257 "/" is your current location
2023-08-18 14:30:48 47405 1 Command: TYPE I
2023-08-18 14:30:48 47405 1 Response: 200 TYPE is now 8-bit binary
2023-08-18 14:30:48 47405 1 Command: PORT 192,168,1,116,246,6
2023-08-18 14:30:48 47405 1 Response: 500 I won't open a connection to 192.168.1.116 (only to 78.redacted)
2023-08-18 14:30:48 47405 1 Command: PASV
2023-08-18 14:30:48 47405 1 Response: 227 Entering Passive Mode (109,234,162,114,216,95)
2023-08-18 14:30:48 47405 1 Command: MLSD
2023-08-18 14:30:48 47405 1 Response: 150 Accepted data connection
2023-08-18 14:30:48 47405 1 Response: 226 4 matches total
2023-08-18 14:30:48 47405 1 Status: Directory listing of "/" successful

Hey @n8nonmac,

What does Filezilla do if you disable TLS support? Our node only supports plain FTP with no encryption, It looks to be PureFTPd as well so you might need to update your pure-ftpd.conf to include BrokenClientsCompatibility no

An alternative solution would be to use SFTP if it is enabled.

So yeah I checked with my host and none of those options are available to me. I’ll probably use an external service

2 Likes

I will get around to fixing this at some point it just isn’t a quick thing to resolve.

Understood. Thank you for your time.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.