Closed Serpher1 closed 2 years ago
I have the same problem.
I know is the plugin Notifications.
An external plugin called Notification? Or built-in notifications?
The plugin called Notification.
I delete the plugin and all is ok.
The plugin is not create for GLPI V10
Well I don't have an external plugin called like that and I can't remove the built-in one.
Ok, excuse me.
Your right is not good on : /var/www/html/src
Another after blank page - php-errors.log
[2022-05-24 12:05:09] glpiphplog.CRITICAL: *** Uncaught Exception GuzzleHttp\Exception\ConnectException: cURL error 28: Resolving timed out after 5000 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://services.glpi-network.com/api/glpi-plugins/plugins in /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php at line 210
Backtrace :
...zzlehttp/guzzle/src/Handler/CurlFactory.php:158 GuzzleHttp\Handler\CurlFactory::createRejection()
...zzlehttp/guzzle/src/Handler/CurlFactory.php:110 GuzzleHttp\Handler\CurlFactory::finishError()
...uzzlehttp/guzzle/src/Handler/CurlHandler.php:47 GuzzleHttp\Handler\CurlFactory::finish()
vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28 GuzzleHttp\Handler\CurlHandler->__invoke()
vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:48 GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}()
...zlehttp/guzzle/src/PrepareBodyMiddleware.php:35 GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}()
vendor/guzzlehttp/guzzle/src/Middleware.php:31 GuzzleHttp\PrepareBodyMiddleware->__invoke()
...guzzlehttp/guzzle/src/RedirectMiddleware.php:71 GuzzleHttp\Middleware::GuzzleHttp\{closure}()
vendor/guzzlehttp/guzzle/src/Middleware.php:63 GuzzleHttp\RedirectMiddleware->__invoke()
vendor/guzzlehttp/guzzle/src/HandlerStack.php:75 GuzzleHttp\Middleware::GuzzleHttp\{closure}()
vendor/guzzlehttp/guzzle/src/Client.php:331 GuzzleHttp\HandlerStack->__invoke()
vendor/guzzlehttp/guzzle/src/Client.php:168 GuzzleHttp\Client->transfer()
vendor/guzzlehttp/guzzle/src/Client.php:187 GuzzleHttp\Client->requestAsync()
src/Marketplace/Api/Plugins.php:121 GuzzleHttp\Client->request()
src/Marketplace/Api/Plugins.php:166 Glpi\Marketplace\Api\Plugins->request()
src/Marketplace/Api/Plugins.php:211 Glpi\Marketplace\Api\Plugins->getPaginatedCollection()
src/Marketplace/Api/Plugins.php:346 Glpi\Marketplace\Api\Plugins->getAllPlugins()
src/Marketplace/Controller.php:269 Glpi\Marketplace\Api\Plugins->getPlugin()
src/Marketplace/Controller.php:302 Glpi\Marketplace\Controller->checkUpdate()
src/Marketplace/Controller.php:334 Glpi\Marketplace\Controller::getAllUpdates()
src/CronTask.php:1016 Glpi\Marketplace\Controller::cronCheckAllUpdates()
front/cron.php:82 CronTask::launch()
[2022-05-25 05:00:02] glpiphplog.WARNING: *** PHP Warning (2): getimagesize(/var/www/html/files/PNG/5c/74bdc87ecd51463fa4771dc00667fea7ba18c3.PNG): failed to open stream: No such file or directory in /var/www/html/src/Document.php at line 1766
Backtrace :
src/Document.php:1766 getimagesize()
src/NotificationEventMailing.php:282 Document::getImage()
src/QueuedNotification.php:600 NotificationEventMailing::send()
src/CronTask.php:1016 QueuedNotification::cronQueuedNotification()
front/cron.php:82 CronTask::launch()
[2022-05-25 05:00:02] glpiphplog.WARNING: *** PHP Warning (2): getimagesize(/var/www/html/files/PNG/d5/f67ea1ec92f703a6643551b6563c823e29e631.PNG): failed to open stream: No such file or directory in /var/www/html/src/Document.php at line 1766
Backtrace :
src/Document.php:1766 getimagesize()
src/NotificationEventMailing.php:282 Document::getImage()
src/QueuedNotification.php:600 NotificationEventMailing::send()
src/CronTask.php:1016 QueuedNotification::cronQueuedNotification()
front/cron.php:82 CronTask::launch()
after last blank screen php-errors.log
[2022-05-25 12:05:08] glpiphplog.WARNING: *** PHP User Warning (512): Nieudane połączenie. Jeśli używasz proxy to sprawdź jego konfiguracje. (Resolving timed out after 5000 milliseconds) in /var/www/html/src/Toolbox.php at line 1424
Backtrace :
src/Toolbox.php:1424 trigger_error()
src/GLPINetwork.php:221 Toolbox::callCurl()
src/GLPINetwork.php:265 GLPINetwork::getRegistrationInformations()
src/Marketplace/Controller.php:330 GLPINetwork::isRegistered()
src/CronTask.php:1016 Glpi\Marketplace\Controller::cronCheckAllUpdates()
front/cron.php:82 CronTask::launch()
[2022-05-25 12:05:08] glpiphplog.WARNING: *** PHP User Warning (512): Unable to fetch registration information.
Error message:Nieudane połączenie. Jeśli używasz proxy to sprawdź jego konfiguracje. (Resolving timed out after 5000 milliseconds)
Response:
in /var/www/html/src/GLPINetwork.php at line 235
Backtrace :
src/GLPINetwork.php:235 trigger_error()
src/GLPINetwork.php:265 GLPINetwork::getRegistrationInformations()
src/Marketplace/Controller.php:330 GLPINetwork::isRegistered()
src/CronTask.php:1016 Glpi\Marketplace\Controller::cronCheckAllUpdates()
front/cron.php:82 CronTask::launch()
[2022-05-26 05:00:02] glpiphplog.WARNING: *** PHP Warning (2): getimagesize(/var/www/html/files/PNG/5c/74bdc87ecd51463fa4771dc00667fea7ba18c3.PNG): failed to open stream: No such file or directory in /var/www/html/src/Document.php at line 1766
Backtrace :
src/Document.php:1766 getimagesize()
src/NotificationEventMailing.php:282 Document::getImage()
src/QueuedNotification.php:600 NotificationEventMailing::send()
src/CronTask.php:1016 QueuedNotification::cronQueuedNotification()
front/cron.php:82 CronTask::launch()
[2022-05-26 05:00:02] glpiphplog.WARNING: *** PHP Warning (2): getimagesize(/var/www/html/files/PNG/d5/f67ea1ec92f703a6643551b6563c823e29e631.PNG): failed to open stream: No such file or directory in /var/www/html/src/Document.php at line 1766
Backtrace :
src/Document.php:1766 getimagesize()
src/NotificationEventMailing.php:282 Document::getImage()
src/QueuedNotification.php:600 NotificationEventMailing::send()
src/CronTask.php:1016 QueuedNotification::cronQueuedNotification()
front/cron.php:82 CronTask::launch()
FYI server has Internet connection, I can ping websites.
Hi,
All your issues are related to GLPI automated actions. Have you configured a server side crontab, or are you using the GLPI
mode for your GLPI automated actions ?
When using the GLPI
mode, tasks are ran periodically when users are using GLPI, and it may cause slowness during navigation. You should try to configure a server-side crontask and use CLI
mode for all your automatic actions.
@cedric-anne Automated actions are set to CLI and crontab looks like this:
* * * * * /usr/bin/php7.4 /var/www/html/front/cron.php &> /dev/null
If all your automated tasks are executed in CLI mode, then I have no idea what could be causing slowness.
@cedric-anne It isn't slowness. It's just when people are not logging out, then after some time GLPI will go blank and only clearing cookies helps.
Recent apache error.log
[Wed Jun 01 00:00:02.507979 2022] [mpm_prefork:notice] [pid 65868] AH00163: Apache/2.4.53 (Debian) OpenSSL/1.1.1n mod_perl/2.0.11 Perl/v5.32.1 configured -- resuming normal operations
[Wed Jun 01 00:00:02.508003 2022] [core:notice] [pid 65868] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 01 05:34:11.087136 2022] [php7:notice] [pid 71169] [client 192.168.1.50:50168] PHP Notice: Undefined index: ocsservers_id in /var/www/html/marketplace/ocsinventoryng/hook.php on line 1348
[Wed Jun 01 05:34:11.087226 2022] [php7:notice] [pid 71169] [client 192.168.1.50:50168] PHP Notice: Undefined index: id in /var/www/html/marketplace/ocsinventoryng/hook.php on line 1360
[Wed Jun 01 05:34:11.100167 2022] [php7:error] [pid 71169] [client 192.168.1.50:50168] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/html/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log: *** Uncaught Exception Error: Call to a member function getOcsComputer() on null in /var/www/html/marketplace/ocsinventoryng/hook.php at line 1369\n Backtrace :\n src/Plugin.php:1530 plugin_ocsinventoryng_ruleCollectionPrepareInputDataForProcess()\n src/RuleCollection.php:1770 Plugin::doOneHook()\n src/RuleCollection.php:1577 RuleCollection->prepareInputDataForProcessWithPlugins()\n src/Inventory/Asset/MainAsset.php:499 RuleCollection->processAllRules()\n src/Inventory/Inventory.php:678 Glpi\\Inventory\\Asset\\MainAsset->handle()\n src/Inventory/Inventory.php:316 Glpi\\Inventory\\Inventory->handleItem()\n src/Inventory/Request.php:364 Glpi\\Inventory in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 146
[Wed Jun 01 05:34:11.100283 2022] [php7:error] [pid 71169] [client 192.168.1.50:50168] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/html/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log: *** PHP Error (1): Uncaught UnexpectedValueException: The stream or file "/var/www/html/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log: *** Uncaught Exception Error: Call to a member function getOcsComputer() on null in /var/www/html/marketplace/ocsinventoryng/hook.php at line 1369\n Backtrace :\n src/Plugin.php:1530 plugin_ocsinventoryng_ruleCollectionPrepareInputDataForProcess()\n src/RuleCollection.php:1770 Plugin::doOneHook()\n src/RuleCollection.php:1577 RuleCollection->prepareInputDataForProcessWithPlugins()\n src/Inventory/Asset/MainAsset.php:499 RuleCollection->processAllRules()\n src/Inven in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 146
[Wed Jun 01 06:51:33.205026 2022] [php7:error] [pid 71168] [client 192.168.1.22:9379] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/html/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log: *** Uncaught Exception UnexpectedValueException: The stream or file "/var/www/html/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log: *** PHP User Warning (512): Unable to decrypt string. It may have been crypted with another key. in /var/www/html/src/GLPIKey.php at line 426\n Backtrace :\n src/GLPIKey.php:426 trigger_error()\n src/Auth.php:795 GLPIKey->decrypt()\n front/login.php:86 Auth->login()\n in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php at line 146\n Backtrace :\n ...onolog/Handler/AbstractProcessingHandler.php:48 Monolog\\Handler\\StreamHandler->write()\n v in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 146, referer: https://helpdesk.mydomain.com/front/computer.php
[Wed Jun 01 06:51:33.205132 2022] [php7:error] [pid 71168] [client 192.168.1.22:9379] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/html/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log: *** PHP Error (1): Uncaught UnexpectedValueException: The stream or file "/var/www/html/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log: *** Uncaught Exception UnexpectedValueException: The stream or file "/var/www/html/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log: *** PHP User Warning (512): Unable to decrypt string. It may have been crypted with another key. in /var/www/html/src/GLPIKey.php at line 426\n Backtrace :\n src/GLPIKey.php:426 trigger_error()\n src/Auth.php:795 GLPIKey->decrypt()\n front/login.php:86 in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 146, referer: https://helpdesk.mydomain.com/front/computer.php
[Wed Jun 01 07:04:27.601166 2022] [php7:error] [pid 71170] [client 192.168.1.22:11321] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/html/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log: *** Uncaught Exception UnexpectedValueException: The stream or file "/var/www/html/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log: *** PHP User Warning (512): Unable to decrypt string. It may have been crypted with another key. in /var/www/html/src/GLPIKey.php at line 426\n Backtrace :\n src/GLPIKey.php:426 trigger_error()\n src/Auth.php:795 GLPIKey->decrypt()\n front/login.php:86 Auth->login()\n in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php at line 146\n Backtrace :\n ...onolog/Handler/AbstractProcessingHandler.php:48 Monolog\\Handler\\StreamHandler->write()\n v in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 146, referer: https://helpdesk.mydomain.com/front/computer.php
[Wed Jun 01 07:04:27.601300 2022] [php7:error] [pid 71170] [client 192.168.1.22:11321] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/html/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log: *** PHP Error (1): Uncaught UnexpectedValueException: The stream or file "/var/www/html/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log: *** Uncaught Exception UnexpectedValueException: The stream or file "/var/www/html/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log: *** PHP User Warning (512): Unable to decrypt string. It may have been crypted with another key. in /var/www/html/src/GLPIKey.php at line 426\n Backtrace :\n src/GLPIKey.php:426 trigger_error()\n src/Auth.php:795 GLPIKey->decrypt()\n front/login.php:86 in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 146, referer: https://helpdesk.mydomain.com/front/computer.php
GLPI logs files ACLs are not correct. PHP must be able to write to those files.
@trasher Yeah after that I changed it to 0664 rw-rw-r-- Should be enough.
So you have to provide errors in GLPI logs... Sounds like there are some; since it was trying to write into it.
By the way, having a properly configured GLPI instance is a prerequisite before reporting any issue.
In your logs, there is a Unable to decrypt string. It may have been crypted with another key.
error.
This error usally happens when you process the GLPI update without previously restoring the encryption key. During update process, when this key is missing, a form with message The key file "/var/www/glpi/config/glpicrypt.key" used to encrypt/decrypt sensitive data is missing. You should retrieve it from your previous installation or encrypted data will be unreadable.
should be shown with both ignore
and retry
buttons.
Unless I am wrong, it seems that you have a configured LDAP server with a rootdn_passwd
value that can be decrypt. It tries to generate a log entry, and, due to ACL issue on files, failed with a fatal error.
@cedric-anne "/var/www/glpi/config/glpicrypt.key" is under /var/www/html/config/ Where can I change the path?
Unless I am wrong, it seems that you have a configured LDAP server with a rootdn_passwd value that can be decrypt. It tries to generate a log entry, and, due to ACL issue on files, failed with a fatal error.
Yes, we used to have LDAP but switched back to internal DB. I switched that server off now after you mentioned it.
Where can I change the path?
I was just mentionning the kind of message you should have seen.
However, as now you may have some data that uses the new generated encryption key, the best way to fix this is to type the rootdn password again and save the form, so it will en encrypted with the new encryption key.
Ok I think enough time has passed. I cleared /var/www/html/files/_cache completely and since then haven't had any calls about GLPI's blank screen. So it was probably that.
Thanks for the help!
Code of Conduct
Is there an existing issue for this?
Version
10.0.0
Bug description
If a user won't log out for a long time he will get the blank page. Clearing all cache and cookies helps but only temporarily. After clearing there's an error message saying: "Invalid use of Session ID"
Relevant log output
Page URL
No response
Steps To reproduce
Don't log out
Your GLPI setup information
Informacje o instalacji i konfiguracji systemu
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Anything else?
No response