FTP errors are bothersome.
And, it becomes more troublesome when you spend the whole day resolving these errors.
One such FTP error is “421 service not available“.
At Bobcares, we help server owners resolve such FTP errors as part of our Dedicated Support Services.
Today, let’s discuss the top 3 reasons for this error and how we fix them.
FTP error 421 service not available – A Quick Glance
FTP error code 4xx means that the connection hasn’t been attempted and the requested action hasn’t taken place. But, this condition is temporary, and the action may be requested again.
And, FTP error 421 service not available means that the connection to the remote server can’t be established. FTP clients such as Filezilla returns the error like this:
421 Service not available, remote server has closed connection.
FTP error 421 service not available – Causes & Fixes
Now, let’s discuss the common reasons for this error and how our Dedicated Engineers fix them.
1) Invalid FTP host
This error can occur when the FTP server can’t determine the IP address of the server by the hostname. And, the server logs(/var/log/messages) show this error.
getaddrinfo 'Hostname_Is_Here' error: Name or service not known warning: unable to determine IP address of 'host.domain.com domain
How we fix?
Here, our Support Experts first check the connectivity to the FTP host using the ping command.
ping host.domain.com
If ping doesn’t respond, we add the correct hostname in the following server configuration files.
/etc/hosts /etc/sysconfig/network
Most importantly, we restart the network service to reflect these changes.
/etc/init.d/network
On the other hand, on Plesk servers, we change the hostname from Tools & Settings > Server Settings.
2) Firewall restrictions
Another probable reason for this error is the incorrect firewall configurations or firewall restrictions.
We’ve seen instances where the remote server blocks connections from an IP address or IP address range. The IP can be blocked due to abnormal activities, too many connections, etc.
Similarly, another possibility is that the user is being blocked from making outbound connections either at the ISP end or at their local firewall. We’ve seen cases where third party firewall or antivirus on the system blocking FTP connections. Also, ISPs can block the normal outbound FTP traffic.
How we fix?
Firstly, our Support Experts ensure that the customer’s IP address isn’t blocked in the remote server. For example, we use the below command to determine if the customer’s IP address xx.xx.xx.xx is blocked.
csf -g xx.xx.xx.xx
And, if the IP is blocked, we’ll immediately remove the block and restore the FTP access. Later, we update the reason for the block and the remedial measures to the customer.
If there are no problems on the server side, we update customers to disable their security applications such as Antivirus, Windows firewall, etc. one by one. This helps us to identify which application is causing problems.
Alternatively, if the issue is at the ISP end, we get the traceroute results from the customer. This helps us to identify if the issue lies at the intermediate level.
Most importantly, if the customers are blocked at the ISP or local firewall level, we always suggest them to use SFTP for connection as it uses SSH for connecting.
3) FTP service configuration errors
Similarly, another variation of this error in ProFTP servers is given below.
test.com proftpd[130008] 127.0.0.1: Failed binding to ::, port 21: Address already in use test.com proftpd[130008] 127.0.0.1: Check to see if inetd/xinetd, or another proftpd instance, is already using ::, port 21
This error usually occurs when port 21 is already used by another application. It can also happen when the ProFTP service is stuck on the server. Similarly, errors in the FTP service configuration file can also create problems.
How we fix?
Firstly, our Support Engineers check the services listening on FTP port 21 using the netstat command.
netstat -plnt | grep :21
And, if we find that this port is used by multiple applications or another instance of proftpd, we’ll reconfigure these applications on alternate ports. For example, in plesk servers, we always ensure that the ServerType parameter is set to inetd in the ProFTP configuration file.
ServerType inetd
Here, the inetd/xinetd service listens on port 21 for connection requests, then start the proftpd and pass the connection off.
In case if we find that the FTP service is stuck on the server, we kill the dead process and restart the service using the below commands.
ps aux | grep proftpd
kill -9 PID
service xinetd restart
In addition to that, we ensure that the FTP configuration files(/etc/proftpd.conf and /etc/vsftpd.conf) are intact.
Recently, we were contacted by a customer that he can’t connect to FTP. The logs showed missing /var/run/proftpd/ directory. When we checked, the ProFTPd configuration file(/etc/proftpd.conf) was referring to this folder. But, this folder wasn’t created in the server. So, our Support Engineers went ahead and created the folder /var/run/proftpd/ to fix the issue.
[Need an expert to resolve your ongoing FTP problems? Our Experienced Support Experts can help you here.]
Conclusion
In short, FTP error 421 service not available can occur due to firewall restrictions, invalid FTP host and more. Today, we’ve discussed the top 3 reasons for this error and how our Dedicated 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.
GET STARTED
var google_conversion_label = «owonCMyG5nEQ0aD71QM»;
Ошибка 421 возникает по нескольким причинам. Каждая из ошибок не является фатальной и её легко исправить. В этой статье мы отметим 2 самые распространенные причины, по которым возникает error 421 и решение проблемы.
Чаще всего причины этой ошибки заключаются в следующем:
- Нет соединения с smtp сервером почтового хостинга. В комментариях к ошибке может писать прервано или отсутствует по неизвестной причине;
- FTP сервер занят или перегружен – причина в превышении количества разрешенных подключений;
- Грейлистинг – отсутствие ip-адреса в списке (белом) RCPT, почта с ip-адреса временно не принимается по причине подозрения в рассылке спама.
Причина номер 1: отсутствует соединение с SMPT-сервером
Ошибка 421 (SMTP-сервер) возникает, когда нет подключения к SMPT-серверу. В результате сбоя вы не можете обновлять списки писем или отправить новое письмо. Сбой часто возникает при работе с почтовыми клиентами, например, Outlook.
Причины ошибки и решения:
- Блокировка соединения антивирусом. Решается просто: отключаем на 5 минут антивирус и пробуем перезайти в программу. Обращаем внимание, что почтовый клиент нужно закрыть вообще, а затем снова открыть.
- VPN сервис. Особенно, если вы используете бесплатные варианты. Часто IP адреса таких сервисом занесены в бан. Поэтому, как бы вы ни старались, подключиться с их помощью не выйдет.
- Сбой работы почтового клиента. Нужно снова настроить клиент с нуля. К примеру, можно удалить и заново установить программу.
Причина номер 2: множественные подключения
Ошибка 421 (Too Many Connections) – это ошибка FTP соединения, которая не беспокоит обычных пользователей и чаще всего является информационным сигналом для вебмастера. Ошибка появляется при работе с программой FileZilla и для ее исправления нужно внести некоторые изменения в настройки. Также, иногда может потребоваться доступ к панели управления хостингом.
Возникает в случае, если у вас открыто активное соединение с сервером и вы параллельно пытаетесь создать еще одно подключение по тому же адресу. По сути ничего страшного в этом нет. Если с вашего IP уже есть соединение вы просто получите ошибку 421. На сам сайт это никак не влияет.
Как исправить ошибку 421?
- Нужно ограничить количество одновременных подключение к серверу, чтобы избежать появление ошибки 421. Для этого заходим в программу-клиент FileZilla и нажимаем «Файл», затем открываем «Менеджер сайтов».
- Если у вас несколько сайтов, нужно выбрать тот, который выдаёт ошибку 421. Вы увидите вкладку «Настройки передачи», в которой нужно установить Макс. Число подключений максимально до 8-ми. Более точную информацию можно узнать у хостинг-партнера. Однако, изменяя данный параметр с единицы до большего числа есть риск, что к серверу будут подключаться взломщики и вы об этом не узнаете.
- Далее сохраняем и перезапускаем программу.
ВАЖНО: Если это не помогло – срочно смените пароль для FTP и имя пользователя. Вполне возможно, что доступ к FTP аккаунту получен посторонними людьми.
Альтернативный способ исправить ошибку 421
Заходим в административную панель хостинг-аккаунта. Переходим в раздел управления FTP и отключаем активные подключения. Затем можем снова устанавливать соединение через FTP-клиент.
Если нет функции снять все активные соединения, просто смените логин и пароль для FTP аккаунта. Активные соединения будут сброшены автоматически.
Другой способ, который срабатывает, если у вас открыты программы, но нет возможности найти то самое соединение. Просто перезагрузите свой компьютер. При повторном запуске будет сделано соединение заново. Однако, этот способ не сработает, если неправильно настроен FTP-клиент.
Причина номер 3: Грейлистинг
Как правило, MS Outlook используется корпоративными клиентами в офисах для упорядочивания переписки и ускорения отправки коммерческой корреспонденции. Поэтому исходящий трафик может быть довольно высок. Именно по этой причине многие программы могут ввести ip-адрес, с которого ведется рассылка в серые списки (грейлистинг).
Причиной внесения ip-адреса пользователя в серый список может стать слишком активная переписка через один из бесплатных smtp серверов: Mail.ru, Яндекс или Gmail. Которые лимитируют количество отправленных писем в сутки. При необходимости сохранения прежней интенсивности переписки данная проблема решается переходом на специализированные почтовые сервисы. К примеру, SendPulse SMTP Server.
Дальше по теме…
I’m trying to access an ftp from my web browser, but I get the following error : 421 Sorry, cleartext sessions are not accepted on this server. Any ideas?
asked Jul 7, 2012 at 3:07
1
«421 Sorry, cleartext sessions are not accepted on this server» means that the server is using «FTP Over Explicit TLS/SSL». This is a Good Thing.
You might be able to fix it by giving the protocol «ftpes:» instead of «ftp:»:
-
ftpes://ftp.somesite.com/some_folder
… or …
-
ftps://ftp.somesite.com/some_folder
You’ll probably need to use another FTP client besides your default browser.
I don’t know if newer versions of IE support FTP over SSL.
Filezilla might be a good choice:
- https://filezilla-project.org/
Mihai Iorga
39.3k16 gold badges106 silver badges107 bronze badges
answered Jul 7, 2012 at 3:12
paulsm4paulsm4
114k17 gold badges138 silver badges190 bronze badges
3
In Filezilla.. under «File» click on the icon to open the «site manager».. then over to the right click on the «General» tab which is probably already open by default.
On the third line down where it says «Encryption».. choose «Require Explicit FTP over TLS»
That one worked fine for me.
answered Mar 29, 2013 at 4:08
RobRob
4114 silver badges2 bronze badges
0
Solution:
Just add a ftpes:// before the domain name
for example Old One,
host : domain.com
username : xxx
pass : yyy
port : 21
Now the new.
host : ftpes://domain.com
username : xxx
pass : yyy
port : 21
Advanced Option,
Login to Web Host Manager
Go To : Service Configuration
Go To : FTP Server Configuration
Check that :
TLS Encryption Support : set to “Optional”
Try that, it will work.
answered Jan 18, 2013 at 3:28
Manoj PrajapatManoj Prajapat
1,1171 gold badge14 silver badges27 bronze badges
I was also facing the same issue and resolved after doing the following thing. If you are using filezilla as ftp client, then try this.
Host: ftpes://mydomain.com
UserName: yourUsername
Password: yourPassword
You need to just modify the Host URL
. add the ftpes://
before the domain name.
Basically this issue is only coming if you are trying to access you web server from your linux(Ubuntu) machine.
From windows system its working fine.
answered Jul 20, 2016 at 4:53
TabishTabish
1,59216 silver badges13 bronze badges
0
add a ftpes://
before the domain name
zzlalani
23k16 gold badges44 silver badges73 bronze badges
answered Nov 15, 2013 at 6:57
SourabhSourabh
4,1962 gold badges17 silver badges16 bronze badges
If this did not work with this changes do following change.
In Filezilla goto
Edit=>Settings=>Connection=>FTP
Here Change transfer mode from Active to Passive and press OK and try connecting again.
answered Mar 12, 2013 at 9:14
NileshNilesh
12710 bronze badges
1
Now-a-days, cpanel does not support FileZilla. You may find the reason here.
CPanel: After clicking on Configure FTP Client, you may find below
However, you can still be able to connect via FileZilla.
For my case, I followed below settings.
WHM Panel: Please follow the navigation. Log in to WHM Panel > Service Configuration > FTP Server Configuration
- TLS Encryption Support: Optional
- Allow Anonymous Logins: No
- Allow Anonymous Uploads: No
FileZilla: Below is the settings for FileZilla.
In FileZilla settings (Edit > Settings), please make sure if Transfer Mode is set to Passive.
And I am able to connect to FTP successfully
answered Jul 17, 2022 at 20:59
Kuntal GhoshKuntal Ghosh
3,5682 gold badges17 silver badges21 bronze badges
FTP stands for File Transfer Protocol, it is used to transfer files from the host to the client computer or in better words we can say FTP is used to transfer files from a server to a local machine or vice-versa. In web hosting FTP plays a big role, we can update the website files on the server using FTP. Follow this guide to solve FTP Error 421: Too many connections from this IP.
FTP Error 421: Too many connections from this IP :
This error usually occurs if you open new connections without closing the older ones from the same IP. Usually, there is an Idle Time limit on the server which disconnects the older(non-active) connections. You can wait for some time and then try to reconnect.
Increase the connection limit from WHM:
- Login to WHM of your server.
- In the WHM search bar search for FTP and select FTP server configurations as shown in the following screenshot.
- Scroll down a bit to find Maximum Connections Per IP Address as shown in the following screenshot.
- Change this number according to your requirement of connections. We recommend not to raise the number too much.
- After increasing the limit press save on the bottom of the page.
- Retry connecting to FTP and you should be able to connect to the FTP server.
Need help installing Pure-FTPd? Read our guide here.
Июн 22, 2017
Renat
2хв. читання
Введение
Главной причиной ошибки 421 too many connections являются неактивные FTP соединения, которые не были закрыты, перед открытием нового. Это случается из-за того, что провайдеры услуг хостинга ограничивают одновременные FTP соединения для предотвращения перегрузки сервера. В этом руководстве вы научитесь, как легко исправить ошибку 421 too many connections, установив правильные настройки в FTP-клиенте FileZilla и сбросив неактивные соединения в контрольной панели вашего хостинга.
Что вам понадобится
Перед тем, как мы начнем это руководство, вам понадобится следующее:
- FTP-клиент FileZilla
- Доступ к панели управления вашего хостинга
Шаг 1 — Исправление ошибки 421 too many connections в FTP-клиенте FileZilla
Первым и самым рекомендованным методом решения данной проблемы является ограничение количества одновременных соединений в вашем FTP-клиенте. Этапы ниже покажут вам, как правильно настроить FTP-клиент FileZilla и выставить максимальное число одновременных соединений:
- Запустите FTP-клиент FileZilla.
- Нажмите Файл и откройте Менеджер сайтов.
- Выберите сайт (1), для которого вы хотите установить лимит соединений и нажмите вкладку Настройки передачи (2).
- Поставьте галочку напротив Ограничение одновременных подключений и введите Максимальное число подключений. Оно может быть разным и зависит от вашего хостинг провайдера. Если вы не уверены, сколько одновременных соединений разрешает ваш провайдер услуг хостинга, введите 8. Однако рекомендуется связаться со службой поддержки вашего хостинга для того, чтобы узнать максимальное количество.
- Нажмите кнопку OK для сохранения настроек.
Шаг 2 — Сброс неактивных соединений в сPanel (необязательно)
Если вы используете cPanel для управления вашим хостинг аккаунтом, вы можете легко сбросить неактивные FTP-соединения и временно решить ошибку 421 too many connections:
- Войдите в вашу cPanel и найдите раздел FTP соединения.
- Этот раздел cPanel отображает все FTP соединения вашей учетной записи. Если вы не видите никаких соединений, нажмите кнопку Перезагрузка для обновления страницы. Для того, чтобы сбросить соединение нажмите кнопку Отключить.
- Вылезет окно подтверждения для сброса FTP соединения. Снова нажмите кнопку Отключить.
- Повторите шаги выше для других соединений, которые вы хотите закрыть.
Заключение
Закончив данное руководство вы научились, как отключать FTP соединения в cPanel и правильно настроить FTP-клиент FileZilla для предотвращения ошибки 421 too many connections. Если вы хотите больше узнать о FileZilla, то посмотрите данное руководство.