Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

No agent inventory after server upgrade

Hi, 

see below general process...Made it several times because it just do not work...

Upgrading server 2.0.2 to 2.1.2 on a windows 2003 server

- Made a snapshot of the VM

The Apache service named  reported the following error:>>> Syntax error on line 23 of C:/Program Files/OCS Inventory NG/xampp/apache/conf/extra/ocsinventory-reports.conf:     .

So, i modify conf file and add "" where it was needed (path with spaces on aliases line for exemple...pache start, good news.

GUI access is ok, but few days later, no computer sent inventory (last contact date).

So, i took a client, stop ocsagent service, modify TTO_WAIT=0 and debug settings and started service.

No change

Here is the agent Log file : 

=========================
Starting OCS Inventory NG Agent on Tuesday, March 24, 2015 17:59:25.
AGENT => Running OCS Inventory NG Agent Version 2.0.5.0
AGENT => Using OCS Inventory NG FrameWork Version 2.0.5.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) succesfully 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.0.5.0>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <SRV-RUN1-2014-09-05-10-21-32> and MACs <00:50:56:84:3B:C7> 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 => Disabling cURL SSL server validation support
    COM SERVER => Sending HTTP Post request to URL <http://ocsinventory-ng/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
    AGENT => Prolog Frequency set to 10 hour(s)
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

Here is Apache access logs : 

127.0.0.1 - - [24/Mar/2015:17:48:20 +0400] "GET /ocsreports/ HTTP/1.1" 200 16657
127.0.0.1 - - [24/Mar/2015:17:48:25 +0400] "POST /ocsreports/?function=visu_computers HTTP/1.1" 200 104113
10.101.0.109 - - [24/Mar/2015:17:50:15 +0400] "POST /ocsinventory HTTP/1.1" 301 388
10.101.0.109 - - [24/Mar/2015:17:50:15 +0400] "GET /ocsinventory/ HTTP/1.1" 200 633
10.101.2.84 - - [24/Mar/2015:17:51:01 +0400] "POST /ocsinventory HTTP/1.1" 301 388
10.101.2.84 - - [24/Mar/2015:17:51:01 +0400] "GET /ocsinventory/ HTTP/1.1" 200 633
10.101.0.44 - - [24/Mar/2015:17:59:25 +0400] "POST /ocsinventory HTTP/1.1" 301 388
10.101.0.44 - - [24/Mar/2015:17:59:25 +0400] "GET /ocsinventory/ HTTP/1.1" 200 633
10.101.0.112 - - [24/Mar/2015:18:02:56 +0400] "POST /ocsinventory HTTP/1.1" 301 388
10.101.0.112 - - [24/Mar/2015:18:02:56 +0400] "GET /ocsinventory/ HTTP/1.1" 200 633
10.101.5.87 - - [24/Mar/2015:18:03:03 +0400] "POST /ocsinventory HTTP/1.1" 301 388
10.101.5.87 - - [24/Mar/2015:18:03:03 +0400] "GET /ocsinventory/ HTTP/1.1" 200 633
10.101.5.87 - - [24/Mar/2015:18:03:06 +0400] "POST /ocsinventory HTTP/1.1" 301 388
10.101.5.87 - - [24/Mar/2015:18:03:06 +0400] "GET /ocsinventory/ HTTP/1.1" 200 633
10.101.5.87 - - [24/Mar/2015:18:03:08 +0400] "POST /ocsinventory HTTP/1.1" 301 388
10.101.5.87 - - [24/Mar/2015:18:03:08 +0400] "GET /ocsinventory/ HTTP/1.1" 200 633

Here is apache error.log

[Tue Mar 24 17:48:09 2015] [info] Init: Seeding PRNG with 136 bytes of entropy
[Tue Mar 24 17:48:09 2015] [info] Loading certificate & private key of SSL-aware server
[Tue Mar 24 17:48:09 2015] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Tue Mar 24 17:48:09 2015] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Tue Mar 24 17:48:09 2015] [info] Init: Initializing (virtual) servers for SSL
[Tue Mar 24 17:48:09 2015] [info] Configuring server for SSL protocol
[Tue Mar 24 17:48:09 2015] [warn] RSA server certificate CommonName (CN) `ocsinventory-ng' does NOT match server name!?
[Tue Mar 24 17:48:09 2015] [info] Server: Apache/2.2.3, Interface: mod_ssl/2.2.3, Library: OpenSSL/0.9.8d
[Tue Mar 24 17:48:09 2015] [info] APR LDAP: Built with Microsoft Corporation. LDAP SDK
[Tue Mar 24 17:48:09 2015] [info] LDAP: SSL support unavailable: LDAP: CA certificates cannot be set using this method, as they are stored in the registry instead.
[Tue Mar 24 17:48:09 2015] [info] Init: Seeding PRNG with 136 bytes of entropy
[Tue Mar 24 17:48:09 2015] [info] Loading certificate & private key of SSL-aware server
[Tue Mar 24 17:48:09 2015] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Tue Mar 24 17:48:09 2015] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Tue Mar 24 17:48:09 2015] [info] Init: Initializing (virtual) servers for SSL
[Tue Mar 24 17:48:09 2015] [info] Configuring server for SSL protocol
[Tue Mar 24 17:48:09 2015] [warn] RSA server certificate CommonName (CN) `ocsinventory-ng' does NOT match server name!?
[Tue Mar 24 17:48:09 2015] [info] Server: Apache/2.2.3, Interface: mod_ssl/2.2.3, Library: OpenSSL/0.9.8d
[Tue Mar 24 17:48:09 2015] [notice] Child 4432: Child process is running
[Tue Mar 24 17:48:09 2015] [info] Parent: Duplicating socket 296 and sending it to child process 4432
[Tue Mar 24 17:48:09 2015] [info] Parent: Duplicating socket 292 and sending it to child process 4432
[Tue Mar 24 17:48:09 2015] [notice] Child 4432: Acquired the start mutex.
[Tue Mar 24 17:48:09 2015] [notice] Child 4432: Starting 250 worker threads.
[Tue Mar 24 17:48:09 2015] [notice] Child 4432: Starting thread to listen on port 443.
[Tue Mar 24 17:48:09 2015] [notice] Child 4432: Starting thread to listen on port 80.

 

 

