FOG 1.3.4 RC 1 Released


  • Senior Developer


  • Senior Developer

    So indeed an error 500 was being thrown, but it was not a direct “syntax” issue persay.

    @jjacobs provided me with:

    [Thu Jan 26 14:33:59.112512 2017] [php7:error] [pi d 23964] [client 10.62.122.9:54522] PHP Fatal error: Uncaught Exception: Too ma ny MACs in /var/www/fog/lib/client/registerclient.class.php:100\nStack trace:\n# 0 /var/www/fog/lib/fog/fogpage.class.php(2701): RegisterClient->json()\n#1 /var/ www/fog/lib/fog/fogpage.class.php(262): FOGPage->requestClientInfo()\n#2 /var/ww w/fog/lib/fog/processlogin.class.php(57): FOGPage->__construct(’’)\n#3 [internal function]: ProcessLogin->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.p hp(406): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/ind ex.php(29): FOGBase::getClass(‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/f og/lib/client/registerclient.class.php on line 100
    [Thu Jan 26 14:34:00.277606 2017] [php7:error] [pid 24798] [client 10.52.225.22: 60380] PHP Fatal error: Uncaught Exception: Too many MACs in /var/www/fog/lib/c lient/registerclient.class.php:100\nStack trace:\n#0 /var/www/fog/lib/fog/fogpag e.class.php(2701): RegisterClient->json()\n#1 /var/www/fog/lib/fog/fogpage.class .php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog/lib/fog/processlogin.cl ass.php(57): FOGPage->__construct(’’)\n#3 [internal function]: ProcessLogin->__c onstruct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(406): ReflectionClass->new InstanceArgs(Array)\n#5 /var/www/fog/management/index.php(29): FOGBase::getClass (‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/lib/client/registerclient. class.php on line 100
    [Thu Jan 26 14:34:01.817646 2017] [php7:error] [pid 24693] [client 10.52.97.18:4 9655] PHP Fatal error: Uncaught Error: Call to a member function isValid() on n ull in /var/www/fog/lib/client/registerclient.class.php:67\nStack trace:\n#0 /va r/www/fog/lib/fog/fogpage.class.php(2701): RegisterClient->json()\n#1 /var/www/f og/lib/fog/fogpage.class.php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog /lib/fog/processlogin.class.php(57): FOGPage->__construct(’’)\n#3 [internal func tion]: ProcessLogin->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(40 6): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/index.ph p(29): FOGBase::getClass(‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/li b/client/registerclient.class.php on line 67
    [Thu Jan 26 14:34:14.930038 2017] [php7:error] [pid 24797] [client 10.62.115.239 :55222] PHP Fatal error: Uncaught Error: Call to a member function isValid() on null in /var/www/fog/lib/client/registerclient.class.php:67\nStack trace:\n#0 / var/www/fog/lib/fog/fogpage.class.php(2701): RegisterClient->json()\n#1 /var/www /fog/lib/fog/fogpage.class.php(262): FOGPage->requestClientInfo()\n#2 /var/www/f og/lib/fog/processlogin.class.php(57): FOGPage->__construct(’’)\n#3 [internal fu nction]: ProcessLogin->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php( 406): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/index. php(29): FOGBase::getClass(‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/ lib/client/registerclient.class.php on line 67
    [Thu Jan 26 14:34:25.060571 2017] [php7:error] [pid 23964] [client 10.52.225.8:5 5053] PHP Fatal error: Uncaught Error: Call to a member function isValid() on n ull in /var/www/fog/lib/client/registerclient.class.php:67\nStack trace:\n#0 /va r/www/fog/lib/fog/fogpage.class.php(2701): RegisterClient->json()\n#1 /var/www/f og/lib/fog/fogpage.class.php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog /lib/fog/processlogin.class.php(57): FOGPage->__construct(’’)\n#3 [internal func tion]: ProcessLogin->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(40 6): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/index.ph p(29): FOGBase::getClass(‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/li b/client/registerclient.class.php on line 67
    [Thu Jan 26 14:34:31.481057 2017] [php7:error] [pid 24795] [client 10.52.48.27:6 0003] PHP Fatal error: Uncaught Exception: Too many MACs in /var/www/fog/lib/cl ient/registerclient.class.php:100\nStack trace:\n#0 /var/www/fog/lib/fog/fogpage .class.php(2701): RegisterClient->json()\n#1 /var/www/fog/lib/fog/fogpage.class. php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog/lib/fog/processlogin.cla ss.php(57): FOGPage->__construct(’’)\n#3 [internal function]: ProcessLogin->__co nstruct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(406): ReflectionClass->newI nstanceArgs(Array)\n#5 /var/www/fog/management/index.php(29): FOGBase::getClass( ‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/lib/client/registerclient.c lass.php on line 100
    [Thu Jan 26 14:34:44.043988 2017] [php7:error] [pid 24795] [client 10.52.225.1:5 2387] PHP Fatal error: Uncaught Exception: Too many MACs in /var/www/fog/lib/cl ient/registerclient.class.php:100\nStack trace:\n#0 /var/www/fog/lib/fog/fogpage .class.php(2701): RegisterClient->json()\n#1 /var/www/fog/lib/fog/fogpage.class. php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog/lib/fog/processlogin.cla ss.php(57): FOGPage->__construct(’’)\n#3 [internal function]: ProcessLogin->__co nstruct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(406): ReflectionClass->newI nstanceArgs(Array)\n#5 /var/www/fog/management/index.php(29): FOGBase::getClass( ‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/lib/client/registerclient.c lass.php on line 100
    [Thu Jan 26 14:34:46.877791 2017] [php7:error] [pid 24798] [client 10.52.225.4:5 8369] PHP Fatal error: Uncaught Exception: Too many MACs in /var/www/fog/lib/cl ient/registerclient.class.php:100\nStack trace:\n#0 /var/www/fog/lib/fog/fogpage .class.php(2701): RegisterClient->json()\n#1 /var/www/fog/lib/fog/fogpage.class. php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog/lib/fog/processlogin.cla ss.php(57): FOGPage->__construct(’’)\n#3 [internal function]: ProcessLogin->__co nstruct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(406): ReflectionClass->newI nstanceArgs(Array)\n#5 /var/www/fog/management/index.php(29): FOGBase::getClass( ‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/lib/client/registerclient.c lass.php on line 100
    [Thu Jan 26 14:34:48.411504 2017] [php7:error] [pid 24693] [client 10.52.33.123: 56726] PHP Fatal error: Uncaught Exception: Too many MACs in /var/www/fog/lib/c lient/registerclient.class.php:100\nStack trace:\n#0 /var/www/fog/lib/fog/fogpag e.class.php(2701): RegisterClient->json()\n#1 /var/www/fog/lib/fog/fogpage.class .php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog/lib/fog/processlogin.cl ass.php(57): FOGPage->__construct(’’)\n#3 [internal function]: ProcessLogin->__c onstruct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(406): ReflectionClass->new InstanceArgs(Array)\n#5 /var/www/fog/management/index.php(29): FOGBase::getClass (‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/lib/client/registerclient. class.php on line 100
    [Thu Jan 26 14:35:07.054702 2017] [php7:error] [pid 24693] [client 10.62.118.222 :54653] PHP Fatal error: Uncaught Exception: Too many MACs in /var/www/fog/lib/ client/registerclient.class.php:100\nStack trace:\n#0 /var/www/fog/lib/fog/fogpa ge.class.php(2701): RegisterClient->json()\n#1 /var/www/fog/lib/fog/fogpage.clas s.php(262): FOGPage->requestClientInfo()\n#2 /var/www/fog/lib/fog/processlogin.c lass.php(57): FOGPage->construct(’’)\n#3 [internal function]: ProcessLogin-> construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(406): ReflectionClass->ne wInstanceArgs(Array)\n#5 /var/www/fog/management/index.php(29): FOGBase::getClas s(‘ProcessLogin’)\n#6 {main}\n thrown in /var/www/fog/lib/client/registerclient .class.php on line 100
    

    What this is showing is there’s already a specified number of MAC addresses associated to the host.

    I’ve modified the code base to return the error as expected instead of throwing the error into the “Fatal 500” zone.


  • Senior Developer

    @jjacobs et al,

    When you see Server 500 fault, please try to catch the apache error logs. This will tell me more definitively where a problem is. I don’t have systems with mac’s that “could” appear on multiple systems or trying to register a strange mac address, so it’s very difficult for me to help fix any problems. I simply can’t replicate them, so I think all is good to go.

    Almost always an error 500 is some sort of syntax error which will show up in your apache error logs.



  • Hi Tom,

    First I had version 1.3.3 installed and had the error:

    26/01/2017 12:25 Middleware::Response Error multiple hosts returned for list of mac addresses
    

    After the update to
    Thu Jan 26, 2017 13:22 pm
    Running Version 22
    SVN Revision: 6063

    I still had the following issue:

    26/01/2017 14:05 Middleware::Communication URL: http://CA-FOG/fog/management/index.php?sub=requestClientInfo&mac=34:E6:D7:1F:47:3E|48:51:B7:5D:83:42|48:51:B7:5D:83:43|00:09:0F:FE:00:01|48:51:B7:5D:83:46||00:00:00:00:00:00:00:E0|80:93:87:50:50:47&newService&json
    26/01/2017 14:05 Middleware::Communication ERROR: Could not contact FOG server
    26/01/2017 14:05 Middleware::Communication ERROR: De externe server heeft een fout geretourneerd: (500) Interne serverfout.
    26/01/2017 14:05 Middleware::Response Success
    

    When I disabled the Mobile Broadband card (80:93:87:50:50:47) the client (Latitude E7440) stopped giving the error and renamed and joined the computer.

    Kind regards,
    Johan


  • Senior Developer


  • Moderator

    @Tom-Elliott I’m trying to find the commit where you did this:

    Fix Host MAC table to only have one mac address (not one per host).


  • Senior Developer

    @Wayne-Workman What do you mean?

    The ignore client and ignore image have been in for a VERY long time. They are those checkboxes next to the MAC Addresses.


  • Moderator

    I’ve been looking through the commit history between 1.3.3 and 1.3.4 RC1 and I can’t find a commit with a message that has “mac” in it. Exactly what commit does it?


  • Senior Developer

    @sudburr You can set the mac address to “client ignore”.



  • The circle of logic my head is spinning around is what happens when you have x number of mobile devices that can only connect by using the USBNIC one at a time.

    I guess you would be forced to change the host definition before starting each time to avoid auto-naming each subsequent device with the same name.

    But then thinking out loud … I’m going to guess that the best practice would then be that the USBNIC must be removed from MOBILEDEVICE_1 before it boots for the first time, so that if there is a pre-installed fog client, it doesn’t confuse the database.


  • Senior Developer

    I still feel like I have to clarify more cause this really isn’t making sense to me. If it’s not making sense to me, how can it make sense to anybody else?

    Let’s say you have a USB NIC with primar MAC Address 00:01:02:03:04:05 that’s registered with Name USB_NIC_1

    Let’s say you have another device who’s primary MAC Address is 00:22:33:44:55:11 with Name SOME_HOST_1.

    Now let’s say you put the USB NIC on SOME_HOST_1.

    It would not work. You would get an error stating “Multiple Hosts”. This would be the expected action. Does this make any more sense?


  • Senior Developer

    @neodawg When the update occurs it will wipe out any duplicates.



  • Just curious what will happen to the existing computers that would happen to have duplicate MACs between hosts? Will it wipe out any dups after the first host that uses it? Or does it leave it be until its host item is manipulated in some way (changed).


  • Senior Developer

    I do, however, understand that you’re saying the NIC is being used on multiple machines. You still (even without this change) would not be able to register the nic to multiple machines at the same time. Registration usually adds the MAC in use for registering as the primary mac. The moment you register the first host, any other host using that same nic will not have a “registration” element for the boot menu (because that nic is now registered).


  • Senior Developer

    @Wayne-Workman I still don’t follow.

    If the nic is the item used to image multiple machines, as long as that mac IS the registered mac, the name shouldn’t change. Other hosts won’t be trying to steal it from one another.

    Virtual Machines have duplicate mac’s, yep. If it’s registering as a pending mac, it’s going to be the last host to try to use it. Otherwise you would end up with (Multiple hosts found for this mac) and fail to perform whatever it was going to perform.

    In the case of the USB NIC jumping around, I still don’t understand why it would be “jumping” itself.


  • Moderator

    @Tom-Elliott He’s talking about the same thing I was about to ask.

    For USB ethernet dongles that are used with many devices, and what of MAC addresses for virtual machines?


  • Senior Developer

    @sudburr I don’t follow.



  • @Tom-Elliott So what happens if you re-use that external NIC on another laptop when it comes to FOG naming it?


  • Senior Developer

    I guess I don’t know how to clarify.

    A MAC Address was allowed once per host. The host could have as many mac’s associated to it as wanted.

    For example, host ID 4 could have:

    00:01:02:03:04:05,
    00:22:22:33:33:44,
    00:02:33:33:44:55

    And hostID 5 could have the exact same mac’s associated to it.

    While this was “legal” to the database and even to the display in the GUI, when it came time to manage a host with matching Mac’s you’d see the “Error multiple hosts returned for mac address” kind of things.

    Now, a mac address can only exist once (AND only on one host).


  • Senior Developer

    @Wayne-Workman It means exactly what it states.

    1.3.3 and prior allowed One MAC Per host, but the mac itself could show up on Multiple hosts.

    This is now corrected for and you will only ever have One MAC Address in the table.


Log in to reply
 

484
Online

39.3k
Users

11.0k
Topics

104.5k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.