I get an 'The network interface is unknown' error when upgrading from 1.2.9 to 1.2.17

  • Hi,


    If I upgrade from 1.2.9 to 1.2.17 I get this error:


    [ERROR] main::setupRebuildCustomerFiles:
    Error while rebuilding customers files: [FATAL] iMSCP::Debug::__ANON__: The network interface is unknown at /var/www/imscp/engine/PerlLib/iMSCP/Provider/NetworkInterface.pm line 64


    How can I fix it?

  • @Marcoo


    Hello,


    Please give us the following information:


    Output of the following command (hide IP please)

    Shell-Script
    1. # ifconfig


    Result of the following mysql query:


    SQL
    1. # mysql -u root -p<your_sql_root_password>
    2. > use imscp;
    3. > SELECT * FROM server_ips;
    4. > quit

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Thank you very much for your answer.


    Here are the informations:

    Shell-Script
    1. root@srv01:/home/user# ifconfigeth0 Link encap:Ethernet Hardware Adresse xx:xx:xx:xx:xx:xx inet Adresse:xx.xx.xxx.xx Bcast:xx.xx.xxx.xxx Maske:255.255.254.0 inet6-Adresse: xxxx::xxxx:xxx:xxxx:xxxx/64 Gültigkeitsbereich:Verbindung UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1 RX packets:2619274 errors:0 dropped:0 overruns:0 frame:0 TX packets:47969 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:1000 RX bytes:193317049 (184.3 MiB) TX bytes:16151126 (15.4 MiB)lo Link encap:Lokale Schleife inet Adresse:127.0.0.1 Maske:255.0.0.0 inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine UP LOOPBACK RUNNING MTU:16436 Metrik:1 RX packets:7307 errors:0 dropped:0 overruns:0 frame:0 TX packets:7307 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:0 RX bytes:2548011 (2.4 MiB) TX bytes:2548011 (2.4 MiB)



    Shell-Script
    1. mysql> SELECT * FROM server_ips;
    2. +-------+--------------+---------+-----------+
    3. | ip_id | ip_number | ip_card | ip_status |
    4. +-------+--------------+---------+-----------+
    5. | 1 | xx.xx.xxx.xx | | ok |
    6. +-------+--------------+---------+-----------+
    7. 1 row in set (0.00 sec)
  • @Marcoo


    Ok, please execute the following query


    SQL
    1. # mysql -u root -p<your_sql_root_password>
    2. > use imscp;
    3. > UPDATE server_ips SET ip_card = 'eth0', ip_status = 'tochange';
    4. > quit


    Once done, rerun the i-MSCP installer.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Related: Error on Update "The network interface is unknown"


    I'll investigate since this problem affect many users.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @fulltilt


    ifconfig result (hide the IP) ?
    ip a s result (hide the IP) ?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Code
    1. ifconfigeth0 Link encap:Ethernet Hardware Adresse 08:00:27:96:e2:8e inet Adresse:192.168.0.34 Bcast:192.168.0.255 Maske:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1 RX packets:18104 errors:3 dropped:1 overruns:0 frame:0 TX packets:13873 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:1000 RX bytes:12627590 (12.0 MiB) TX bytes:2406149 (2.2 MiB) Interrupt:19 Basisadresse:0xd020 lo Link encap:Lokale Schleife inet Adresse:127.0.0.1 Maske:255.0.0.0 UP LOOPBACK RUNNING MTU:65536 Metrik:1 RX packets:406 errors:0 dropped:0 overruns:0 frame:0 TX packets:406 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:0 RX bytes:125522 (122.5 KiB) TX bytes:125522 (122.5 KiB)
    Code
    1. ip a s
    2. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    3. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    4. inet 127.0.0.1/8 scope host lo
    5. valid_lft forever preferred_lft forever
    6. 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
    7. link/ether 08:00:27:96:e2:8e brd ff:ff:ff:ff:ff:ff
    8. inet 192.168.0.34/24 brd 192.168.0.255 scope global eth0
    9. valid_lft forever preferred_lft forever
  • @fulltilt


    If you have executed the SQL query above prior re-running the installer that should works. Can I access your server to debug?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206