Also tried to browse http://ocsinventory-ng/ocsinventory and can see the index page, so think acces is ok...

Also tried different agent version (2.1.1.1 for fun, but bug with the inventory visualisation from systray , so tried 2.0.5 and  old 2.0.2.0 still in production with no changes that did not worked...

 

Help should be appreciated, i really do not understand what happen here and logs files do not help (no errors)

I'll wait few days before reverting back my VM...maybe untill end of week, hope someone will have time, for me i just passed 2 days on this it's already too much...

 

in OCS Inventory NG server for Windows by (160 points)

2 Answers

0 votes
And because of limitation of number of characters on thread :o)

see ocsinventory agent config :

[OCS Inventory Service]
TTO_WAIT=0
PROLOG_FREQ=10
OLD_PROLOG_FREQ=10
[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=2
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://ocsinventory-ng/ocsinventory
SSL=0
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
by (160 points)
0 votes
Hi,

With this url http://ocsinventory-ng/ocsinventory you must have error 400, not to see the index page. Please verify that apache mod_perl module is corrected loaded and enabled.
by (88.5k points)

Hi,

not sure how i check Perl...

if i add LoadModule perl_module modules/mod_perl.so in httpd.conf i got this in windows app log : 

he Apache service named  reported the following error:
>>> apache.exe: Syntax error on line 142 of C:/Program Files/OCS Inventory NG/xampp/apache/conf/httpd.conf: Cannot load C:/Program Files/OCS Inventory NG/xampp/apache/modules/mod_perl.so into server: Le module sp\xe9cifi\xe9 est introuvable.     .

 

But at the end of httpd.conf, i got this : 

Include conf/extra/perl.conf

# OCS Inventory NG Communication Server
Include conf/extra/ocsinventory-server.conf

# OCS Inventory NG Administration Server
Include conf/extra/ocsinventory-reports.conf

And looking further in perl.conf i got : 

LoadFile "C:/Program Files/OCS Inventory NG/xampp/perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so

Also checked, the dll is in the right directory...

If i browse this url : http://localhost/xampp/perl-info.php

I got a page, but then if i click on http://localhost/perl/modperl.pl i got an error...(unable to load page)

So i think perl is not loaded correctly, and don't really know how to enable it. Any help would be apreciated.

 

 

found C:\Program Files\OCS Inventory NG\xampp\setup_xampp.bat and enabled Perl !

Got this in apache Log : 

[notice] Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.0 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations

ReStarting Agent and TTo_Wait 0, computer still not updated....

Starting OCS Inventory NG Agent on Wednesday, March 25, 2015 11:12:15.
AGENT => Running OCS Inventory NG Agent Version 2.0.5.0
AGENT => Using OCS Inventory NG FrameWork Version 2.0.5.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) succesfully 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.0.5.0>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <SRV-RUN1-2014-09-05-10-21-32> and MACs <00:50:56:84:3B:C7> 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 => Disabling cURL SSL server validation support
    COM SERVER => Sending HTTP Post request to URL <http://ocsinventory-ng/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #400>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #400>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.

Apache Access Log : 

10.101.0.44 - - [25/Mar/2015:11:21:35 +0400] "POST /ocsinventory HTTP/1.1" 301 415
10.101.0.44 - - [25/Mar/2015:11:21:35 +0400] "GET /ocsinventory/ HTTP/1.1" 400 1078

 

 

 

 

Finaly, i decided to revert to VM Snapshoot and evrything work except the 2 agent modified for upgrade test.

My final goal is to shutdown W2K3 Server because of end of support coming soon.

Think i'll plan to create a new VM on Linux or Windows in comming month.

Problem not really solved, but if others read this thread, lesson may be : Before upgrade be sure you can rollback !!!
 
Powered by Question2Answer
...