Join the community today
Become a Member

Pure-FTP issue

Discussion in 'Other Centmin Mod Installed software' started by Matt Williams, Dec 3, 2015.

  1. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    2:09 AM
    latest
    10
    Added a new user for FTP and went to restart and this is what I get:

    Code:
    [root@ngx ~]# service pure-ftpd start
    Redirecting to /bin/systemctl start  pure-ftpd.service
    Job for pure-ftpd.service failed. See 'systemctl status pure-ftpd.service' and 'journalctl -xn' for details.
    [root@ngx ~]# journalctl -xn
    -- Logs begin at Thu 2015-12-03 00:57:42 UTC, end at Thu 2015-12-03 04:25:58 UTC. --
    Dec 03 04:25:16 ngx.xxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST
    Dec 03 04:25:22 ngx.xxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST
    Dec 03 04:25:32 ngx.xxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST
    Dec 03 04:25:38 ngx.xxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST
    Dec 03 04:25:38 ngx.xxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST
    Dec 03 04:25:52 ngx.xxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST
    Dec 03 04:25:54 ngx.xxx.com systemd[1]: pure-ftpd.service operation timed out. Terminating.
    Dec 03 04:25:54 ngx.xxx.com systemd[1]: Failed to start Pure-FTPd FTP server.
    -- Subject: Unit pure-ftpd.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit pure-ftpd.service has failed.
    --
    -- The result is failed.
    Dec 03 04:25:54 ngx.xxx.com systemd[1]: Unit pure-ftpd.service entered failed state.
    Dec 03 04:25:58 ngx.xxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST
    lines 1-18/18 (END)
    -- Logs begin at Thu 2015-12-03 00:57:42 UTC, end at Thu 2015-12-03 04:25:58 UTC. --
    Dec 03 04:25:16 ngx.xxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST=104.238.182.86 LEN=40 T
    Dec 03 04:25:22 ngx.xxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST=104.238.182.86 LEN=40 T
    Dec 03 04:25:32 ngx.xxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST=104.238.182.86 LEN=40 T
    Dec 03 04:25:38 ngx.xxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST=104.238.182.86 LEN=40 T
    Dec 03 04:25:38 ngx.xxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST=104.238.182.86 LEN=40 T
    Dec 03 04:25:52 ngx.xxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST=104.238.182.86 LEN=40 T
    Dec 03 04:25:54 ngx.xxx.com systemd[1]: pure-ftpd.service operation timed out. Terminating.
    Dec 03 04:25:54 ngx.xxx.com systemd[1]: Failed to start Pure-FTPd FTP server.
    -- Subject: Unit pure-ftpd.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit pure-ftpd.service has failed.
    --
    -- The result is failed.
    Dec 03 04:25:54 ngx.xxx.com systemd[1]: Unit pure-ftpd.service entered failed state.
    Dec 03 04:25:58 ngx.xxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST=104.238.182.86 LEN=40 T
    ~
    
    Tried restarting the firewall and also tried to re-install FTP and had no luck. Any advice?

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,946
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    4:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    never seen that before
    Code:
    SRC=80.82.78.166 DST=104.238.182.86
    source and destination IP addresses familiar to you ?
     
  3. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    2:09 AM
    latest
    10
    DST=104.238.182.86 is the VPS IP - the other is a location in the Netherlands which isn't me. See: IP Address: 80.82.78.166
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,946
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    4:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    2:09 AM
    latest
    10
    Code:
    [root@ngx ~]# service pure-ftpd restart; journalctl -xn
    Redirecting to /bin/systemctl restart  pure-ftpd.service
    Job for pure-ftpd.service failed. See 'systemctl status pure-ftpd.service' and 'journalctl -xn' for details.
    -- Logs begin at Thu 2015-12-03 00:57:42 UTC, end at Thu 2015-12-03 04:46:51 UTC. --
    Dec 03 04:46:23 ngx.xxxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST=104.238.182.86 LEN=40 TOS=0x08 PREC=0x20 TTL=247 ID=460
    Dec 03 04:46:32 ngx.xxxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=58.218.205.73 DST=104.238.182.86 LEN=40 TOS=0x00 PREC=0x00 TTL=114 ID=25
    Dec 03 04:46:33 ngx.xxxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST=104.238.182.86 LEN=40 TOS=0x08 PREC=0x20 TTL=247 ID=165
    Dec 03 04:46:37 ngx.xxxx.com dhclient[683]: DHCPREQUEST on eth0 to 169.254.169.254 port 67 (xid=0x289c89d0)
    Dec 03 04:46:45 ngx.xxxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=80.82.78.166 DST=104.238.182.86 LEN=40 TOS=0x08 PREC=0x20 TTL=247 ID=635
    Dec 03 04:46:48 ngx.xxxx.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=56:00:00:18:44:bc:fe:00:00:18:44:bc:08:00 SRC=112.95.0.175 DST=104.238.182.86 LEN=60 TOS=0x00 PREC=0x00 TTL=53 ID=5378
    Dec 03 04:46:50 ngx.xxxx.com dhclient[683]: DHCPREQUEST on eth0 to 169.254.169.254 port 67 (xid=0x289c89d0)
    Dec 03 04:46:51 ngx.xxxx.com systemd[1]: pure-ftpd.service operation timed out. Terminating.
    Dec 03 04:46:51 ngx.xxxx.com systemd[1]: Failed to start Pure-FTPd FTP server.
    -- Subject: Unit pure-ftpd.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit pure-ftpd.service has failed.
    --
    -- The result is failed.
    Dec 03 04:46:51 ngx.xxxx.com systemd[1]: Unit pure-ftpd.service entered failed state.
    
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,946
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    4:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what does output of give ?
    Code:
    service pure-ftpd status
     
  7. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    2:09 AM
    latest
    10
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,946
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    4:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  9. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    2:09 AM
    latest
    10
  10. eva2000

    eva2000 Administrator Staff Member

    54,946
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    4:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  11. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    2:09 AM
    latest
    10
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,946
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    4:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looks like setup-callupload.sh script didn't launch the manual command that needs to run in background

    you can manually run the command
    Code:
    pure-uploadscript -B -r /etc/pure-ftpd/clamscan.sh
    then restart restarting pure-ftpd service
     
  13. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    2:09 AM
    latest
    10
    Now it's working
     
  14. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    2:09 AM
    latest
    10
  15. eva2000

    eva2000 Administrator Staff Member

    54,946
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    4:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You're welcome :)
     
  16. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    2:09 AM
    latest
    10
    Where are the usernames/passwords for FTP stored at? Is there an easy way to delete existing FTP accounts?
     
  17. eva2000

    eva2000 Administrator Staff Member

    54,946
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    4:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    see 1st post at Beta Branch - Centmin Mod .08 beta + pure-ftpd virtual FTP user support | Centmin Mod Community for pure-pw command to delete pure-ftpd virtual ftpd users

    pure-pw commands



    pure-pw command useradd was to add a virtual user. However, there's more commands to delete a user or change passwords etc.

    pure-pw manual is here and http://download.pureftpd.org/pub/pure-ftpd/doc/README.Virtual-Users

    Code:
    pure-pw userdel login [-f passwd_file] [-F puredb_file] [-m]
    pure-pw passwd login [-f passwd_file] [-F puredb_file] [-m]
    pure-pw show login [-f passwd_file] [-m]
    pure-pw mkdb [<puredb_database_file> [-f passwd_file]] [-F puredb_file]
    pure-pw list [-f passwd_file]
    list all pure-ftpd created virtual FTP users
    Code:
    pure-pw list
    Code:
    pure-pw list
    ftpuser             /usr/local/nginx/html/./                           
    ftpuser2            /usr/local/nginx/html/./                           
    ftpuser3            /usr/local/nginx/html/./                           
    ftpuser4            /home/nginx/domains/domain1.com/./                 
    ftpuser6            /home/nginx/domains/sub.domain1.com/./             
    ftpuser5            /home/nginx/domains/domain2.com/./
    to delete virtual FTP user
    Code:
    pure-pw userdel FTPUSERNAME
    pure-pw mkdb
    change virtual FTP user's password
    Code:
    pure-pw passwd FTPUSERNAME
    pure-pw mkdb
    show full details for an specific pure-ftpd virtual FTP user
    Code:
    pure-pw show FTPUSERNAME
    password is encrypted

    Code:
    pure-pw show ftpuser5
    
    Login              : ftpuser5
    Password           : $1$msgfvdN0$51dhLdPGiCQpQEwtZ30kF1
    UID                : 500 (nginx)
    GID                : 500 (nginx)
    Directory          : /home/nginx/domains/domain2.com/./
    Full name          :
    Download bandwidth : 0 Kb (unlimited)
    Upload   bandwidth : 0 Kb (unlimited)
    Max files          : 0 (unlimited)
    Max size           : 0 Mb (unlimited)
    Ratio              : 0:0 (unlimited:unlimited)
    Allowed local  IPs :
    Denied  local  IPs :
    Allowed client IPs :
    Denied  client IPs :
    Time restrictions  : 0000-0000 (unlimited)
    Max sim sessions   : 0 (unlimited)