PDA

View Full Version : Web-FTP hanging


dbrooke
25th October 2007, 03:03
Hello,

It appears proftpd is running (when I do a netstat) but I can't connect to it with ISPConfig's "Web-FTP" and running some debugging reveals some sort of error:

root@ubuntu:/home/donovan# proftpd -t
Checking syntax of configuration file
- setting default address to 127.0.0.1
Syntax check complete.


root@ubuntu:/home/donovan# proftpd -n -c /etc/proftpd.conf
- setting default address to 127.0.0.1
localhost.localdomain - Failed binding to 0.0.0.0, port 21: Address already in use
localhost.localdomain - Check the ServerType directive to ensure you are configured correctly.


root@ubuntu:/home/donovan# proftpd -d 5
- mod_ctrls/0.9.4: binding ctrls socket to '/var/run/proftpd/proftpd.sock'
- parsing '/etc/proftpd/proftpd.conf' configuration
- parsing '/etc/proftpd/modules.conf' configuration
- mod_tls/2.1.1: using OpenSSL 0.9.8e 23 Feb 2007
- disabling runtime support for IPv6 connections
- DenyFilter: compiling deny regex '\*.*/'
- <IfModule>: using 'mod_tls.c' section at line 90
- <IfModule>: skipping 'mod_quota.c' section at line 94
- <IfModule>: skipping 'mod_ratio.c' section at line 98
- <IfModule>: using 'mod_delay.c' section at line 106
- <IfModule>: using 'mod_ctrls.c' section at line 110
- mod_ctrls/0.9.4: closing ctrls socket '/var/run/proftpd/proftpd.sock' (3)
- <IfModule>: using 'mod_ctrls_admin.c' section at line 118
- parsing '/etc/proftpd_ispconfig.conf' configuration
- setting default address to 127.0.0.1
localhost.localdomain -
localhost.localdomain - Config for Debian:
localhost.localdomain - DeferWelcome
localhost.localdomain - DefaultServer
localhost.localdomain - ShowSymlinks
localhost.localdomain - TimeoutNoTransfer
localhost.localdomain - TimeoutStalled
localhost.localdomain - TimeoutIdle
localhost.localdomain - DisplayLogin
localhost.localdomain - DisplayFirstChdir
localhost.localdomain - ListOptions
localhost.localdomain - DenyFilter
localhost.localdomain - UserID
localhost.localdomain - UserName
localhost.localdomain - GroupID
localhost.localdomain - GroupName
localhost.localdomain - Umask
localhost.localdomain - DirUmask
localhost.localdomain - AllowOverwrite
localhost.localdomain - TransferLog
localhost.localdomain - TLSEngine
localhost.localdomain - DelayEngine
localhost.localdomain - DefaultRoot
localhost.localdomain - IdentLookups
localhost.localdomain - ServerIdent
localhost.localdomain -
localhost.localdomain - Config for Debian:
localhost.localdomain - DefaultRoot
localhost.localdomain - AllowOverwrite
localhost.localdomain - Umask
localhost.localdomain - mod_ctrls/0.9.4: binding ctrls socket to '/var/run/proftpd/proftpd.sock'


root@ubuntu:/home/donovan# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:mysql *:* LISTEN 4156/mysqld
tcp 0 0 *:81 *:* LISTEN 17368/ispconfig_htt
tcp 0 0 *:ftp *:* LISTEN 19043/proftpd: (acc [snip]

Thanks for any help on this!

Donovan

till
25th October 2007, 11:30
Please post the content of the /etc/hosts file and the proftpd.conf file, comments stripped.

dbrooke
25th October 2007, 18:07
/etc/hosts:
--------------------------------------------

127.0.0.1 localhost.localdomain localhost ubuntu.elatia.net
127.0.1.1 ubuntu.elatia.net ubuntu
10.0.1.200 ubuntu.elatia.net ubuntu

::1 ip6-localhost ip6-loopback ubuntu.elatia.net
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
--------------------------------------------


proftpd.conf
--------------------------------------------

UseIPv6 off

ServerName "Debian"
ServerType standalone
DeferWelcome off

MultilineRFC2228 on
DefaultServer on
ShowSymlinks on

TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

--------------------------------------------


Well, I see some logical changes I should make on both those suggestions... however, since you took the time to reply... these are the exact files and I would sure appreciate your comments on what to change!

I am thinking:
/etc/hosts/
Get rid of:
'127.0.1.1 ubuntu.elatia.net ubuntu'

/proftpd.conf
Change:
UseIPv6 on
ServerName "UbuntuServ"

(not sure on ServerName... "UbuntuServ" is the name of my server...
"ubuntu" is the host name... not sure which to use)

Thanks for your comments!

Donovan

dbrooke
25th October 2007, 18:49
O.K., this morning I realized that I could now connect to "Web-FTP" (ISPConfig). I think it was a simple mistake of not knowing how to work ISPConfig... as one has to set up a site to manage first.

Donovan (off to RTFM)

erebus
26th October 2007, 02:31
127.0.0.1 localhost.localdomain localhost ubuntu.elatia.net
127.0.1.1 ubuntu.elatia.net ubuntu
10.0.1.200 ubuntu.elatia.net ubuntu

Also I don't find wise that you use the same hostname (ubuntu.elatia.net) in 3 different places. The following setup would be sufficient and much clearer:

127.0.0.1 localhost.localdomain localhost
10.0.1.200 ubuntu.elatia.net ubuntu