You are not logged in.
Hello.
Everything was OK, but I had to restore the server from a backup I made 14 months ago. In the meantime, the agent's version has changed... and many settings on server too. And my vbs stopped working.
In the meantime I changed address from https://server.com/glpi/ to https://server.com/ (on server before restore)
After restored I downloaded the agent new setup to '/var/www/html/fusion-agents/'
My script:
SetupVersion = "2.6"
SetupLocation = "http://server.com/fusion-agents/"
SetupOptions = "/acceptlicense /execmode=Service /no-ssl-check /httpd-trust=192.168.1.12 /httpd-port=32 /installtasks=Deploy,Inventory /scan-homedirs /runnow /server='https://server.com/plugins/fusioninventory/' /html /local=C:\FusionInventory\fusionInventoryLog.html /logfile=C:\FusionInventory\fusioninventory-agent.log /S"
What i missed? Should I change the permissions of downloaded agent exe files? Maybe somewhere in the plugin configuration I didn't change the url?
Is the output of the vbs file written to a file somewhere? Any logs? How to diagnose where the error occurs?
Last edited by WebGreg (2021-10-21 13:12:18)
--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS
Offline
Don't you miss a "s" in "http://" at your SetupLocation ?
GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer
Offline
I think not. Previously, it worked with http. With https I get:
fusioninventory-agent-deployment.vbs(309, 4) WinHttp.WinHttpRequest: There was an error in handling the secure channel.
--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS
Offline
Is this the error you have now using http:// or https:// ? What is the error with the other scheme ?
Maybe you have now a redirection on server-side when using http:// and not before.
Maybe the SSL certificate is self-signed and not recognized by the system.
GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer
Offline
I use commercial wildcard cert.
Security channel error, occurs after switching to https. With http... no errors:
I am using psexec to implement and it returns: cscript exited on %computername% with error code 0.
Edit
I still have runing the server before restore (new ip and hostname). The same script - I changing only:
SetupLocation = "http://server.com/fusion-agents/" to "http://serverBeforeRestore.com/fusion-agents/"
and in SetupOptions:
/server='https://server.com/plugins/fusioninventory/' to /server='https://serverBeforeRestore.com/plugins/fusioninventory/'
And... works like a charm.
I obviously missed something, but I don't know what - I don't know where else to check, because I probably have an outdated entry somewhere.
This is strange for me. Agent should install even with wrong configuration, right? Later it would throw a connection error. So it could be a problem with accessing to the agent exe file? It works with:
SetupLocation = "C:\TEMP"
Than it looks like problem with access to install file on server. But how resolve it? When I compare on both servers (ls -l /var/www/html/) I get the same result:
drwxr-xr-x 2 root root 4096 Dec 30 2020 fusion-agents
Last edited by WebGreg (2021-10-21 13:07:36)
--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS
Offline
SOLVED
After I changed the app address from https://glpi.domain.com/glpi/ to https://glpi.domain.com/ I had to change the location of the directory with installation files from /var/www/html/ to /var/www/html/glpi My restored server still had this folder in /var/www/html/
Thank You gbougard. I really needed this brainstorming :-D
Last edited by WebGreg (2021-10-22 07:32:19)
--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS
Offline