ispCP - Board - Support
[SOLVED] proftpd is not even giving a welcome message - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: [SOLVED] proftpd is not even giving a welcome message (/thread-2390.html)

Pages: 1 2


[SOLVED] proftpd is not even giving a welcome message - Meatwad - 02-11-2008 02:11 AM

hi,

somehow i got a problem with proftpd (using ispcp 1.0 rc3, updated from vhcs 2.4.7.1)
when i connect to the proftpd it just disconects me right away. this the output my ftp-client gives me:
Quote:Status: Auflösen der IP-Adresse für xxxxx.de
Status: Verbinde mit xyz.xyz.xyz.xyz:21...
Status: Verbindung hergestellt, warte auf Willkommensnachricht...
Fehler: Herstellen der Verbindung zum Server fehlgeschlagen

translation: its trying to connect and waits for the welcome message. while waiting the connection is resetted.

here some log while connecting (from proftpd):
Quote:XXXXX.de - ROOT PRIVS at main.c:1185
XXXXX.de - RELINQUISH PRIVS at main.c:1189
XXXXX.de - no matching vhost found for xyz.xyz.xyz.xyz#21, using DefaultServer 'XXXXX.de'
XXXXX.de (89.14.157.189[89.14.157.189]) - ROOT PRIVS at main.c:1034
XXXXX.de (89.14.157.189[89.14.157.189]) - SETUP PRIVS at main.c:1039
XXXXX.de (89.14.157.189[89.14.157.189]) - FTP session requested from unknown class
XXXXX.de (89.14.157.189[89.14.157.189]) - performing module session initializations
XXXXX.de (89.14.157.189[89.14.157.189]) - ROOT PRIVS at mod_quotatab_sql.c:721
XXXXX.de (89.14.157.189[89.14.157.189]) - RELINQUISH PRIVS at mod_quotatab_sql.c:726
XXXXX.de (89.14.157.189[89.14.157.189]) - ROOT PRIVS at mod_quotatab.c:2329
XXXXX.de (89.14.157.189[89.14.157.189]) - RELINQUISH PRIVS at mod_quotatab.c:2336
XXXXX.de (89.14.157.189[89.14.157.189]) - ROOT PRIVS at mod_quotatab.c:2345
XXXXX.de (89.14.157.189[89.14.157.189]) - RELINQUISH PRIVS at mod_quotatab.c:2352
XXXXX.de - FS: using system lstat()
XXXXX.de - FS: using system lstat()
XXXXX.de (89.14.157.189[89.14.157.189]) - dispatching event 'core.exit' to core
XXXXX.de (89.14.157.189[89.14.157.189]) - dispatching event 'core.exit' to mod_delay
XXXXX.de (89.14.157.189[89.14.157.189]) - dispatching event 'core.exit' to mod_ctrls
XXXXX.de (89.14.157.189[89.14.157.189]) - dispatching event 'core.exit' to mod_tls
XXXXX.de (89.14.157.189[89.14.157.189]) - dispatching event 'core.exit' to mod_quotatab
XXXXX.de (89.14.157.189[89.14.157.189]) - FTP session closed.

there is no "login incorrect" or so...this is whats making me nervous.

thanks,
} Meatwad[/u]


RE: proftpd is not even giving a welcome message - joximu - 02-11-2008 02:17 AM

Hi Meatwad
maybe you tell us more about your system.
ok, vhcs upd to ispcp.
What OS?

when you start proftpd like this?
proftpd -n -d 5

(first close the proftpd daemon of course)

/J


RE: proftpd is not even giving a welcome message - Meatwad - 02-11-2008 02:25 AM

hello joximu,


