FTP (File Transfer Protocol) is a standard network protocol used to transfer files between clients and servers. It is the fastest way to upload your file on the server. If you are using CyberPanel, you can also use File manager, but it is always recommended to use FTP to transfer large files to your server. However, as with any other software people face an issue with FTP as well. In this tutorial will discuss one FTP error called ‘FTP 550 No such file or directory’. This means file or folder does not exist. Today will see what are the main reasons behind this error and how to fix them.
However, if you are our customer and use our managed vps service, feel free to contact us via the helpdesk to get this issue resolved.
What is FTP 550 No Such File or directory
We will first see what actually is FTP 550 No Such File or directory error.
5xx errors with FTP means complete rejection from the server. This means that your FTP client such as Filezilla sent an FTP command which remote server fails to accept and returns with 5xx families of error.
It is also related to File system issues, for example, the FTP users do not have access to the folder you are trying to access or upload content too.
What is the main cause of this error
1. Wrong Permissions
If your folder or files have wrong permissions this will also cause ‘FTP 550 No such file or directory’. This happens when the user does not have enough privileges to edit or open file they are trying to access. So if you are using CyberPanel avoid uploading files via root SFTP account, because those files will then be owned by root account and you can then can’t access those files via FTP.
If you have already done so, make sure to click Fix Permissions from the file manager. Or you can log in to ssh via root, then first find out the user of your website by running:
ls -la /home
This command will tell you the owner of the directory who owns your document root, you can then run following commands to change owners of your document root
chown -R user:user /home/domain.com
Also, this status code occurs when you try to GET a file that does not exist.
2. Incorrect Path
FTP 550 No such file or directory can also occur if you are trying to upload file to an incorrect path. Such as if the file is present in the document root of your site at /home/domain.com/public_html and you are trying to upload from /home.
The easiest way to get around the incorrect path is to logout from FTP, and log in again. You will then land in the default FTP folder and from there you can easily navigate to the folder you want to upload file to.
3. Wrong Mount Point
Sometimes users mount a filesystem at a certain mount point but they don’t configure it to retain after reboot. So after server reboot that mount point does not exist anymore. In such a case when they login to that FTP account they usually see 500: No such file or directory, because that mount point does not exist anymore.
Make sure to remount the file system and make it persists during the reboots.
How to Create FTP Account In Cloud Platform
Once the website is created, click on your service ID. You will be brought back to the page where you can manage your sites created in the CyberPanel.
Click the launch icon.
From the left sidebar, click Create FTP Account under FTP. Fill in all the details and click Create FTP button. You can leave the path empty and the default path will be used which is usually document root of the website (i.e. /home/domain.com). But if you set some path such as helloworld the final path will be relative to document root such as /home/domain.com/public_html/helloworld.
FTP Account is necessary to upload your website/application files. But if you are going to use our Auto Installer creating FTP account is not really necessary.
You can also use default File Manager of CyberPanel to manage files of your website, but for large uploads, FTP is recommended.