OcsInvetory.exe Application Error

Bug #754410 reported by Salvatore Cristofaro
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
OCS Inventory: Windows Agent
Status tracked in 2.x
2.x
Fix Released
High
Didier Liroulet

Bug Description

OCS Crash with the follow error:

--- CUT ---
L'istruzione a "0x784ab21d" h i fatto riferimento alla memoria a "0x005a588d". La memoria non poteva essere "read".
Fare click su OK per terminare l'applicazione
Fare click su Annula per eseguire il debug dell'applicazione
--- CUT ---

Debug Log (debug=2)

--- CUT ---

Starting OCS Inventory NG Agent on Friday, April 08, 2011 10:35:54.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.15
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.15
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Programmi\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>
==============================================================================
Starting OCS Inventory NG Agent on Friday, April 08, 2011 10:41:14.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.15
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.15
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Programmi\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>

--- CUT ---

Windows Version: 2000 SP4 Language=Italian
The problem occours every 5 minutes

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hi Salvatore,

Could you create an archive of your directory "C:\Programmi\OCS Inventory Agent" into a password protected ZIP, and send me by email at address <didier dot liroulet at ocsinventory-ng dot org> ?

Please, also include an archive of your directory C:\documents and settings\All Users\application data\OCS Inventory NG\Agent.

Cheers

Changed in ocsinventory-windows-agent:
assignee: nobody → Didier Liroulet (dliroulet)
importance: Undecided → Low
Revision history for this message
Salvatore Cristofaro (salvatore-cristofaro) wrote :

I attached the archive you asked me...
I will send password by email.

Tnx you for support

Revision history for this message
Salvatore Cristofaro (salvatore-cristofaro) wrote :

Hello,

I installed the lastest release (2.0.0.16), set debug=2 and restard the OCS Service, but at the first inventory, the error occours again.

This is the last log files:

c:\Documents and Settings\All Users\Dati applicazioni\OCS Inventory NG\Agent
---
==============================================================================
Starting OCS Inventory NG Agent on Tuesday, April 12, 2011 15:04:44.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.16
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.16
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Programmi\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>
==============================================================================
Starting OCS Inventory NG Agent on Tuesday, April 12, 2011 15:09:57.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.16
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.16
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Programmi\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>
---

c:\Documents and Settings\All Users\Dati applicazioni\OCS Inventory NG\Agent\sysinfo.log: this file doesn't exist.

Tnx you,
Salvatore

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hello Salvatore,

There is a missing file in your setup, libcurl.dll.manifest, which MUST be in the setup folder "C:\Program Files\OCS Inventory Agent".

Why is this file missing ???? Our installer setup it each time. Have you rebuilt the installer ???

This file must have the following content:

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level='asInvoker' uiAccess='false' />
      </requestedPrivileges>
    </security>
  </trustInfo>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type='win32' name='Microsoft.VC90.CRT' version='9.0.30729.1' processorArchitecture='x86' publicKeyToken="1fc8b3b9a1e18e3b" />
    </dependentAssembly>
  </dependency>
</assembly>

Revision history for this message
Salvatore Cristofaro (salvatore-cristofaro) wrote :

I deploy agent with the lastest OCS Inventory NG Agent Deployment Tool. (2.0rc3).
I didn't rebuild the installer or deleted the file.

The only manifest file that i found in directory is Microsoft.VC90.CRT.manifest

Attached screenshot of deploy tool.

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Salvatore,

Could you please push 2.0.0.16 (or 2.0rc4, it is the same) agent using 2.0rc4 deploy tool on one computer, save the log to a file and attach it here ?

I don't understand why agent installer did not install libcurl.dll.manifest file...

cheers

Revision history for this message
Salvatore Cristofaro (salvatore-cristofaro) wrote :
Download full text (3.6 KiB)

Hi,

I pushed 2.0.016 using 2.0rc4 deploy tool with the following options:
/UPGRADE /NOW /SSL=1 /CA=cacert.pem /USER=xxx /PWD=xxx /DEBUG=2

This are the log

--- Setup Log ---
======================================================================
OCS Inventory NG Agent Deployment Tool

Version %1
Started on Thursday 14 April 2011 13:31:08
======================================================================
Host <xxx.xxx.xxx.xxx> Testing connection to remote host...
Host <xxx.xxx.xxx.xxx> Trying to connect to remote host...
Host <xxx.xxx.xxx.xxx> Trying to get remote "Program Files" and "ProgramData" directories using Registry...
Host <xxx.xxx.xxx.xxx> Using directory <C:\Programmi> for Program Files and <C:\Documents and Settings\All Users\Dati applicazioni\OCS Inventory NG\Agent> for Program Data on remote host...
Host <xxx.xxx.xxx.xxx> Creating setup directory on remote host...
Host <xxx.xxx.xxx.xxx> Copying files on remote host on directory <\\xxx.xxx.xxx.xxx\C$\Documents and Settings\All Users\Dati applicazioni\OCS Inventory NG\Agent\>...
Host <xxx.xxx.xxx.xxx> Launching Agent Setup on remote host...
Host <xxx.xxx.xxx.xxx> Retreiving Setup Log file for remote host...
Host <xxx.xxx.xxx.xxx> Remote Setup Log File: SUCESS: OCS Inventory NG Agent 2.0.0.16 successfuly installed on 14/04/2011 at 13:38:28
Host <xxx.xxx.xxx.xxx> Remote Setup Log File: ;-)
Host <xxx.xxx.xxx.xxx> Remote Setup Log File:
Host <xxx.xxx.xxx.xxx> Agent was sucessfully installed on remote host.
Host <xxx.xxx.xxx.xxx> Disconnecting from remote host...

Deployment finished (1 success, 0 failed) !
--- CUT ---

--- c:\Documents and Settings\All Users\Dati applicazioni\OCS Inventory NG\OCS-NG-WIndows-Agent.log ---
SUCESS: OCS Inventory NG Agent 2.0.0.16 successfuly installed on 14/04/2011 at 13:38:28
;-)
--- CUT ---

--- c:\Documents and Settings\All Users\Dati applicazioni\OCS Inventory NG\OCSInventory.log

==============================================================================
Starting OCS Inventory NG Agent on Thursday, April 14, 2011 13:46:20.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.16
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.16
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Programmi\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>
==============================================================================
Starting OCS Inventory NG Agent on Thursday, April 14, 2011 13:46:56.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.16
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.16
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Programmi\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>

--- CUT ---

--- Event Viewer --

Tipo evento: Informazioni
Origine evento: OCS Inventory Service
Categoria ...

