Bobcares

FTP 550 No such file or directory- Here’s the quick fix

by | Feb 7, 2019

Are you having trouble with the “FTP 550 No such file or directory” error?

As part of our Outsourced Technical Support Services, we regularly fix these type of FTP errors for our customers.

Today, we’ll see the causes for the error “FTP 550 no such file or directory” and how our Support Engineers fix them.

 

What is FTP 550 error?

What is FTP 550 error?Firstly, let’s get a quick idea of the FTP 550 error.

The 5xx error falls under the permanent negative completion reply status of the FTP server. And, it means that the FTP server did not accept the command and the requested action did not take place. Furthermore, x5x error denotes File system errors in the FTP server.
Overall, the 550 error means the file was not found or there are access restrictions for the file.

 

Causes for “FTP 550 no such file or directory”

Recently, one of our customers reported trouble with FTP upload. The logs of his FTP session looked as shown below.

STATUS:> Transferring file "/mydir/home.html"...
COMMAND:> SIZE home.html
550 home.html: No such file.
STATUS:> Requested action not taken (e.g., file or directory not found, no access).
COMMAND:> CWD /mydir/home.html
550 /mydir/home.html: No such file or directory.

Here, the customer was trying to PUT the file home.html via FTP. And that resulted in the error.

Now, let’s see the top causes for the error.

 

1. Incorrect path

Usually, “FTP 550 no such file or directory” error happens when the customers try to upload files from the wrong directory.

For example, when the file is present in the folder /home/user/abc.html, an attempt to upload from the path /home will cause this error.

This error also happens when customer uses the relative path in FTP.

 

2. Permission problems

Similarly, wrong permission on the files or folders can also cause this 550 error. When the user do not have privileges on the file they are trying to access, it will report the 550 error.

Additionally, a typo in the file name will also lead to this error.

 

3. Wrong Mount points

Again, we often see FTP 550 errors when users trying to access files in the mounted file systems.

For instance, recently a customer complained about the problems accessing files via FTP. In his server, he had a mounted file system. But, this mount failed after a server reboot. And, when he tried to access a file in this mounted directory, it resulted in the error:

550 <filename>: No such file or directory

 

How to fix FTP 550 error?

Verify the File Path

  1. First, connect to the server via SSH.
  2. Navigate to the directory where the file is supposed to be located using the cd command.
  3. List the contents of the directory using the ls command to confirm the presence of the file.
  4. If the file is found, double-check the path used in the FTP command. Make sure to use the absolute path instead of a relative path to avoid confusion.
  5. If the file is not found, determine the correct location of the file and update the FTP command accordingly.

Check File Permissions

  1. First, connect to the server via SSH.
  2. Then, go to the directory containing the file using the cd command.
  3. List the file permissions using the ls -l command. This will display the permissions for each file and directory.
  4. Ensure that the user attempting to access the file has the necessary permissions (read, write, or execute) based on the file’s permissions.
  5. If the permissions are incorrect, they need to be modified using the chmod command.

Examine Mount Points

If the files are stored on a mounted filesystem, follow these steps to check the mount points:

  1. First, connect to the server via SSH.
  2. Then, check the mounted filesystems using the mount command. This will display a list of all mounted filesystems and their mount points.
  3. Next, verify that the filesystem containing the files is listed and that the mount point is correct.
  4. If the filesystem is not mounted, or if the mount point is incorrect, the server will return a 550 error when attempting to access files within that directory.
  5. If the mount point is not available, we need to mount the filesystem correctly or update the mount point in the server configuration.

Other Possible Causes and Fixes

  • File Being Written to

    If an FTP client attempts to access a file that is currently being written to by another process, the server may return a 550 error indicating that the file cannot be accessed.

    Fix: Make sure that the file is completely written and closed by the application before attempting to access it via FTP.

  • Incorrect FTP Mode (Active vs. Passive)

    The FTP client and server may not be in agreement on the mode of operation (active or passive), which can lead to connection issues and result in a 550 error.

    Fix: Switch between active and passive FTP modes in the FTP client settings. If we are using a firewall, it has to allow the necessary ports.

  • Firewall or Security Software Interference

    Firewalls or security software on the server or client machine can block FTP connections, leading to access issues.

    Fix: Check firewall settings to ensure that FTP traffic is allowed. For FTP, ports 21 (control) and 20 (data) should be open. If using passive mode, ensure that the range of ports used for passive connections is also open.

  • Corrupted FTP Client

    Sometimes, the FTP client itself may be corrupted or misconfigured, leading to unexpected errors.

    Fix: So, try reinstalling the FTP client or using a different client to see if the issue persists.

  • User Account Restrictions

    Cause: The user account used for FTP access may have restrictions that prevent access to certain files or directories.

    Fix: Verify the user account settings on the FTP server.

[Are you getting 550 error while accessing files via FTP?  We can quickly fix it for you.]

Conclusion

In short, FTP error “550 no such file or directory” happens mainly when the file do not exist at the path, due to permission problems, etc. Today, we saw the top causes for the error and how our Support Engineers fix them.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

SEE SERVER ADMIN PLANS

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

2 Comments

  1. Barney Quark

    I receive the 550 error when I enter a name for the “local file” under Windows 10 ftp. This makes absolutely no sense to me.

    Reply
    • Sijin George

      Hello Barney,
      Can you please confirm if a file with exact name actually exists? If file is there and still you get an error, it need further investigation. We’ll be happy to talk to you on chat (click on icon at right-bottom).

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF