Closed GKurtasov closed 1 year ago
10.0.6
Please update to latest version.
[...] It is noteworthy that the "php-errors.log" file had the rights and the "root" group, although "www-data" was set everywhere during the installation of the system.
You ran crontab as root user. GLPI does not change files owners...
[...] Further, when you go to the plugins / marketplace section, an error periodically appears:
PHP User Warning (512): Connection error. If you are using a proxy server, set it up. (Resolving timed out after 5000 milliseconds) in /var/www/glpi/src/Toolbox.php at line 1514
Still not a GLPI issue, but probably a network one.
This issue has been closed as we only track bugs here.
You can get community support on forums or you can consider taking a subscription to get professional support. You can also contact GLPI editor team directly.
Please update to the latest version.
We tried and unfortunately, the update does not solve the problem.
You have started crontab as root user. GLPI does not change file owners...
"cron" is not running, more precisely, now in the settings the execution is inside GLPI, in other words, all automatic actions have a method of execution - "GLPI".
Still not a GLPI problem, but probably a network one.
This error also goes away with everyone when the user/group is exposed to "www-data"
It's requested to write english only.
It's requested to write english only.
Sorry, auto translation. Already corrected the message
well when u getting support like that i guess i consider downgrade instead of an upgrade
Code of Conduct
Is there an existing issue for this?
Version
10.0.6
Bug description
Hello!
Almost 2 months ago we upgraded from version 9.5.7 to 10.0.6. Everything worked successfully until 06/09/2023. The first thing that happened was that the notification queue hung. When trying to send one or more tasks manually, an error appeared:
The stream or file "/var/www/glpi/files/_log/php-errors.log" could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log: *** PHP Warning (2): Undefined array key "identifier" in /var/www/glpi/src/MassiveAction.php at line 389 Backtrace : front/massiveaction.php:44 MassiveAction->__construct()
Any mass actions in GLPI caused this error associated with the "massiveaction.php" file. It is noteworthy that the "php-errors.log" file had the rights and the "root" group, although "www-data" was set everywhere during the installation of the system.
Further, when you go to the plugins / marketplace section, an error periodically appears:
PHP User Warning (512): Connection error. If you are using a proxy server, set it up. (Resolving timed out after 5000 milliseconds) in /var/www/glpi/src/Toolbox.php at line 1514
Based on the first error, we changed the permissions for all files and folders to "www-data" (user/group). After this step, everything worked great. The notification queue was running, all tasks were being dispatched, bulk actions were working. But the GLPI system worked for several days and then it happened again. It is not clear what or who changes the rights back to "root". There was an assumption that this was due to the method of performing automatic actions, in our case part was performed by the "CLI" method and the other by the "GLPI" method. Changed the settings everywhere to the "GLPI" method, but that didn't help either.
The strange fact is that for more than a month everything worked properly and stopped, although there were no updates or changes in the configuration on the server.
Forgive me in advance if I filled out or provided incomplete information. This is my first time submitting a "bug report".
Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
System, installation and configuration information
Server
GLPI constants
Libraries
Plugins list
Anything else?
No response