Read more...

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hello,

You've cutted the important thing, --- c:\Documents and Settings\All Users\Dati applicazioni\OCS Inventory NG\OCS-NG-WIndows-Agent-Setup.log --- :-(

Could you please paste it here ?

Thanks.

Revision history for this message
Salvatore Cristofaro (salvatore-cristofaro) wrote :

I didn't cut it... :) See the previous post.

Windows 2000 OCS-NG-WIndows-Agent-Setup.log

--- CUT ---
SUCESS: OCS Inventory NG Agent 2.0.0.16 successfuly installed on 14/04/2011 at 13:38:28
;-)
 --- CUT ---

UPDATE: with Windows 2008, deploy-RC4 and Windows Agent2.0-RC4 something changes: the libcurl.dll.manifest is present (in windows 2000 are not), but there are errors yet.

Windows 2008 OCS-NG-WIndows-Agent-Setup.log

--- CUT ---
SUCESS: OCS Inventory NG Agent 2.0.0.16 successfuly installed on 19/04/2011 at 8:56:10
;-)
--- CUT ---

Event Viewer:

--- ID 1000 ---

Nome registro: Application
Origine: Application Error
Data: 19/04/2011 9.01.11
ID evento: 1000
Categoria attivit?:(100)
Livello: Errore
Parole chiave: Classico
Utente: N/D
Computer: XXX
Descrizione:
Applicazione che ha generato l'errore OCSInventory.exe, versione 2.0.0.16, timestamp 0x4da36dfa, modulo che ha generato l'errore ntdll.dll, versione 6.0.6002.18327, timestamp 0x4cb7341c, codice eccezione 0xc0000005, offset errore 0x0002ab6e, ID processo 0xa38, data e ora di avvio dell'applicazione 0x01cbfe5f909eaf22.
XML evento:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2011-04-19T07:01:11.000Z" />
    <EventRecordID>421</EventRecordID>
    <Channel>Application</Channel>
    <Computer>automaenel</Computer>
    <Security />
  </System>
  <EventData>
    <Data>OCSInventory.exe</Data>
    <Data>2.0.0.16</Data>
    <Data>4da36dfa</Data>
    <Data>ntdll.dll</Data>
    <Data>6.0.6002.18327</Data>
    <Data>4cb7341c</Data>
    <Data>c0000005</Data>
    <Data>0002ab6e</Data>
    <Data>a38</Data>
    <Data>01cbfe5f909eaf22</Data>
  </EventData>
</Event>

--- cut ---

--- ID 20 ---

Nome registro: Application
Origine: OCS Inventory Service
Data: 19/04/2011 9.01.13
ID evento: 20
Categoria attivit?:Nessuno
Livello: Errore
Parole chiave: Classico
Utente: N/D
Computer: XXX
Descrizione:
Service encounter error <OCS Inventory NG Agent encounter an error (exit code is 255)>.
XML evento:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="OCS Inventory Service" />
    <EventID Qualifiers="0">20</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2011-04-19T07:01:13.000Z" />
    <EventRecordID>422</EventRecordID>
    <Channel>Application</Channel>
    <Computer>automaenel</Computer>
    <Security />
  </System>
  <EventData>
    <Data>OCS Inventory NG Agent encounter an error (exit code is 255)</Data>
  </EventData>
</Event>
--- CUT ---

Revision history for this message
Salvatore Cristofaro (salvatore-cristofaro) wrote :

Missed WIndows 2008 OCSInventory.log:

---
==============================================================================
Starting OCS Inventory NG Agent on Tuesday, April 19, 2011 09:40:34.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.16
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.16
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
---

Revision history for this message
Didier Liroulet (dliroulet) wrote :

OK, Salvatore.

It is normal that there is no libcurl.dll.manifest under Windows 2000, but this file must exist on XP and higher.

I've update ComHTTP.dll loading. Could you please try using release 2.0.0.17

Thanks by advance.

Cheers

Revision history for this message
Didier Liroulet (dliroulet) wrote :
Revision history for this message
Salvatore Cristofaro (salvatore-cristofaro) wrote :
Download full text (9.7 KiB)

Installed on both Windows 2000 and Windows 2008. Debug=2.

### Windows 2000 ###

#OCS-NG-Windows-Agent-Setup.log:
SUCESS: OCS Inventory NG Agent 2.0.0.17 successfuly installed on 26/04/2011 at 10:30:55
;-)

#OCSInventory.log
==============================================================================
Starting OCS Inventory NG Agent on Tuesday, April 26, 2011 10:40:08.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.17
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.17
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Programmi\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>

# Event Viewer

Tipo evento: Informazioni
Origine evento: OCS Inventory Service
Categoria evento: Nessuno
ID evento: 19
Data: 26/04/2011
Ora: 10:40:06
Utente: N/D
Computer: INTSERVICE
Descrizione:
User manually request Agent launch.

Tipo evento: Errore
Origine evento: OCS Inventory Service
Categoria evento: Nessuno
ID evento: 20
Data: 26/04/2011
Ora: 10:42:14
Utente: N/D
Computer: INTSERVICE
Descrizione:
Service encounter error <OCS Inventory NG Agent encounter an error (exit code is 128)>.

Tipo evento: Errore
Origine evento: OCS Inventory Service
Categoria evento: Nessuno
ID evento: 20
Data: 26/04/2011
Ora: 10:42:38
Utente: N/D
Computer: INTSERVICE
Descrizione:
Service encounter error <Failed to load/parse last inventory state>.

Attached the

### Windows 2008 ###

#OCS-NG-Windows-Agent-Setup.log:

********************************************************
Starting OCS Inventory NG Agent 2.0.0.17 setup on 26/04/2011 at 10:41:36
Checking if setup not already running...OK.
Checking Operating System...OK, Windows 2000 or higher.
Command line is: "C:\ProgramData\OCS Inventory NG\Agent\OCS-NG-Windows-Agent-Setup.exe" /S /NOSPLASH /SERVER=https://xxx.xxx.com/ocsinventory /NOW /SSL=1 /CA=cacert.pem /USER=agent /PWD=xxx /DEBUG=2 /UPGRADE
Parsing command line arguments...OK.
Checking for silent mode...Enabled.
Checking for splash screen...Disabled.
Checking if logged in user has Administrator privileges...OK.
Creating directory <C:\ProgramData\OCS Inventory NG\Agent>...
SetACL allowing Users / Power users read/write permissions on <C:\ProgramData\OCS Inventory NG\Agent>...Result: 0
SetACL removing inherited permissions on <C:\ProgramData\OCS Inventory NG\Agent\Download>...Result: 0
SetACL allowing System and Administrators full permissions on <C:\ProgramData\OCS Inventory NG\Agent\Download>...Result: 0
SetACL allowing Users / Power Users read only permissions on <C:\ProgramData\OCS Inventory NG\Agent\Download>...Result: 0
Trying to determine if service was previously installed...Yes.
Trying to stop service and kill processes...
Is Service <OCS Inventory Service> running...No.
Trying to stop Service <OCS Inventory Service>...The service has not been started.

