Fog Show me Blank Page on Fresh install /Ubuntu 16.04
-
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.log
It 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 TABLEtasks
ADD COLUMNtaskBPM
varchar(250) NOT NULL AFTERtaskPCT
, ADD COLUMNtaskTimeElapsed
varchar(250) NOT NULL AFTERtaskBPM
, ADD COLUMNtaskTimeRemaining
varchar(250) NOT NULL AFTERtaskTimeElapsed
, ADD COLUMNtaskDataCopied
varchar(250) NOT NULL AFTERtaskTimeRemaining
, ADD COLUMNtaskPercentText
varchar(250) NOT NULL AFTERtaskDataCopied
, ADD COLUMNtaskDataTotal
VARCHAR(250) NOT NULL AFTERtaskPercentText
[1] => CREATE TABLEnfsGroups
(ngID
integer NOT NULL AUTO_INCREMENT,ngName
varchar(250) NOT NULL,ngDesc
longtext NOT NULL,PRIMARY KEY (ngID
)) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC [2] => CREATE TABLEnfsGroupMembers
(ngmID
integer NOT NULL AUTO_INCREMENT,ngmMemberName
varchar(250) NOT NULL,ngmMemberDescription
longtext NOT NULL,ngmIsMasterNode
char NOT NULL,ngmGroupID
integer NOT NULL,ngmRootPath
longtext NOT NULL,ngmIsEnabled
char NOT NULL,ngmHostname
varchar(250) NOT NULL,ngmMaxClients
integer NOT NULL,ngmUser
varchar(250) NOT NULL,ngmPass
varchar(250) NOT NULL,ngmKey
varchar(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 TABLEimages
ADD COLUMNimageNFSGroupID
integer NOT NULL AFTERimageDD
,ADD INDEXnew_index3
(imageNFSGroupID
) [4] => ALTER TABLEtasks
ADD COLUMNtaskNFSGroupID
integer NOT NULL AFTERtaskDataTotal
,ADD COLUMNtaskNFSMemberID
integer NOT NULL AFTERtaskNFSGroupID
,ADD COLUMNtaskNFSFailures
char NOT NULL AFTERtaskNFSMemberID
,ADD COLUMNtaskLastMemberID
integer NOT NULL AFTERtaskNFSFailures
,ADD INDEXnew_index5
(taskNFSGroupID
),ADD INDEXnew_index6
(taskNFSMemberID
),ADD INDEXnew_index7
(taskNFSFailures
),ADD INDEXnew_index8
(taskLastMemberID
) [5] => CREATE TABLEnfsFailures
(nfID
integer NOT NULL AUTO_INCREMENT,nfNodeID
integer NOT NULL,nfTaskID
integer NOT NULL,nfHostID
integer NOT NULL,nfGroupID
integer NOT NULL,nfDateTime
integer 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 TABLEnfsFailures
MODIFY COLUMNnfDateTime
datetime NOT NULL,ADD INDEXnew_index4
(nfDateTime
) [7] => ALTER TABLEmulticastSessions
CHANGEmsAnon2
msNFSGroupID
integer 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] => UPDATEimages
set imageNFSGroupID = â1â [11] => DELETE FROMglobalSettings
WHEREsettingKey
IN (â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] => UPDATEschemaVersion
setvValue
=â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]