i've startet proftp like that. well... actually it was with -d 10 ...
well, here is the output untill it's started:
Quote:vps2:~# proftpd -n -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.8c 05 Sep 2006
- DenyFilter: compiling deny regex '\*.*/'
- <Directory /*>: deferring resolution of path
- PathDenyFilter: compiling deny regex '.quota$'
- <IfModule>: using 'mod_delay.c' section at line 83
- disabling runtime support for IPv6 connections
xxxxxx.de -
xxxxxx.de - Config for xxxxxx.de:
xxxxxx.de - Limit
xxxxxx.de - IgnoreHidden
xxxxxx.de - /*
xxxxxx.de - Umask
xxxxxx.de - DirUmask
xxxxxx.de - AllowOverwrite
xxxxxx.de - HideNoAccess
xxxxxx.de - ShowSymlinks
xxxxxx.de - AllowStoreRestart
xxxxxx.de - AllowForeignAddress
xxxxxx.de - DisplayLogin
xxxxxx.de - DisplayFirstChdir
xxxxxx.de - DenyFilter
xxxxxx.de - SQLAuthTypes
xxxxxx.de - SQLAuthenticate
xxxxxx.de - SQLConnectInfo
xxxxxx.de - SQLMinID
xxxxxx.de - SQLNamedQuery_get-quota-limit
xxxxxx.de - SQLNamedQuery_get-quota-tally
xxxxxx.de - SQLNamedQuery_update-quota-tally
xxxxxx.de - SQLNamedQuery_insert-quota-tally
xxxxxx.de - RootLogin
xxxxxx.de - TransferLog
xxxxxx.de - PathDenyFilter
xxxxxx.de - DeferWelcome
xxxxxx.de - ShowSymlinks
xxxxxx.de - DefaultServer
xxxxxx.de - ShowSymlinks
xxxxxx.de - AllowOverwrite
xxxxxx.de - IdentLookups
xxxxxx.de - AllowStoreRestart
xxxxxx.de - AllowForeignAddress
xxxxxx.de - TimeoutNoTransfer
xxxxxx.de - TimeoutStalled
xxxxxx.de - TimeoutIdle
xxxxxx.de - DisplayLogin
xxxxxx.de - DisplayFirstChdir
xxxxxx.de - DenyFilter
xxxxxx.de - DefaultRoot
xxxxxx.de - UserID
xxxxxx.de - UserName
xxxxxx.de - GroupID
xxxxxx.de - GroupName
xxxxxx.de - DelayEngine
xxxxxx.de - SQLBackend
xxxxxx.de - SQLAuthTypes
xxxxxx.de - SQLAuthenticate
xxxxxx.de - SQLConnectInfo
xxxxxx.de - SQLUserTable
xxxxxx.de - SQLUsernameField
xxxxxx.de - SQLPasswordField
xxxxxx.de - SQLUidField
xxxxxx.de - SQLGidField
xxxxxx.de - SQLHomedirField
xxxxxx.de - SQLShellField
xxxxxx.de - SQLGroupTable
xxxxxx.de - SQLGroupnameField
xxxxxx.de - SQLGroupGIDField
xxxxxx.de - SQLGroupMembersField
xxxxxx.de - SQLMinID
xxxxxx.de - QuotaEngine
xxxxxx.de - QuotaShowQuotas
xxxxxx.de - QuotaDisplayUnits
xxxxxx.de - SQLNamedQuery_get-quota-limit
xxxxxx.de - SQLNamedQuery_get-quota-tally
xxxxxx.de - SQLNamedQuery_update-quota-tally
xxxxxx.de - SQLNamedQuery_insert-quota-tally
xxxxxx.de - QuotaLock
xxxxxx.de - QuotaLimitTable
xxxxxx.de - QuotaTallyTable
xxxxxx.de - RootLogin
xxxxxx.de - TransferLog
xxxxxx.de - ExtendedLog
xxxxxx.de - PathDenyFilter
xxxxxx.de - mod_ctrls/0.9.4: binding ctrls socket to '/var/run/proftpd/proftpd.sock'
xxxxxx.de - ProFTPD 1.3.0 (stable) (built mar gen 2 10:57:47 CET 2007) standalone mode STARTUP

i've running it on a vserver (xen-based). OS is debian etch


RE: proftpd is not even giving a welcome message - BeNe - 02-11-2008 02:28 AM

Try now to connect with a Client and let the Server be in Debugmode.
So we can see what happen.

Greez BeNe


RE: proftpd is not even giving a welcome message - Meatwad - 02-11-2008 02:36 AM

see my first post, the second quite. this was with debug 10.


RE: proftpd is not even giving a welcome message - FraggDieb - 02-11-2008 02:39 AM

Put the "#" befor "SQLBackend" away....

I hade the same error, now he say me "incorrect login"


RE: proftpd is not even giving a welcome message - BeNe - 02-11-2008 02:42 AM

Meatwad Wrote:see my first post, the second quite. this was with debug 10.
Sorry!
Code:
FTP session requested from unknown class
Code:
ROOT PRIVS at mod_quotatab_sql.c:721
Looks like there is no SQL Module loaded.

Quote:Put the "#" befor "SQLBackend" away....
If there is a "#" infront of it - do as FraggDieb said.

Greez BeNe


RE: proftpd is not even giving a welcome message - Meatwad - 02-11-2008 02:48 AM

@FraggDieb: there was no # infront of SQLBackend.
@Bene: np;-)

here the modules.conf (it is included by proftpd.conf)
Quote:ModulePath /usr/lib/proftpd

# Allow only user root to load and unload modules, but allow everyone
# to see which modules have been loaded

ModuleControlsACLs insmod,rmmod allow user root
ModuleControlsACLs lsmod allow user *

#LoadModule mod_ctrls_admin.c
LoadModule mod_tls.c
LoadModule mod_sql.c
LoadModule mod_ldap.c
LoadModule mod_sql_mysql.c
#LoadModule mod_sql_postgres.c
LoadModule mod_quotatab.c
LoadModule mod_quotatab_file.c
#LoadModule mod_quotatab_ldap.c
LoadModule mod_quotatab_sql.c
LoadModule mod_radius.c
LoadModule mod_wrap.c
LoadModule mod_rewrite.c

# keep this module the last one
LoadModule mod_ifsession.c

seems like sql is installed. in addition it is mentioned in the startlog.

i've tryed a lot and nothing is working out. the weired thing is, that there isn't even a welcomemsg sent.


RE: proftpd is not even giving a welcome message - FraggDieb - 02-11-2008 02:52 AM

my one:

Quote:LoadModule mod_ctrls_admin.c
LoadModule mod_tls.c
LoadModule mod_sql.c
LoadModule mod_ldap.c
LoadModule mod_sql_mysql.c
LoadModule mod_sql_postgres.c
LoadModule mod_quotatab.c
LoadModule mod_quotatab_file.c
LoadModule mod_quotatab_ldap.c
LoadModule mod_quotatab_sql.c
LoadModule mod_radius.c
LoadModule mod_wrap.c
LoadModule mod_rewrite.c

# keep this module the last one
LoadModule mod_ifsession.c



RE: proftpd is not even giving a welcome message - BeNe - 02-11-2008 02:55 AM

Are there any special chars in the proftpd.conf for the MySQL Access ?
Like " " " ore something. There was a Problem if i remind right.

Greez BeNe