Is Service <OCS Inventory Service> running...No - Waiting 1 second(s) for Service to stop...
Trying to kill process OcsSystray.exe...Result: 0
Trying to kill process OcsSystray.exe...R...

Read more...

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hy Salvatore.

Could you launch "C:\Programmi\OCS Inventory Agent\ocsinventory.exe" /local ?

I hope it is working, but i want to be sure. It will produce a .ocs file into folder "C:\ProgramData\OCS Inventory NG\Agent".

If it is working, this confirm that agent crashes while loading ComHTTP.dll.

Could you then download Dependancy Walker tool from http://www.dependencywalker.com/, run it to open comHTTP.dll file.

This tool allows you to view all files/function needed to run a program or dll. Files in red are missing. Is there red line somewhere ?

Cheers

Revision history for this message
Salvatore Cristofaro (salvatore-cristofaro) wrote :

Hi Didier,

I launched the C:\Programmi\OCS Inventory Agent\ocsinventory.exe" /local on Windows 2000 and Windows 2008 and it produce an INTSERVICE-2011-04-12-14-51-48.ocs on Win2000, and a APSRV0014-2011-04-28-15-02-29.ocs on Win2008.
So, the problem is in ComHTTP.ddl.

I attached the Dependacy Walker result for Windows 2008 and Windows 2000:

- In Windows 2000 APPHELP.DLL and GDIPLUS.DLL are missing.
- In Windows 2008 LINKINFO.DLL is missing.

Tnx you very much.

Salvatore

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hi Salvatore.

Well, I've found that Microsoft is killing us with their hot fixes for VC++ 2008 :-( See http://blogs.msdn.com/b/vcblog/archive/2011/04/26/10158277.aspx

So, i think the problem you're facing with 2.0.0.17 is here because i have VC++ 2008 hot fix on my computer, so the code generated is no more compatible with 2000.

So, I've completly updated installer to setup a specific version under Win 2000.

Could you test with release 2.0.0.18 available at address http://launchpad.net/ocsinventory-windows-agent/2.0/2.0rc4/+download/OCSNG-Windows-Agent-2.0.0.18.zip ?

On your Windows 2008, try to also setup 2.0.0.18 ? If service cannot start, could you run the following commands ?

"C:\Programmi\OCS Inventory Agent\ocsservice" -uninstall
"C:\Programmi\OCS Inventory Agent\ocsservice" -install

Cheers

Revision history for this message
Salvatore Cristofaro (salvatore-cristofaro) wrote :
Download full text (20.1 KiB)

Hi Didier

I installed version 2.0.0.18 on Windows 2000 SP4 (32 bit), Windows 2008 (32 bit) and Windows 7 (64 bit):

#### Windows 2000 SP4 ####

## OCSInventory.log

Starting OCS Inventory NG Agent on Friday, May 06, 2011 10:38:23.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.18
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.18
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Programmi\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>

## OCS-NG-Windows-Agent-Setup.log

SUCESS: OCS Inventory NG Agent 2.0.0.18 successfuly installed on 05/05/2011 at 15:54:46
;-)

## Event Viewer

Tipo evento: Errore
Origine evento: OCS Inventory Service
Categoria evento: Nessuno
ID evento: 20
Data: 06/05/2011
Ora: 10:38:23
Utente: N/D
Computer: INTSERVICE
Descrizione:
Service encounter error <OCS Inventory NG Agent encounter an error (exit code is 128 => Unknown code !)>.

## Dependency Walker ComHTTP.dll

Missing APPHELP.dll (see screenshot)

#### Windows 2008 ####

## OCS-NG-Windows-Agent-Setup

********************************************************
Starting OCS Inventory NG Agent 2.0.0.18 setup on 06/05/2011 at 11:01:27
Checking if setup not already running...OK.
Checking Operating System...OK, Windows 2000 or higher.
Command line is: "C:\ProgramData\OCS Inventory NG\Agent\OCS-NG-Windows-Agent-Setup.exe"
Parsing command line arguments...OK.
Checking for silent mode...Disabled.
Checking for splash screen...Enabled.
Checking if logged in user has Administrator privileges...OK.

## Deploy log

OCS Inventory NG Agent Deployment Tool

Version %1
Started on Friday 06 May 2011 11:02:36
======================================================================
Host <xxx.xx.xx.x> Testing connection to remote host...
Host <xxx.xx.xx.x> Trying to connect to remote host...
Host <xxx.xx.xx.x> Trying to get remote "Program Files" and "ProgramData" directories using Registry...
Host <xxx.xx.xx.x> Using directory <C:\Program Files> for Program Files and <C:\ProgramData\OCS Inventory NG\Agent> for Program Data on remote host...
Host <xxx.xx.xx.x> Creating setup directory on remote host...
Host <xxx.xx.xx.x> Copying files on remote host on directory <\\xxx.xx.xx.x\C$\ProgramData\OCS Inventory NG\Agent\>...
Host <xxx.xx.xx.x> Launching Agent Setup on remote host...
Host <xxx.xx.xx.x> Retreiving Setup Log file for remote host...
Host <xxx.xx.xx.x> Remote Setup Log File: ********************************************************
Host <xxx.xx.xx.x> Remote Setup Log File: Starting OCS Inventory NG Agent 2.0.0.18 setup on 06/05/2011 at 10:59:57
Host <xxx.xx.xx.x> Remote Setup Log File: Checking if setup not already running...OK.
Host <xxx.xx.xx.x> Remote Setup Log File: Checking Operating System...OK, Windows 2000 or higher.
Host <xxx.xx.xx.x> Remote Setup Log File: Command line is: "C:\ProgramData\OCS Inventory NG\Agent\OCS-NG-Windows-Agent-Setup.exe" /S /NOSPLASH /SERVER=https://ocs.abramo.com/ocsinventory /NOW /SSL=1 /CA=cacert.pem /USER=xxx ...

Revision history for this message
Jigar (pateljigar-83) wrote :

