-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
FTP node doesn't seem to create directories #9296
Comments
I think you have issue with premissions for FTP folder |
|
Hey @evok01, Thanks for the report, It looks like we never actually tried to use the create option so I have popped in a PR to test it. I don't have an IIS FTP site available for testing but the change works against pure-ftpd, If I create a test docker image from the PR would you be able to test it to see if it works for IIS? |
@Joffcom Sure thing |
@evok01 perfect thanks, In a test environment if you can use |
Hey @evok01, Have you had a chance to test yet? |
@Joffcom I have tested just now and I am seeing an error: The FTP site that it is connecting to is using a root directory that has full permissions for everyone, and those open permissions are cascaded to all folders and files. It may be some weird config setting that I need to tweak in IIS but this is a new site for the purpose of testing. Here is the most from the logs that I can see when the rename node is run:
I'll enable any additional logs that I can. |
Hey @evok01, Would you be able to try a workflow that just has the FTP node in it and try to rename a file in there so we can rule out anything else. Can you also make sure the node isn't set to continue on error under the settings. |
Just to again rule out dumb permission problems, I tried just now using an FTP client to upload a file to non-existent directories and it was successful in creating them, so unfortunately it does appear to be n8n not being able to make directories. |
@evok01 that is perfect, I can fix that. The PR makes the folder if the server returns a 451 error or attempts to which is what my ftp server used as the error code. I will add 550 to it as well and update the image which should solve it for IIS as well. |
Bug Description
Any workflow I make that uses a FTP node using a rename operation, when I check to recursively create directories, I always get the error "The system cannot find the path specified."
If I create the destination tree of directories manually beforehand, then the rename is successful.
I had first thought it would be a permission issue within IIS (this is a IIS hosted FTP site), so I have also setup another site using a directory that has full control for everyone and still the same problem. All of the other FTP operations seem to work though.
To Reproduce
Expected behavior
File in old path gets moved to the new destination with all previously non-existent parent directories now present.
Operating System
Photon OS
n8n Version
1.38.1
Node.js Version
18.19.1
Database
PostgreSQL
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: