Surface Pro 4 unable to image
-
@Tom-Elliott This is the same issue I reported on a few weeks ago.
https://forums.fogproject.org/topic/7276/after-upgrade-to-trunk-7324-no-settings-available-under-fog-configuration-fog-settings -
Any thoughts or ideas yet? I am completely at a loss. Once again, I updated versions to see if that would fix. No go.
-
@Scott-Adams Anything under apache error logs?
-
@Tom-Elliott It says “unable to open file for reading”. It does this for all the apache logs under log viewer…
-
@Scott-Adams So you can get to the GUI?
-
@Tom-Elliott Yes sir! I can created hosts, create images (capture and deploy). From within FOG Configuration, I can change settings in the iPXE Menu Cusomtization. I can download new kernels.
The only restriction so far is for any changes I make to the FOG Settings under FOG Configuration. I know this is not the original topic of this thread, but the troubleshooting for this topic led us down this path.
-
@Scott-Adams The unable to read files is probably because ubuntu is extremely a PITA lately.
When they run logrotates, the change the permissions of the file to what they think should be set, rather than just move the file and continue on.
So you probably need to re-run the installer and have it try to see the files again.
-
@Tom-Elliott What installer do I need to rerun? I just re-updated SVN yesterday.
-
@Scott-Adams SVN installer.
Logrotate usually happens daily on Ubuntu systems.
-
@Tom-Elliott So, rerun the SVN to go up to the next version of FOG?
-
@Scott-Adams Yes.
Remember I commit MANY MANY MANY times in a day (sometimes more than that even).
-
@Tom-Elliott Updated to SVN 7597. Did not ask to upgrade schema after install. Am now able to get Apache log errors.
[Thu May 12 13:48:29.351592 2016] [:error] [pid 4826] [client 10.10.101.4:61421] PHP Warning: Error while sending QUERY packet. PID=4826 in /var/www/html/fog/lib/db/mysql.class.php on line 47, referer: http://fog/fog/management/index.php?node=about&sub=settings
[Thu May 12 13:48:13.616051 2016] [:error] [pid 2303] [client 10.10.101.4:61410] PHP Fatal error: Function name must be a string in /var/www/html/fog/lib/client/printerclient.class.php on line 7 -
@Scott-Adams If I’m reading this right, line 47 is:
self::$link->query(“SET SESSION sql_mode=‘’”);
-
@Scott-Adams That line is unlikely causing the issue you’re seeing. The function as a string is probably a partial point of the issue. I’ve added code to set the query packet size a little more implicitly and give a timeout value in hopes to help correct this. Please update and let us know if this is or isn’t working for you.
-
@Tom-Elliott Updated to SVN 7603. Still unable to make changes in FOG Settings, and now Apache error logs show:
[Fri May 13 07:47:41.982694 2016] [:error] [pid 600] [client 10.10.101.4:49903] PHP Warning: mysqli::mysqli(): MySQL server has gone away in /var/www/html/fog/lib/db/mysql.class.php on line 25, referer: http://fog/fog/management/index.php?node=about&sub=logviewer
[Fri May 13 07:47:41.459485 2016] [:error] [pid 64683] [client 10.10.101.4:49914] PHP Warning: mysqli::mysqli(): MySQL server has gone away in /var/www/html/fog/lib/db/mysql.class.php on line 25, referer: http://fog/fog/management/index.php?node=about&sub=logviewer -
@Tom-Elliott Line 25 is:
self::$link = new mysqli (DATABASE_HOST,DATABASE_USERNAME,DATABASE_PASSWORD);
-
@Scott-Adams Mind updating again?
-
@Tom-Elliott Updated to SVN 7609, no go on the FOG Settings. Get the following apache error:
[Fri May 13 08:28:52.033468 2016] [:error] [pid 25337] [client 10.10.101.4:51573] PHP Warning: Error while sending QUERY packet. PID=25337 in /var/www/html/fog/lib/db/mysql.class.php on line 50, referer: http://fog/fog/management/index.php?node=about&sub=settings
Line 50 is:
else if (!self::queryResult = self;;$link->query(self::$query)) throw new Exception (sprintf(‘%s: %s’,_(‘Error’),$this->sqlerror())); -
@Scott-Adams Thanks @Tom-Elliott for your help getting my FOG Settings saving again.
I have now tried to image/inventory another Surface Pro 4, and I get nothing. I get to the FOG Menu. When I do a Full Host Registration (or a quick inventory - it doesn’t matter) the screen just goes to a black screen and just sits there.
I have obviously made sure Secure Boot is off, DCHP scope options are configured for snponly.efi, and I changed FOG_KERNEL_ARGS to has_usb_nic=1.
-
@Scott-Adams Did you try my suggestion yet? Crank up the log level and enable kernel debug messages (FOG Configuration -> FOG Settings -> expand all and search for ‘DEBUG’ or ‘LOG’)?