Hello,

 I am having same issue I guess. We just upgrade the server to v2.0 and I install agent v2.0 on Window 7 64bit. the only message I got on Ocsinventory.log file is ComHTTP.dll as posted below. As you suggested I open ComHTTP.dll on Dependacy Walker and I got the result that I am missing GPSVC.DLL and IESHIMS.DLL. As I was searching about those files I found IESHIMS.DLL on my system which is 32bit supported so I put into my C:\Program Files (x86)\OCS Inventory Agent and try open the ComHTTP.DLL again so the error is gone about Missing that file but I can still see couple of module are turned into red color because of the IESHIMS.DLL I copied please find attached picture. And I can't find the GPSVC.DLL on my system for 32 bit and online also not sure how to fix that problem. I don't know that copying those files into C:\Program Files (x86)\OCS Inventory Agent will fix the problem or you guys need to do some changes. Please help. Thanks in advance.

Thanks,
 JP

 Ocsinventory.log

==============================================================================
Starting OCS Inventory NG Agent on Tuesday, May 10, 2011 10:08:06.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.20
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.20
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>

Revision history for this message
Ryan (ryan-canning) wrote :

Hi There,

I am experiencing the same issue, just wondering if there is any update to this problem?

Thanks

Revision history for this message
Jigar (pateljigar-83) wrote :

Hi Ryan,

 I have solve my issue. Just follow this steps might going to work for you also.

 Go to C:\Program Files (x86)\OCS Inventory Agent
 Right click on OCSInventory.exe and go to property
 Select compatibility tab and change the compatibility mode to Win XP service pack 3.

It should be fine.

Thanks.

Revision history for this message
Ryan (ryan-canning) wrote :

Hi Jigar,

Your correct that does resolve the problem - however I have over 300 machines to push it out to and don't have the resources to go to each one and change the compatibility mode.

Thanks

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hi.

We rewrite OCS agent to not have setting XP compatbility mode, so we have a problem here.

I use Windows 7 Ultimate 64 bits french and I'm not able top reproduce the problem.

Could you please try the following ?

1) download libcurl library from http://www.gknw.net/mirror/curl/win32/curl-7.21.6-devel-mingw32.zip

2) Stop OCS inventory Service

3) make a copy of "C:\Program Files\OCS Inventory Agent" folder

4) Delete libcurl.dll and libcurl.dll.manifest from this folder

5) Copy libcurl.dll, lib, libeay32.dll and libssl32.dll files extract from download ZIP to this folder.

6) Launch ocsinventory.exe /server=http://your_server/ocsinventory /debug

Is agent contacting server OK ?

7) Restaure old folder.

Cheers

Revision history for this message
Jigar (pateljigar-83) wrote :

Thanks for reply. I did all the steps that you wrote here. I stop the service, I delete those two files and copied three dll files and lib folder at C:\Program Files\OCS Inventory Agent and run the exe file from cmd prompt but no luck. Here the output of the log file.

Starting OCS Inventory NG Agent on Wednesday, May 18, 2011 10:55:31.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.20
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.20
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
 WARNING *** COM PROVIDER => Unable to load library <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>, Error code 126 = The specified module could not be found.
ERROR *** AGENT => Failed loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

Revision history for this message
Didier Liroulet (dliroulet) wrote :

That's better, even if agent is not working, because in this case, agent does not crash ;-)

So, now, i know that this the binary of libcurl which is faulting...

Stay tuned, i will check this and come back to you.

Cheers

Revision history for this message
Jigar (pateljigar-83) wrote :

I really appreciated. I am going to wait for your reply.

Revision history for this message
Salvatore Cristofaro (salvatore-cristofaro) wrote :

Following istruction at post #22, both on Windows 2008 and Windows 2000 with these results:

## Windows 2008 ##

#OcsInventory.log

Starting OCS Inventory NG Agent on Thursday, May 19, 2011 10:32:32.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.20
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.20
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>
 WARNING *** COM PROVIDER => Unable to load library <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>, Error code 126 = The specified module could not be found.
ERROR *** AGENT => Failed loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

## Windows 2000 Italian SP4##

#OcsInventory.log

Starting OCS Inventory NG Agent on Thursday, May 19, 2011 10:58:21.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.20
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.20
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Programmi\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>
 WARNING *** COM PROVIDER => Unable to load library <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>, Error code 126 = Impossibile trovare il modulo specificato.
ERROR *** AGENT => Failed loading Communication Provider <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

#EventViewer

Tipo evento: Errore
Origine evento: OCS Inventory Service
Categoria evento: Nessuno
ID evento: 20
Data: 19/05/2011
Ora: 10:58:21
Utente: N/D
Computer: INTSERVICE
Descrizione:
Service encounter error <OCS Inventory NG Agent encounter an error (exit code is 3 => Failed to load/initialize Communication Provider)>.

Now the memory error no longer appears.

Last note on step 5:

>> 5) Copy libcurl.dll, lib, libeay32.dll and libssl32.dll files extract from download ZIP to this folder.

There's not lib file... perhaps have you made a typo?

Cheers,
Salvatore

Revision history for this message
Jigar (pateljigar-83) wrote :

Hi Salvatore,

  I didn't make any typo error if you extract the folder that you will get from the link(post #22), You can see the lib folder into it. please find the attached screen shot of extracted folder on my computer.

 Thanks.

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hello Salvatore, Jigar, Ryan,

Could you please check attached patch ?

1) Stop OCS service

2) Remove in OCS Inventory Agent folder existing libcurl.dll and libcurl.dll.manifest file

3) Extract files from CheckLibcurl_1.zip attached file and paste them into OCS Inventory Agent folder.

4) try to execute ocsinventory.exe /server=http://your_server/ocsinventory /debug=1

If not working, please, could export in EVT format your application and system Windows Event Log and upload them here ?

Thanks a lot

Regards

Revision history for this message
Didier Liroulet (dliroulet) wrote :
Revision history for this message
Ryan (ryan-canning) wrote :

Hi Didier,

I have completed the above - the agent ran unsuccessfully. please see log below

Starting OCS Inventory NG Agent on Friday, May 20, 2011 07:58:08.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.20
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.20
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>

Thanks

Revision history for this message
Ryan (ryan-canning) wrote :

sorry also attached is the log files for OCSInventory in application logs - nothing shows up in system logs

Revision history for this message
Jigar (pateljigar-83) wrote :

Hello,

 We have internal network is down and not able to test it, but as soon as we are going to up, I will posted.

 Between: Ryan Are you try this with compatibility mode or without? Make sure you are not using compatibility mode because Didier might get wrong information. (just to inform you)

