Possible Proxy issue with MAC Address Update

  • Hi, Guys

    I’m getting the following errors when trying to update the MAC address.

    The fog server doesn’t have direct connection to the internet so I’ve configured the proxy settings within fog, this seems to be working correctly, but when I go update the Mac address update menu it gives an error that it can not connect (See below) and throws an error on the webpage with Chrome:
    “currently unable to handle this request. HTTP ERROR 500”

    I’m assuming this is because the request to update the mac address isn’t going through the proxy hence the errors.
    Would this be a bug or something I may be doing wrong?

    I’m testing this all on FOG 1.5.0-RC10 with Centos 7


    [Tue Dec 12 08:46:03.566215 2017] [:error] [pid 15935] [client] PHP Warning: fopen(http://linuxnet.ca/ieee/oui.txt): failed to open stream: Connection refused in /var/www/html/fog/lib/pages/fogconfigurationpage.class.php on line 1928, referer: http://fogserver/fog/management/index.php?node=about&sub=maclist
    [Tue Dec 12 08:46:03.566380 2017] [:error] [pid 15935] [client] PHP Fatal error: Uncaught exception 'Exception' with message 'Could not read temp file' in /var/www/html/fog/lib/pages/fogconfigurationpage.class.php:1929\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogpagemanager.class.php(220): FOGConfigurationPage->maclistPost()\n#1 /var/www/html/fog/management/index.php(58): FOGPageManager->render()\n#2 {main}\n thrown in /var/www/html/fog/lib/pages/fogconfigurationpage.class.php on line 1929, referer: http://fogserver/fog/management/index.php?node=about&sub=maclist

  • Cheers,

    Yes that work around worked.


  • Developer

    @RipAU Hmmm, seems like your proxy server does have a problem with that URL. Not sure why. There is nothing FOG can do about it if even you can’t load the URL in Chrome.

    I can only offer a workaround on this. It’s kind of a hack but should work.

    • Download that oui.txt somehow (at home or whatever).
    • Create a directory /var/www/html/ieee on your FOG server and drop that file into that folder.
    • Edit /etc/hosts on your FOG server and add the following line:   linuxnet.ca

    Then try updating the MAC address in the web UI again. Not sure if I got all the paths and stuff right just from the top of my head.