FTP-Server: Offline

Discussion in 'Installation/Configuration' started by sandman_ua, Feb 9, 2006.

  1. sandman_ua

    sandman_ua New Member

    After installing ISPConfig on my SuSE 9.0 with
    Apache2
    ProFTP - standalone
    postfix
    Courier-...
    Everything works perfekt except of FTP server... it works but not from ISPConfig and is reported offline in services.

    Have tryed to add
    Code:
    SocketBindTight on
    but it din't help. It now restarts with the following messages:
    Code:
    Shutting down ProFTPD Server:                                                                               done
    Starting ProFTPD Server:  - warning: "ProFTPD" address/port (192.168.0.100:21) already in use by "ProFTPD Default Installation"
    {my_url}.com - SocketBindTight in effect, ignoring DefaultServer
                                                                                                                done
    My
    Code:
    netstat -tap | grep ftp
    follows:
    Code:
    tcp        0      0 xxx.xxx.xxx.xxx:21       0.0.0.0:*               LISTEN      19100/proftpd: (acc
    tcp        0      0 192.168.0.100:21        0.0.0.0:*               LISTEN      19100/proftpd: (acc
    As I can see, it's not listenning on localhost, could that be a problem?
    If yes, how to fix my config files?
     
    Last edited: Jul 6, 2009
  2. falko

    falko Super Moderator Howtoforge Staff

    Please add
    Code:
    <VirtualHost 127.0.0.1>
            DefaultRoot             ~
            AllowOverwrite          on
            Umask                   002
    </VirtualHost>
    to /etc/proftpd.conf, right before
    Code:
    Include /etc/proftpd_ispconfig.conf
    and restart ProFTPd.
     
  3. sandman_ua

    sandman_ua New Member

    Done and my ProFTPd is now listenning on localhost, but (after proftpd restart):

    1. Error message on restart stays
    Code:
    Shutting down ProFTPD Server:                                                                               done
    Starting ProFTPD Server:  - warning: "ProFTPD" address/port (192.168.0.100:21) already in use by "ProFTPD Default Installation"
    {my_url}.com - SocketBindTight in effect, ignoring DefaultServer
    2. ISPConfig still reports service FTP-Server: Offline

    --edited: first line - changed "is not listenning" to "is now listenning" - was my terrible misstake :(
     
    Last edited: Jul 6, 2009
  4. falko

    falko Super Moderator Howtoforge Staff

    What does /etc/proftpd.conf look like right now?
     
  5. sandman_ua

    sandman_ua New Member

    Code:
    # This is a basic ProFTPD configuration file (rename it to
    # 'proftpd.conf' for actual use.  It establishes a single server
    # and a single anonymous login.  It assumes that you have a user/group
    # "nobody" and "ftp" for normal operation and anon.
    
    ServerName                      "ProFTPD Default Installation"
    ServerType                      standalone
    DefaultServer                   on
    
    SocketBindTight on
    
    ServerIdent on "FTP Server ready."
    IdentLookups off
    
    # Port 21 is the standard FTP port.
    Port                            21
    
    # Umask 022 is a good standard umask to prevent new dirs and files
    # from being group and world writable.
    Umask                           022
    
    # 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 under which the server will run.
    User                            nobody
    Group                           nogroup
    
    # To cause every FTP user to be "jailed" (chrooted) into their home
    # directory, uncomment this line.
    DefaultRoot ~
    
    # Normally, we want files to be overwriteable.
    AllowOverwrite          on
    
    # Bar use of SITE CHMOD by default
    #<Limit SITE_CHMOD>
    #  DenyAll
    #</Limit>
    
    # A basic anonymous configuration, no upload directories.  If you do not
    # want anonymous users, simply delete this entire <Anonymous> section.
    <Anonymous ~ftp>
      User                          ftp
      Group                         ftp
    
      # We want clients to be able to login with "anonymous" as well as "ftp"
      UserAlias                     anonymous ftp
    
      # 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
      <Limit WRITE>
        DenyAll
      </Limit>
    </Anonymous>
    
    <VirtualHost 127.0.0.1>
        DefaultRoot ~
        AllowOverwrite      on
        Umask       002
    </VirtualHost>
    
    Include /etc/proftpd_ispconfig.conf
    --edit: added "Include /etc/proftpd_ispconfig.conf" line (I messed it while coppying)
     
    Last edited: Feb 14, 2006
  6. falko

    falko Super Moderator Howtoforge Staff

    Why's the
    Code:
    Include /etc/proftpd_ispconfig.conf
    line missing at the end?
     
  7. sandman_ua

    sandman_ua New Member

    oops...
    it is there, I just missed it on copy/paste...
    still need suggestions on my problem.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    What does
    Code:
    netstat -tap
    look like now?
     
  9. sandman_ua

    sandman_ua New Member

    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 *:mysql                 *:*                     LISTEN      1442/mysqld-max
    tcp        0      0 *:netbios-ssn           *:*                     LISTEN      2155/smbd
    tcp        0      0 *:rockwell-csp2         *:*                     LISTEN      2420/ispconfig_http
    tcp        0      0 *:sunrpc                *:*                     LISTEN      1222/portmap
    tcp        0      0 localhost:ftp           *:*                     LISTEN      7755/proftpd: (acce
    tcp        0      0 {my_url}.co:ftp *:*                     LISTEN      7755/proftpd: (acce
    tcp        0      0 {my_url}.co:ftp *:*                     LISTEN      7755/proftpd: (acce
    tcp        0      0 {my_url}:domain *:*                     LISTEN      2565/named
    tcp        0      0 {my_url}:domain *:*                     LISTEN      2565/named
    tcp        0      0 localhost:domain        *:*                     LISTEN      2565/named
    tcp        0      0 *:ipp                   *:*                     LISTEN      1672/cupsd
    tcp        0      0 *:smtp                  *:*                     LISTEN      7733/master
    tcp        0      0 localhost:953           *:*                     LISTEN      2565/named
    tcp        0      0 *:imaps                 *:*                     LISTEN      1706/couriertcpd
    tcp        0      0 *:pop3s                 *:*                     LISTEN      1696/couriertcpd
    tcp        0      0 localhost:8005          *:*                     LISTEN      2291/java
    tcp        0      0 *:8009                  *:*                     LISTEN      2291/java
    tcp        0      0 *:pop3                  *:*                     LISTEN      1688/couriertcpd
    tcp        0      0 *:imap                  *:*                     LISTEN      1693/couriertcpd
    tcp        0      0 *:www-http              *:*                     LISTEN      2625/httpd2-prefork
    tcp        0      0 *:http-alt              *:*                     LISTEN      2291/java
    tcp        0      0 *:ssh                   *:*                     LISTEN      1432/sshd
    tcp        0      0 localhost:953           *:*                     LISTEN      2565/named
    tcp        0      0 *:https                 *:*                     LISTEN      2625/httpd2-prefork
    
     
    Last edited: Jul 6, 2009
  10. falko

    falko Super Moderator Howtoforge Staff

    ProFTPd is running on localhost. Is ISPConfig still showing FTP as offline?
     
  11. sandman_ua

    sandman_ua New Member

    Yes :(

    P.S. and is it ISPConfig sending me an e-mail every half an hour with this context:
    Code:
    To: root@xxxx
    Subject: WARNING: services not running
    From: root@xxx (root)
    
    Warning: service ftpd not running (server: moria)!
    
    Message generated at February 14, 2006, 16:00.
     
  12. Raffnix

    Raffnix New Member

    The same problem persists for me. As we already discussed in this thread.

    Even after "SocketBindTight on" and adding Localhost manually to proftpd.conf, FTP Service shows "offline" and WebFTP doesn't work. Client FTP works without problems

    Falko, if you want to look for yourself, just let me know.
    I made a clean install today (again :D ) and can give you full root access.
     
  13. Raffnix

    Raffnix New Member

    Evaluating further I'm now almost sure, that this is not a proftpd problem.

    On my local machine I also get the start-message
    warning: "ProFTPD" address/port (192.168.0.123:21) already in use by "Debian"
    but in ISPconfig the Service is online and connection with WebFTP is possible.


    When I run proftpd in debug mode (proftpd -nd6) and connect through WebFTP, the local server gives me a bunch of messages of this type:
    athena.myhost.tld (localhost.localdomain[127.0.0.1]) - dispatching auth request "getpwnam" to module ...

    On the problem server I get not a single message, when I try to connect with WebFTP. The proftpd server is simply not reached, even though he's listening on his IP and on localhost
     
  14. falko

    falko Super Moderator Howtoforge Staff

    If you don't need anonymous FTP, you can simply uncomment the line
    Code:
    Include /etc/proftpd_ispconfig.conf
    in /etc/proftpd.conf and restart Proftpd. Is it working then?
     
  15. sandman_ua

    sandman_ua New Member

    sorry I just can't get the meening of your post....
    could you explain?
    (I have "Include /etc/proftpd_ispconfig.conf" in my proftpd.conf file and uncommenced)
     
  16. falko

    falko Super Moderator Howtoforge Staff

    Sorry, I meant, comment it out:
    Code:
    [B][COLOR="Red"]#[/COLOR][/B] Include /etc/proftpd_ispconfig.conf
     
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    Falko meaned this:

    Replace the line:

    Include /etc/proftpd_ispconfig.conf

    with:

    # Include /etc/proftpd_ispconfig.conf

    in your proftpd.conf file. Then execute:

    /etc/init.d/proftpd restart
     
  18. Raffnix

    Raffnix New Member

    Solved ! ! !



    Sorry for that ... :D :eek: :p

    At least for my behalf it seems, that the problem is solved:

    As I said, it was not a problem of proftpd nor it's configuration.

    In my hosts-File, the part

    read instead

    (this was created by that Debian Image I started from)

    Since I removed the "localhost", FTP is "online" and WebFTP is working.

    Right before, I found another workaround for the "Offline"-Problem:
    I changed the check_FTP in the check_services and check_services_adm Plugins from "localhost" to "127.0.0.1" and from then FTP was online and the server was maneagable from within the interface. Maybe this helps out, if someone else's problem is not located in the hosts-File
     
  19. louisgag

    louisgag New Member

Share This Page