Thanks.

Revision history for this message
Ryan (ryan-canning) wrote :

I disabled compatibility mode for testing - ideally it would be best to get it working without having to enable compatibility mode.

Revision history for this message
Jigar (pateljigar-83) wrote :

Hey Ryan,

  Through the service running and compatibility mode enable the agent is reporting to server over the time period? because for me it does not.

 Thanks.

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Ryan,

when you've launched ocsinventory.exe, do you have any popup show an error message ?

If yes, is the error message the same as in event log ?

Thanks

Revision history for this message
Ryan (ryan-canning) wrote :

Hi Guys,

Jigar - Currently I am no longer running as a service. Initially when i had it running as a service it would fail when attempting to run automatically but would work when manually running the ocsinventory.exe

Didier - No error message is shown on screen, hope this helps :)

Cheers

Revision history for this message
Salvatore Cristofaro (salvatore-cristofaro) wrote :
Download full text (4.0 KiB)

Hi didier,

These are the results for steps in post #28:

 ## Windows 2000 SP4 Italian##

#Ocsinventory.log

Starting OCS Inventory NG Agent on Friday, May 20, 2011 15:32:14.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.20
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.20
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Programmi\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>
 WARNING *** COM PROVIDER => Unable to load library <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>, Error code 127 = Impossibile trovare la procedura specificata.
ERROR *** AGENT => Failed loading Communication Provider <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

#Event viewer

Tipo evento: Errore
Origine evento: OCS Inventory Service
Categoria evento: Nessuno
ID evento: 20
Data: 20/05/2011
Ora: 15:32:16
Utente: N/D
Computer: INTSERVICE
Descrizione:
Service encounter error <OCS Inventory NG Agent encounter an error (exit code is 3 => Failed to load/initialize Communication Provider)>.

## Windows 2008 32 bit English##

#OcsInventory.log

Starting OCS Inventory NG Agent on Friday, May 20, 2011 15:37:52.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.20
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.20
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>

#Event Viewer

Log Name: Application
Source: Application Error
Date: 20/05/2011 15.37.52
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: xxx.xxx.local
Description:
Faulting application OCSInventory.exe, version 2.0.0.20, time stamp 0x4dc6b3e7, faulting module ntdll.dll, version 6.0.6001.18538, time stamp 0x4cb733dc, exception code 0xc0000005, fault offset 0x00065860, process id 0x158c, application start time 0x01cc16f31de69a5f.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2011-05-20T13:37:52.000Z" />
    <EventRecordID>4319</EventRecordID>
    <Channel>Application</Channel>
    <Computer>xxx.xxx.local</Computer>
    <Security />
  </System>
  <EventData>
    <Data>OCSInventory.exe</Data>
    <Data>2.0.0.20</Data>
    <Data>4dc6b3e7</Data>
    <Data>ntdll.dll</Data>
    <Data>6.0.6001.18538</Data>
    <Data>4cb733dc</Data>
    <Data>c0000005</Data>
    <Data>00065860</Data>
    <Data>158c</Data>
    <Data>01cc16f31de69a5f</Data>
  </EventData>
</Event>

Log N...

Read more...

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hi all

Could you please try to setup lastest VC++ 2008 redistribuable vcredist_x86.exe, available at address http://www.microsoft.com/downloads/en/details.aspx?familyid=05ce856d-8128-408b-96fa-5e1f57b097d8&displaylang=en

Then setup attached agent 2.0.0.21, and launch it without XP SP3 compatibility mode.

Is it working ?

Cheers

Revision history for this message
Didier Liroulet (dliroulet) wrote :
Revision history for this message
Ryan (ryan-canning) wrote :

Hi Didier,

I have done as instructed and the logs show the agent to be contacting the server once the VC++ 2008 redistributable is installed.

Revision history for this message
Jigar (pateljigar-83) wrote :
Download full text (12.9 KiB)

Hi Didier,

  I did the steps that you suggested with latest VC++ 2008 on my Window 7 professional 64bit with 2.0.0.21 agent and the anent is contacting to server and here the log file but after reporting server the error about COMHTTP.DLL starts again, you can see end of the log file and I posted the ocsinventory.ini file when I freshly install the OCS Inventory without compatibility mode but I cann't see the PROLOG_FREQ and OLD_PROLOG_FREQ options to tweak, so I manually write into the file in order to check faster that service is reporting to server or not then I started getting same error again, I posted log file for that also after .ini posting.

Thanks
Jigar.

OcsInventory.log
==============================================================================
Starting OCS Inventory NG Agent on Monday, May 23, 2011 10:46:07.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.21
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.21
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.0.21>
 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 => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\ca.pem>
 COM SERVER => Sending fileGet request to URL <https://office.com/ocsinventory/deploy/label>
 COM SERVER => fileGet response received <HTTP Status Code #400>
 COM SERVER => Cleaning cURL library
 AGENT => Failed to retrieve Label <HTTP Status Code #400>
AGENT => Sending Prolog
 WARNING *** DID_CHECK => Failed to read file <ocsinventory.dat>
DID_CHECK => Hostname changed new:<JIGAR> old:<>
DID_CHECK => Generating new unique ID for device <JIGAR>
 DID_CHECK => writing DeviceID <JIGAR-2011-05-23-10-46-09> and MACs <F0:DE:F1:4A:14:2868:A3:C4:0A:A1:7900:FF:43:10:8A:F600:50:56:C0:00:0100:50:56:C0:00:08> in file <C:\ProgramData\OCS Inventory NG\Agent\ocsinventory.dat>
 COM SERVER => Initializing cURL library for sendRequest
 COM SERVER => Using cURL with server authentication
 COM SERVER => Disabling cURL proxy support
 COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\ca.pem>
 COM SERVER => Sending HTTP Post request to URL <https://office.com/ocsinventory>
 COM SERVER => HTTP Post response received <HTTP Status Code #200>
 COM SERVER => Cleaning cURL library
AGENT => Prolog successfully sent
SUPPORT => No support registered for your installation. Check OCS Inventory NG support packages at http://www.ocsinventory-ng.com
ERROR *** AGENT => Failed to write Prolog Frequency <Error code 5 = Access is denied. >
AGENT => Inventory required
AGENT => Launching hardware and software checks
 INVENTORY => Loading Download his...

Revision history for this message
Ryan (ryan-canning) wrote :

Hi Didier,

Just following up on this bug - is there any plans to incorporate the VC files needed into the OCS installer package?

