You are not logged in.
Pages: 1
Hi
I have a problem. I setup GLPI 10.0.1 and i want to use inventory but error:server0 is not ready yet, next server contact planned for ...
Please help me.
Best Regards.
Offline
Hi resulozturk,
this message is not an error. The agent is also a scheduling manager but it follows few constraint:
it should not connect immediatly to avoid all agents being connecting to the server at the same time. This is dangerous when you have thousands of agent scheduled to start at the same time. So a little random delay is always inserted at startup, unless you're forcing an inventory
after its first server contact, the server answers the agent should not contact it before a given time, this is by default 24 hours. So by default, the agent waits approximatively 24 hours (indeed 24h less a maximum 1 hour random interval when the expiration in 24h).
This is why you have this message. It says when the next contact is planned.
The first time an agent is started on a computer, by default, it should contact the server at a random time during the next hour.
If you really need an update, you should be able to ask an inventory from the computer asset in GLPI. Their's a button for that on the first asset page. This only works if the server is authorize to open a connection toward the agent on the 62354 tcp port.
From the computer itself, you may also try to access the http://localhost:62354/ address with an internet explorer and ask to "run now".
Last edited by gbougard (2022-06-14 14:03:10)
GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer
Online
Hi gbougard,
I see . Do I just write x.x.x.x when I install? Or should I write /glpi/front/inventory.conf.php ?
Kind Regards
Hi resulozturk,
this message is not an error. The agent is also a scheduling manager but it follows few constraint:
it should not connect immediatly to avoid all agents being connecting to the server at the same time. This is dangerous when you have thousands of agent scheduled to start at the same time. So a little random delay is always inserted at startup, unless you're forcing an inventory
after its first server contact, the server answers the agent should not contact it before a given time, this is by default 24 hours. So by default, the agent waits approximatively 24 hours (indeed 24h less a maximum 1 hour random interval when the expiration in 24h).
This is why you have this message. It says when the next contact is planned.
The first time an agent is started on a computer, by default, it should contact the server at a random time during the next hour.
If you really need an update, you should be able to ask an inventory from the computer asset in GLPI. Their's a button for that on the first asset page. This only works if the server is authorize to open a connection toward the agent on the 62354 tcp port.
From the computer itself, you may also try to access the http://localhost:62354/ address with an internet explorer and ask to "run now".
Offline
Read this online doc for setting up "server" configuration:
https://glpi-agent.readthedocs.io/en/la … tml#server
GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer
Online
Hi Gbougard,
Thank your great reply, it help me a lot. Currently I meet the same problem as Resulozturk. Right now I still can't see the Inventory result for serveral days. I saw the "[error] [http client] communication error: 500 Internal Server Error" in client's glpi-agent.log and "POST /front/inventory.php HTTP/1.1" 500 5 "-" "GLPI-Agent_v1.2" "-" in server's access.log and also saw the error in files/_log/php-errors.log as the following:
glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "nok_Fd0PXsjVcG$$$$120" in /var/www Backtrace : src/Inventory/Asset/Software.php:380 Glpi\Inventory\Asset\Software->storeVersions() src/Inventory/Asset/MainAsset.php:804 Glpi\Inventory\Asset\Software->handle() src/Inventory/Asset/MainAsset.php:724 Glpi\Inventory\Asset\MainAsset->handleAssets() src/RuleImportAsset.php:954 Glpi\Inventory\Asset\MainAsset->rulepassed()
...
glpiphplog.ERROR: *** PHP User Error (256): Column 'softwares_id' cannot be null in /var/www/glp Backtrace : src/DBmysql.php:1953 trigger_error() src/Inventory/Asset/Software.php:703 DBmysql->executeStatement() src/Inventory/Asset/Software.php:380 Glpi\Inventory\Asset\Software->storeVersions() src/Inventory/Asset/MainAsset.php:804 Glpi\Inventory\Asset\Software->handle() src/Inventory/Asset/MainAsset.php:724 Glpi\Inventory\Asset\MainAsset->handleAssets() src/RuleImportAsset.php:954 Glpi\Inventory\Asset\MainAsset->rulepassed() src/Rule.php:1510 RuleImportAsset->executeActions() src/RuleCollection.php:1591 Rule->process() src/Inventory/Asset/MainAsset.php:544 RuleCollection->processAllRules() src/Inventory/Inventory.php:696 Glpi\Inventory\Asset\MainAsset->handle()
I don't know how to fix and tried to search via google, still can't figure out what happened.
Please advise me and thank you in advance.
PS:
1. I could see the client computer(test) in " Home/ Administration/ Inventory ", but not in " Home/ Assets/ Computers ".
2. I changed "Inventory frequency (in hours)" to 1 hour in " Home/ Administration/ Inventory ", but still took so long and not shown.
Hi resulozturk,
From the computer itself, you may also try to access the http://localhost:62354/ address with an internet explorer and ask to "run now".
Last edited by dogz (2022-06-15 07:04:58)
Offline
Hi dogz,
first your agent problem seems resolved as the agent is contacting the server as expected. Now you seem to have a problem during import and you seem to have corrupted datas in the glpi software table. I suppose this can be the result of a wrong migration. Can you explain what is the main history of your GLPI ? How old it is ? What's the installed plugin ?
To validate the inventory import works without the software category, you can set on the agent side the configuration parameter "no-category" to "software".
GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer
Online
Dear Gbougard,
Thank you for your nice reply. I test GLPI from version 9.4 with fusionInventory on Centos 7, and it was successfully last year. I was waiting for version 10 launching. I setup GLPI 10.0.1 with GLPI-Agent 1.2 on Alpine Linux 3.16.0 (PHP 8.1.6), I don't migrate from any old information. I don't see any data in glpi software table. I think you are right, I installed Additional Fields, Barcode, IP Addressing, Item's Lifecycle and Orders management plugins before I setup glpi-agent on my test computers. Maybe some plugins raise this issue. I will try to setup one GLPI server again or I uninstall those plugins first.
I have other questions as following, try to figure out why I still can't see the assets.
1. I install GLPI-Agent 1.2 on one windows 10 VM(tried to install three times, one used /quiet options, one tried to install step by step ) and Windows 11 laptop(tried to use orca to create MST file), Should I reboot them after installing? I see glpi-agent in serivces, could I restart it from services if I modify some values in registry?
2. Is it possible to install GLPI-Agent on other Linux distributions like Alpine Linux? I try to use tarball, but failed.
3. I use PHPIPAM to management IP address, is it possible to import into GLPI?
PS: I am sorry for late reply, I am in Asia time zone and English/French/.... are not native language so that take much time to write in English.
Hi dogz,
first your agent problem seems resolved as the agent is contacting the server as expected. Now you seem to have a problem during import and you seem to have corrupted datas in the glpi software table. I suppose this can be the result of a wrong migration. Can you explain what is the main history of your GLPI ? How old it is ? What's the installed plugin ?
To validate the inventory import works without the software category, you can set on the agent side the configuration parameter "no-category" to "software".
Offline
Dear Gbougard,
I am not sure if I did it right or not. I tried 4 times, but results are the same.
C:\Program Files\GLPI-Agent>glpi-agent --no-category=software
C:\Program Files\GLPI-Agent>glpi-agent --server h.t.t.p://glip.mydomain.com/ --no-category=software
C:\Program Files\GLPI-Agent>glpi-agent --server h.t.t.p://glip.mydomain.com/front/inventory.php --no-category=software
That dot is due that I am not allowed to post links.
I access http://localhost:62354 and force an Inventory.
C:\Program Files\GLPI-Agent\logs\glpi-agent.log
...
[Wed Jun 15 17:42:35 2022][info] server0 is not ready yet, next server contact planned for Thu Jun 16 13:19:43 2022
files/_log/php-errors.log
no more new information
Hi dogz,
To validate the inventory import works without the software category, you can set on the agent side the configuration parameter "no-category" to "software".
Last edited by dogz (2022-06-15 12:17:15)
Offline
I solved problem , thanks gougard.
Kind Regards,
Offline
I solved problem , thanks gougard.
Kind Regards,
Hi Resulozturk,
Would you please share your solution to me? thank you in advance.
Offline
Pages: 1