0

i've done some updates on my server , after which ftp stopped working !

proftpd is running and listening on port 21 , port 21 is open in the firewall !

but still all i get from filezilla is :

Status: Resolving address of xxx
Status: Connecting to xxx.xx.xx.xx:21...
Status: Connection established, waiting for welcome message...
Error:  Could not connect to server
3
  • How have you verified that proftpd is "running and listening"? If you try this on the system running proftpd, what happens? – larsks Jan 26 '11 at 19:41
  • If your proftpd is running what does the proftpd.log file ( possibly located at /var/log/proftpd/proftpd.log) say ? – user9517 Jan 26 '11 at 19:44
  • hmmm , failed binding to :: , port 21: address already in use !!! – Rami Dabain Jan 26 '11 at 19:49
8

To check if proftpd is running

ps -ef | grep proftpd
proftpd  15530     1  0 21:26 ?        00:00:00 proftpd: (accepting connections)
iain     15731 13855  0 21:49 pts/1    00:00:00 grep proftpd

To find out what is bound to port 21

sudo lsof -i :21
COMMAND   PID    USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
proftpd 15530 proftpd    1u  IPv6 1641458      0t0  TCP *:ftp (LISTEN)

The output you get from the above should help you narrow things down a bit.

Edit

The problem you are seeing is likely because you are starting it in standalone mode but inetd is still configured to manage the service. You need to disable this inetd behaviour . Have a look at this page on the proftpd website - point 3 is relevant.

3
  • ok , i got 'inetd' running on port 21 !!! – Rami Dabain Jan 27 '11 at 9:42
  • @Ronan Dejhero: See my edit for a possible explanation / solution – user9517 Jan 27 '11 at 9:54
  • I've commented out the line starting with 'ftp' in /etc/inet.d , then i killed all inetd to force it to restart and read the new config , restarted proftpd and am happy now :) could update some features on my ut video converting site :) thanks guys – Rami Dabain Jan 27 '11 at 10:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.