Thanks

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hello Ryan,

That's the solution i was thinking about.

But, it does not seems to fix the problem with Jigar.

So, i'm trying to find why before incorporating VC++ redist into installer.

Cheers

Revision history for this message
Salvatore Cristofaro (salvatore-cristofaro) wrote :
Download full text (6.3 KiB)

Hi Didier,

I just installed lastest VC++ 2008 redistribuable and the agent 2.0.0.21:
- On Windows 2000 SP4 Italian it's work without any problem.
- On Windows 2008 32 bit (english) it doesn't work.
- On Windows 7 64 Bit (italian) fresh installation doesn't work.

Attached the results of dep. walkers for Windows 2008 32 bit and Windows 7 64 bit.

---

## Windows 2008 32 Bit ##

#OCSInventory.log#

Starting OCS Inventory NG Agent on Friday, May 27, 2011 16:03:23.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.21
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.21
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>

#Event Viewer#

Log Name: Application
Source: OCS Inventory Service
Date: 27/05/2011 16.04.52
Event ID: 20
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: xxx
Description:
Service encounter error <Failed to load/parse last inventory state>.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="OCS Inventory Service" />
    <EventID Qualifiers="0">20</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2011-05-27T14:04:52.000Z" />
    <EventRecordID>4570</EventRecordID>
    <Channel>Application</Channel>
    <Computer>xxx</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Failed to load/parse last inventory state</Data>
  </EventData>
</Event>

Log Name: Application
Source: Application Error
Date: 27/05/2011 16.03.23
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: xxx
Description:
Faulting application OCSInventory.exe, version 2.0.0.21, time stamp 0x4dd6dba9, faulting module ntdll.dll, version 6.0.6001.18538, time stamp 0x4cb733dc, exception code 0xc0000005, fault offset 0x00065860, process id 0xe9c, application start time 0x01cc1c76d76593ad.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2011-05-27T14:03:23.000Z" />
    <EventRecordID>4567</EventRecordID>
    <Channel>Application</Channel>
    <Computer>xxx</Computer>
    <Security />
  </System>
  <EventData>
    <Data>OCSInventory.exe</Data>
    <Data>2.0.0.21</Data>
    <Data>4dd6dba9</Data>
    <Data>ntdll.dll</Data>
    <Data>6.0.6001.18538</Data>
    <Data>4cb733dc</Data>
    <Data>c0000005</Data>
    <Data>00065860</Data>
    <Data>e9c</Data>
    <Data>01cc1c76d76593ad</Data>
  </EventData>
</Event>

## Windows 7 ##

#OCSInventory.log#

Starting OCS Inventory NG Agent on Friday, May 27, 2011 17:33:38.
AGENT => Running OCS Inventory NG Agent Versi...

Read more...

Revision history for this message
Jigar (pateljigar-83) wrote :

Hi thanks for the update but I tried again and still I am getting same error. I have attached my event viewer for your reference.

Thanks,
 Jigar

Revision history for this message
Salvatore Cristofaro (salvatore-cristofaro) wrote :
Download full text (3.9 KiB)

Hi Didier...

I got the "same" error on a Windows XP too, either with 2.0.0.20 and 2.0.0.21.
I got out of memory message too.

Here the log:

## Windows XP Professional SP3 OCS 2.0.0.20 ##

# OCSInventory.log #

==============================================================================
Starting OCS Inventory NG Agent on Monday, May 30, 2011 11:24:44.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.20
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.20
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Programmi\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>

#Event Viewer#

Tipo evento: Errore
Origine evento: Application Error
Categoria evento: (100)
ID evento: 1000
Data: 30/05/2011
Ora: 11.24.48
Utente: N/D
Computer: xxx
Descrizione:
Applicazione che ha provocato l'errore OCSInventory.exe, versione 2.0.0.20, modulo che ha provocato l'errore ntdll.dll, versione 5.1.2600.6055, indirizzo errore 0x00010fa6.

Per ulteriori informazioni, consultare la Guida in linea e supporto tecnico all'indirizzo http://go.microsoft.com/fwlink/events.asp.
Dati:
0000: 41 70 70 6c 69 63 61 74 Applicat
0008: 69 6f 6e 20 46 61 69 6c ion Fail
0010: 75 72 65 20 20 4f 43 53 ure OCS
0018: 49 6e 76 65 6e 74 6f 72 Inventor
0020: 79 2e 65 78 65 20 32 2e y.exe 2.
0028: 30 2e 30 2e 32 30 20 69 0.0.20 i
0030: 6e 20 6e 74 64 6c 6c 2e n ntdll.
0038: 64 6c 6c 20 35 2e 31 2e dll 5.1.
0040: 32 36 30 30 2e 36 30 35 2600.605
0048: 35 20 61 74 20 6f 66 66 5 at off
0050: 73 65 74 20 30 30 30 31 set 0001
0058: 30 66 61 36 0fa6

Tipo evento: Errore
Origine evento: OCS Inventory Service
Categoria evento: Nessuno
ID evento: 20
Data: 30/05/2011
Ora: 11.24.52
Utente: N/D
Computer: xxx
Descrizione:
Service encounter error <Can't get OCS Inventory NG Agent exit code>.

----

## Windows XP Professional SP3 OCS 2.0.0.21 ##

#OCSIntentory.log#

==============================================================================
Starting OCS Inventory NG Agent on Monday, May 30, 2011 11:58:50.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.21
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.21
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Programmi\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Programmi\OCS Inventory Agent\ComHTTP.dll>

#Event Viewer#

Tipo evento: Errore
Origine evento: Application Error
Categoria evento: (100)
ID evento: 1000
Data: 30/05/2011
Ora: 11.59.52
Utente: N/D
Computer: xxx
Descrizione:
Applicazione che ha provocato l'errore OCSInventory.exe, versione 2.0.0.21, modulo che ha provocato l'errore ntdll.dll, versione 5.1.2600.6055, indirizzo errore 0x00010fa6.

Per ulteriori informazioni, consultare la Guida in linea e supporto tecnico all'indirizzo http://go.microsoft.com/fwlink/events.asp.
Dati:
0000: 41 70 70 6...

Read more...

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hi Salvatore,

Thanks for the report...

Problem is with ComHTTP.dll, but i'm not able to reproduce the crash, neither on XP SP2/SP3, 2003, 2008, or Seven 32/64 bits :-(

Searching why.

Cheers

Revision history for this message
Steve Gaarder (gaarder1-math) wrote :

