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



  • @george1421
    This might make sense because I’m replacing a pre-existing network of nodes but i just turned them off and it didn’t fix my issue I can post the error log if that helps.


  • Moderator

    @ddeatrich said in 1.4.1 Unable to register host (/bin/fog.man.reg):

    ftp_rename(): RNFR command failed

    Interesting you also have an ftp issue (probably related to that linux fog user). This is the command to rename an image after capture.

    Uncaught Error: Call to a member function lastInsertId()

    And equally as interesting this error. I’m sure I’ve see this error in the last 24 hours in another thread too. That user was using cento 7.

    I’m still in the process of building a new fog server. Its almost done installing centos 7. Once updated I’ll install fog and test it out.



  • @george1421 Here’s my error log! Pasted below:

    [Fri Jun 02 10:43:27.561743 2017] [mpm_event:notice] [pid 58084:tid 139735762083328] AH00489: Apache/2.4.25 (Ubuntu) configured -- resuming normal operations
    [Fri Jun 02 10:43:27.561816 2017] [core:notice] [pid 58084:tid 139735762083328] AH00094: Command line: '/usr/sbin/apache2'
    [Fri Jun 02 10:44:32.930751 2017] [mpm_event:notice] [pid 58084:tid 139735762083328] AH00491: caught SIGTERM, shutting down
    [Fri Jun 02 10:44:32.990889 2017] [mpm_prefork:notice] [pid 5599] AH00163: Apache/2.4.25 (Ubuntu) configured -- resuming normal operations
    [Fri Jun 02 10:44:32.990991 2017] [core:notice] [pid 5599] AH00094: Command line: '/usr/sbin/apache2'
    [Fri Jun 02 10:44:33.194191 2017] [mpm_prefork:notice] [pid 5599] AH00169: caught SIGTERM, shutting down
    [Fri Jun 02 10:44:33.299439 2017] [mpm_prefork:notice] [pid 5669] AH00163: Apache/2.4.25 (Ubuntu) configured -- resuming normal operations
    [Fri Jun 02 10:44:33.299478 2017] [core:notice] [pid 5669] AH00094: Command line: '/usr/sbin/apache2'
    [Fri Jun 02 10:46:35.190386 2017] [mpm_prefork:notice] [pid 5669] AH00169: caught SIGTERM, shutting down
    [Fri Jun 02 10:47:16.108199 2017] [mpm_prefork:notice] [pid 18340] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
    [Fri Jun 02 10:47:16.108242 2017] [core:notice] [pid 18340] AH00094: Command line: '/usr/sbin/apache2'
    [Fri Jun 02 10:56:38.868268 2017] [mpm_prefork:notice] [pid 18340] AH00169: caught SIGTERM, shutting down
    [Fri Jun 02 10:57:03.119359 2017] [mpm_prefork:notice] [pid 1683] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
    [Fri Jun 02 10:57:03.161915 2017] [core:notice] [pid 1683] AH00094: Command line: '/usr/sbin/apache2'
    [Fri Jun 02 11:38:25.430410 2017] [php7:warn] [pid 4298] [client 10.10.2.218:5156] PHP Warning:  ftp_rename(): RNFR command failed. in /var/www/fog/lib/fog/fogftp.class.php on line 769, referer: http://10.10.2.217/fog/management/index.php?node=about&sub=kernel&file=aHR0cHM6Ly9mb2dwcm9qZWN0Lm9yZy9rZXJuZWxzL0tlcm5lbC5Ub21FbGxpb3R0LjQuMTEuMC42NA==&arch=64
    [Fri Jun 02 11:46:22.075080 2017] [mpm_prefork:notice] [pid 1683] AH00169: caught SIGTERM, shutting down
    [Fri Jun 02 11:46:30.024649 2017] [mpm_prefork:notice] [pid 6965] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
    [Fri Jun 02 11:46:30.024700 2017] [core:notice] [pid 6965] AH00094: Command line: '/usr/sbin/apache2'
    [Fri Jun 02 11:46:36.156652 2017] [php7:error] [pid 6977] [client 10.10.2.217:54518] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:443\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(527): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(59): FOGController->save()\n#2 /var/www/fog/lib/fog/reportmaker.class.php(75): HookManager->processEvent('REPORT_TYPES', Array)\n#3 [internal function]: ReportMaker->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(457): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/maintenance/backup_db.php(23): FOGBase::getClass('ReportMaker')\n#6 {main}\n  thrown in /var/www/fog/lib/db/pdodb.class.php on line 443
    [Fri Jun 02 11:47:44.138527 2017] [php7:error] [pid 7003] [client 10.10.2.218:6181] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:443\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(527): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(59): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpagemanager.class.php(82): HookManager->processEvent('SEARCH_PAGES', Array)\n#3 [internal function]: FOGPageManager->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(457): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/index.php(23): FOGBase::getClass('FOGPageManager')\n#6 {main}\n  thrown in /var/www/fog/lib/db/pdodb.class.php on line 443, referer: http://10.10.2.217/fog/management/index.php?node=about&sub=settings
    [Fri Jun 02 11:49:45.259879 2017] [mpm_prefork:notice] [pid 6965] AH00169: caught SIGTERM, shutting down
    [Fri Jun 02 11:49:50.794797 2017] [mpm_prefork:notice] [pid 8551] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
    [Fri Jun 02 11:49:50.794838 2017] [core:notice] [pid 8551] AH00094: Command line: '/usr/sbin/apache2'
    
    

  • Moderator

    @zclift15 said in 1.4.1 Unable to register host (/bin/fog.man.reg):

    @george1421
    ddeatrich was the one who posted that

    Sorry only looked at the color of the icon not close enough. Sorry.

    Then the second post was directed at you about the FTP issue.


  • Moderator

    @zclift15 said in 1.4.1 Unable to register host (/bin/fog.man.reg):

    PHP Warning: ftp_rename(): Rename failed.

    As for this one. Where we typically see this error is if someone mucks about with the FOG service account. This is a linux account called fog. The installer manages this user account and password. The linux user fog (not the same as the web gui admin called fog) is used by FOG to move files around on the FOG server after image capture. The linux account password needs to match the password defined in the gui configuration for the storage node. If these are out of sync you will get the ftp errors like in your log.



  • @george1421
    ddeatrich was the one who posted that


  • Moderator

    @zclift15 That’s not the same error log as your picture. I see the php warnings about ftp (that is something else that needs to be addressed). What the devs will be interested in is the PHP Fatal error at 11:46 it may be nothing but it also could be something. Fatal generally means something bad. ;-)



  • @Tom-Elliott
    I’m following along here and so far had the same results. here is my error log

    [Thu Jun 01 12:37:11.809778 2017] [core:notice] [pid 11683] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Jun 01 12:40:24.316027 2017] [mpm_prefork:notice] [pid 11683] AH00169: caught SIGTERM, shutting down
    [Thu Jun 01 12:42:42.516669 2017] [mpm_prefork:notice] [pid 26837] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations
    [Thu Jun 01 12:42:42.516750 2017] [core:notice] [pid 26837] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Jun 01 14:06:45.487089 2017] [:error] [pid 32023] [client 131.128.53.29:54302] PHP Warning: ftp_rename(): Rename failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 769, referer: http://131.128.53.30/fog/management/index.php?node=about&sub=kernel&file=aHR0cHM6Ly9mb2dwcm9qZWN0Lm9yZy9rZXJuZWxzL0tlcm5lbC5Ub21FbGxpb3R0LjQuMTEuMC42NA==&arch=64
    [Thu Jun 01 14:07:18.547598 2017] [mpm_prefork:notice] [pid 26837] AH00169: caught SIGTERM, shutting down
    [Thu Jun 01 14:07:46.810476 2017] [mpm_prefork:notice] [pid 621] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations
    [Thu Jun 01 14:07:46.815765 2017] [core:notice] [pid 621] AH00094: Command line: '/usr/sbin/apache2'
    [Fri Jun 02 00:28:09.222838 2017] [:error] [pid 24581] [client 139.162.78.135:43948] script '/var/www/html/echo.php' not found or unable to stat
    [Fri Jun 02 09:18:18.591258 2017] [:error] [pid 21306] [client 131.128.53.29:56037] PHP Warning: ftp_mkdir(): Create directory operation failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 492, referer: http://131.128.53.30/fog/management/index.php?node=about&sub=kernel&file=aHR0cHM6Ly9mb2dwcm9qZWN0Lm9yZy9rZXJuZWxzL0tlcm5lbC5Ub21FbGxpb3R0LjQuMTAuMTAuMzI=&arch=32```

  • Moderator

    @ddeatrich The php fatal error in your snap would be interesting to see the full error message. That may give the devs a clue to at lest what point it failing.

    I just upgraded my dev server from 1.4.0 to 1.4.1 and created a new vm client to test registration and it worked as it should. But that is not a like for like test. If you installed 1.4.1 fresh. I’ll start building a new install of FOG on Cento 7 to see if its a fresh install thing or something else.



  • @george1421 Yup, I know. Thanks though! I’m on the phone at work at the same time doing this. I’ll be able to copy and paste shortly.


  • Moderator

    @ddeatrich Hint: Please use putty to connect to the FOG server using ssh. With putty you can copy and paste better than snapping screen images of logs and such.

    With Putty just click and drag across the text like you can do in a windows console then you can paste it in.


  • Senior Developer

    @ddeatrich Can you copy paste the text? It will be alot easier to read as your screenshot seems to be cutting off some of the text itself.



  • @Tom-Elliott Other than Apache shutting down and starting on restarts…

    Edit… screenshoting. There may be a few things in here.

    http://i.imgur.com/0UN7yQZ.png


  • Senior Developer

    @ddeatrich Anything in your fog server’s Apache error log?



  • @Tom-Elliott Yup. The server replies just fine. No issues


  • Senior Developer

    So, for the IP Address, from there can you ping <ipoffogserver>?



  • @Tom-Elliott http://i.imgur.com/BM6qDjx.jpg

    Sorry for imgur. It kept giving me errors when I tried to upload the image.


  • Senior Developer

    @ddeatrich What’s output of: ifconfig -a



  • @Tom-Elliott Done. Debug mode set on kernel and ran quick registration on host computer. What would you like me to do?


  • Senior Developer

    Please add:

    isdebug=yes to FOG Configuration Page->FOG Settings->General Settings->FOG_KERNEL_ARGS

    Load into registration please. (this will make the system drop into a terminal so we can debug more).


Log in to reply
 

456
Online

6.2k
Users

13.6k
Topics

128.2k
Posts