• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Possible Proxy issue with MAC Address Update

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    3
    1.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      RipAU
      last edited by

      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

      Cheers,

      
      [Tue Dec 12 08:46:03.566215 2017] [:error] [pid 15935] [client 10.0.0.1:63841] 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 10.0.0.1:63841] 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
      
      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @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:
        127.0.0.1   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.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 1
        • R
          RipAU
          last edited by

          Cheers,

          Yes that work around worked.

          Cheers!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          154

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project