1.4.1 Unable to register host (/bin/fog.man.reg)



  • Server
    • FOG Version: 1.4.1
    • OS: Debian 8.8
    Client
    • Service Version:
    • OS: Windows 10
    Description

    Just set up a brand new server (moving from centOS to Debian to match all our other servers) on 1.4.1, ran through everything fine, booted up a computer and it gets through PXE, and can get to the boot menu and but we were unable to perform full host registration and inventory, getting the error “Unable to register host (/bin/fog/man.reg)”



  • @george1421 Thanks for all your help!



  • Can confirm as well that worked. Thank you!


  • Senior Developer

    Please like all of @george1421. His testing helped me see the error directly. Sorry it was hard to see it.

    The quick fix is only intended for those who fresh installed. In 1.4.2 it should not happen anymore.



  • @Tom-Elliott

    Fixed for my fresh install!



  • @Tom-Elliott Fixed. Thanks!



  • @Tom-Elliott IT WORKS!!!

    Thanks for all your help.



  • @Tom-Elliott The quick fix worked for me. Thanks. Done a Full Host Registration and capturing images now.


  • Senior Developer

    Quick fix:

    FOG Configuration Page->FOG Settings->Web Server->FOG_WEB_ROOT please set to /fog/ and update.

    This should fix the problem for you.

    I’ll try to get a fix pushed for fresh installs.



  • @Tom-Elliott I ran those commands and tried to re-register, but no change in the result.



  • @Tom-Elliott Commands went through successfully.

    I’m still getting the same error and automatic computer reboot though.

    Edit: If I add the host manually into FOG, I get repeated messages saying “failed to check in” on the host. This does not stop until you hold the power button.


  • Senior Developer

    It doesn’t appear you have two installs of FOG. I purposely make a link from /var/www/fog to /var/www/html/fog, but in some older system cases the link was unable to be used. So some instances would work from /var/www/fog and /var/www/html/fog. If the link didn’t exist, it was possible to have two links together.

    Can you try:

    sudo -i #enter logged in user's password if needed
    rm /var/www/html/fog #confirm as needed)
    mv /var/www/{,html/}fog
    ln -s /var/www/{html/,}fog
    


  • Hello,

    I am running Ubuntu 16.04.2 LTS with FOG 1.4.1, and I am having what appears to be the exact same issue.

    Here is the results of my ls -lhart commands:

    alt text

    I should note that while it appears to be the case that there are two installs of the FOG, I just installed Ubuntu today, and the only other program that I installed on this machine is isc-dhcp-server to specifically for FOG.



  • @Tom-Elliott Sure, I’ll get you the output. However, I never updated the server. This is a brand new fresh install. I’ve re-installed ubuntu server AND fog 7 times or so from scratch.

     ls -lhart /var/www
    
    total 16K
    
    drwxr-xr-x 14 root     root     4.0K Jun  2 10:43 [01;34 ..
    
    drwxr-xr-x  2 root     root     4.0K Jun  2 10:47 [01;34  html
    
    drwxr-xr-x  4 root     root     4.0K Jun  2 11:49 [01;34 .
    
    drwxr-xr-x 11 www-data www-data 4.0K Jun  2 11:50 [01;34 fog
    
    root@fog-server:~/fogproject# ls -lhart /var/www/html
    
    total 20K
    
    -rw-r--r-- 1 root root  11K Jun  2 10:43 index.html
    
    lrwxrwxrwx 1 root root   13 Jun  2 10:47  fog -> /var/www/fog/
    
    drwxr-xr-x 2 root root 4.0K Jun  2 10:47  .
    
    drwxr-xr-x 4 root root 4.0K Jun  2 11:49  ..
    
    root@fog-server:~/fogproject# exit
    
    exit
    

  • Senior Developer

    @Kyley-Holloway Those error’s aren’t related to why you can’t register a host unfortunately.



  • Here is my error logif this helps anyone.

    [Thu Jun 01 14:13:42.441111 2017] [mpm_event:notice] [pid 19095:tid 140209925355392] AH00489: Apache/2.4.25 (Ubuntu) configured -- resuming normal operations
    [Thu Jun 01 14:13:42.441234 2017] [core:notice] [pid 19095:tid 140209925355392] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Jun 01 14:15:19.031610 2017] [mpm_event:notice] [pid 19095:tid 140209925355392] AH00491: caught SIGTERM, shutting down
    [Thu Jun 01 14:15:19.105020 2017] [mpm_prefork:notice] [pid 31995] AH00163: Apache/2.4.25 (Ubuntu) configured -- resuming normal operations
    [Thu Jun 01 14:15:19.105131 2017] [core:notice] [pid 31995] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Jun 01 14:15:19.373176 2017] [mpm_prefork:notice] [pid 31995] AH00169: caught SIGTERM, shutting down
    [Thu Jun 01 14:15:19.536624 2017] [mpm_prefork:notice] [pid 32070] AH00163: Apache/2.4.25 (Ubuntu) configured -- resuming normal operations
    [Thu Jun 01 14:15:19.536695 2017] [core:notice] [pid 32070] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Jun 01 14:18:39.859031 2017] [mpm_prefork:notice] [pid 32070] AH00169: caught SIGTERM, shutting down
    [Thu Jun 01 14:20:12.398098 2017] [mpm_prefork:notice] [pid 19441] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured -- resuming normal operations
    [Thu Jun 01 14:20:12.398179 2017] [core:notice] [pid 19441] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Jun 01 14:20:29.470847 2017] [php7:warn] [pid 19445] [client 10.43.10.171:59824] PHP Warning:  array_combine(): Both parameters should have an equal number of elements in /var/www/fog/lib/fog/fogbase.class.php on line 1029
    [Thu Jun 01 14:20:29.470887 2017] [php7:warn] [pid 19445] [client 10.43.10.171:59824] PHP Warning:  array_intersect_key(): Argument #1 is not an array in /var/www/fog/lib/client/fogclient.class.php on line 90
    [Thu Jun 01 14:20:53.683673 2017] [php7:error] [pid 19466] [client 10.43.10.164:64306] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 15:04:44.802678 2017] [php7:error] [pid 19448] [client 10.43.10.106:59179] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 15:52:42.759013 2017] [php7:error] [pid 19464] [client 10.43.10.88:53001] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 16:02:05.599188 2017] [php7:error] [pid 22442] [client 10.43.10.106:60003] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 16:38:55.041964 2017] [php7:error] [pid 19447] [client 10.43.10.106:60463] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 16:56:45.647544 2017] [php7:error] [pid 19464] [client 10.43.10.28:55552] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 17:14:56.378676 2017] [php7:error] [pid 19464] [client 10.43.10.106:60937] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 17:16:51.696990 2017] [php7:error] [pid 19466] [client 10.43.10.106:60958] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 17:19:12.293339 2017] [php7:error] [pid 19464] [client 10.43.10.106:61049] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 17:19:40.739948 2017] [php7:error] [pid 19448] [client 10.43.10.227:57083] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 18:40:38.929905 2017] [php7:error] [pid 22488] [client 10.43.10.121:62903] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 18:55:19.450693 2017] [php7:error] [pid 23640] [client 10.43.10.106:62138] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 19:06:56.938557 2017] [php7:error] [pid 19449] [client 10.43.10.147:51264] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 19:14:03.037437 2017] [php7:error] [pid 19447] [client 10.43.10.147:51387] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 19:17:50.780932 2017] [php7:error] [pid 19446] [client 10.43.10.75:65253] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 20:06:00.474138 2017] [php7:error] [pid 19448] [client 10.43.10.106:62904] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Thu Jun 01 22:54:45.831354 2017] [php7:error] [pid 19447] [client 10.43.10.106:65046] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Fri Jun 02 06:43:36.732886 2017] [php7:error] [pid 19448] [client 10.43.10.147:62842] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Fri Jun 02 07:07:43.585431 2017] [php7:error] [pid 22488] [client 10.43.10.88:58026] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Fri Jun 02 07:17:54.430061 2017] [php7:error] [pid 19449] [client 10.43.10.147:63148] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Fri Jun 02 07:22:45.875004 2017] [php7:error] [pid 19446] [client 10.43.10.227:50462] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Fri Jun 02 07:47:12.421721 2017] [php7:error] [pid 19446] [client 10.43.10.28:58467] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Fri Jun 02 08:06:42.904631 2017] [php7:error] [pid 19464] [client 10.43.10.124:63649] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Fri Jun 02 12:45:42.154652 2017] [php7:error] [pid 19464] [client 10.43.10.28:63066] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    [Fri Jun 02 12:50:35.531690 2017] [php7:error] [pid 19466] [client 10.43.10.164:65518] PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/fog/lib/client/fogclient.class.php(185): FOGBase->sendData('{"error":"ih"}')\n#1 /var/www/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1723
    
                                                                                                                                     
    


  • @zclift15 Found something new. I am unable to download client software.

    http://YOURSERVERIP/WEB_ROOT/client/download.php?newclient

    Can you?

    It goes to the page but does nothing.


  • Senior Developer

    @ddeatrich That error is more just a warning. We don’t use UDEV and I don’t build the kernels with it, so it just tells you the epoll function doesn’t exist. This is not the problem you’re having though.

    Your fatal error appears to be due to mysql, maybe that was when you updated your server?

    I am wondering if the reason is potentially two existing copies of FOG on the same server?

    Can you get us output of:

    ls -lhart /var/www
    and
    ls -lhart /var/www/html

    I’m suspecting you have a copy within a copy and the place it’s getting the file is causing all the ruckus you’re seeing.



  • @ddeatrich
    I’m also getting this error but I didn’t think much of it either



  • @george1421 I’m also getting this error on client boot up after clicking quick registration -

    http://i.imgur.com/It20TgJ.jpg

    Not sure if that means anything or not though. Seems like a function is missing.


Log in to reply
 

382
Online

39.3k
Users

11.0k
Topics

104.4k
Posts

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