Fog Show me Blank Page on Fresh install /Ubuntu 16.04
-
Hi there ,
Im new here in fog community I just newly installed FOG v1.4.4 successfully on ubuntu 16 but fog want me to go
http://10.0.105.87/fog/management I just saw white blank page is there a solution for that? because fog successfully installed, what is causing to that problem. How can I fix it ? Could someone help me.
Cant see Gui
http://10.0.105.87/fog/management/?node=schema -
If you get just a blank white page that means that php (the language behind the FOG server threw an exception). If you review the last few lines in the apache error log that should give you an idea what happened.
tail /var/log/apache/error.logIt may be error_log I donât remember between distributions.If you see sql errors in the apache log I might start with this document to fix it: https://forums.fogproject.org/topic/10006/ubuntu-is-fog-s-enemy
-
@george1421 said in Fog Show me Blank Page on Fresh install /Ubuntu 16.04:
tail /var/log/apache/error.log
Firstly thanks for your reply.
Here is apache2 log cant understhood errors.
[Wed Jan 31 05:53:43.781260 2018] [mpm_event:notice] [pid 23279:tid 140416774641536] AH00489: Apache/2.4.29 (Ubuntu) configured â resuming normal operations
[Wed Jan 31 05:53:43.781458 2018] [core:notice] [pid 23279:tid 140416774641536] AH00094: Command line: â/usr/sbin/apache2â
[Wed Jan 31 05:54:10.854319 2018] [mpm_event:notice] [pid 23279:tid 140416774641536] AH00491: caught SIGTERM, shutting down
[Wed Jan 31 05:54:10.936267 2018] [mpm_prefork:notice] [pid 29569] AH00163: Apache/2.4.29 (Ubuntu) configured â resuming normal operations
[Wed Jan 31 05:54:10.936435 2018] [core:notice] [pid 29569] AH00094: Command line: â/usr/sbin/apache2â
[Wed Jan 31 05:54:11.429643 2018] [mpm_prefork:notice] [pid 29569] AH00169: caught SIGTERM, shutting down
[Wed Jan 31 05:54:11.582229 2018] [mpm_prefork:notice] [pid 29641] AH00163: Apache/2.4.29 (Ubuntu) configured â resuming normal operations
[Wed Jan 31 05:54:11.582329 2018] [core:notice] [pid 29641] AH00094: Command line: â/usr/sbin/apache2â
[Wed Jan 31 05:55:49.549584 2018] [mpm_prefork:notice] [pid 29641] AH00169: caught SIGTERM, shutting down
[Wed Jan 31 05:58:44.430614 2018] [mpm_prefork:notice] [pid 6785] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured â resuming normal operations
[Wed Jan 31 05:58:44.430719 2018] [core:notice] [pid 6785] AH00094: Command line: â/usr/sbin/apache2â
[Wed Jan 31 05:58:46.619725 2018] [php7:error] [pid 6790] [client 10.0.105.87:53140] PHP Fatal error: Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php:443\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogcontroller.class.php(527): PDODB->insertId()\n#1 /var/www/html/fog/lib/fog/hookmanager.class.php(59): FOGController->save()\n#2 /var/www/html/fog/lib/fog/reportmaker.class.php(75): HookManager->processEvent(âREPORT_TYPESâ, Array)\n#3 [internal function]: ReportMaker->__construct()\n#4 /var/www/html/fog/lib/fog/fogbase.class.php(457): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/html/fog/maintenance/backup_db.php(23): FOGBase::getClass(âReportMakerâ)\n#6 {main}\n thrown in /var/www/html/fog/lib/db/pdodb.class.php on line 443 -
@selcukkubur said in Fog Show me Blank Page on Fresh install /Ubuntu 16.04:
Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php:443\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogcontroller.class.php(527): PDODB->insertId()\n#1
Indicates a database issue. Please follow the guidance in the link I posted. Its a quick fix for what ubuntu does to the sql server settings.
-
@george1421 thanks for your support but when I try to run command
after sudo - i in terminal window âmysql -u rootâ I got this error.sudo -i
[sudo] password for fogadmin:
root@DSK-FOG:~# mysql -u root
ERROR 1045 (28000): Access denied for user ârootâ@âlocalhostâ (using password: NO) -
@selcukkubur Ok this is going to take some research. Since root is locked out and canât access. I would suggest doing the second part about removing the unattended upgrades, while I look how to force rootâs password reset.
-
@george1421 Here is a good source on forcing root password reset: https://www.digitalocean.com/community/tutorials/how-to-reset-your-mysql-or-mariadb-root-password
-
@george1421 I removed unattented upgrades with
apt-get -y remove unattended-upgrades command line. -
@george1421 George thanks for your support now I access the gui when I have root password for mysql but there is another problem now Database schema cant get updated successfully.
Database Schema Installer / Updater
Install / Update Failed!
The following errors occurredUpdate ID: 16
Database Error:
Failed to query: Error: SQLSTATE[HY000]: General error: 1819 Your password does not satisfy the current policy requirements Error Message: Error Code: âHY000â, Error Message: [âHY000â,1819,âYour password does not satisfy the current policy requirementsâ], Debug: SQL: [70] GRANT ALL ON
fog.* TO âfogstorageâ@â%â IDENTIFIED BY âfs69872702752â
Params: 0Variable contains:
Array
( [0] => ALTER TABLEtasksADD COLUMNtaskBPMvarchar(250) NOT NULL AFTERtaskPCT, ADD COLUMNtaskTimeElapsedvarchar(250) NOT NULL AFTERtaskBPM, ADD COLUMNtaskTimeRemainingvarchar(250) NOT NULL AFTERtaskTimeElapsed, ADD COLUMNtaskDataCopiedvarchar(250) NOT NULL AFTERtaskTimeRemaining, ADD COLUMNtaskPercentTextvarchar(250) NOT NULL AFTERtaskDataCopied, ADD COLUMNtaskDataTotalVARCHAR(250) NOT NULL AFTERtaskPercentText[1] => CREATE TABLEnfsGroups(ngIDinteger NOT NULL AUTO_INCREMENT,ngNamevarchar(250) NOT NULL,ngDesclongtext NOT NULL,PRIMARY KEY (ngID)) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC [2] => CREATE TABLEnfsGroupMembers(ngmIDinteger NOT NULL AUTO_INCREMENT,ngmMemberNamevarchar(250) NOT NULL,ngmMemberDescriptionlongtext NOT NULL,ngmIsMasterNodechar NOT NULL,ngmGroupIDinteger NOT NULL,ngmRootPathlongtext NOT NULL,ngmIsEnabledchar NOT NULL,ngmHostnamevarchar(250) NOT NULL,ngmMaxClientsinteger NOT NULL,ngmUservarchar(250) NOT NULL,ngmPassvarchar(250) NOT NULL,ngmKeyvarchar(250) NOT NULL, PRIMARY KEY (ngmID),INDEXnew_index(ngmMemberName),INDEXnew_index2(ngmIsMasterNode),INDEXnew_index3(ngmGroupID),INDEXnew_index4(ngmIsEnabled)) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC [3] => ALTER TABLEimagesADD COLUMNimageNFSGroupIDinteger NOT NULL AFTERimageDD,ADD INDEXnew_index3(imageNFSGroupID) [4] => ALTER TABLEtasksADD COLUMNtaskNFSGroupIDinteger NOT NULL AFTERtaskDataTotal,ADD COLUMNtaskNFSMemberIDinteger NOT NULL AFTERtaskNFSGroupID,ADD COLUMNtaskNFSFailureschar NOT NULL AFTERtaskNFSMemberID,ADD COLUMNtaskLastMemberIDinteger NOT NULL AFTERtaskNFSFailures,ADD INDEXnew_index5(taskNFSGroupID),ADD INDEXnew_index6(taskNFSMemberID),ADD INDEXnew_index7(taskNFSFailures),ADD INDEXnew_index8(taskLastMemberID) [5] => CREATE TABLEnfsFailures(nfIDinteger NOT NULL AUTO_INCREMENT,nfNodeIDinteger NOT NULL,nfTaskIDinteger NOT NULL,nfHostIDinteger NOT NULL,nfGroupIDinteger NOT NULL,nfDateTimeinteger NOT NULL,PRIMARY KEY (nfID),INDEXnew_index(nfNodeID),INDEXnew_index1(nfTaskID),INDEXnew_index2(nfHostID),INDEXnew_index3(nfGroupID)) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC [6] => ALTER TABLEnfsFailuresMODIFY COLUMNnfDateTimedatetime NOT NULL,ADD INDEXnew_index4(nfDateTime) [7] => ALTER TABLEmulticastSessionsCHANGEmsAnon2msNFSGroupIDinteger NOT NULL, ADD INDEXnew_index(msNFSGroupID) [8] => INSERT IGNORE INTOnfsGroups(ngName,ngDesc) VALUES (âdefaultâ,âAuto generated fog nfs groupâ) [9] => INSERT IGNORE INTOnfsGroupMembers(ngmMemberName,ngmMemberDescription,ngmIsMasterNode,ngmGroupID,ngmRootPath,ngmIsEnabled,ngmHostname,ngmMaxClients,ngmUser,ngmPass) VALUES (âDefaultMemberâ,âAuto generated fog nfs group memberâ,â1â,â1â,â/images/â,â1â,â10.0.105.87â,â10â,âfogâ,âFG5Jdw+JorQZiWDy0oyeLAX8O3TaKwGSvNF3A5lNOcE=â) [10] => UPDATEimagesset imageNFSGroupID = â1â [11] => DELETE FROMglobalSettingsWHEREsettingKeyIN (âFOG_NFS_HOSTâ,âFOG_NFS_FTP_USERNAMEâ,âFOG_NFS_FTP_PASSWORDâ,âFOG_NFS_DATADIRâ,âFOG_NFS_DATADIR_CAPTUREâ) [12] => INSERT IGNORE INTOglobalSettings(settingKey,settingDesc,settingValue,settingCategory) VALUES (âFOG_STORAGENODE_MYSQLUSERâ,âThis setting defines the username the storage nodes should use to connect to the fog server.â,âfogstorageâ,âFOG Storage Nodesâ),(âFOG_STORAGENODE_MYSQLPASSâ,âThis setting defines the password the storage nodes should use to connect to the fog server.â,âfs69872702752â,âFOG Storage Nodesâ) [13] => GRANT ALL ONfog.* TO âfogstorageâ@â%â IDENTIFIED BY âfs69872702752â [14] => UPDATEschemaVersionsetvValue=â16â
)Database SQL:
GRANT ALL ON
fog.* TO âfogstorageâ@â%â IDENTIFIED BY âfs69872702752â -
@selcukkubur I fixed problem with disabling mysql Valide password plugin
-
@selcukkubur said in Fog Show me Blank Page on Fresh install /Ubuntu 16.04:
I fixed problem with disabling mysql Valide password plugin
Sorry I was on the commute into the office. Can you explain this statment?
-
@george1421 Hello George as you seen on the Database schema error log
"General error: 1819 Your password does not satisfy the current policy requirements Error Message: Error Code: âHY000â, Error Message: [âHY000â,1819,âYour password does not satisfy the current policy requirementsâ], "
because of mysql root password policy requirements I coulndt get update or install database schema to new one.
so I searched about error for mysql server then I understhand I dısableit Password validation on mysql
[https://dev.mysql.com/doc/refman/5.7/en/validate-password.html]