Unable to access FOG management web site
-
Unable to login to my fog management page after installing dev branch get error 500 when I accept cert. Running ubuntu 22.04
-
@dyacishyn Which Linux OS and FOG version did you Run before updating? Please post what you find in the Apache and PHP logs (see my signature) as well as the output from running the command
dpkg -l | grep php
on your FOG server console (e.g. via SSH). -
@Sebastian-Roth this is a fresh install
ii libapache2-mod-php 2:8.1+92ubuntu1 all server-side, HTML-embedded scripting language (Apache 2 module) (default) ii libapache2-mod-php8.1 8.1.2-1ubuntu2.10 amd64 server-side, HTML-embedded scripting language (Apache 2 module) ii php 2:8.1+92ubuntu1 all server-side, HTML-embedded scripting language (default) ii php-bcmath 2:8.1+92ubuntu1 all Bcmath module for PHP [default] ii php-cli 2:8.1+92ubuntu1 all command-line interpreter for the PHP scripting language (default) ii php-common 2:92ubuntu1 all Common files for PHP packages ii php-curl 2:8.1+92ubuntu1 all CURL module for PHP [default] ii php-fpm 2:8.1+92ubuntu1 all server-side, HTML-embedded scripting language (FPM-CGI binary) (default) ii php-gd 2:8.1+92ubuntu1 all GD module for PHP [default] ii php-json 2:8.1+92ubuntu1 all JSON module for PHP [default] ii php-ldap 2:8.1+92ubuntu1 all LDAP module for PHP [default] ii php-mbstring 2:8.1+92ubuntu1 all MBSTRING module for PHP [default] ii php-mysql 2:8.1+92ubuntu1 all MySQL module for PHP [default] ii php-pear 1:1.10.12+submodules+notgz+20210212-1ubuntu3 all PEAR Base System ii php-php-gettext 1.0.12-5 all read gettext MO files directly, without requiring anything other than PHP ii php-xml 2:8.1+92ubuntu1 all DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default] ii php8.1 8.1.2-1ubuntu2.10 all server-side, HTML-embedded scripting language (metapackage) ii php8.1-bcmath 8.1.2-1ubuntu2.10 amd64 Bcmath module for PHP ii php8.1-cli 8.1.2-1ubuntu2.10 amd64 command-line interpreter for the PHP scripting language ii php8.1-common 8.1.2-1ubuntu2.10 amd64 documentation, examples and common module for PHP ii php8.1-curl 8.1.2-1ubuntu2.10 amd64 CURL module for PHP ii php8.1-fpm 8.1.2-1ubuntu2.10 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary) ii php8.1-gd 8.1.2-1ubuntu2.10 amd64 GD module for PHP ii php8.1-ldap 8.1.2-1ubuntu2.10 amd64 LDAP module for PHP ii php8.1-mbstring 8.1.2-1ubuntu2.10 amd64 MBSTRING module for PHP ii php8.1-mysql 8.1.2-1ubuntu2.10 amd64 MySQL module for PHP ii php8.1-opcache 8.1.2-1ubuntu2.10 amd64 Zend OpCache module for PHP ii php8.1-readline 8.1.2-1ubuntu2.10 amd64 readline module for PHP ii php8.1-xml 8.1.2-1ubuntu2.10 amd64 DOM, SimpleXML, XML, and XSL module for PHP
-
@dyacishyn Please post what you find in the mentioned logs. If I had to guess I would think you did not install the latest dev-branch but an earlier version that is lacking PHP 8 support. But I might be wrong.
-
[Fri Feb 17 17:16:28.668451 2023] [mpm_event:notice] [pid 48404:tid 140393554605952] AH00489: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations [Fri Feb 17 17:16:28.668590 2023] [core:notice] [pid 48404:tid 140393554605952] AH00094: Command line: '/usr/sbin/apache2' [Fri Feb 17 17:30:23.597492 2023] [mpm_event:notice] [pid 48404:tid 140393554605952] AH00492: caught SIGWINCH, shutting down gracefully [Fri Feb 17 17:30:23.647079 2023] [mpm_prefork:notice] [pid 50465] AH00163: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations [Fri Feb 17 17:30:23.647232 2023] [core:notice] [pid 50465] AH00094: Command line: '/usr/sbin/apache2' [Fri Feb 17 17:30:24.750987 2023] [mpm_prefork:notice] [pid 50465] AH00170: caught SIGWINCH, shutting down gracefully [Fri Feb 17 17:30:24.818320 2023] [mpm_prefork:notice] [pid 50505] AH00163: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations [Fri Feb 17 17:30:24.821843 2023] [core:notice] [pid 50505] AH00094: Command line: '/usr/sbin/apache2' [Fri Feb 17 17:46:11.548558 2023] [mpm_prefork:notice] [pid 50505] AH00170: caught SIGWINCH, shutting down gracefully PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib/php/20210902/pdo_mysql.so (/usr/lib/php/20210902/pdo_mysql.so: undefined symbol: pdo_parse_params), /usr/lib/php/20210902/pdo_mysql.so.so (/usr/lib/php/20210902/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 [Fri Feb 17 17:47:05.327968 2023] [mpm_prefork:notice] [pid 67541] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations [Fri Feb 17 17:47:05.328037 2023] [core:notice] [pid 67541] AH00094: Command line: '/usr/sbin/apache2' [Fri Feb 17 17:49:08.424796 2023] [proxy_fcgi:error] [pid 67551] [client 192.168.50.152:51374] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 17:49:39.422045 2023] [proxy_fcgi:error] [pid 67554] [client 192.168.50.152:51385] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 17:49:55.492225 2023] [proxy_fcgi:error] [pid 67552] [client 192.168.50.152:51393] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 17:50:08.574589 2023] [proxy_fcgi:error] [pid 67551] [client 192.168.50.152:51419] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 17:52:04.864595 2023] [mpm_prefork:notice] [pid 67541] AH00170: caught SIGWINCH, shutting down gracefully PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib/php/20210902/pdo_mysql.so (/usr/lib/php/20210902/pdo_mysql.so: undefined symbol: pdo_parse_params), /usr/lib/php/20210902/pdo_mysql.so.so (/usr/lib/php/20210902/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 [Fri Feb 17 17:52:46.077076 2023] [mpm_prefork:notice] [pid 69877] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations [Fri Feb 17 17:52:46.077151 2023] [core:notice] [pid 69877] AH00094: Command line: '/usr/sbin/apache2' [Fri Feb 17 17:52:46.344348 2023] [proxy_fcgi:error] [pid 69889] [client 192.168.50.167:37512] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/maintenance/backup_db.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 17:53:19.079966 2023] [proxy_fcgi:error] [pid 69890] [client 192.168.50.152:51515] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 17:55:00.623739 2023] [proxy_fcgi:error] [pid 69888] [client 192.168.50.152:51595] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 17:55:10.302024 2023] [proxy_fcgi:error] [pid 69892] [client 192.168.50.152:51620] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 17:55:41.313977 2023] [proxy_fcgi:error] [pid 69892] [client 192.168.50.152:51636] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 17:55:53.921762 2023] [proxy_fcgi:error] [pid 69889] [client 192.168.50.152:51639] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 17:56:37.107479 2023] [proxy_fcgi:error] [pid 69892] [client 192.168.50.152:51657] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 18:00:51.500152 2023] [proxy_fcgi:error] [pid 69889] [client 192.168.50.152:51746] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 18:02:09.637178 2023] [proxy_fcgi:error] [pid 69892] [client 192.168.50.152:51912] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 18:02:41.487166 2023] [proxy_fcgi:error] [pid 69888] [client 192.168.50.152:51918] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 18:09:25.960925 2023] [mpm_prefork:notice] [pid 69877] AH00170: caught SIGWINCH, shutting down gracefully PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib/php/20210902/pdo_mysql.so (/usr/lib/php/20210902/pdo_mysql.so: undefined symbol: pdo_parse_params), /usr/lib/php/20210902/pdo_mysql.so.so (/usr/lib/php/20210902/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 [Fri Feb 17 18:13:17.632433 2023] [mpm_prefork:notice] [pid 1029] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations [Fri Feb 17 18:13:17.632509 2023] [core:notice] [pid 1029] AH00094: Command line: '/usr/sbin/apache2' [Fri Feb 17 18:13:24.373324 2023] [proxy_fcgi:error] [pid 1053] [client 192.168.50.152:52200] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 18:13:24.373523 2023] [proxy_fcgi:error] [pid 1037] [client 192.168.50.152:52195] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Fri Feb 17 18:13:29.133984 2023] [proxy_fcgi:error] [pid 1038] [client 192.168.50.152:52205] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Sat Feb 18 01:27:24.329936 2023] [proxy_fcgi:error] [pid 1058] [client 192.168.50.152:65338] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Sat Feb 18 01:27:32.003223 2023] [proxy_fcgi:error] [pid 1040] [client 192.168.50.152:65343] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/management/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Sat Feb 18 02:11:30.175990 2023] [mpm_prefork:notice] [pid 1029] AH00170: caught SIGWINCH, shutting down gracefully PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib/php/20210902/pdo_mysql.so (/usr/lib/php/20210902/pdo_mysql.so: undefined symbol: pdo_parse_params), /usr/lib/php/20210902/pdo_mysql.so.so (/usr/lib/php/20210902/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 [Sat Feb 18 02:12:35.387404 2023] [mpm_prefork:notice] [pid 5744] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations [Sat Feb 18 02:12:35.387483 2023] [core:notice] [pid 5744] AH00094: Command line: '/usr/sbin/apache2' [Sat Feb 18 02:12:37.214899 2023] [proxy_fcgi:error] [pid 5753] [client 192.168.50.150:49180] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/maintenance/backup_db.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439' [Sat Feb 18 02:13:34.116660 2023] [proxy_fcgi:error] [pid 5753] [client 192.168.50.152:50215] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _() in /var/www/html/fog/commons/init.php:439\nStack trace:\n#0 /var/www/html/fog/commons/init.php(306): Initiator::_extCheck()\n#1 /var/www/html/fog/commons/base.inc.php(46): Initiator::startInit()\n#2 /var/www/html/fog/api/index.php(22): require('...')\n#3 {main}\n thrown in /var/www/html/fog/commons/init.php on line 439'
-
@dyacishyn said in Unable to access FOG management web site:
Unable to load dynamic library ‘pdo_mysql.so’ …
Please run the following commands (as root!):
apt --purge remove php-common apt install php-common php-mysql php-cli
This has been discussed on github a while ago. I still have no idea how this can happen: https://github.com/FOGProject/fogproject/issues/525#issuecomment-1358575774
May I please ask you to upload the full installer logs to the forums? You find those in the subdirectory where you tun the installer script (fogproject/bin/error_logs/).
-
Should the fog installation be in the /root directory?
-
@dyacishyn said in Unable to access FOG management web site:
Should the fog installation be in the /root directory?
No, can be pretty much anywhere, except not in /var/www and some other uncommon places.
Some people have it in /opt others in /root or /home…
Did the mentioned commands fix the issue for you?
-
removing php-common partially fixed the issue i moved the installer to the /opt directory reran ./foginstall.sh and was able to access the site.
-