eth0: error fetching interface information: Device not found

  1. 12 years ago

    I have registered FOP2 using:

    /usr/local/fop2/fop2_server --register -i eth3

    and entered my code, to which I received "registration successful"

    however when I try to start fop2_server directly I get

    [root@phone fop2]# ./fop2_server
    eth0: error fetching interface information: Device not found
    Can't get info from ifconfig: at script/fop2_server.pl line 6220.

    This machine's ifconfig (with IP address changed)

    ifconfig
    eth3 Link encap:Ethernet HWaddr F2:73:87:A9:B1:23
    inet addr:2.6.3.03 Bcast:2.255.255.255 Mask:255.255.255.224
    inet6 addr: fe80::g173:67ff:fea9:b123/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1313656 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1248081 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:274011187 (261.3 MiB) TX bytes:312163579 (297.7 MiB)

    eth4 Link encap:Ethernet HWaddr D2:8C:C9:0C:FC:48
    inet addr:10.10.10.250 Bcast:10.255.255.255 Mask:255.255.0.0
    inet6 addr: fe80::d108c:c6ff:fe0c:fb48/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:7843966 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1220403 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:894205378 (852.7 MiB) TX bytes:260356468 (248.2 MiB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:4077 errors:0 dropped:0 overruns:0 frame:0
    TX packets:4077 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:2344468 (2.2 MiB) TX bytes:2344468 (2.2 MiB)

  2. admin

    24 Jan 2012 Administrator

    You must pass the "-i eth3" every time you run fop2

    ./fop2_server -i eth3

    Best regards,

  3. Any way to do this via the init script?

    Edit: Also, this is still not working. It starts but when I try to login it acts as though the backend is down (attempting login...).

    Here is what I get at the CLI

    [root@phone fop2]# ./fop2_server -i eth3
    Flash Operator Panel 2 - White Label Version.
    Use of uninitialized value in hash element at script/fop2_server.pl line 5834.
    Use of uninitialized value in numeric gt (>) at script/fop2_server.pl line 5846.
    Use of uninitialized value in numeric gt (>) at script/fop2_server.pl line 5846.
    Use of uninitialized value in concatenation (.) or string at script/fop2_server.pl line 5857.
    Use of uninitialized value in concatenation (.) or string at script/fop2_server.pl line 5857.'

    Edit: this is with iptables disabled for testing, so it's not a port issue afaik.

  4. admin

    6 Feb 2012 Administrator

    Depending on your version you set the OPTIONS variable in the init script. For fop 2.24 on centos the file is /etc/sysconfig/fop2 . Older fop2 versions is in the very same init script /etc/rc.d/init.d/fop2

    For debian its in /etc/init.d/fop2 for versions prior to 2.24 and /etc/default/fop2 for 2.24.

    set the OPTIONS="" line including your -i eth3 parameter

    In any case, having it licensed or not, you should be able to login. fop2_server must be running and binding to port 4445/tcp.

    netstat -lnp | grep 4445

    should display the port open with fop2_server as it process name

  5. Working now, thanks nicolas.

  6. Nicolas,

    Me again. Trying to upgrade to 2.26 to resolve an issue with Chrome on this same system.

    Getting the error below. Is there a way to specify the interface while upgrading? I have my OPTIONS set in sysconig, not sure how to pass that variable to make.

    Thanks

    eth0: error fetching interface information: Device not found
    Can't get info from ifconfig: at script/fop2_server.pl line 6878.

    Upgrade Aborted. License reactivation failed.

    Be sure you have internet access from this server,
    and that your code is not older than a year.

    If your license has expired, you must renew it in order to upgrade,
    but you can still use your current FOP2 version for as long as you want.

    If you already bought an upgrade code please run the following command:

    server/fop2_server --upgrade

    If the upgrade is successful run make again to retry the installation.

  7. It should be noted the serial code is less than a year old.

  8. More issues.

    Did a full revoke and reinstall: removed /usr/local/fop2 /var/www/html/fop2 and /etc/init.d/fop2 + make in the 2.26 directory.

    When I try to register my serial I get:

    License Activation
    ------------------

    Enter your serial code: REDACTED

    Serial code not available for version 2.26.

    You can register only version 2.20.

    I will email you my current serial, it was purchased in January and the previous version was 2.24.

    Scott

  9. admin

    13 Jun 2012 Administrator

    revoke / register only works with the same FOP2 version. If you want to upgrade fop2, you do not have to remove anything, nor revoke the license. Just download, extract and run make.

  10. Hello Nicolas,

    When running 'make install' to upgrade from 2.24 to 2.26 it errors out with:

    eth0: error fetching interface information: Device not found
    Can't get info from ifconfig: at script/fop2_server.pl line 6878

    Upgrade Aborted. License reactivation failed.
    ...

    I know it's because it should be looking at eth1.

    Did the upgrade truly fail or do I need to do something different than "make install" to get it to upgrade?

    Thanks for any advice you can offer.

  11. admin

    31 Aug 2012 Administrator

    Hi,

    The problem is in the Makefile that is not smart enough to get the interface parameter. You have to edit the Makefile, look for the line that runs fop2_server with the --reactivate option, and just add -i eth1 to that line, something like:

    [code] server/fop2_server --reactivate -i eth1; \[/code]

    Then run "make" again.

    Best regards,

or Sign Up to reply!