FTP Help: ECONNREFUSED - Connection refused by server

Discussion in 'Installation/Configuration' started by mychael, Mar 4, 2019.

  1. mychael

    mychael Member HowtoForge Supporter

    I have lost my ability to connect via FTP to my server, even when trying to connect to its local network ip address. I receive the error:
    "ECONNREFUSED - Connection refused by server".

    To make things worse, I have forgotten what I was doing that got myself into this mess -- but, I believe I was trying to get SSL to work on the admin page.

    I thought it was a firewall issue so I unchecked active from the firewall record in ISPConfig, saved that and tried again to no avail. Then I followed Till's advice from https://www.howtoforge.com/community/threads/problem-with-ftp.71886/ and verified my external was in /etc/pure-ftpd/conf/ForcePassiveIP and set the open ports to 20,21,22,25,53,80,110,143,443,3306,8080,10000,40110:40210 and then later to
    20,21,22,25,53,80,110,143,443,587,993,995,3306,8080,8081,10000,40110:40210 to no avail.

    I've scoured the forms, and have found plenty of similar error messages, but no reply that has offered a fix yet. I'm running out of ideas on what to do here. Any ideas? Thanks in advance.
     
  2. mychael

    mychael Member HowtoForge Supporter

    I forgot: Debian 9, ISPConfig 3.1

    Code:
    Test Script:
    ##### SERVER #####
    
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] ISPConfig is installed.
    
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.1.13p1
    
    
    ##### VERSION CHECK #####
    [INFO] php (cli) version is 7.0.33-0+deb9u2
    
    
    ##### PORT CHECK #####
    [WARN] Port 25 (SMTP server) seems NOT to be listening
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening
    [WARN] Port 21 (FTP server) seems NOT to be listening
    [WARN] Port 25 (SMTP server) seems NOT to be listening
    
    
    ##### MAIL SERVER CHECK #####
    
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    
    [INFO] I found the following web server(s):
    Apache 2 (PID 4452)
    
    [WARN] I could not determine which mail server is running.
    
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 20072)
    
    [INFO] I found the following imap server(s):
    Dovecot (PID 20072)
    
    [WARN] I could not determine which ftp server is running.
    
    
    ##### LISTENING PORTS #####
    
    (only ()
    
    Local (Address)
    
    [localhost]:10023 (697/postgrey)
    
    [localhost]:10024 (20050/amavisd-new)
    
    [localhost]:10025 (1088/perl)
    
    [localhost]:10026 (20050/amavisd-new)
    
    [localhost]:11211 (867/memcached)
    
    [anywhere]:110 (20072/dovecot)
    
    [anywhere]:143 (20072/dovecot)
    
    ***.***.***.***:53 (20209/named)
    
    [localhost]:53 (20209/named)
    
    [anywhere]:22 (7959/sshd)
    
    [localhost]:953 (20209/named)
    
    [anywhere]:993 (20072/dovecot)
    
    [anywhere]:995 (20072/dovecot)
    
    *:*:*:*::*:10023 (697/postgrey)
    
    *:*:*:*::*:10024 (20050/amavisd-new)
    
    *:*:*:*::*:10026 (20050/amavisd-new)
    
    *:*:*:*::*:3306 (19795/mysqld)
    
    [localhost]10 (20072/dovecot)
    
    [localhost]43 (20072/dovecot)
    
    *:*:*:*::*:80 (4452/apache2)
    
    *:*:*:*::*:8080 (4452/apache2)
    
    *:*:*:*::*:8081 (4452/apache2)
    
    *:*:*:*::*:53 (20209/named)
    
    *:*:*:*::*:22 (7959/sshd)
    
    *:*:*:*::*:953 (20209/named)
    
    *:*:*:*::*:443 (4452/apache2)
    
    *:*:*:*::*:993 (20072/dovecot)
    
    *:*:*:*::*:995 (20072/dovecot)
    
    
    
    
    
    ##### IPTABLES #####
    
    Chain INPUT (policy DROP)
    
    target     prot opt source               destination       
    
    f2b-pureftpd  tcp  --  [anywhere]/0            [anywhere]/0            multiport
    
     dports 21
    
    f2b-postfix-sasl  tcp  --  [anywhere]/0            [anywhere]/0            multi
    
    port dports 25
    
    f2b-sshd   tcp  --  [anywhere]/0            [anywhere]/0            multiport dp
    
    orts 22
    
    ufw-before-logging-input  all  --  [anywhere]/0            [anywhere]/0       
    
     
    
    ufw-before-input  all  --  [anywhere]/0            [anywhere]/0         
    
    ufw-after-input  all  --  [anywhere]/0            [anywhere]/0         
    
    ufw-after-logging-input  all  --  [anywhere]/0            [anywhere]/0        
    
     
    
    ufw-reject-input  all  --  [anywhere]/0            [anywhere]/0         
    
    ufw-track-input  all  --  [anywhere]/0            [anywhere]/0         
    
    
    Chain FORWARD (policy DROP)
    
    target     prot opt source               destination       
    
    ufw-before-logging-forward  all  --  [anywhere]/0            [anywhere]/0     
    
     
    
    ufw-before-forward  all  --  [anywhere]/0            [anywhere]/0         
    
    ufw-after-forward  all  --  [anywhere]/0            [anywhere]/0         
    
    ufw-after-logging-forward  all  --  [anywhere]/0            [anywhere]/0      
    
     
    
    ufw-reject-forward  all  --  [anywhere]/0            [anywhere]/0         
    
    ufw-track-forward  all  --  [anywhere]/0            [anywhere]/0         
    
    
    Chain OUTPUT (policy ACCEPT)
    
    target     prot opt source               destination       
    
    ufw-before-logging-output  all  --  [anywhere]/0            [anywhere]/0      
    
     
    
    ufw-before-output  all  --  [anywhere]/0            [anywhere]/0         
    
    ufw-after-output  all  --  [anywhere]/0            [anywhere]/0         
    
    ufw-after-logging-output  all  --  [anywhere]/0            [anywhere]/0       
    
     
    
    ufw-reject-output  all  --  [anywhere]/0            [anywhere]/0         
    
    ufw-track-output  all  --  [anywhere]/0            [anywhere]/0         
    
    
    Chain f2b-postfix-sasl (1 references)
    
    target     prot opt source               destination       
    
    RETURN     all  --  [anywhere]/0            [anywhere]/0         
    
    
    Chain f2b-pureftpd (1 references)
    
    target     prot opt source               destination       
    
    RETURN     all  --  [anywhere]/0            [anywhere]/0         
    
    
    Chain f2b-sshd (1 references)
    
    target     prot opt source               destination       
    
    REJECT     all  --  ***.***.***.***         [anywhere]/0            reject-with
    
    icmp-port-unreachable
    
    REJECT     all  --  ***.***.***.***         [anywhere]/0            reject-with
    
    icmp-port-unreachable
    
    RETURN     all  --  [anywhere]/0            [anywhere]/0         
    
    
    Chain ufw-after-forward (1 references)
    
    target     prot opt source               destination       
    
    
    Chain ufw-after-input (1 references)
    
    target     prot opt source               destination       
    
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0       
    
       udp dpt:137
    
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0       
    
       udp dpt:138
    
    ufw-skip-to-policy-input  tcp  --  [anywhere]/0            [anywhere]/0       
    
       tcp dpt:139
    
    ufw-skip-to-policy-input  tcp  --  [anywhere]/0            [anywhere]/0       
    
       tcp dpt:445
    
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0       
    
       udp dpt:67
    
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0       
    
       udp dpt:68
    
    ufw-skip-to-policy-input  all  --  [anywhere]/0            [anywhere]/0       
    
       ADDRTYPE match dst-type BROADCAST
    
    
    ... I had to cut off some of the chain because of max characters.

    **EDIT: Added CODE tags**
     
    Last edited: Mar 6, 2019
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What shows
    Code:
    systemctl --state=failed
     
  4. mychael

    mychael Member HowtoForge Supporter

    systemctl --state=failed shows:

    Code:
    UNIT               LOAD   ACTIVE SUB    DESCRIPTION                           
    ● networking.service loaded failed failed Raise network interfaces              
    ● [email protected] loaded failed failed Postfix Mail Transport Agent (instance -)
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    
    2 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.
    
    **EDIT: Added CODE tags**
     
    Last edited: Mar 6, 2019
  5. mychael

    mychael Member HowtoForge Supporter

    Also, under Show Services in the ISPConfig Admin Panel, it says "FTP-Server: Offline" even after running "/etc/init.d/pure-ftpd-mysql start". The status argument(maybe not the right word?) shows:

    Code:
    Loaded: loaded (/etc/init.d/pure-ftpd-mysql; generated; vendor preset: enabled)
    
       Active: active (exited) since Mon 2019-03-04 10:19:02 PST; 11h ago
    
        Docs: man:systemd-sysv-generator(8)
    
      Process: 3168 ExecStop=/etc/init.d/pure-ftpd-mysql stop (code=exited, status=0/SUCCESS)
    
      Process: 3180 ExecStart=/etc/init.d/pure-ftpd-mysql start (code=exited, status=0/SUCCESS)
    
        Tasks: 0 (limit: 4915)
    
       CGroup: /system.slice/pure-ftpd-mysql.service
    
    **EDIT: Added CODE tags**
     
    Last edited: Mar 6, 2019
  6. mychael

    mychael Member HowtoForge Supporter

    systemctl status networking.service brings up:

    Code:
    Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Mon 2019-03-04 22:08:51 PST; 8min ago
    Docs: man:interfaces(5)
    Process: 9102 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
    Process: 9098 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle (code=exited, status=0
    Main PID: 9102 (code=exited, status=1/FAILURE)
    
    Cannot find device "eth0"
    ifup[9102]: ifup: failed to bring up eth0
    ifup[9102]: Cannot find device "eth0:0"
    ifup[9102]: ifup: failed to bring up eth0:0
    ifup[9102]: Cannot find device "eth0:1"
    ifup[9102]: ifup: failed to bring up eth0:1
    systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
    systemd[1]: Failed to start Raise network interfaces.
    systemd[1]: networking.service: Unit entered failed state.
    systemd[1]: networking.service: Failed with result 'exit-code'.
    
    **EDIT: Added CODE tags**
     
    Last edited: Mar 6, 2019
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Are you using virtual lans? There is someting wrong in your network setup.
    If you have a backup of /etc/network/interfaces from before this breakage, restore it or compare to the file that you have now.
    Or has the network changed? Find out what networks or virtual lans you should be using, and adapt /etc/network/interfaces accordingly.
    Check also what network interfaces you do have, if eht0 has gone missing.
    Code:
    ip a
    Also, please use CODE tags when pasting file listings or logs. They stay readable that way.
     
  8. mychael

    mychael Member HowtoForge Supporter

    No, I shouldn't be using virtual lans. I'm leasing a block of static IPs, and when I originally setup ISPConfig I was trying to route each IP to it's own domain.

    ip a outputs:
    Code:
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    
        inet 127.0.0.1/8 scope host lo
    
          valid_lft forever preferred_lft forever
    
        inet6 ::1/128 scope host 
    
          valid_lft forever preferred_lft forever
    
    2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    
        link/ether fc:aa:14:90:eb:eb brd ff:ff:ff:ff:ff:ff
    
        inet 192.168.1.229/24 brd 192.168.1.255 scope global dynamic enp2s0
    
          valid_lft 84126sec preferred_lft 84126sec
    
        inet6 fe80::feaa:14ff:fe90:ebeb/64 scope link 
    
          valid_lft forever preferred_lft forever
    
    3: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    
        link/ether fc:aa:14:90:eb:e9 brd ff:ff:ff:ff:ff:ff
    

    And my /etc/network/interfaces looks like:
    Code:
    # This file describes the network interfaces available on your system
    
    # and how to activate them. For more information, see interfaces(5).
    
    
    # The loopback network interface
    
    auto lo
    
    iface lo inet loopback
    
    
    # The primary network interface
    
    auto eth0
    
    iface eth0 inet static
    
            address 99.99.99.94
    
            netmask 255.255.255.0
    
            network 99.99.99.0
    
            broadcast 99.99.99.95
    
            gateway 99.99.99.94
    
    
    #auto eth0:0
    
    #iface eth0:0 inet static
    
    #        address 192.168.1.229
    
    #        netmask 255.255.255.0
    
    #        network 192.168.1.0
    
    #        broadcast 192.168.1.255
    
    #        gateway 192.168.0.1
    
    The block of IP's I'm leasing is relative to this is:
    IP Use IPv4 Address
    Reserved Network 99.99.99.88
    User-Assignable 99.99.99.89
    User-Assignable 99.99.99.90
    User-Assignable 99.99.99.91
    User-Assignable 99.99.99.92
    User-Assignable 99.99.99.93
    Reserved Gateway 99.99.99.94
    Reserved Broadcast 99.99.99.95

    Basically have an ASUS rt-ac66u router running my home network with portforwarding to the ISPConfig box located at 99.99.99.94 (external) or 192.168.1.229 (lan).

    Thank you Taleman for your time and trying to help, and I apologize about the code blocks before.
     
  9. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Your network interface is enp2s0, not eth0. Replace eth0 in /etc/network/interfaces with enp2s0. That should be a giant leap in the right direction.
    Although enp2s0 is already configured with inet 192.168.1.229/24. That is a bit odd, where does this configuration come from since there is nothing in /etc/network/interfaces about that. Does it come from DHCP? So you should not use static configuration in /etc/network/interfaces, use dhcp.
    Anyway, doing
    Code:
    ifup enps2s0
    should get you a working network interface.
     
  10. mychael

    mychael Member HowtoForge Supporter

    ifup enp2s0 brought up:
    Code:
    RTNETLINK answers: File exists
    ifup: failed to bring up enp2s0
    

    I made a few changes to the /etc/network/interfaces and it still brings that up. Here's the updated outputs:

    /etc/network/interfaces
    Code:
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto enp2s0
    iface enp2s0 inet static
            address 99.99.99.132
            netmask 255.255.255.0
            network 99.99.99.128
            broadcast 99.99.99.135
            gateway 99.99.99.134
    
    auto enp2s0:0
    iface enp2s0:0 inet static
            address 192.168.1.229
            netmask 255.255.255.0
            network 192.168.1.0
            broadcast 192.168.1.255
            gateway 192.168.0.1
    #auto eth0:1
    #iface eth0:1 inet static
    #        address 99.99.99.134
    #        netmask 255.255.255.0
    #        network 99.99.99.0
    #        broadcast 99.99.99.255
    #        gateway 192.168.0.1
    


    ip a
    Code:
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host
           valid_lft forever preferred_lft forever
    2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether fc:aa:14:90:eb:eb brd ff:ff:ff:ff:ff:ff
        inet 192.168.1.229/24 brd 192.168.1.255 scope global dynamic enp2s0
           valid_lft 72047sec preferred_lft 72047sec
        inet 99.99.99.134/24 brd 99.99.99.135 scope global enp2s0
           valid_lft forever preferred_lft forever
        inet 99.99.99.132/24 brd 99.99.99.135 scope global secondary enp2s0
           valid_lft forever preferred_lft forever
        inet6 fe80::feaa:14ff:fe90:ebeb/64 scope link
           valid_lft forever preferred_lft forever
    3: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
        link/ether fc:aa:14:90:eb:e9 brd ff:ff:ff:ff:ff:ff
    

    systemctl restart networking
    Code:
    Job for networking.service failed because the control process exited with error code.
    See "systemctl status networking.service" and "journalctl -xe" for details
    


    journalctl -xe
    Code:
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 117.100.IN-ADDR.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 118.100.IN-ADDR.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 119.100.IN-ADDR.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 120.100.IN-ADDR.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 121.100.IN-ADDR.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 122.100.IN-ADDR.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 123.100.IN-ADDR.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 124.100.IN-ADDR.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 125.100.IN-ADDR.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 126.100.IN-ADDR.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 127.100.IN-ADDR.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 254.169.IN-ADDR.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 100.51.198.IN-ADDR.ARPA
    Mar 06 08:57:16 somename systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 113.0.203.IN-ADDR.ARPA
    Mar 06 08:57:16 somename systemd[1]: Failed to start Raise network interfaces.
    -- Subject: Unit networking.service has failed
    -- Defined-By: systemd
    -- Support: https://www.debian.org/support
    --
    -- Unit networking.service has failed.
    --
    -- The result is failed.
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
    Mar 06 08:57:16 somename systemd[1]: networking.service: Unit entered failed state.
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
    Mar 06 08:57:16 somename systemd[1]: networking.service: Failed with result 'exit-code'.
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: D.F.IP6.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 8.E.F.IP6.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 9.E.F.IP6.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: A.E.F.IP6.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: B.E.F.IP6.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
    Mar 06 08:57:16 somename named[27384]: automatic empty zone: EMPTY.AS112.ARPA
    Mar 06 08:57:16 somename named[27384]: configuring command channel from '/etc/bind/rndc.key'
    Mar 06 08:57:16 somename named[27384]: configuring command channel from '/etc/bind/rndc.key'
    Mar 06 08:57:16 somename named[27384]: reloading configuration succeeded
    Mar 06 08:57:16 somename named[27384]: any newly configured zones are now loaded
    Mar 06 08:58:01 somename CRON[31288]: pam_unix(cron:session): session opened for user root by (uid=0)
    Mar 06 08:58:01 somename CRON[31289]: pam_unix(cron:session): session opened for user root by (uid=0)
    Mar 06 08:58:01 somename CRON[31290]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispco
    Mar 06 08:58:01 somename CRON[31291]: (root) CMD (/usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconf
    Mar 06 08:58:01 somename CRON[31288]: pam_unix(cron:session): session closed for user root
    Mar 06 08:58:01 somename CRON[31289]: pam_unix(cron:session): session closed for user root
    


    systemctl --state=failed
    Code:
      UNIT               LOAD   ACTIVE SUB    DESCRIPTION                           
    ● networking.service loaded failed failed Raise network interfaces               
    ● [email protected]  loaded failed failed Postfix Mail Transport Agent (instance -)
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    
    2 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.
    


    systemctl status networking.service
    Code:
    ● networking.service - Raise network interfaces
       Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Wed 2019-03-06 08:57:16 PST; 5min ago
         Docs: man:interfaces(5)
      Process: 31241 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
      Process: 31236 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle (code=ex
     Main PID: 31241 (code=exited, status=1/FAILURE)
    
    Mar 06 08:57:16 somename systemd[1]: Starting Raise network interfaces...
    Mar 06 08:57:16 somename ifup[31241]: RTNETLINK answers: File exists
    Mar 06 08:57:16 somename ifup[31241]: ifup: failed to bring up enp2s0
    Mar 06 08:57:16 somename ifup[31241]: RTNETLINK answers: File exists
    Mar 06 08:57:16 somename ifup[31241]: ifup: failed to bring up enp2s0:0
    Mar 06 08:57:16 somename systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
    Mar 06 08:57:16 somename systemd[1]: Failed to start Raise network interfaces.
    Mar 06 08:57:16 somename systemd[1]: networking.service: Unit entered failed state.
    Mar 06 08:57:16 somename systemd[1]: networking.service: Failed with result 'exit-code'.
    

    systemctl status NetworkManager.service
    Code:
    ● NetworkManager.service - Network Manager
       Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
       Active: active (running) since Sat 2019-02-09 15:40:11 PST; 3 weeks 3 days ago
         Docs: man:NetworkManager(8)
     Main PID: 622 (NetworkManager)
        Tasks: 4 (limit: 4915)
       CGroup: /system.slice/NetworkManager.service
               ├─622 /usr/sbin/NetworkManager --no-daemon
               └─701 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /var/run/dhclient-enp2s0.pid -lf /var/lib/NetworkManager/dhclient-32b66ab8-5d3d-
    
    Mar 06 05:04:07 somename dhclient[701]: DHCPACK of 192.168.1.229 from 192.168.1.1
    Mar 06 05:04:07 somename NetworkManager[622]: <info>  [1551877447.3887] dhcp4 (enp2s0):   address 192.168.1.229
    Mar 06 05:04:07 somename NetworkManager[622]: <info>  [1551877447.3887] dhcp4 (enp2s0):   plen 24 (255.255.255.0)
    Mar 06 05:04:07 somename NetworkManager[622]: <info>  [1551877447.3888] dhcp4 (enp2s0):   gateway 192.168.1.1
    Mar 06 05:04:07 somename NetworkManager[622]: <info>  [1551877447.3888] dhcp4 (enp2s0):   server identifier 192.168.1.1
    Mar 06 05:04:07 somename NetworkManager[622]: <info>  [1551877447.3888] dhcp4 (enp2s0):   lease time 86400
    Mar 06 05:04:07 somename NetworkManager[622]: <info>  [1551877447.3888] dhcp4 (enp2s0):   hostname 'somename'
    Mar 06 05:04:07 somename NetworkManager[622]: <info>  [1551877447.3888] dhcp4 (enp2s0):   nameserver '192.168.1.1'
    Mar 06 05:04:07 somename NetworkManager[622]: <info>  [1551877447.3889] dhcp4 (enp2s0): state changed bound -> bound
    Mar 06 05:04:07 somename dhclient[701]: bound to 192.168.1.229 -- renewal in 34650 seconds.
    
    **EDIT: added systemctl status NetworkManager.service output**
     
    Last edited: Mar 6, 2019
  11. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    systemctl status NetworkManager.service
    shows host gets network configuration from DHCP. Use those settings. Do not use static configuration in /etc/network/interfaces.
    Or if the settings from DHCP are wrong, find out why your host gets config from DHCP. There must be some other setup in addition to /etc/network/interfaces.
     
    mychael likes this.
  12. mychael

    mychael Member HowtoForge Supporter

    Thanks Taleman. No more failed networking.service after wiping out the /etc/network/interfaces and replacing it with
    Code:
    # The loopback network interface
    
    auto lo
    
    iface lo inet loopback
    
    
    # The primary network interface
    
    auto enp2s0
    
    allow-hotplug enp2s0
    
    iface enp2s0 inet dhcp
    
    
    
    Now the only failed service showing is postfix, which is ok because I do not use, and have no plans of using this server for email. However, my FTP woes still persist:

    Code:
    Status:      Disconnected from server
    
    Status:      Connecting to 99.99.99.134:21...
    
    Status:      Connection established, waiting for welcome message...
    
    Status:      Insecure server, it does not support FTP over TLS.
    
    Command: USER some_user
    
    Response: 331 User some_user OK. Password required
    
    Command: PASS ************
    
    Response: 530 Login authentication failed
    
    Error:        Critical error: Could not connect to server
    
    
    I'm certain the login credentials are correct. I've tried both passive and non-passive. IP address above is made up of course. ISPConfig admin panel was showing FTP service as working earlier today, but cannot see admin panel currently (as I am at work) to confirm.
     
  13. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Are you sure you are connecting to the right host? The IP-addresses have changed.
    You should start making notes when you do configuration changes and maintenance on your host, so you have some idea what has changed when problems appear.
    Try using Internet Search Engines with:
    Code:
    Could not connect to server ftp site:howtoforge.com
     
    mychael likes this.
  14. mychael

    mychael Member HowtoForge Supporter

Share This Page