Author Topic: 421 Service not available, remote server has closed connection  (Read 23399 times)

Offline lightpace

  • New user
  • *
  • Posts: 2
    • View Profile
421 Service not available, remote server has closed connection
« on: September 17, 2007, 07:36:35 pm »
i am getting following error message while trying to connect to server
Code: [Select]
[root@anaconda smf]# ftp localhost
Connected to anaconda.
220 FTP Server ready.
500 AUTH not understood
500 AUTH not understood
KERBEROS_V4 rejected as an authentication type
Name (localhost:root): admin
[b]331 Password required for admin.
Password:
530 Login incorrect.
Login failed.
421 Service not available, remote server has closed connection[/b]


Sep 17 15:27:00 anaconda proftpd[5203]: anaconda (::ffff:127.0.0.1[::ffff:127.0.0.1]) - FTP session opened.
Sep 17 15:27:12 anaconda kernel: audit(1190057232.150:72): avc:  denied  { search } for  pid=5203 comm="proftpd" scontext=user_u:system_r:ftpd_t:s0 tcontext=user_u:system_r:unconfined_t:s0 tclass=key
Sep 17 15:27:12 anaconda kernel: audit(1190057232.210:73): avc:  denied  { getattr } for  pid=5203 comm="proftpd" name="/" dev=hdb1 ino=2 scontext=user_u:system_r:ftpd_t:s0 tcontext=system_u:object_r:home_root_t:s0 tclass=dir
Sep 17 15:27:12 anaconda kernel: audit(1190057232.278:74): avc:  denied  { append } for  pid=5203 comm="proftpd" name="xferlog" dev=hda1 ino=1205062 scontext=user_u:system_r:ftpd_t:s0 tcontext=user_u:object_r:var_log_t:s0 tclass=file
Sep 17 15:27:12 anaconda kernel: audit(1190057232.278:75): avc:  denied  { getattr } for  pid=5203 comm="proftpd" name="/" dev=hdb1 ino=2 scontext=user_u:system_r:ftpd_t:s0 tcontext=system_u:object_r:home_root_t:s0 tclass=dir

Offline OllyC

  • Supporter
  • ***
  • Posts: 244
    • View Profile
Re: 421 Service not available, remote server has closed connection
« Reply #1 on: September 17, 2007, 08:29:40 pm »
can you run the server in debug mode and see what you get -
http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-Debugging.html

Offline lightpace

  • New user
  • *
  • Posts: 2
    • View Profile
Re: 421 Service not available, remote server has closed connection
« Reply #2 on: September 17, 2007, 08:42:48 pm »
this is weird

i started proftpd with

proftpd -nd6  2>&1 >& /var/logs/proftpd.log &

and now its working fine.

Offline OllyC

  • Supporter
  • ***
  • Posts: 244
    • View Profile
Re: 421 Service not available, remote server has closed connection
« Reply #3 on: September 17, 2007, 09:15:40 pm »
Possibly some change elsewhere fixed the problem?  e.g. a missing local hostname in /etc/hosts can cause a problem.

Does the server run okay a service?
if not try turning on debugging there - use the directives DebugLevel and SystemLog


 

sighted planning