webew
Войти » Регистрация
 
Linux

ECONNREFUSED - Connection refused by server

29 марта 2015, 1:21
Автор: tehnology-online
После подключения к ФТП некоторое время все работает отлично. Но потом соединение обрывается, порт недоступен и появляется ошибка

Не удалось установить соединение с "ECONNREFUSED - Connection refused by server".

после перезагрузки proftpd, какое-то время опять работает дальше. В чем может быть проблема? Как ее обнаружить и решить?
Добавить комментарий
Отображение комментариев: Древовидное | Плоское
NO USERPIC

rgbeast

Посмотрите лог proftpd и системный лог (messages и secure). Там может быть информация о том, что произошло. Остается ли процесс proftpd запущенным после того, как соединение установить уже невозможно?
29.03.2015, 13:09
Ответить
NO USERPIC

tehnology-online

логи proftpd

Цитата:
2015-03-29 08:07:01,613 vps-13799.vps-ukraine.com.ua proftpd[24355] localhost (91.212.124.39[91.212.124.39]): FTP session opened.
2015-03-29 07:07:01,770 vps-13799.vps-ukraine.com.ua proftpd[24355] localhost (91.212.124.39[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:07:01,771 vps-13799.vps-ukraine.com.ua proftpd[24355] localhost (91.212.124.39[91.212.124.39]): USER user: Login successful.
2015-03-29 08:10:03,585 vps-13799.vps-ukraine.com.ua proftpd[24426] localhost (91.212.124.39[91.212.124.39]): FTP session opened.
2015-03-29 08:10:03,586 vps-13799.vps-ukraine.com.ua proftpd[24427] localhost (91.212.124.39[91.212.124.39]): FTP session opened.
2015-03-29 07:10:03,755 vps-13799.vps-ukraine.com.ua proftpd[24426] localhost (91.212.124.39[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:10:03,756 vps-13799.vps-ukraine.com.ua proftpd[24426] localhost (91.212.124.39[91.212.124.39]): USER user: Login successful.
2015-03-29 07:10:03,757 vps-13799.vps-ukraine.com.ua proftpd[24427] localhost (91.212.124.39[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:10:03,757 vps-13799.vps-ukraine.com.ua proftpd[24427] localhost (91.212.124.39[91.212.124.39]): USER user: Login successful.
2015-03-29 07:10:04,385 vps-13799.vps-ukraine.com.ua proftpd[24426] localhost (91.212.124.39[91.212.124.39]): ROOT PRIVS: unable to seteuid(): Operation not permitted
2015-03-29 07:10:04,385 vps-13799.vps-ukraine.com.ua proftpd[24426] localhost (91.212.124.39[91.212.124.39]): ROOT PRIVS: unable to setegid(): Operation not permitted
2015-03-29 07:10:04,386 vps-13799.vps-ukraine.com.ua proftpd[24426] localhost (91.212.124.39[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 07:10:04,386 vps-13799.vps-ukraine.com.ua proftpd[24426] localhost (91.212.124.39[91.212.124.39]): FTP session closed.
2015-03-29 07:10:06,817 vps-13799.vps-ukraine.com.ua proftpd[24427] localhost (91.212.124.39[91.212.124.39]): notice: user user: aborting transfer: Link to file server lost
2015-03-29 08:10:06,849 vps-13799.vps-ukraine.com.ua proftpd[24477] localhost (91.212.124.39[91.212.124.39]): FTP session opened.
2015-03-29 07:10:06,969 vps-13799.vps-ukraine.com.ua proftpd[24477] localhost (91.212.124.39[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:10:06,969 vps-13799.vps-ukraine.com.ua proftpd[24477] localhost (91.212.124.39[91.212.124.39]): USER user: Login successful.
2015-03-29 08:10:43,619 vps-13799.vps-ukraine.com.ua proftpd[24538] localhost (91.212.124.39[91.212.124.39]): FTP session opened.
2015-03-29 08:10:43,637 vps-13799.vps-ukraine.com.ua proftpd[24539] localhost (91.212.124.39[91.212.124.39]): FTP session opened.
2015-03-29 07:10:43,757 vps-13799.vps-ukraine.com.ua proftpd[24538] localhost (91.212.124.39[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:10:43,757 vps-13799.vps-ukraine.com.ua proftpd[24538] localhost (91.212.124.39[91.212.124.39]): USER user: Login successful.
2015-03-29 07:10:43,773 vps-13799.vps-ukraine.com.ua proftpd[24539] localhost (91.212.124.39[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:10:43,774 vps-13799.vps-ukraine.com.ua proftpd[24539] localhost (91.212.124.39[91.212.124.39]): USER user: Login successful.
2015-03-29 07:11:43,107 vps-13799.vps-ukraine.com.ua proftpd[24538] localhost (91.212.124.39[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 07:11:43,109 vps-13799.vps-ukraine.com.ua proftpd[24538] localhost (91.212.124.39[91.212.124.39]): FTP session closed.
2015-03-29 08:11:45,256 vps-13799.vps-ukraine.com.ua proftpd[24668] localhost (91.212.124.39[91.212.124.39]): FTP session opened.
2015-03-29 07:11:45,447 vps-13799.vps-ukraine.com.ua proftpd[24668] localhost (91.212.124.39[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:11:45,447 vps-13799.vps-ukraine.com.ua proftpd[24668] localhost (91.212.124.39[91.212.124.39]): USER user: Login successful.
2015-03-29 07:11:45,497 vps-13799.vps-ukraine.com.ua proftpd[24539] localhost (91.212.124.39[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 07:11:45,497 vps-13799.vps-ukraine.com.ua proftpd[24539] localhost (91.212.124.39[91.212.124.39]): FTP session closed.
2015-03-29 08:11:45,700 vps-13799.vps-ukraine.com.ua proftpd[24669] localhost (91.212.124.39[91.212.124.39]): FTP session opened.
2015-03-29 07:11:45,806 vps-13799.vps-ukraine.com.ua proftpd[24669] localhost (91.212.124.39[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:11:45,806 vps-13799.vps-ukraine.com.ua proftpd[24669] localhost (91.212.124.39[91.212.124.39]): USER user: Login successful.
2015-03-29 07:11:53,967 vps-13799.vps-ukraine.com.ua proftpd[24669] localhost (91.212.124.39[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 07:11:53,967 vps-13799.vps-ukraine.com.ua proftpd[24669] localhost (91.212.124.39[91.212.124.39]): FTP session closed.
2015-03-29 08:11:57,248 vps-13799.vps-ukraine.com.ua proftpd[24772] localhost (91.212.124.39[91.212.124.39]): FTP session opened.
2015-03-29 07:11:57,392 vps-13799.vps-ukraine.com.ua proftpd[24772] localhost (91.212.124.39[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:11:57,392 vps-13799.vps-ukraine.com.ua proftpd[24772] localhost (91.212.124.39[91.212.124.39]): USER user: Login successful.
2015-03-29 07:11:57,609 vps-13799.vps-ukraine.com.ua proftpd[24668] localhost (91.212.124.39[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 07:11:57,609 vps-13799.vps-ukraine.com.ua proftpd[24668] localhost (91.212.124.39[91.212.124.39]): FTP session closed.
2015-03-29 08:11:57,812 vps-13799.vps-ukraine.com.ua proftpd[24773] localhost (91.212.124.39[91.212.124.39]): FTP session opened.
2015-03-29 07:11:57,947 vps-13799.vps-ukraine.com.ua proftpd[24773] localhost (91.212.124.39[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:11:57,947 vps-13799.vps-ukraine.com.ua proftpd[24773] localhost (91.212.124.39[91.212.124.39]): USER user: Login successful.
2015-03-29 07:12:23,539 vps-13799.vps-ukraine.com.ua proftpd[24773] localhost (91.212.124.39[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 07:12:23,539 vps-13799.vps-ukraine.com.ua proftpd[24773] localhost (91.212.124.39[91.212.124.39]): FTP session closed.
2015-03-29 08:12:25,850 vps-13799.vps-ukraine.com.ua proftpd[24837] localhost (91.212.124.39[91.212.124.39]): FTP session opened.
2015-03-29 07:12:26,003 vps-13799.vps-ukraine.com.ua proftpd[24837] localhost (91.212.124.39[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:12:26,004 vps-13799.vps-ukraine.com.ua proftpd[24837] localhost (91.212.124.39[91.212.124.39]): USER user: Login successful.
2015-03-29 07:13:05,612 vps-13799.vps-ukraine.com.ua proftpd[24772] localhost (91.212.124.39[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 07:13:05,612 vps-13799.vps-ukraine.com.ua proftpd[24772] localhost (91.212.124.39[91.212.124.39]): FTP session closed.
2015-03-29 08:13:07,431 vps-13799.vps-ukraine.com.ua proftpd[24905] localhost (91.212.124.39[91.212.124.39]): FTP session opened.
2015-03-29 07:13:07,547 vps-13799.vps-ukraine.com.ua proftpd[24905] localhost (91.212.124.39[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:13:07,548 vps-13799.vps-ukraine.com.ua proftpd[24905] localhost (91.212.124.39[91.212.124.39]): USER user: Login successful.
2015-03-29 07:16:59,043 vps-13799.vps-ukraine.com.ua proftpd[24036] localhost (91.212.124.39[91.212.124.39]): FTP no transfer timeout, disconnected
2015-03-29 07:16:59,050 vps-13799.vps-ukraine.com.ua proftpd[24036] localhost (91.212.124.39[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 07:16:59,052 vps-13799.vps-ukraine.com.ua proftpd[24036] localhost (91.212.124.39[91.212.124.39]): FTP session closed.
2015-03-29 07:19:17,285 vps-13799.vps-ukraine.com.ua proftpd[24037] localhost (91.212.124.39[91.212.124.39]): Passive data transfer failed, possibly due to network issues
2015-03-29 07:19:17,286 vps-13799.vps-ukraine.com.ua proftpd[24037] localhost (91.212.124.39[91.212.124.39]): Check your PassivePorts and MasqueradeAddress settings,
2015-03-29 07:19:17,286 vps-13799.vps-ukraine.com.ua proftpd[24037] localhost (91.212.124.39[91.212.124.39]): and any router, NAT, and firewall rules in the network path.
2015-03-29 07:19:17,286 vps-13799.vps-ukraine.com.ua proftpd[24037] localhost (91.212.124.39[91.212.124.39]): FTP no transfer timeout, disconnected
2015-03-29 07:19:17,292 vps-13799.vps-ukraine.com.ua proftpd[24037] localhost (91.212.124.39[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 07:19:17,293 vps-13799.vps-ukraine.com.ua proftpd[24037] localhost (91.212.124.39[91.212.124.39]): FTP session closed.
2015-03-29 07:19:18,151 vps-13799.vps-ukraine.com.ua proftpd[24355] localhost (91.212.124.39[91.212.124.39]): Data transfer stall timeout: 600 seconds
2015-03-29 07:19:18,154 vps-13799.vps-ukraine.com.ua proftpd[24355] localhost (91.212.124.39[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 07:19:18,154 vps-13799.vps-ukraine.com.ua proftpd[24355] localhost (91.212.124.39[91.212.124.39]): FTP session closed.
2015-03-29 07:20:23,610 vps-13799.vps-ukraine.com.ua proftpd[24477] localhost (91.212.124.39[91.212.124.39]): Data transfer stall timeout: 600 seconds
2015-03-29 07:20:23,613 vps-13799.vps-ukraine.com.ua proftpd[24477] localhost (91.212.124.39[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 07:20:23,615 vps-13799.vps-ukraine.com.ua proftpd[24477] localhost (91.212.124.39[91.212.124.39]): notice: user user: aborting transfer: Data connection closed
2015-03-29 07:20:23,616 vps-13799.vps-ukraine.com.ua proftpd[24477] localhost (91.212.124.39[91.212.124.39]): FTP session closed.
2015-03-29 07:20:23,678 vps-13799.vps-ukraine.com.ua proftpd[24427] localhost (91.212.124.39[91.212.124.39]): Data transfer stall timeout: 600 seconds
2015-03-29 07:20:23,683 vps-13799.vps-ukraine.com.ua proftpd[24427] localhost (91.212.124.39[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 07:20:23,684 vps-13799.vps-ukraine.com.ua proftpd[24427] localhost (91.212.124.39[91.212.124.39]): notice: user user: aborting transfer: Data connection closed
2015-03-29 07:20:23,684 vps-13799.vps-ukraine.com.ua proftpd[24427] localhost (91.212.124.39[91.212.124.39]): FTP session closed.
2015-03-29 08:43:40,866 vps-13799.vps-ukraine.com.ua proftpd[26257] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): FTP session opened.
2015-03-29 08:43:40,866 vps-13799.vps-ukraine.com.ua proftpd[26258] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): FTP session opened.
2015-03-29 07:43:41,073 vps-13799.vps-ukraine.com.ua proftpd[26258] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:43:41,073 vps-13799.vps-ukraine.com.ua proftpd[26257] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:43:41,073 vps-13799.vps-ukraine.com.ua proftpd[26258] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): USER user: Login successful.
2015-03-29 07:43:41,073 vps-13799.vps-ukraine.com.ua proftpd[26257] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): USER user: Login successful.
2015-03-29 07:52:04,608 vps-13799.vps-ukraine.com.ua proftpd[24837] localhost (91.212.124.39[91.212.124.39]): Data transfer stall timeout: 600 seconds
2015-03-29 07:52:04,617 vps-13799.vps-ukraine.com.ua proftpd[24837] localhost (91.212.124.39[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 07:52:04,619 vps-13799.vps-ukraine.com.ua proftpd[24837] localhost (91.212.124.39[91.212.124.39]): FTP session closed.
2015-03-29 07:52:04,631 vps-13799.vps-ukraine.com.ua proftpd[24905] localhost (91.212.124.39[91.212.124.39]): Data transfer stall timeout: 600 seconds
2015-03-29 07:52:04,635 vps-13799.vps-ukraine.com.ua proftpd[24905] localhost (91.212.124.39[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 07:52:04,635 vps-13799.vps-ukraine.com.ua proftpd[24905] localhost (91.212.124.39[91.212.124.39]): FTP session closed.
2015-03-29 08:55:55,202 vps-13799.vps-ukraine.com.ua proftpd[26658] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): FTP session opened.
2015-03-29 07:55:55,608 vps-13799.vps-ukraine.com.ua proftpd[26658] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): Preparing to chroot to directory '/home/user'
2015-03-29 07:55:55,609 vps-13799.vps-ukraine.com.ua proftpd[26658] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): USER user: Login successful.
2015-03-29 08:00:08,515 vps-13799.vps-ukraine.com.ua proftpd[26658] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): ROOT PRIVS: unable to seteuid(): Operation not permitted
2015-03-29 08:00:08,515 vps-13799.vps-ukraine.com.ua proftpd[26257] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): ROOT PRIVS: unable to seteuid(): Operation not permitted
2015-03-29 08:00:08,515 vps-13799.vps-ukraine.com.ua proftpd[26257] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): ROOT PRIVS: unable to setegid(): Operation not permitted
2015-03-29 08:00:08,515 vps-13799.vps-ukraine.com.ua proftpd[26658] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): ROOT PRIVS: unable to setegid(): Operation not permitted
2015-03-29 08:00:08,522 vps-13799.vps-ukraine.com.ua proftpd[26257] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 08:00:08,522 vps-13799.vps-ukraine.com.ua proftpd[26258] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): ROOT PRIVS: unable to seteuid(): Operation not permitted
2015-03-29 08:00:08,522 vps-13799.vps-ukraine.com.ua proftpd[26258] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): ROOT PRIVS: unable to setegid(): Operation not permitted
2015-03-29 08:00:08,522 vps-13799.vps-ukraine.com.ua proftpd[26257] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): FTP session closed.
2015-03-29 08:00:08,523 vps-13799.vps-ukraine.com.ua proftpd[26658] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 08:00:08,523 vps-13799.vps-ukraine.com.ua proftpd[26658] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): FTP session closed.
2015-03-29 08:00:08,525 vps-13799.vps-ukraine.com.ua proftpd[26258] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2015-03-29 08:00:08,525 vps-13799.vps-ukraine.com.ua proftpd[26258] localhost (109-162-17-52-klsh.broadband.kyivstar.net[91.212.124.39]): FTP session closed.
29.03.2015, 16:35
Ответить
NO USERPIC

tehnology-online

Line 288719: Mar 29 20:45:13 vps-13799 kernel: [158917.361891] Out of memory: Kill process 7590 (apache2) score 8 or sacrifice child
Line 288720: Mar 29 20:45:13 vps-13799 kernel: [158917.364274] Killed process 7620 (php5-cgi) total-vm:285416kB, anon-rss:940kB, file-rss:4kB
Line 288733: Mar 29 20:45:15 vps-13799 kernel: [158919.557499] [<c1125c87>] oom_kill_process+0x167/0x2b0
Line 288799: Mar 29 20:45:15 vps-13799 kernel: [158919.557645] [22115] 0 22115 2742 17 9 347 0 proftpd
Line 288809: Mar 29 20:45:15 vps-13799 kernel: [158919.557663] [ 7469] 1004 7469 3179 1 10 464 0 proftpd


Вот такие записи еще нашел в syslog
30.03.2015, 04:36
Ответить
NO USERPIC

rgbeast

Скорее всего на сервере не хватает оперативной памяти и система убивает proftpd. Чтобы исправить ситуацию, нужно докупить память.
30.03.2015, 12:53
Ответить
NO USERPIC

tehnology-online

А как это с proftpd связано? У меня и раньше ее бывало не хватало, но фтп работало, если сервер целиком не падал.

Даже если дело и в памяти, можно же как-то сделать, чтобы он proftpd или 21 порт не блокировал.
30.03.2015, 14:03
Ответить
NO USERPIC

rgbeast

Если памяти не хватает, то система убивает все процессы подряд. Контроллировать это практически невозможно.
30.03.2015, 14:25
Ответить
NO USERPIC

tehnology-online

Только у меня и сайты работают, т.е. и nginx и apache и mysql и ssh. А отключается почему-то именно proftpd. Причем не хаотично, а именно profptd или 21 порт.
30.03.2015, 15:06
Ответить
Добавить комментарий
Отображение комментариев: Древовидное | Плоское
© 2008—2024 webew.ru, связаться: x собака webew.ru
Сайт использует Flede и соответствует стандартам WAI-WCAG 1.0 на уровне A.
Rambler's Top100

Реклама: