Current time: 12-25-2024, 06:35 PM Hello There, Guest! (LoginRegister)


Post Reply 
FTP issues.
Author Message
Ducky Offline


Posts: 1
Joined: Aug 2008
Reputation: 0
Post: #1
FTP issues.
An error has occured

Unable to connect to FTP server localhost on port 21.

Are you sure this is the address of the FTP server? This is often different from that of the HTTP (web) server. Please contact your ISP helpdesk or system administrator for help.

Yet in services status it says ftp is fine.
08-12-2008 01:44 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #2
RE: FTP issues.
Ducky Wrote:An error has occured

Unable to connect to FTP server localhost on port 21.

Are you sure this is the address of the FTP server? This is often different from that of the HTTP (web) server. Please contact your ISP helpdesk or system administrator for help.

Yet in services status it says ftp is fine.
Try to stop proftpd: /etc/init.d/proftpd stop
Check if any remaining proftpd process: ps aux | grep proftpd
If any kill them.
Restart: /etc/init.d/proftpd start.
If is not helping try: proftpd -n -d5 and put here the output
08-12-2008 01:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
JCannon Offline
Newbie
*

Posts: 5
Joined: Aug 2008
Reputation: 0
Post: #3
RE: FTP issues.
Ok I am not the same guy as before but since I have a similar problem if figured I would give it a shot. I did what you said and posted it below. I also checked the proftpd log file and it said the username didn't exist but it is correct. Also I have noticed that when i go to set up a FTP account when you click the choose directory it brings up the window with no data and it says "Can not open directory !
Please contact your administrator !" at the top? Also the File Manager from within the cpanel isn't working either.

Unbuntu Server "hardy" -- ISP-CP OMEGA RC6


root@grotrees:/var/log/proftpd#
/etc/init.d/proftpd stop
* Stopping ftp server proftpd [ OK ]
root@grotrees:/var/log/proftpd# ps aux | grep proftpd
root 32323 0.0 0.0 3004 768 pts/0 S+ 06:50 0:00 grep proftpd
root@grotrees:/var/log/proftpd# /etc/init.d/proftpd start
* Starting ftp server proftpd [ OK ]
root@grotrees:/var/log/proftpd# proftpd -n -d5
- mod_tls/2.1.2: using OpenSSL 0.9.8g 19 Oct 2007
- DenyFilter: compiling deny regex '\*.*/'
- <IfModule>: using 'mod_quotatab.c' section at line 92
- <IfModule>: skipping 'mod_ratio.c' section at line 96
- <IfModule>: using 'mod_delay.c' section at line 104
- <IfModule>: using 'mod_ctrls.c' section at line 108
- <IfModule>: using 'mod_ctrls_admin.c' section at line 116
grotrees.com -
grotrees.com - Config for Debian:
grotrees.com - DeferWelcome
grotrees.com - DefaultServer
grotrees.com - ShowSymlinks
grotrees.com - TimeoutNoTransfer
grotrees.com - TimeoutStalled
grotrees.com - TimeoutIdle
grotrees.com - DisplayLogin
grotrees.com - DisplayChdir
grotrees.com - ListOptions
grotrees.com - DenyFilter
grotrees.com - UserID
grotrees.com - UserName
grotrees.com - GroupID
grotrees.com - GroupName
grotrees.com - Umask
grotrees.com - DirUmask
grotrees.com - AllowOverwrite
grotrees.com - TransferLog
grotrees.com - QuotaEngine
grotrees.com - DelayEngine
grotrees.com - deleting existing scoreboard '/var/run/proftpd/proftpd.scoreboard'
grotrees.com - Failed binding to ::, port 21: Address already in use
grotrees.com - Check the ServerType directive to ensure you are configured correctly.
08-22-2008 01:03 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #4
RE: FTP issues.
If you want to debug (proftpd -n -d5) you must have proftpd stopped.
08-22-2008 03:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
DarkSide Offline
Junior Member
*

Posts: 35
Joined: Jan 2008
Reputation: 0
Post: #5
RE: FTP issues.
I am having the same problem as described above. What I have tried:

/etc/init.d/proftpd stop
ps aux | grep proftpd - No others running
proftpd -n -d5
/etc/init.d/proftpd start.


My output is as shown above and when chosing an alternative directory for FTP I see the same as already mentioned:

[Image: 88269752qk8.th.jpg]

I am now lost lol.

Edit - Fixed my error
(This post was last modified: 09-07-2008 01:48 AM by DarkSide.)
09-07-2008 12:19 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: FTP issues.
As sci2tech said:
Quote:If you want to debug (proftpd -n -d5) you must have proftpd stopped.
So please STOP Proftpd and the start the Debug.
Do not start proftpd before.

Greez BeNe
09-07-2008 12:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
DarkSide Offline
Junior Member
*

Posts: 35
Joined: Jan 2008
Reputation: 0
Post: #7
RE: FTP issues.
BeNe Wrote:As sci2tech said:
Quote:If you want to debug (proftpd -n -d5) you must have proftpd stopped.
So please STOP Proftpd and the start the Debug.
Do not start proftpd before.

Greez BeNe
I had. I saw the similarities in our outputs but not the differences heehee. Here is my output:

root@ubuntu:/home/darkside# proftpd -n -d5
- mod_tls/2.1.2: using OpenSSL 0.9.8g 19 Oct 2007
- DenyFilter: compiling deny regex '\*.*/'
- <IfModule>: using 'mod_quotatab.c' section at line 92
- <IfModule>: skipping 'mod_ratio.c' section at line 96
- <IfModule>: using 'mod_delay.c' section at line 104
- <IfModule>: using 'mod_ctrls.c' section at line 108
- <IfModule>: using 'mod_ctrls_admin.c' section at line 116
iamtesting.com -
iamtesting.com - Config for Debian:
iamtesting.com - DeferWelcome
iamtesting.com - DefaultServer
iamtesting.com - ShowSymlinks
iamtesting.com - TimeoutNoTransfer
iamtesting.com - TimeoutStalled
iamtesting.com - TimeoutIdle
iamtesting.com - DisplayLogin
iamtesting.com - DisplayChdir
iamtesting.com - ListOptions
iamtesting.com - DenyFilter
iamtesting.com - UserID
iamtesting.com - UserName
iamtesting.com - GroupID
iamtesting.com - GroupName
iamtesting.com - Umask
iamtesting.com - DirUmask
iamtesting.com - AllowOverwrite
iamtesting.com - TransferLog
iamtesting.com - QuotaEngine
iamtesting.com - DelayEngine
iamtesting.com - ProFTPD 1.3.1 (stable) (built Thu Feb 21 04:21:14 UTC 2008) standalone mode STARTUP
iamtesting.com - ProFTPD terminating (signal 2)
iamtesting.com - ProFTPD 1.3.1 standalone mode SHUTDOWN
iamtesting.com - deleting existing scoreboard '/var/run/proftpd/proftpd.scoreboard'
root@ubuntu:/home/darkside#
09-07-2008 01:53 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #8
RE: FTP issues.
Here is my output:
Code:
vServer:~# proftpd -n -d5
- 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 85
- <IfModule>: using 'mod_tls.c' section at line 121
vServer -
vServer - Config for vServer:
vServer - Limit
vServer -  IgnoreHidden
vServer - /*
vServer -  Umask
vServer -  DirUmask
vServer -  AllowOverwrite
vServer -  HideNoAccess
vServer -  ShowSymlinks
vServer -  AllowStoreRestart
vServer -  AllowForeignAddress
vServer -  DisplayLogin
vServer -  DisplayFirstChdir
vServer -  DenyFilter
vServer -  SQLAuthTypes
vServer -  SQLAuthenticate
vServer -  SQLConnectInfo
vServer -  SQLMinID
vServer -  SQLNamedQuery_get-quota-limit
vServer -  SQLNamedQuery_get-quota-tally
vServer -  SQLNamedQuery_update-quota-tally
vServer -  SQLNamedQuery_insert-quota-tally
vServer -  RootLogin
vServer -  TransferLog
vServer -  PathDenyFilter
vServer - DeferWelcome
vServer - ServerIdent
vServer - ShowSymlinks
vServer - DefaultServer
vServer - ShowSymlinks
vServer - AllowOverwrite
vServer - IdentLookups
vServer - AllowStoreRestart
vServer - AllowForeignAddress
vServer - TimeoutNoTransfer
vServer - TimeoutStalled
vServer - TimeoutIdle
vServer - DisplayLogin
vServer - DisplayFirstChdir
vServer - DenyFilter
vServer - DefaultRoot
vServer - PassivePorts
vServer - UserID
vServer - UserName
vServer - GroupID
vServer - GroupName
vServer - DelayEngine
vServer - SQLBackend
vServer - SQLAuthTypes
vServer - SQLAuthenticate
vServer - SQLConnectInfo
vServer - SQLUserTable
vServer - SQLUsernameField
vServer - SQLPasswordField
vServer - SQLUidField
vServer - SQLGidField
vServer - SQLHomedirField
vServer - SQLShellField
vServer - SQLGroupTable
vServer - SQLGroupnameField
vServer - SQLGroupGIDField
vServer - SQLGroupMembersField
vServer - SQLMinID
vServer - QuotaEngine
vServer - QuotaShowQuotas
vServer - QuotaDisplayUnits
vServer - SQLNamedQuery_get-quota-limit
vServer - SQLNamedQuery_get-quota-tally
vServer - SQLNamedQuery_update-quota-tally
vServer - SQLNamedQuery_insert-quota-tally
vServer - QuotaLock
vServer - QuotaLimitTable
vServer - QuotaTallyTable
vServer - TLSEngine
vServer - TLSLog
vServer - TLSOptions
vServer - TLSRSACertificateFile
vServer - TLSRSACertificateKeyFile
vServer - TLSVerifyClient
vServer - RootLogin
vServer - TransferLog
vServer - ExtendedLog
vServer - PathDenyFilter
vServer - mod_ctrls/0.9.4: binding ctrls socket to '/var/run/proftpd/proftpd.sock'
vServer - mod_tls/2.1.1: passphrase locked into memory
vServer - ProFTPD 1.3.0 (stable) (built Sat Jun 14 17:12:29 UTC 2008) standalone mode STARTUP
Could you please post your config?!
I can´t see a SQL_Module in your Debug and no proftpd.conf info.

Greez BeNe
09-07-2008 02:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
DarkSide Offline
Junior Member
*

Posts: 35
Joined: Jan 2008
Reputation: 0
Post: #9
RE: FTP issues.
BeNe Wrote:Could you please post your config?!
I can´t see a SQL_Module in your Debug and no proftpd.conf info.

Greez BeNe

Of course BeNe Smile

proftpd.conf Wrote:#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

# Includes DSO modules
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 on

ServerName "Debian"
ServerType standalone
DeferWelcome off

MultilineRFC2228 on
DefaultServer on
ShowSymlinks on

TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

DisplayLogin welcome.msg
DisplayChdir .message true
ListOptions "-l"

DenyFilter \*.*/

# Use this to jail all users in their homes
# DefaultRoot ~

# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
# RequireValidShell off

# Port 21 is the standard FTP port.
Port 21

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
# PassivePorts 49152 65534

# If your host was NATted, this option is useful in order to
# allow passive tranfers to work. You have to use your public
# address and opening the passive ports used on your firewall as well.
# MasqueradeAddress 1.2.3.4

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30

# Set the user and group that the server normally runs at.
User proftpd
Group nogroup

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on

# Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords:
# PersistentPasswd off

# This is required to use both PAM-based authentication and local passwords
# AuthOrder *mod_auth_pam.c mod_auth_unix.c

# Be warned: use of this directive impacts CPU average load!
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
#
# UseSendFile off

# Choose a SQL backend among MySQL or PostgreSQL.
# Both modules are loaded in default configuration, so you have to specify the backend
# or comment out the unused module in /etc/proftpd/modules.conf.
# Use 'mysql' or 'postgres' as possible values.
#
#<IfModule mod_sql.c>
# SQLBackend mysql
#</IfModule>

TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log

<IfModule mod_quotatab.c>
QuotaEngine off
</IfModule>

<IfModule mod_ratio.c>
Ratios off
</IfModule>


# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=de...2004-10-02
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine off
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
</IfModule>

#
# Alternative authentication frameworks
#
#Include /etc/proftpd/ldap.conf
#Include /etc/proftpd/sql.conf

#
# This is used for FTPS connections
#
#Include /etc/proftpd/tls.conf

# A basic anonymous configuration, no upload directories.

# <Anonymous ~ftp>
# User ftp
# Group nogroup
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
# # Cosmetic changes, all files belongs to ftp user
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# RequireValidShell off
#
# # Limit the maximum number of anonymous logins
# MaxClients 10
#
# # We want 'welcome.msg' displayed at login, and '.message' displayed
# # in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayFirstChdir .message
#
# # Limit WRITE everywhere in the anonymous chroot
# <Directory *>
# <Limit WRITE>
# DenyAll
# </Limit>
# </Directory>
#
# # Uncomment this if you're brave.
# # <Directory incoming>
# # # Umask 022 is a good standard umask to prevent new files and dirs
# # # (second parm) from being group and world writable.
# # Umask 022 022
# # <Limit READ WRITE>
# # DenyAll
# # </Limit>
# # <Limit STOR>
# # AllowAll
# # </Limit>
# # </Directory>
#
# </Anonymous>
09-07-2008 02:37 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #10
RE: FTP issues.
Your proftpd.conf is not correct. Maybe you overwrite it on proftpd.conf update. Take this file from ispcp package (lenny and etch configs/debian/proftpd/proftpd1.3.conf), replace existing one and edit it to add corect data:
Quote:ServerName "{HOST_NAME}"
SQLConnectInfo {DATABASE_NAME}@{DATABASE_HOST} {DATABASE_USER} {DATABASE_PASS}
SQLMinUserUID {FTPD_MIN_UID}
SQLMinUserGID {FTPD_MIN_GID}
Usually:
SQLMinUserUID 2000
SQLMinUserGID 2000

Check that you can connect to mysql
Edit /etc/proftpd/modules.conf and uncomment this 2 lines:
Quote:LoadModule mod_sql.c
LoadModule mod_sql_mysql.c
. Restart proftpd
(This post was last modified: 09-07-2008 04:09 AM by sci2tech.)
09-07-2008 04:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)