try adding username and password to the https string of server line.
eg. server=https://username:password@FQDN:443/ocsinventory
Please keep in mind, that username and password will also be stored in the lib/ocsinventory-agent directory.
Best
Frank
Bonjour,
Avez-vous trouvez une solution ?
J'ai également le même problème.
http://ask.ocsinventory-ng.org/12134/utilisateur-windows-syst%C3%A8me
Merci d'avance,
Cordialement,
Complément d'info :
INVENTORY => Loading Download history
INVENTORY => Logged on user ID is <Système>
INVENTORY => Operating System is <Microsoft Windows 7 Professionnel 6.1.7601 Service Pack 1>, description <>
INVENTORY => Operating System uses 64 bits memory address width
INVENTORY => Computer domain or workgroup is <nomdudomaine>
WARNING *** INVENTORY => Failed to retrieve user domain
Hi,
A screenshot of the message about OcsSystray.exe (in French language) after the end of installation of Ocs Inventory Agent Windows 2.7.0.0.
Bye.
Hey there,
I try to deploy a package, just for testing I try to deploy the latest VLC-Player.
So I put the 'vlc-3.0.10-win64.exe' and an 'install.bat' into a ZIP-archive.
I build a package using the action 'Execute / Lauch' and put the command 'install.bat'
The content of the 'install.bat' is the following:
vlc-3.0.10-win64.exe /L="1031" /S
exit 0
If I click the 'install.bat' manually it works with no problem and installs the VLC-Player silently in background.
If I activate and assign the the package to my workstation, the download will work but not the installation. The Logs says <EXIT_CODE_1>
Download.log:
Starting OCS Inventory NG Package Download and Setup Tool on Wednesday, June 10, 2020 16:46:24.
DOWNLOAD => Running OCS Inventory NG Download Version 2.6.0.1
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.6.0.1
DOWNLOAD => Using network connection with Communication Server
COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>
DOWNLOAD => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.6.0.0>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Flushing package queue
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => Verifying package <C:\ProgramData\OCS Inventory NG\Agent\download\1591800219>
DOWNLOAD => Package <1591800219> verified and added to process queue
DOWNLOAD => Processing packages for cycle 1 on Wednesday, June 10, 2020 16:46:24
DOWNLOAD => Downloading package fragment <1591800219-1>
COM SERVER => Initializing cURL library for getFile
COM SERVER => Using cURL without server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <cacert.pem>
COM SERVER => Sending fileGet request to URL <HTTP://ocs.ihidemydomain.com/download/1591800219/1591800219-1>
COM SERVER => fileGet response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
DOWNLOAD => Pausing for fragment latency (10 seconds)
DOWNLOAD => Pausing for cycle latency (60 seconds)
DOWNLOAD => Processing packages for cycle 2 on Wednesday, June 10, 2020 16:47:47
DOWNLOAD => Building package <1591800219>
PACKAGE => Verifying fragment files of package <1591800219>
PACKAGE => Checking free disk space for package <1591800219>
PACKAGE => Building ZIP for package <1591800219>
PACKAGE => Verifying ZIP signature for package <1591800219>
DOWNLOAD => Package <1591800219> built successfully
DOWNLOAD => Executing action <EXECUTE> for package <1591800219>
PACKAGE => Executing command <install.bat> for package <1591800219> on <Wednesday, June 10, 2020 16:47:49>
PACKAGE => Package <1591800219> successfully executed. Command exit code is <1>. Package return code is <EXIT_CODE_1>
PACKAGE => Executing post execution command <NONE> for package <1591800219>
PACKAGE => Package <1591800219> post execution command successfully executed. Command exit code is <1>
ERROR *** DOWNLOAD => Will not register package <1591800219> in history: result <EXIT_CODE_1> not a success
DOWNLOAD => Sending result code <EXIT_CODE_1> for package <1591800219>
DID_CHECK => Read DeviceID <NB03-2020-06-03-17-23-26> and MACs <00:FF:18:5E:XX......XX:18:18> in file <ocsinventory.dat>
COM SERVER => Initializing cURL library for sendRequest
COM SERVER => Using cURL without server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <cacert.pem>
COM SERVER => Sending HTTP Post request to URL <https://ocs.ihidemydomain.com/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
DOWNLOAD => Result code request successfully sent
DOWNLOAD => Pausing for fragment latency (10 seconds)
DOWNLOAD => Pausing for cycle latency (60 seconds)
DOWNLOAD => Processing packages for cycle 3 on Wednesday, June 10, 2020 16:49:00
DOWNLOAD => Pausing for cycle latency (60 seconds)
DOWNLOAD => Processing packages for cycle 4 on Wednesday, June 10, 2020 16:50:00
DOWNLOAD => Pausing for cycle latency (60 seconds)
DOWNLOAD => Processing packages for cycle 5 on Wednesday, June 10, 2020 16:51:00
DOWNLOAD => Pausing for cycle latency (60 seconds)
DOWNLOAD => Processing packages for cycle 6 on Wednesday, June 10, 2020 16:52:00
DOWNLOAD => Pausing for cycle latency (60 seconds)
OCSInventory.log:
Starting OCS Inventory NG Agent on Wednesday, June 10, 2020 16:21:52.
AGENT => Running OCS Inventory NG Agent Version 2.6.0.1
AGENT => Using OCS Inventory NG FrameWork Version 2.6.0.1
AGENT => Loading plug-in(s)
DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
DLL PLUGIN => 0 DLL Plug-in(s) successfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.6.0.0>
AGENT => Sending Prolog
DID_CHECK => Read DeviceID <NB03-2020-06-03-17-23-26> and MACs <00:FF:XX......XX:CC:18:18> in file <ocsinventory.dat>
COM SERVER => Initializing cURL library for sendRequest
COM SERVER => Using cURL without server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <cacert.pem>
COM SERVER => Sending HTTP Post request to URL <https://ocs.ihidemydomain.com/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
AGENT => Prolog successfully sent
AGENT => Prolog Frequency set to 24 hour(s)
AGENT => Inventory on startup option set to 1
AGENT => Inventory required
AGENT => Launching hardware and software checks
INVENTORY => Loading Download history
..... I cut the inventory out ......
AGENT => Communication Server asks for IpDiscover
..... I cut the ip discover out ......
EXECUTABLE PLUGIN => Searching for VBS script(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
EXECUTABLE PLUGIN => Searching for PS1 script(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
EXECUTABLE PLUGIN => Found executable plugin <Saas.ps1>
WARNING *** EXECUTABLE PLUGIN => Plugin <C:\Program Files\OCS Inventory Agent\plugins\Saas.ps1> does not produce any output
AGENT => Sending Inventory
..... I cut the inventory out ......
COM SERVER => Initializing cURL library for sendRequest
COM SERVER => Using cURL without server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <cacert.pem>
COM SERVER => Sending HTTP Post request to URL <https://ocs.ihidemydomain.com/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
AGENT => Inventory successfully sent
INVENTORY => Writing new inventory state
AGENT => Communication Server asked for Package Download
DOWNLOAD => Package history file successfully cleaned for duplicate IDs
DOWNLOAD => Metadata file <info> for package <1591798070> is located at <https://ocs.ihidemydomain.com/download/1591798070/info>
COM SERVER => Initializing cURL library for getFile
COM SERVER => Using cURL without server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <cacert.pem>
COM SERVER => Sending fileGet request to URL <https://ocs.ihidemydomain.com/download/1591798070/info>
COM SERVER => fileGet response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
DOWNLOAD => Unloading communication provider
DOWNLOAD => Retrieve info file...OK (pack 1591798070)
DOWNLOAD => Package <1591798070> added to download queue
DOWNLOAD => Download and setup tool successfully started
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:01:09.
What I am doing wrong or what do I missing?
Thank you
Hi all
I'm a very new OCS Inventory user. I have been tasked with setting up an OCS Inventory Server. I have installed the product on Centos 7 according to the steps outlined in the official NG Wiki for OCS (Chapter: Setting up an OCS Inventory server).
I have also installed the windows agent on my desktop PC. The agent inventories everything fine locally, but cannot communicate with the server. This is what the Agent log says:
Starting OCS Inventory NG Agent on Tuesday, March 17, 2020 12:33:59.
AGENT => Running OCS Inventory NG Agent Version 2.6.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.6.0.0
AGENT => Loading plug-in(s)
DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
DLL PLUGIN => 0 DLL Plug-in(s) successfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.6.0.0>
AGENT => Sending getLabel request
COM SERVER => Initializing cURL library for getFile
COM SERVER => Using cURL with server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Disabling cURL SSL server validation support
COM SERVER => Sending fileGet request to URL <http://192.168.10.99/ocsinventory/deploy/label>
WARNING *** COM SERVER => Failed to send HTTP Get request <Couldn't connect to server>
COM SERVER => Cleaning cURL library
AGENT => Failed to retrieve Label <Couldn't connect to server>
AGENT => Sending Prolog
DID_CHECK => Read DeviceID <PC6266-2020-03-13-14-38-14> and MACs <D4:3D:7E:12:EF:B00A:00:27:00:00:04> in file <ocsinventory.dat>
COM SERVER => Initializing cURL library for sendRequest
COM SERVER => Using cURL with server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Disabling cURL SSL server validation support
COM SERVER => Sending HTTP Post request to URL <http://192.168.10.99/ocsinventory>
WARNING *** COM SERVER => Failed to send HTTP Post request <Couldn't connect to server>
COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:42.
I am also somewhat new in linux environments, so I ask for patience hehe. The conf files in the server all have the correct DB authentication information.
Thanks in advance.
EDIT:
This is the content of today's error log from httpd (apache):
[Tue Mar 17 09:59:58.675898 2020] [mpm_prefork:notice] [pid 9109] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Mar 17 10:01:32.224606 2020] [suexec:notice] [pid 1323] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
Scalar value @args[$i] better written as $args[$i] at /usr/local/share/perl5/Apache/Ocsinventory/Interface/AssetCategory.pm line 54.
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::7e53:282c:cbe3:5c8. Set the 'ServerName' directive globally to suppress this message
[Tue Mar 17 10:02:12.444529 2020] [lbmethod_heartbeat:notice] [pid 1323] AH02282: No slotmem from mod_heartmonitor
[Tue Mar 17 10:02:12.545008 2020] [mpm_prefork:notice] [pid 1323] AH00163: Apache/2.4.6 (CentOS) PHP/7.3.15 mod_perl/2.0.11 Perl/v5.16.3 configured -- resuming normal operations
[Tue Mar 17 10:02:12.545038 2020] [core:notice] [pid 1323] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Mar 17 10:19:21.058862 2020] [php7:warn] [pid 2544] [client ::1:49848] PHP Warning: Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/function_config_generale.php on line 137, referer: http://localhost/ocsreports/?function=visu_computers
[Tue Mar 17 10:19:21.058933 2020] [php7:warn] [pid 2544] [client ::1:49848] PHP Warning: Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/function_config_generale.php on line 137, referer: http://localhost/ocsreports/?function=visu_computers
[Tue Mar 17 10:49:36.653540 2020] [php7:warn] [pid 2542] [client ::1:49866] PHP Warning: Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/function_config_generale.php on line 137, referer: http://localhost/ocsreports/?function=visu_computers
[Tue Mar 17 10:49:36.653626 2020] [php7:warn] [pid 2542] [client ::1:49866] PHP Warning: Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/function_config_generale.php on line 137, referer: http://localhost/ocsreports/?function=visu_computers
[Tue Mar 17 11:21:32.578531 2020] [php7:warn] [pid 3774] [client ::1:49876] PHP Warning: Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/function_config_generale.php on line 137, referer: http://localhost/ocsreports/?function=admin_conf
[Tue Mar 17 11:21:32.578627 2020] [php7:warn] [pid 3774] [client ::1:49876] PHP Warning: Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/function_config_generale.php on line 137, referer: http://localhost/ocsreports/?function=admin_conf
[Tue Mar 17 11:21:32.578790 2020] [php7:warn] [pid 3774] [client ::1:49876] PHP Warning: Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/function_config_generale.php on line 137, referer: http://localhost/ocsreports/?function=admin_conf
[Tue Mar 17 11:24:44.724598 2020] [php7:warn] [pid 3776] [client ::1:49880] PHP Warning: Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/function_config_generale.php on line 137, referer: http://localhost/ocsreports/?function=admin_conf
[Tue Mar 17 11:24:44.724694 2020] [php7:warn] [pid 3776] [client ::1:49880] PHP Warning: Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/function_config_generale.php on line 137, referer: http://localhost/ocsreports/?function=admin_conf
[Tue Mar 17 12:32:27.374251 2020] [mpm_prefork:notice] [pid 1323] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Mar 17 12:33:08.650055 2020] [suexec:notice] [pid 6510] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
Scalar value @args[$i] better written as $args[$i] at /usr/local/share/perl5/Apache/Ocsinventory/Interface/AssetCategory.pm line 54.
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::7e53:282c:cbe3:5c8. Set the 'ServerName' directive globally to suppress this message
[Tue Mar 17 12:33:48.859750 2020] [lbmethod_heartbeat:notice] [pid 6510] AH02282: No slotmem from mod_heartmonitor
[Tue Mar 17 12:33:48.896301 2020] [mpm_prefork:notice] [pid 6510] AH00163: Apache/2.4.6 (CentOS) PHP/7.3.15 mod_perl/2.0.11 Perl/v5.16.3 configured -- resuming normal operations
[Tue Mar 17 12:33:48.896345 2020] [core:notice] [pid 6510] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Mar 17 12:36:00.085334 2020] [mpm_prefork:notice] [pid 6510] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Mar 17 12:36:59.817803 2020] [suexec:notice] [pid 1310] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
Scalar value @args[$i] better written as $args[$i] at /usr/local/share/perl5/Apache/Ocsinventory/Interface/AssetCategory.pm line 54.
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::7e53:282c:cbe3:5c8. Set the 'ServerName' directive globally to suppress this message
[Tue Mar 17 12:37:40.032577 2020] [lbmethod_heartbeat:notice] [pid 1310] AH02282: No slotmem from mod_heartmonitor
[Tue Mar 17 12:37:40.139091 2020] [mpm_prefork:notice] [pid 1310] AH00163: Apache/2.4.6 (CentOS) PHP/7.3.15 mod_perl/2.0.11 Perl/v5.16.3 configured -- resuming normal operations
[Tue Mar 17 12:37:40.139117 2020] [core:notice] [pid 1310] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
Same Problem here with OCS-NG_WINDOWS_AGENT_v2.6.0.0
All my hosts are able to report to my OCS server they don't report informations about the virtual machines on it.
downloaded the x86 version 2.7.0.0 today (11-June-2020), but i have the same error on windows 7
VCRUNTIME140_1.dll not found btw .. the installer does not uninstall old agent 2.0.5 . Afterwards i have 2 entrys in add/remove software .. but if i wan't to remove 2.0.5 .. it tells me that i remove now version 2.7.0 so i recommend to uninstall old version before installing this new one.
i haven't had this . but perhaps a tip from me works
1. delete windows temp files before deployment.
2. Don't trigger the download with the ocsagent.exe in C:\Program Files\OCS Inventory Agent
stop the "ocs Inventory service"
edit TTO_WAIT=xyzx to TTO_WAIT=5 C:\ProgramData\OCS Inventory NG\Agent\ocsinventory.ini
start the service
Kind regards
soktra
Hey there,
thank you for the tips. Unfortunately nothing of this works for me.
1. delete windows temp files before deployment.
I deleted all windows temp files.
2. Don't trigger the download with the ocsagent.exe in C:\Program Files\OCS Inventory Agent
I didn't trigger anything manually. I just waited for the agent to do its work.
stop the "ocs Inventory service"
edit TTO_WAIT=xyzx to TTO_WAIT=5 C:\ProgramData\OCS Inventory NG\Agent\ocsinventory.ini
start the service
I changed the TTO_WAIT value to 5 and restarted the started the service again.
Same error: <EXIT_CODE_1>
Could this be a probleme with the windows UAC? If I start the 'install.bat'-script manually on a client windows pops up a promt and asking if I want to execute the application.
I can't imaging this because this is the reason I want use OCS for deploying. Elsewhere I would use Windows GPO. I assumed that the agent will deploy the packages with high privileges and there will be no problem. Am I wrong?
Thank you!