Bobcares

Fix ftp “error : not a plain file” easily

by | Jun 19, 2020

FTP error: not a plain file is an error message that is normally triggered while transferring folders directly via FTP.

As a part of our Server Management Services, we help webmasters, web hosts, and online service providers to fix similar FTP errors.

Today lets discuss the top reasons for the not a plain file error and its fixes.

 

What is FTP error not a plain file?

The FTP error not a plain file is generally triggered while transferring files through-plane FTP method. Primitive FTP tools are designed to transfer single files. However, in most cases, users need to transfer more than a single file. They may need to transfer folders, package files, or much more. This, in turn, triggers the not a plain file error.

A typical error  message looks like:

ftp error not a plain file

The two major reasons behind this error message are the transfer of folders and the permission of the file. Let us look at each of these reasons in detail and the tips to fix each of them.

 

Permission of the file

One of the possible reasons for this error is the permission of the file. Everyone should have read permission to the file for the transfer to succeed. The LIST command or the ls -al command can be used to get a list of files along with their permission. For instance, a sample result for the ls -al command would be:

rwxr-xr-- 2 user group 4096 Jan 20 2019 www.example.com
rwxr-x--- 3 user group 4096 Jun 15 23:18 www.example.au
rwxr-x--- 3 user group 4096 May 20 00:54 www.one-example.com

The file www.example.com allows read permission to everyone whereas it not so with www.example.au and www.one-example.com. Thus downloading www.example.au or www.one-example.com may lead to not a plain file error.

The fix here would be to correct the permission of the file through a chmod command after getting into the server via SSH.

 

Transferring folders

This error message most commonly occurs when a folder is tried to transfer via FTP. By default, the primitive FTP tools allow only the transfer of regular files. However, we could easily transfer folders through FTP. Let’s discuss some tips for them.

Transferring contents from a single folder

If the transfer is of a single folder and it does not contain any other folders inside it, the simplest method to perform this using primitive FTP tools would be to recreate the folder at the destination end and then transferring the contents to it. For instance to transfer a folder named “test ” with following regular files,

ls -al test
-rw-r--r-- 1 test test 0 Dec 20 2015 example.txt
-rw-r--r-- 1 test test 0 Dec 20 2015 exam.txt
-rw-r--r-- 1 test test 53 Jan 15 2019 test.txt

 

Firstly, we need to create the folder at the destination server using the mkdir command. Next, we can enter into the “test” folder in the source FTP server with the “cd” command. Finally, all the files in the folder can be transferred with a single FTP command like

mget *

 

Transferring a zip file

It may not be possible for the folders to contain only plain files every time. In most of the cases, users may need to transfer folders recursively. Creating each folder at the destination end manually and then transferring them will be difficult, particularly during the transfer of entire website files.

The widely used method here would be to generate a zip file of the entire folder and then transferring it.

 

Using FTP clients

The easiest of all the methods to transfer folders is to use any of the FTP clients. They provide a graphical user interface for file transfer which makes them easy to use for all. Most of the clients like Filezilla provide the option to drag and drop, ie, folders could be transferred with just drawing the folder and dropping them in the required destination.

[Need help to fix FTP error? We are available 24×7]

 

Conclusion

In short, FTP error not a plain file is a generic error message that is normally triggered while transferring folders directly via FTP. It can also happen due to incorrect file permissions. Today we discussed some tips followed by our Support Engineers to transfer files in spite of the not a plain file error.

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.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

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