If I change the php.ini config:
zlib.output_compression = On
I can access but appears a php error:
[SIZE=13px][FONT=Ubuntu][COLOR=#555555]/var/www/html/fog/lib/db/MySQL.class.php on line 74 Warning: mysqli::select_db(): Couldn’t fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 74 Warning: ob_start(): output handler ‘ob_gzhandler’ conflicts with ‘zlib output compression’ in /var/www/html/fog/management/index.php on line 42[/COLOR][/FONT][/SIZE]
Posts
-
RE: Latest Development FOG
-
RE: Latest Development FOG
Now, with revision 2578, I can not access to dashboard. I have problems with the browsers:
“[SIZE=13px][FONT=Helvetica][COLOR=#a0a0a0]Error Code: ERR_CONTENT_DECODING_FAILED[/COLOR][/FONT][/SIZE]” -
RE: BUG when you try to list all images
No
The problem is when you create a new definition. The entry in the DB is OK (FOG creates the image definition) but later … doesn’t work.
±--------±-----------±----------±-----------±-------------±---------------±--------------------±--------------±--------------±----------±------------±---------------------±----------±------------±--------------------+
| imageID | imageName | imageDesc | imagePath | imageProtect | imageMagnetUri | imageDateTime | imageCreateBy | imageBuilding | imageSize | imageTypeID | imagePartitionTypeID | imageOSID | imageFormat | imageLastDeploy |
±--------±-----------±----------±-----------±-------------±---------------±--------------------±--------------±--------------±----------±------------±---------------------±----------±------------±--------------------+
| 8 | monodisk | | monodisk | 0 | | 2014-11-03 19:37:04 | fog | 0 | 0 | 2 | 1 | 5 | NULL | 0000-00-00 00:00:00 |
±--------±-----------±----------±-----------±-------------±---------------±--------------------±--------------±--------------±----------±------------±---------------------±----------±------------±--------------------+Errors:
[LIST]
[]"Warning: current() expects parameter 1 to be array, string given in /var/www/html/fog/lib/fog/Image.class.php on line 196 Fatal error: Uncaught exception ‘Exception’ with message ‘Image does not have a storage group assigned.’ in /var/www/html/fog/lib/fog/Image.class.php:198 Stack trace: #0 /var/www/html/fog/lib/fog/SubMenu.class.php(44): Image->getStorageGroup() #1 /var/www/html/fog/management/index.php(90): SubMenu->__construct() #2 {main} thrown in /var/www/html/fog/lib/fog/Image.class.php on line 198 "
[]“Warning: current() expects parameter 1 to be array, string given in /var/www/html/fog/lib/fog/Image.class.php on line 196 Warning: ob_start(): output handler ‘ob_gzhandler’ conflicts with ‘zlib output compression’ in /var/www/html/fog/management/index.php on line 42”
[/LIST] -
RE: BUG when you try to list all images
Well the problem is the multidisk images, I delete the definitions and the bug not appear
-
BUG when you try to list all images
revision 2547
This bug is new and has appeared with the last revisions. I can not list the images when I click on “List All Images”, in the browser appears an error " Content Encoding Error". If I setup the apache:
zlib.output_compression = On in /etc/php.ini
The page appears but another error gets:
"Warning: current() expects parameter 1 to be array, string given in /var/www/html/fog/lib/fog/Image.class.php on line 196 Warning: ob_start(): output handler ‘ob_gzhandler’ conflicts with ‘zlib output compression’ in /var/www/html/fog/management/index.php on line 42 " -
RE: How to prepare Windows XP
Sysprep unedr WXP is more easy than W7. You don’t have the different modes, only one. But, why do you need WXP, is deprecated?
-
RE: Latest Development FOG
For more info
[url=“/_imported_xf_attachments/1/1440_Error_HookManager.png?:”]Error_HookManager.png[/url]
-
RE: Latest Development FOG
The changes in HookManager.class.php give problems
[Mon Oct 20 13:28:54 2014] [error] [client 158.227.4.135] PHP Warning: array_push() expects parameter 1 to be array, null given in /var/www/html/fog/lib/fog/HookManager.class.php on line 67, referer: [url]http://fog1.ehu.es/fog/management/index.php[/url]
[Mon Oct 20 13:28:54 2014] [error] [client 158.227.4.135] PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/fog/lib/fog/HookManager.class.php on line 66, referer: [url]http://fog1.ehu.es/fog/management/index.php[/url]The WEBUI is KO
-
RE: IPXE issues - work around
Solved!! The problem was dnsmasq setup. See [URL=‘http://fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server#DNSMASQ_settings_for_iPXE’]here[/URL] for more information
-
RE: FOG 1.2.0 - WOL on multiple VLANs
[quote=“Tom Elliott, post: 37895, member: 7271”]The idea of the “plugin” would be to create a management page for WOL that you simply specify the broadcast addresses you need.
If you guys want to try:
maybe edit the 255.255.255.255 part of the WakeOnLan .class.php file and put it to your broadcast as in the post above?
(10.155.255.255) and see if that works?[/quote]
It works
. I change the broadcast 255.255.255.255 to 10.227.15.31
-
RE: FOG 1.2.0 - WOL on multiple VLANs
This IP is the IP of the host, and you can get it from the DB. In the hosts table, there is a atribute hostIP.
From “Create new host” submenu in the webUI you can not enter the IP address , but if you import the computers, you can enter the IP address.
For example:
Host 1: IP 10.227.15.25 -> subnet direction: 10.227.15 -> broadcast IP is 10.227.15.31 (and not 10.227.15.255, with this direcction doesn’t work)You can test the Tom’s solution
-
RE: FOG 1.2.0 - WOL on multiple VLANs
I think that make a wakeOnLan plugin will be a good solution. If you want, I can develope it … I need it
It’s easy, and the code changes are littles. The “big” problem is how manage the different broadcast directions. Actually, those relationships are “saved” in the code.
[PHP]function wakeOnLan( $mac, $ipHost=null)
{
if ($ipHost != null)
{
list($ip1, $ip2, $ip3, $ip4) = explode(“.”, $ipHost);
$subnet=$ip1 . “.” . $ip2 . “.” . $ip3;if ( getSetting( $conn, "FOG_WOL_BCAST" ) == "" ) switch ($subnet) {
##########################################################################
####### Here you must to write the broadcast IPs
##########################################################################
case “10.227.34”: $ipBroadcast = “10.227.35.255”; break;
case “10.227.84”: $ipBroadcast = “10.227.87.255”; break;
case “10.227.85”: $ipBroadcast = “10.227.87.255”; break;
case “10.227.15”: $ipBroadcast = “10.227.15.31”; break;
#########################################################################
default: $ip = $ip1 . “.” . $ip2 . “.” . $ip3 . “.” . “255”;
// default: $ipBroadcast = “255.255.255.255”;
} else $ipBroadcast = getSetting( $conn, “FOG_WOL_BCAST” );
…
[/PHP]I would like manage them from the webUI
-
RE: FOG 1.2.0 - WOL on multiple VLANs
Hi Tom,
we have 40 differents vlans which mask isn’t 24. Also, we can not manage the network; because that work is done by another department
We may match the IP address with the broadcast address of the subnet. We put this relationship into wakeOnLan function, isn’t the best solution, but works.
-
RE: FOG 1.2.0 - WOL on multiple VLANs
The problem is the broacast direction. Actually, I’m trying to solve this problem. We have computers in different vlans and his broadcast IP are not 255.255.255.255. The problem are the wakeOnLan function in FOGCORE.class.php, MACAddress.class.php, WakeOnLan.class.php and wol.php file. You need pass the broadcast ip of the vlan to create wellthe magic packet.
:eek:
-
RE: WOL issue fog 1.2.0
And error.log file? Maybe, the problem is another part of the code.
To make a WOL packet FOG needs to call the wakeOnLan function in FOGCore.class.php. And this issue, appears with all task type? -
RE: IPXE issues - work around
In one browser
[url]http://FOGSERVERIP/fog/service/ipxe/boot.php?mac=00:21:70:46:4d:f2[/url]The answer is:
[CODE]#!ipxe
kernel bzImage32 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=10.0.15.4/fog/ consoleblank=0 loglevel=4 mac=00:21:70:46:4d:f2 ftp=10.0.15.4 storage=10.0.15.4:/images/dev/ storageip=10.0.15.4 web=10.0.15.4/fog/ osid=50 loglevel=4 consoleblank=0 irqpoll hostname=u001021 chkdsk=0 img=centos imgType=mps imgPartitionType=all imgid=1 imgFormat= PIGZ_COMP=-9 hostearly=1 pct=5 ignorepg=1 mining=1 miningcores=1 miningpath=http://fogproject.org/fogpackage.zip type=up
imgfetch init_32.xz
boot[/CODE] -
RE: IPXE issues - work around
Hi,
I have tries this solution but don’t works. The error is “[B]Could not start download: operation not supported[/B]”
I have tested it under different hardwares (optiplex 755, HP 8300) and the result is the same.I have installed FOG r2407 in a physical server and the dhcp server is not in the FOG server, and we use dnsmasq.