I have seen the same problem, on two different Windows 7 machines. In
my case, if I double-click the ocsinventory.exe file, everything works
fine. If I try to run it from the systray, I get the crash. I'll
attach the Windows crash information.

I have extracted one of the machines into a VMware virtual image which I can
send to you if you like.

thanks,

Steve Gaarder

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hello Steve

Great idea, a vmware image. Are you able to put it somewhere I can download it ?

Thanks.

Revision history for this message
Ryan (ryan-canning) wrote :

Hi Didier,

Any update on this bug?

Cheers

Ryan

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hummm, well, I have a job that is unrelated with OCS

and i'm developing on OCS when i have time to do, later in the evening...

So please, be patient.

Cheers

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hi all.

Thanks to Steve VMWare, I think i've located the problem :D

I've found that agent crashes when launched with a firewall blocking all unauthorized outgoing connection. But agent only crash when launch by the service, under Local system account, not under a standard user account.

So, to confirm the diagnosis, could you please check the following ?

1) Delete ocsinventory.log
2) Firewall enabled, manually start agent double clicking ocsinventory.exe (must not crash, see event log and ocsinventory.log)
3) Firewall enabled, manually start agent using OCS systray (must crash)
4) Firewall disabled, manually start agent using OCS systray (must not crash)

If the agent works as expected, the error is in the libcurl.dll, which is not mine :-(

Thanks by advance.

Regards

Revision history for this message
Jigar (pateljigar-83) wrote :

Thanks for update. I will check and will post the results asap.

Thanks,
 Jigar

Revision history for this message
Léo CLAUDEL (leo-claudel) wrote :

Hello,

I've encountered the bug with some stations when i deployed it too.
Same mess with the comHTTP.dll, i tried new versions of libcurl.dll, and it failed too.

The VC Redist 2008 and 2.0.0.21 setup didn't change anything (or maybe the "Out of memory" localized as "Mémoire insuffisante"[FR])

19/116 PCs got the "Out of memory" and read/written errors.
With Vista SP1 x86, WinXP x86 SP3, some computers still get their full report to the server, some laptops, some desktop, some old ones, some fresh installations, i can't get the common part of the problem, unless the memory related thing.

Regards,

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hi All

It is a not a firewall problem, but a memory overflow into base64 decoder function.

So, i've fixed it and released a 2.0.0.23 version, attached here.

Could you please ensure it is fixing the crash for you ?

On Steve VM, agent works now, with or without firewall ;-)

Cheers

Revision history for this message
Ryan (ryan-canning) wrote :

Hi Didier,

Thanks for the update. This appears to have fixed the issue with the comhttp etc. However now every time it runs it doesn't appear to post to ocs server:

Log file
==============================================================================
Starting OCS Inventory NG Agent on Monday, June 20, 2011 09:44:55.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.23
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.23
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.0.23>
 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 => Enabling cURL SSL server validation support using CA Bundle <C:\programdata\ocs-ca\cacert.pem>
 COM SERVER => Sending fileGet request to URL <https://SERVER/ocsinventory/deploy/label>
 COM SERVER => fileGet response received <HTTP Status Code #401>
 COM SERVER => Cleaning cURL library
 AGENT => Failed to retrieve Label <HTTP Status Code #401>
AGENT => Sending Prolog
 DID_CHECK => Read DeviceID <MIT213D-2011-06-20-09-34-43> and MACs <B8:AC:6F:21:BA:3300:50:56:C0:00:0100:50:56:C0:00:08> 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 => Enabling cURL SSL server validation support using CA Bundle <C:\programdata\ocs-ca\cacert.pem>
 COM SERVER => Sending HTTP Post request to URL <https://SERVER/ocsinventory>
 COM SERVER => HTTP Post response received <HTTP Status Code #401>
 COM SERVER => Cleaning cURL library
================= TRACE START ===============

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

Windows Event
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="OCS Inventory Service" />
  <EventID Qualifiers="0">20</EventID>
  <Level>2</Level>
  <Task>0</Task>
  <Keywords>0x80000000000000</Keywords>
  <TimeCreated SystemTime="2011-06-19T23:47:51.000000000Z" />
  <EventRecordID>17656</EventRecordID>
  <Channel>Application</Channel>
  <Computer>MIT213D</Computer>
  <Security />
  </System>
- <EventData>
  <Data>Failed to load/parse last inventory state</Data>
  </EventData>
  </Event>

When trying to access the server with a web browser it asks for, and accepts the credentials provided in the .ini file.

Thanks

Revision history for this message
yeye5678 (yeye5678) wrote : RE: [Bug 754410] Re: OcsInvetory.exe Application Error
Download full text (7.1 KiB)

Hi,

When i install 2.0.0.23 agent, category [Http] is empty in the file ocsinventory.ini and i have this error "Failed to send HTTP Post request <Couldn't resolve host name>"

OS: Win Xp 32 Bits
==============================================================================
Starting OCS Inventory NG Agent on Monday, June 20, 2011 11:00:06.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.23
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.23
AGENT => Loading plug-in(s)
    PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
    PLUGIN => 0 Plug-in(s) succesfully loaded
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.0.23>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <UC050716-2011-06-20-10-59-48> and MACs <00:40:CA:83:7B:16> 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 <C:\Documents and Settings\All Users\Application Data\OCS Inventory NG\Agent\C:\Documents and Settings\All Users\Application Data\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <ocsinventory-ng>
    WARNING *** COM SERVER => Failed to send HTTP Post request <Couldn't resolve host name>
    COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <Couldn't resolve host name>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.

> Date: Sun, 19 Jun 2011 23:49:24 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 754410] Re: OcsInvetory.exe Application Error
>
> Hi Didier,
>
> Thanks for the update. This appears to have fixed the issue with the
> comhttp etc. However now every time it runs it doesn't appear to post to
> ocs server:
>
> Log file
> ==============================================================================
> Starting OCS Inventory NG Agent on Monday, June 20, 2011 09:44:55.
> AGENT => Running OCS Inventory NG Agent Version 2.0.0.23
> AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.23
> AGENT => Loading plug-in(s)
> PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
> PLUGIN => 0 Plug-in(s) succesfully loaded
> AGENT => Using network connection with Communication Server
> COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
> AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.0.23>
> 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 => Enabling cURL SSL server validation support using CA Bundle <C:\programdata...

Read more...

Revision history for this message
Salvatore Cristofaro (salvatore-cristofaro) wrote :

On Windows 2008 (32 and 64 bit) and Windows 2000, the 2.0.0.23 works well.
Tomorrow I'm going to try it on Windows 7.

Revision history for this message
yeye5678 (yeye5678) wrote :

Agent 2.0.0.23 works on Windows7 but it doesn't on Win Xp 32 bits

Revision history for this message
Jigar (pateljigar-83) wrote :
Download full text (5.6 KiB)

Hey Didier,

 I am sorry for late reply. I have installed agent 2.0.0.23 on win 7 64bit but it does not produce proper ocsinventory.ini file (I have posted below) and that is the main reason the log file error says that could not resolve host name because there is no information into ocsinventory.ini file. [ FYI: I have given full privilege to Agent folder under programdata and I tried installing under administrator account also but still same error. and another thing is my certificate name is ca.pem but I don't know why is showing me cacert.pem into ocsinventory log file]. Thanks for your any help.

ocsinventory.ini
----------------------

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=1
Local=
HKCU=0
NoTAG=0
IpDisc=
[OCS Inventory Service]
TTO_WAIT=240

Agent installation log file
---------------------------------

********************************************************
Starting OCS Inventory NG Agent 2.0.0.23 setup on 23/06/2011 at 11:20:34
Checking if setup not already running...OK.
Checking Operating System...OK, Windows 2000 or higher.
Command line is: "C:\Users\Administrator\Desktop\OCS-NG-Windows-Agent-Setup.exe"
Parsing command line arguments...OK.
Checking for silent mode...Disabled.
Checking for splash screen...Enabled.
Checking if logged in user has Administrator privileges...OK.
Creating directory <C:\ProgramData\OCS Inventory NG\Agent>...
SetACL allowing Users / Power users read/write permissions on <C:\ProgramData\OCS Inventory NG\Agent>...Result: error
SetACL removing inherited permissions on <C:\ProgramData\OCS Inventory NG\Agent\Download>...Result: error
SetACL allowing System and Administrators full permissions on <C:\ProgramData\OCS Inventory NG\Agent\Download>...Result: error
SetACL allowing Users / Power Users read only permissions on <C:\ProgramData\OCS Inventory NG\Agent\Download>...Result: error
Trying to determine if service was previously installed...Yes.
Trying to stop service and kill processes...
Is Service <OCS Inventory Service> running...Yes.
Trying to stop Service <OCS Inventory Service>...Ok
Is Service <OCS Inventory Service> running...Yes - Waiting 1 second(s) for Service to stop...
Is Service <OCS Inventory Service> running...No - Waiting 1 second(s) for Service to stop...
Trying to kill process OcsSystray.exe...Result: 0
Trying to kill process OcsSystray.exe...Result: 603
Trying to kill process OcsService.exe...Result: 603
Trying to kill process OCSInventory.exe...Result: 603
Trying to kill process download.exe...Result: 603
Trying to kill process inst32.exe...Result: 603
Waiting 10 seconds for processes to terminate...
Copying new files to directory <C:\Program Files (x86)\OCS Inventory Agent>...
Windows XP or higher detected, installing default cURL library and MS CRT/MFC 9.0...
Copying new files status is ;-)
Writing agent configuration file by launching ocsinventory.exe /SAVE_CONF...Result: 0
[/NOW] used, so launching "C:\Program Files (x86)\OCS Inventory Agent\ocsinventory.exe"...Result: 4
Creating startup menu shortCut <C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\OCS Inventory NG Systray.lnk> to start Systray applet...
Checking if service OCS Inventory Service is register...

Read more...

Revision history for this message
Steve Gaarder (gaarder1-math) wrote :

THanks, Didier! It is working better; it is connecting. But there is
something odd about the authentication. As Jigar wrote, it does not
seem to be correctly writing the oscinventory.ini file. I worked around this
by using the file from a 2.0.0.20 installation. It seems to be adding odd
characters to the user name, because it gets a 401 error and this appears
in the server log:

[Thu Jun 23 16:28:39 2011] [error] [client 128.84.234.51] user math_ppe3\x07\x07\x07\x07\x07\x07\x07 not found: /ocsinventory

thanks again,

Steve Gaarder

Revision history for this message
Ryan (ryan-canning) wrote :

Just following up on my previous post. If we disable user auth on the server then the client works without any problems. As soon as we turn auth back on it fails with 401.

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hello Everybody

I've found a problem with credentials encipherment, either with proxy or server credentials.

End of string are not correctly handled in some case.

This version fixes this problem, and also those described in bug
#805039
Installer creates incomplete ocsinventory.ini
#802625 ocslogon /tag parameter

Could you please check that all is working for you ?

Thanks by advance.

Cheers

Revision history for this message
Steve Gaarder (gaarder1-math) wrote :

I just tested 2.0.024 on the machine that had the problem, and it works fine. Thanks!

Steve

Revision history for this message
Ryan (ryan-canning) wrote :

Hi Didier,

This fixes the incomplete ocsinventory.ini fille - Thanks :)

However still having issues when trying to connect using credentials.

==============================================================================
Starting OCS Inventory NG Agent on Monday, July 18, 2011 13:19:39.
AGENT => Running OCS Inventory NG Agent Version 2.0.0.24
AGENT => Using OCS Inventory NG FrameWork Version 2.0.0.24
AGENT => Loading plug-in(s)
 PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
 PLUGIN => 0 Plug-in(s) succesfully loaded
AGENT => Using network connection with Communication Server
 COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.0.24>
AGENT => Sending Prolog
 DID_CHECK => Read DeviceID <MIT213D-2011-07-18-13-15-48> and MACs <B8:AC:6F:21:BA:33> 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 => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
 COM SERVER => Sending HTTP Post request to URL <https://SERVER/ocsinventory>
 COM SERVER => HTTP Post response received <HTTP Status Code #401>
 COM SERVER => Cleaning cURL library

If i configure the server to allow connections without credentials it works successfully.

Cheers

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hi Ryan,

I'm not having the problem with credentials on my server. Have you you regenerated a full ocsinventory.ini file ? Using the previous does not work.

Also, to help me, could you send me a sample couple of credential not working for you ?

didier dot liroulet at ocsinventory-ng dot org.

Thanks by advance.

Cheers

Revision history for this message
Nicholas Palmqvist (b-nicholas-a) wrote :

Hello,

I have installed the latest version of windows agent (2.0.1) and I'm still having this problem. I get EventID 20 from "OCS inventory service" with detail text

"Service encounter error <Failed to load/parse last inventory state>."

I'm running windows server 2008 R2 Standard

I have a central management team breathing down my neck because this is flooding 5 servers' application log.

Anything to be done? What logs or other additional information is needed?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.