You are not logged in.
Hi
I have had a software problem since upgrading from 9.x to 10.x. But only on the super admin profile. Other profiles can load the list quickly. I have to wait for many minutes. The worst situation is when I switch the "Toggle browse" option. With debuge mode:
I have tried to remove all the software but that doesn't fix the problem either.
Last edited by WebGreg (2023-06-20 09:17:41)
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline
Only I have this problem?
Maybe someone at least knows how to do this "range optimization"?
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline
[2022-10-18 12:21:49] glpisqllog.WARNING: DBmysql::query() in /var/www/html/glpi/src/DBmysql.php line 404
*** MySQL query warnings:
SQL: SELECT * FROM `glpi_softwares` WHERE `glpi_softwares`.`id` = '---2119' LIMIT 1
Warnings:
1292: Truncated incorrect DOUBLE value: '---2119'
How to fix this? 13101 - this is the lowest id I have in the database.
Last edited by WebGreg (2022-10-18 13:00:46)
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline
Can anyone help me fix these errors?
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline
I have huge logs with the error messages given above
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline
Any hints?
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline
Does it work well if you decrease the number of rows shown on each page of the results using the dropdown?
Besides that, the limits being exceeded all seem to be on the DB server side.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
Hi cconard96
With 15 lines, it's a bit better, but I will not say that it works without problems.
However, when I switch the "Toggle browse" option - the white screen for a few minutes until it finally crashes the errors as above.
As I mentioned, it worked great in 9.x. After going to 10 - drama.
Edit - I can't see errors in sql-errors when I go to the software tab. If I remember, before version 10.0.4, they already appeared. Now I only have errors after switch the "Toggle browse"
[2022-11-09 14:14:25] glpisqllog.WARNING: DBmysql::query() in /var/www/html/glpi/src/DBmysql.php line 404
*** MySQL query warnings:
SQL: SELECT DISTINCT `glpi_softwares`.`id` AS id, 'user' AS currentuser,
`glpi_softwares`.`entities_id`, `glpi_softwares`.`is_recursive`, `glpi_softwares`.`name` AS `ITEM_Software_1`,
`glpi_softwares`.`id` AS `ITEM_Software_1_id`,
`glpi_manufacturers`.`name` AS `ITEM_Software_23`, GROUP_CONCAT(DISTINCT CONCAT(IFNULL(`glpi_softwareversions`.`name`, '__NULL__'),
'$#$',`glpi_softwareversions`.`id`) ORDER BY `glpi_softwareversions`.`id` SEPARATOR '$$##$$')
AS `ITEM_Software_5`,
GROUP_CONCAT(DISTINCT CONCAT(IFNULL(`glpi_operatingsystems_0a35c270152be19b5c8a485502badcd7`.`name`, '__NULL__'),
'$#$',`glpi_operatingsystems_0a35c270152be19b5c8a485502badcd7`.`id`) ORDER BY `glpi_operatingsystems_0a35c270152be19b5c8a485502badcd7`.`id` SEPARATOR '$$##$$')
AS `ITEM_Software_4`,
COUNT(DISTINCT `glpi_items_softwareversions_37010ce8f4633da91ded3e0a4c256dc9`.`id`) AS `ITEM_Software_72`,
FLOOR(SUM(`glpi_softwarelicenses_6427cab6934982da77f819e079502198`.`number`)
* COUNT(DISTINCT `glpi_softwarelicenses_6427cab6934982da77f819e079502198`.`id`)
/ COUNT(`glpi_softwarelicenses_6427cab6934982da77f819e079502198`.`id`)) AS `ITEM_Software_163`,
........
[2022-11-09 14:14:25] glpisqllog.WARNING: DBmysql::query() in /var/www/html/glpi/src/DBmysql.php line 404
*** MySQL query warnings:
SQL: SELECT `glpi_softwarecategories`.`id`, `glpi_softwarecategories`.`name`, `glpi_softwarecategories`.`softwarecategories_id`, (SELECT COUNT(DISTINCT(`glpi_softwares`.`id`)) AS `cpt` FROM `glpi_softwares` WHERE `glpi_softwares`.`softwarecategories_id` = `glpi_softwarecategories`.`id` AND `glpi_softwares`.`id` IN ('0', '12622', '12623', '12624', '12625', '12626', '12627', '12628', '12629', ..........>
Warnings:
3170: Memory capacity of 8388608 bytes for 'range_optimizer_max_mem_size' exceeded. Range optimization was not done for this query.
Backtrace :
src/DBmysqlIterator.php:112
src/DBmysql.php:1056 DBmysqlIterator->execute()
src/Features/TreeBrowse.php:222 DBmysql->request()
src/Features/TreeBrowse.php:75 Software::getTreeCategoryList()
src/Search.php:174 Software::showBrowseView()
front/software.php:42 Search::show()
{"user":"25@glpi","mem_usage":"0.056\", 11.62Mio)"}
[2022-11-09 14:14:25] glpisqllog.WARNING: DBmysql::query() in /var/www/html/glpi/src/DBmysql.php line 404
*** MySQL query warnings:
SQL: SELECT COUNT(DISTINCT(`glpi_softwares`.`id`)) AS `cpt` FROM `glpi_softwares` WHERE `glpi_softwares`.`softwarecategories_id` = '0' AND `glpi_softwares`.`id` IN ('0', '12622', '12623', '12624', '12625', ...........>
Warnings:
3170: Memory capacity of 8388608 bytes for 'range_optimizer_max_mem_size' exceeded. Range optimization was not done for this query.
Backtrace :
src/DBmysqlIterator.php:112
src/DBmysql.php:1056 DBmysqlIterator->execute()
src/Features/TreeBrowse.php:247 DBmysql->request()
src/Features/TreeBrowse.php:75 Software::getTreeCategoryList()
src/Search.php:174 Software::showBrowseView()
front/software.php:42 Search::show()
Last edited by WebGreg (2022-11-09 15:23:22)
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline
I don't know if it is related to the memory issue, but that query definitely looks like it needs to be optimized. On large installs, it doesn't seem feasible to have every single software ID in a list in the query like that.
I'll need to look into it more to understand the purpose of that part and look for other ways to try and simplify the query.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
I'm so happy that someone finally confirmed it. So far I felt lonely with it
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline
How many Software items do you have in your GLPI? I'm trying to bulk add a bunch to mine so I can try to accurately compare any before and after performance changes.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
Showing 1 to 15 of 5578 rows
Once (I don't remember when and what I changed in the meantime) I recreated the machine from the backup to the test. And now the test one is running smoothly. 2800 rows. Both machines have the same amount of memory and processors. The test one does not communicate with agents, so it does not download new data, it is not spammed with history entries.
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline
I don't know if it is related to the memory issue
Let me just add that there is no doubt - in version 9.x I had no problems with 10k lines. Now I'm having trouble halfway through it and after adding more memory.
I'll need to look into it more to understand the purpose of that part and look for other ways to try and simplify the query.
Or maybe bite it from the other side? A single Windows computer can register 500 software items, e.g.
Dell Command | Update 1.10.7.17134 neutral Yes system Yes
Dell Command | Update 10.1807.9.0 x64 Yes system Yes
Dell Command | Update 10.1807.9.0 x86 Yes system Yes
Dell Command | Update 3.0.122.0 x64 Yes application Yes
Dell Command | Update 4.6.0 i586 Yes application Yes
But after logging in to that computer, I only see 30 items in the software list. I am still not convinced that the amount of software distributed by the glpi agent is actually justified.
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline
I posted a comment on the GitHub issue you have open with a link to a potential fix that I cannot fully test as MariaDB doesn't seem to have this limit.
Can you check if it fixes the SQL warning or at least improves performance?
https://github.com/glpi-project/glpi/issues/12779
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
After deleting the account causing the problem and adding it again - everything works fine.
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline