Error when creating capture/deploy task
-
The error should be fixed, but your still going to run into a problem. You need to ensure your image is associated to a storage group.
This means, selecting your image, then click on Storage Groups, it will show one being defined but this is solely so you can actually edit the image.
-
Thanks for taking the time to answer @Tom-Elliott
@Tom-Elliott said:
The error should be fixed, but your still going to run into a problem.
What do you mean? Is this a known error that you are going to fix? But I will still have this problem.
You need to ensure your image is associated to a storage group.
This means, selecting your image, then click on Storage Groups, it will show one being defined but this is solely so you can actually edit the image.
I did not understand this, I choose the “default” storage group by cliking on it, that did now work. Do I need to at a new group?
-
@darius said:
Thanks for taking the time to answer @Tom-Elliott
@Tom-Elliott said:
The error should be fixed, but your still going to run into a problem.
What do you mean? Is this a known error that you are going to fix? But I will still have this problem.What I mean by this is the error will not give you a blank page, but it could’ve still caused an issue in generating the task.
@darius said:
You need to ensure your image is associated to a storage group.
This means, selecting your image, then click on Storage Groups, it will show one being defined but this is solely so you can actually edit the image.
I did not understand this, I choose the “default” storage group by cliking on it, that did now work. Do I need to at a new group?
If you added the image to the storage group you should be fine.
-
Adding the storage group to the image didn’t make any difference. Any other suggestions?
-
@darius How didn’t it make any difference? Are you still seeing the same error or is it presenting another error?
-
@Tom-Elliott I get the same error
-
@darius Then do me a favor.
Run:
sudo rm -rf /var/www/fog sudo rm -rf /var/www/html/fog sudo ln -s /var/www/html/fog /var/www/fog
Then rerun the installer.
-
Deleted the directories and installed again. same error when trying to capture.
I run the installer with sudo. I read the manual again, and stated that i need to run the installer with root. Can it be a permission issue?
The website encountered an error while retrieving http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=1. It may be down for maintenance or configured incorrectly.
-
@darius What’s in the apache error logs?
Are you sure you’re updating the trunk folder? Does it show the proper version in the cloud? What is in the cloud?
-
@Tom-Elliott thanks for your patience
Not sure what a trunk folder is (im new to fog) but in the cloud is “FOG 6563”
This is my apache log:
[Sat Mar 05 19:14:40.572322 2016] [:error] [pid 18038] [client 172.16.0.250:53618] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=1
[Sat Mar 05 19:15:23.848370 2016] [:error] [pid 18082] [client 172.16.0.250:53772] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=1
[Sat Mar 05 19:15:56.968386 2016] [:error] [pid 18038] [client 172.16.0.250:53819] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=2
[Sat Mar 05 19:40:48.384507 2016] [:error] [pid 18036] [client 172.16.0.250:53903] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=1
[Sat Mar 05 19:47:10.368432 2016] [:error] [pid 21132] [client 172.16.0.250:54091] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=1
[Sat Mar 05 20:01:39.544315 2016] [:error] [pid 21133] [client 172.16.0.250:54723] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: https://172.16.0.10/fog/management/?node=host&sub=deploy&sub=deploy&type=2&id=1
[Sat Mar 05 20:10:42.944254 2016] [:error] [pid 21612] [client 172.16.0.250:56257] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: https://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=2
[Sat Mar 05 20:46:49.563800 2016] [:error] [pid 18039] [client 172.16.0.104:59142] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&id=1&type=2
[Sat Mar 05 20:52:40.383518 2016] [:error] [pid 18037] [client 172.16.0.104:59242] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&id=1&type=2
[Sat Mar 05 21:14:56.659907 2016] [:error] [pid 21131] [client 172.16.0.104:59521] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=1
[Sat Mar 05 21:18:13.632334 2016] [:error] [pid 21133] [client 172.16.0.104:59568] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&id=1&type=2
[Sat Mar 05 22:13:50.776286 2016] [:error] [pid 21133] [client 172.16.0.104:63508] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&id=1&type=2
[Sat Mar 05 22:15:36.462617 2016] [:error] [pid 18036] [client 172.16.0.104:63525] PHP Warning: html_entity_decode() expects parameter 1 to be string, array given in /var/www/fog/lib/fog/fogmanagercontroller.class.php on line 87, referer: http://172.16.0.10/fog/management/index.php?node=image&sub=membership&id=5
[Sat Mar 05 22:15:44.073216 2016] [:error] [pid 18038] [client 172.16.0.104:63527] PHP Warning: html_entity_decode() expects parameter 1 to be string, array given in /var/www/fog/lib/fog/fogmanagercontroller.class.php on line 87, referer: http://172.16.0.10/fog/management/index.php?node=image&sub=membership&id=5
[Sat Mar 05 23:01:58.529804 2016] [mpm_prefork:notice] [pid 18033] AH00169: caught SIGTERM, shutting down
[Sat Mar 05 23:02:27.457031 2016] [mpm_prefork:notice] [pid 5085] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured – resuming normal operations
[Sat Mar 05 23:02:27.457062 2016] [core:notice] [pid 5085] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Mar 05 23:03:43.679406 2016] [:error] [pid 5121] [client 172.16.0.250:57199] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/?node=host&sub=deploy&sub=deploy&type=2&id=1
[Sat Mar 05 23:05:43.331206 2016] [:error] [pid 5121] [client 172.16.0.250:57255] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&id=2&type=2 -
How did you install fog?
-
@darius Welcome to the forums. As you seam to be new I’ll give you a quick rundown on how things work with FOG trunk. Thanks a lot for letting us know about the error. This is very helpful! Tom found the issue and fixed it in the source code. So you need to “update” your local copy of the source code to see Tom’s change as well.
I guess you used
svn
orgit
command to checkout the FOG trunk code. Then you ran the installer. To update your local copy of FOG change to the folder (cd /fog/code/directory
) and runsvn up
orgit pull
(depending on what you used earlier). Then run the installer again! -
@Sebastian-Roth Updatet to 6597 from Git and Success! thanks to @Tom-Elliott for all the help and for fixing the code!
Looking forward to the final release. I Have one lab with 98 computers at work that need to be re imaged alot. Looking forwarded to trying out FOG there