@Tom-Elliott said:
@Scott-B It’s becasue the link is set to All hosts for the “show with”.
Please change this back to “Advanced Login Required” and you should see the proper advanced menu work.
Same result.
@Tom-Elliott said:
@Scott-B It’s becasue the link is set to All hosts for the “show with”.
Please change this back to “Advanced Login Required” and you should see the proper advanced menu work.
Same result.
I did not (knowingly) make a custome advanced menu login. I did make an entry for each ISO.
@Tom-Elliott said:
@Scott-B Advanced login requires you to login first. Try unchecking the advanced login checkbox and save, and see if that helps you out.
The advanced checkbox here? If so, still there.
@Tom-Elliott said:
I saw it and fixed in in the current trunk.
SVN: 5441
I get the login under the advanced menu, but it still just boots the first drive. Is my advanced login setup wrong somehow (I thought it was default)? Looks different to the one posted by @CLAUDE GIRARD in the link he posted.
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param advLog 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
@Tom-Elliott said:
@Scott-B where are the \r\n lines doing? Or was this file edited/opened by Windows?
They show up in place of spaces after making a change and then going back into the menu item. I get the thing in the host description when doing an inventory extract as well. What I put into each of my added it menu items should show up below. Each one is their own menu choice item.
:sysrescue
initrd http://${fog-ip}/${fog-webroot}/isos/systemrescuecd.iso
chain memdisk iso raw ||
boot
:ultimate
initrd http://${fog-ip}/${fog-webroot}/isos/ubcd535.iso
chain memdisk iso raw ||
boot
:DBAN
kernel ${boot_url}/fog/isos/dban/dban.bzi nuke="dwipe --autonuke" silent vga=785
boot
:Hirens
initrd http://${fog-ip}/${fog-webroot}/isos/hirens.iso
chain memdisk iso raw ||
boot
I’ve noticed I can no longer update a host’s primary user, tag 1, or tag2 fields under inventory. You can enter updated data, but after clicking update you see the “host updated!” window, it still has the fields old information. The apache log shows nothing in relation to this.
SVN: 5419
Added a few iso files to the PXE boot menu (UBCD, Hiren, Ect) and they work great when assigned to “All Hosts”. I would like to put them under the advanced menu with login section. When I do this choosing advanced login I get the prompt to login, which I do, then I can see it loading boot.php and advanced.php. At this point it exits and boots the host’s hard drive.
Below is what is shown from the GUI going > iPXE Menu Customization > fog.advancedlogin which as far as I know hasn’t been edited.
login\r\nparams\r\nparam mac0 ${net0/mac}\r\nparam arch ${arch}\r\nparam username ${username}\r\nparam password ${password}\r\nparam advLog 1\r\nisset ${net1/mac} && param mac1 ${net1/mac} || goto bootme\r\nisset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
Here is what I’m using for one of the isos.
:Hirens\r\ninitrd http://${fog-ip}/${fog-webroot}/isos/hirens.iso\r\nchain memdisk iso raw ||\r\nboot
I don’t see anything in the apache log for this.
SVN: 5419 currently, saw issue on the past couple as well
@John-L-Clark said:
I found it and increase to 512 and is working fine. Thanks
I bumped my php config up to 2GB for the similar issue with inventory blank screens. Overkill, maybe, but the server has 12GB and is only for FOG.
@Wayne-Workman said:
@Scott-B Just get rid of those…
Backup your DB first.
FOG Configuration -> Configuration Save -> Export
For an individual:
update inventory set iOtherTag='' where iID=1972;
For everything:
update inventory set iOtherTag='' where iOtherTag like '%\\\\\\\\\\\\\\%';
Thank you, that cleaned up the list very well.
I wanted to post an update to this topic. As suggested it seems it was a memory issue in regards to just the white page. I was seeing errors similar to the one below in my apache log.
[Tue Nov 17 09:59:55.127379 2015] [:error] [pid 14071] [client xx.xx.xx.xx.xx:60299] PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 339292729 bytes) in /var/www/fog/commons/init.php on line 175
So I upped the amount of memory and time PHP is allowed to use. After doing so I was able to run the inventory report (as well ask config save), but there is always a catch. The report has several hundred rows of “\\\\\\\\\\\\\\\\\\\\\…” and some of the rows are shifted one row to the left. My fear this is or will create a corrupt DB.
If I watch the apache logs I am still getting the errors below.
[Tue Nov 17 13:01:23.304484 2015] [:error] [pid 5672] [client 10.195.65.61:55864] PHP Warning: Error while sending STMT_PREPARE packet. PID=5672 in /var/www/fog/lib/db/MySQL.class.php on line 56
[Tue Nov 17 13:01:31.145496 2015] [:error] [pid 5919] [client 10.195.65.148:50685] PHP Warning: Error while sending STMT_PREPARE packet. PID=5919 in /var/www/fog/lib/db/MySQL.class.php on line 56
Printer Issue seems resolved in the most recent SVN. Thank you!
@Wayne-Workman said:
I’m pretty sure this is going to be fixed as soon as Tom implements the latest version of the new FOG Client into the trunk (version 0.9.6).
If you look at the announcement about it, it specifically talks about the backslashes and formatting stuff being fixed. https://news.fogproject.org/client-v0-9-6/
Fingers crossed!
@Tom-Elliott said:
@Scott-B I’m going to try my best to reach out tomorrow if that’s okay so I can teamviewer in to try to figure out what’s going on.
That would be great, thanks!
@Tom-Elliott said:
@Scott-B are there any error logs in regards to the blank page? My guess is memory?
The apache errors are back, but otherwise im not seeing any other errors.
apache log
E packet. PID=27454 in /var/www/fog/lib/db/MySQL.class.php on line 56
[Thu Nov 12 15:21:14.097505 2015] [:error] [pid 27454] [client 10.195.82.135:50734] PHP Warning: Error while sending STMT_PREPARE packet. PID=27454 in /var/www/fog/lib/db/MySQL.class.php on line 56
[Thu Nov 12 15:21:15.033770 2015] [:error] [pid 27454] [client 10.195.82.135:50734] PHP Warning: Error while sending STMT_PREPARE packet. PID=27454 in /var/www/fog/lib/db/MySQL.class.php on line 56
[Thu Nov 12 15:21:16.357790 2015] [:error] [pid 27454] [client 10.195.82.135:50734] PHP Warning: Error while sending STMT_PREPARE packet. PID=27454 in /var/www/fog/lib/db/MySQL.class.php on line 56
[Thu Nov 12 15:21:18.014239 2015] [:error] [pid 27454] [client 10.195.82.135:50734] PHP Warning: Error while sending STMT_PREPARE packet. PID=27454 in /var/www/fog/lib/db/MySQL.class.php on line 56
I didn’t see it in the FOG wiki, so if its been asked I apologize.
Are there specific settings/restrictions that FOG recommends for PHP, Apache2, MySQL. I’m talking about things like max packet size, resource limits, execution times, ect… I know its somewhat depends on hardware, but still looking for suggestions or guidelines.
The apache errors are gone with SVN 5313, but the report is still blank. The hosts do show up when you click on inventory, before choosing csv or pdf so at least the data is there. Same for just doing a hosts report.
@Wayne-Workman said:
@Scott-B Are the apache errors the same or have they changed?
Can you run this command before you do the export, and then export while watching the output of the command?
tail -f /var/log/apache2/error.log
Done. Those errors don’t match up with the workstation I’m using so they are errors from something other then the inventory?
[Tue Nov 10 11:16:27.009667 2015] [:error] [pid 6329] [client 10.195.82.135:49774] PHP Warning: Error while sending STMT_PREPARE packet. PID=6329 in /var/www/fog/lib/db/MySQL.class.php on line 56
[Tue Nov 10 11:16:32.932891 2015] [:error] [pid 6329] [client 10.195.82.135:49774] PHP Warning: Error while sending STMT_PREPARE packet. PID=6329 in /var/www/fog/lib/db/MySQL.class.php on line 56
[Tue Nov 10 11:16:36.833697 2015] [:error] [pid 6708] [client 10.195.65.61:50551] PHP Warning: Error while sending STMT_PREPARE packet. PID=6708 in /var/www/fog/lib/db/MySQL.class.php on line 56
[Tue Nov 10 11:16:38.388949 2015] [:error] [pid 6708] [client 10.195.65.61:50551] PHP Warning: Error while sending STMT_PREPARE packet. PID=6708 in /var/www/fog/lib/db/MySQL.class.php on line 56
@Wayne-Workman said:
@Scott-B I’ve just confirmed that SVN 4323 Cloud 5293 exports correctly. I’m marking this as solved.
Okay, but its still broken for me.