🧡 Skip to main content🔍 Skip to search
Event icon · error

This Error Event is part of Ensure Remote Directory Events.

Event ID · 343400

"Could not ensure directory"

Overview

The error message indicates that Ensure Remote Directory Action has failed to ensure a remote directory.

Solution

Make sure that the provided access credentials have appropriate write permissions for the specified directory. Additionally, some underlying OSes and filesystems do not permit the use of special characters in paths. For example, an FTP server hosted on Windows will not allow characters such as *, /, |, ? and similar.

Event examples

See some examples of the Could not ensure directory Event messages:

  • Task "My Backup" Action "Ensure Remote Directory" failed. Error creating folder "/backups/2024/12". Permission denied. Error message from server: Permission denied. The system cannot find the path specified. [os:3]
  • Action "Ensure Remote Directory" failed. Server failed to fulfill the request. The system cannot open the file. [os:4]
  • Action "Ensure Remote Directory" failed. Working on "/ftp-root/documents/2025/12". 404 Not Found.
  • Error creating folder "/home/user/invoice.pdf". Command "mkdir "/home/user/invoice.pdf"". Failed with return code 1 and the following error message. mkdir: cannot create directory "/home/user/invoice.pdf": File exists.
  • Error creating folder "/my-bucket/uploads". Access denied. Extra Details: RequestId: N4P5V44CD0ZGFNDM, HostId: RmVib290aSBleGFtcGxlIGRhdGEgMjAyNCBGZWJvb3RpIGV4YW1wbGUgZGF0YS4uLg==.
  • Error creating folder "/some-bucket/invoices". ErrorNoSuchBucket. Extra Details: BucketName: some-bucket, RequestId: tx00000fcc061fa23ffc37d-12673dfb38-f63ab2b9-fra1c, HostId: f65dd2b7-fra1a-fra3-zg82.
  • Error creating folder "/user/john/files". Command "mkdir "/user/john/files"". Failed with return code 1 and the following error message. mkdir: cannot create directory "/user/john/files": Permission denied.
  • Error creating folder "/s3-bucket/my-files/image-2024-12.jpg". Cannot create a file when that file already exists.
  • Error creating folder "/temp/invoices:documents". The parameter is incorrect.
  • Error creating folder "/dav/uploads/*/<directory>". 400 Bad Request.

Notes

If Ensure Remote Directory fails with Lost connection. Disconnected from server error message, check stateful FTP firewall settings for a simple solution.

If your remote server uses IIS, and Task creates and removes directories in quick succession, the error 405 Method Not Allowed may occur. Try using Wait Action, to add 3-5 seconds delay between these Actions.

How seamless automation works? A 90-second demo.

Have a question?

If you have any questions, please do not hesitate to contact our support team.