@Quazz I changed to the master branch, which is the 1.4.0 release, and we just installed it. @CBT is going to poke around it and he’ll get back with you.
Posts made by apathetic_admin
-
RE: System will not image after update: mkfifo error related?
-
RE: System will not image after update: mkfifo error related?
@george1421 That file doesn’t exist.
-
RE: System will not image after update: mkfifo error related?
@george1421 I work with @CBT and can help you out here.
I can’t get you exact versions, but I can give you commits from the git log:
We were on 1.3 RC-11 commit 2718a13d2bd11d4d9ccd4be7f2f005a67000da3e and not experiencing the issue. We were on this one for quite a while, and were at a point where we needed functionality, so we stopped pulling new changes from Github.
2-3 weeks ago I updated to the 1.4 RC, commit ae137758eba57b3c8cbbe316142a628020231045 and began experiencing the issue CBT mentioned.
Last Friday, at CBTs request, I pulled again, commit 56c296e9ae2af0e0ba34b12a04b0b8db0a2dc423, which did not resolve the issue. -
RE: Cannot update from 1.3 RC-10 to RC-11
@Wayne-Workman I’ve got 150 workstations to rename today and I need this fixed: https://forums.fogproject.org/topic/8558/reboot-host-on-hostname-changes-and-ad-changes-even-if-users-are-logged-in-button-not-saving
I was going to just make the change that Tom suggested but I can’t find what he wants us to change.
Edit: I’m on RC-11 now, issue seems to be resolved, or so I am being told by a guy on my team.
-
RE: Cannot update from 1.3 RC-10 to RC-11
@Quazz I’d think if I pulled it down then I’d be able to install it.
-
Cannot update from 1.3 RC-10 to RC-11
Server
- FOG Version: 1.3 RC-10
- OS: Ubuntu 14.04
Client
- Service Version: N/A
- OS: N/A
Description
When running the installation script, it says I need to install/update the database schema, but when you open the FOG console it doesn’t prompt you to do anything. The banner at the top says I am still on RC-10. I also noticed that the top of the installation script says I am installing RC-10, but I assumed that was just something that was missed, as a “git pull” shows that I’m on “working-RC-11.”
Once I’m done, it still says
Running Version: 1.3.0-RC-10 Your verson of FOG is up to date.
If it wasn’t for git telling me I’m on the current RC-11 I would think that I wasn’t. My only thought is that perhaps the sql update portion is failing for some reason, but I can’t find anything in the error log that would indicate why.
-
RE: RC-1 Hosts Disappear When a New Host is Added
@Wayne-Workman That is good to hear! Thanks
-
RE: RC-1 Hosts Disappear When a New Host is Added
Here’s a fun thought:
I approve all of these pending “new” hosts, now there they are, virgin entries in the database, with no Active Directory configuration. FOG suddenly finds all of these new hosts are joined to a domain, but shouldn’t be, and starts removing all of them from the domain. -
RE: RC-1 Hosts Disappear When a New Host is Added
@Wayne-Workman Sorry, I believe there is a misunderstanding here.
On July 19 I took a snapshot, and updated to RC1. After a few days of no noticeable problems, I deleted the snapshot. That is the snapshot I would have needed to revert to. The snapshot I took today was of a broken RC1, before I updated to RC8.
Also, while I found a backup of the code in /home, I see that I haven’t had a database backup since April, so that is sad. I’ll probably poke around in the database and see if I can figure something out, otherwise we’ll just start re-associating hosts with images and snapins.
-
RE: RC-1 Hosts Disappear When a New Host is Added
@Wayne-Workman Yeah, the snapshot I took this morning is.
Also I found the SQL backups, when you said /home I was thinking root’s home (since I ran the install script via sudo) but now I see that there’s actually a folder in /home for them.
-
RE: RC-1 Hosts Disappear When a New Host is Added
@Wayne-Workman There is not. I take vm snapshots when I do these updates but after a few days I usually delete them.
-
RC-1 Hosts Disappear When a New Host is Added
Several weeks ago we updated from Git 8359 to 1.3.0 RC-1, and all was well, or so we thought. Yesterday, for the first time since we performed that update, someone added a new host. When the new host was added, all of our other hosts disappeared in FOG. Within a few hours, they were all listed as pending MACs. I updated to RC-8 to see if it resolved it, but it didn’t. I accepted the new MACs and they are all back in as hosts however they don’t have any of their previous data applied to them. I dumped out the database before I moved to RC-8 (and I have a vmware snapshot as well) so I do have a nice backup of that. It appears that the old host data is still in the database, so I’m not really sure where to go from here, if I should just suck it up or if maybe we can get it back. I’m not sure if this is a bug that was in RC-1 that has been previously reported (didn’t find much in search) or if this might be something that is still around.
-
RE: More PHP errors after upgrade to trunk
@Tom-Elliott Man, it’s always just that easy.
Muchas gracias.
-
RE: More PHP errors after upgrade to trunk
$_SESSION['PluginsInstalled'] = (array)$this->getActivePlugins();
-
More PHP errors after upgrade to trunk
Update: On Tom’s recommendation I blew away /var/www/fog and /var/www/html and reran the installer and all is well.
Going from Github 7254 to 8140.
Previously while upgrading to 7254 I had issues which Tom helped me resolve.
Currently, when I run the installfog script, I get to the part where I need to do the database update. Apache returns 500, and tailing the error log file shows an unending stream of errors:
[Thu Jun 16 13:59:56.565405 2016] [:error] [pid 4925] [client 172.16.0.215:57046] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87 [Thu Jun 16 13:59:56.586163 2016] [:error] [pid 5158] [client 172.16.0.117:56988] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87 [Thu Jun 16 13:59:56.589868 2016] [:error] [pid 5095] [client 172.16.0.215:57047] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/management/index.php(2): require('/var/www/fog/co...')\n#3 {main}\n thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87 [Thu Jun 16 13:59:56.593972 2016] [:error] [pid 5055] [client 172.16.0.246:63319] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87 [Thu Jun 16 13:59:56.613829 2016] [:error] [pid 5081] [client 172.16.0.246:63320] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/management/index.php(2): require('/var/www/fog/co...')\n#3 {main}\n thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87 [Thu Jun 16 13:59:56.638648 2016] [:error] [pid 5158] [client 172.16.0.95:59207] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87 [Thu Jun 16 13:59:56.639778 2016] [:error] [pid 5118] [client 172.16.0.117:56989] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87 [Thu Jun 16 13:59:56.668276 2016] [:error] [pid 5081] [client 172.16.0.95:59208] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87 [Thu Jun 16 13:59:56.693870 2016] [:error] [pid 5096] [client 172.16.0.117:56990] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87 [Thu Jun 16 13:59:56.700321 2016] [:error] [pid 5055] [client 172.16.0.95:59209] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87
This entry is specifically from me accessing the page http://fog.domain.com/fog/management for the update:
[Thu Jun 16 14:00:37.408236 2016] [:error] [pid 5118] [client 172.16.7.34:65250] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/management/index.php(2): require('/var/www/fog/co...')\n#3 {main}\n thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87
I did run updates on by Ubuntu server before trying to upgrade FOG, however in the past month I attempted this without doing an update to Ubuntu beforehand and encountered the same issues, however I rolled back my VM snapshot because I didn’t have time to troubleshoot then.
-
RE: High CPU, PHP Errors after update to trunk (github) 7234
Spent some time with Tom and I think it’s better now. We rolled back and fourth through various revisions, and then went to php 7, and the load averages are a bit lower than they were before. The report issue was fixed by upping the memory limit for FOG in the FOG settings.
-
RE: High CPU, PHP Errors after update to trunk (github) 7234
@Wayne-Workman I made that change, unfortunately it does not seem to have made an impact.
I also just tried to run a report and got this gem:
[Thu Apr 21 09:30:03.003142 2016] [:error] [pid 29602] [client 10.128.7.34:52444] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/fog/lib/db/mysql.class.php on line 67, referer: http://fog/fog/management/index.php?node=report [Thu Apr 21 09:30:03.073369 2016] [:error] [pid 29602] [client 10.128.69.110:54425] PHP Fatal error: Cannot redeclare class Initiator in /var/www/fog/commons/init.php on line 2 [Thu Apr 21 09:30:04.125460 2016] [core:notice] [pid 25642] AH00051: child pid 29602 exit signal Segmentation fault (11), possible coredump in /etc/apache2
-
High CPU, PHP Errors after update to trunk (github) 7234
I probably should have posted this in the bug reports section. Please move it if we need to do that.
Updated to 7238, and then 7240 today. Nagios started complaining about sustained high CPU load, and there are several pages that aren’t working.
Here is some info from top:
29419 www-data 20 0 326492 17936 8156 S 28.8 0.1 0:11.29 apache2 29399 www-data 20 0 326844 17476 7728 R 28.4 0.1 0:16.13 apache2 29337 www-data 20 0 326740 17416 7776 R 27.3 0.1 0:34.32 apache2 29444 www-data 20 0 326568 17192 7492 R 27.3 0.1 0:04.13 apache2 24973 mysql 20 0 3450612 84784 7220 S 27.0 0.5 6:11.74 mysqld 29050 www-data 20 0 476664 19868 9528 R 27.0 0.1 1:51.93 apache2 29254 www-data 20 0 326476 17548 7936 S 27.0 0.1 0:58.32 apache2 29306 www-data 20 0 326096 18144 8808 R 27.0 0.1 0:48.90 apache2 29415 www-data 20 0 326872 17652 7648 S 26.6 0.1 0:11.11 apache2 29416 www-data 20 0 326728 16992 7356 R 26.6 0.1 0:10.60 apache2 29446 www-data 20 0 326588 17324 7600 S 26.6 0.1 0:04.13 apache2 29456 www-data 20 0 324252 14568 5656 R 26.3 0.1 0:01.33 apache2 29445 www-data 20 0 326824 17316 7588 R 25.5 0.1 0:03.77 apache2 29400 www-data 20 0 326316 17248 7824 S 25.2 0.1 0:16.12 apache2 29395 www-data 20 0 326304 17152 8028 S 24.8 0.1 0:17.92 apache2 29401 www-data 20 0 326044 17060 7896 S 24.8 0.1 0:16.08 apache2 29407 www-data 20 0 326284 16768 7672 S 24.1 0.1 0:12.86 apache2 29461 www-data 20 0 325948 16064 7136 S 20.9 0.1 0:00.58 apache2
And here are some entries from /var/log/apache2/error.log:
[Wed Apr 20 14:44:38.384617 2016] [:error] [pid 29419] [client 10.128.7.15:59589] PHP Warning: array_map(): An error occurred while invoking the map callback in /var/www/fog/lib/fog/fogcontroller.class.php on line 196, referer: http://fog.rmgcom.local/fog/management/index.php?node=host [Wed Apr 20 14:44:38.385009 2016] [:error] [pid 29419] [client 10.128.7.15:59589] PHP Warning: array_map(): An error occurred while invoking the map callback in /var/www/fog/lib/fog/fogcontroller.class.php on line 196, referer: http://fog.rmgcom.local/fog/management/index.php?node=host [Wed Apr 20 14:44:38.387353 2016] [:error] [pid 29419] [client 10.128.7.15:59589] PHP Warning: array_map(): An error occurred while invoking the map callback in /var/www/fog/lib/fog/fogcontroller.class.php on line 196, referer: http://fog.rmgcom.local/fog/management/index.php?node=host [Wed Apr 20 14:44:38.387844 2016] [:error] [pid 29419] [client 10.128.7.15:59589] PHP Warning: array_map(): An error occurred while invoking the map callback in /var/www/fog/lib/fog/fogcontroller.class.php on line 196, referer: http://fog.rmgcom.local/fog/management/index.php?node=host [Wed Apr 20 14:44:38.388283 2016] [:error] [pid 29419] [client 10.128.7.15:59589] PHP Warning: array_map(): An error occurred while invoking the map callback in /var/www/fog/lib/fog/fogcontroller.class.php on line 196, referer: http://fog.rmgcom.local/fog/management/index.php?node=host [Wed Apr 20 14:44:38.389913 2016] [:error] [pid 29419] [client 10.128.7.15:59589] PHP Warning: array_map(): An error occurred while invoking the map callback in /var/www/fog/lib/fog/fogcontroller.class.php on line 196, referer: http://fog.rmgcom.local/fog/management/index.php?node=host [Wed Apr 20 14:44:38.402290 2016] [:error] [pid 29419] [client 10.128.7.15:59589] PHP Warning: array_map(): An error occurred while invoking the map callback in /var/www/fog/lib/fog/fogcontroller.class.php on line 196, referer: http://fog.rmgcom.local/fog/management/index.php?node=host [Wed Apr 20 14:44:38.404902 2016] [:error] [pid 29419] [client 10.128.7.15:59589] PHP Warning: array_map(): An error occurred while invoking the map callback in /var/www/fog/lib/fog/fogcontroller.class.php on line 196, referer: http://fog.rmgcom.local/fog/management/index.php?node=host [Wed Apr 20 14:44:38.406225 2016] [:error] [pid 29419] [client 10.128.7.15:59589] PHP Warning: array_map(): An error occurred while invoking the map callback in /var/www/fog/lib/fog/fogcontroller.class.php on line 196, referer: http://fog.rmgcom.local/fog/management/index.php?node=host [Wed Apr 20 14:44:38.406687 2016] [:error] [pid 29419] [client 10.128.7.15:59589] PHP Warning: array_map(): An error occurred while invoking the map callback in /var/www/fog/lib/fog/fogcontroller.class.php on line 196, referer: http://fog.rmgcom.local/fog/management/index.php?node=host
Also seeing this in the log file:
Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/fog/lib/db/mysql.class.php on line 67, referer: http://fog/fog/management/index.php?node=report
In case the version of PHP is relevant, php -v returns:
PHP 5.6.20-1+deb.sury.org~trusty+1 (cli) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies