windows 7 gets error while launching OCS

Bug #865983 reported by engin maden
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OCS Inventory: OcsPackager
Invalid
Low
Didier Liroulet
OCS Inventory: Windows Agent
Invalid
Low
Didier Liroulet

Bug Description

While launcing OCS agent in Wİndows 7,it can not send inventory and in windows application log there is a weird message such as "Service encounter error <Can't launch OCS Inventory NG Agent (敇⁴佃卍䕐⁃牅潲㩲䔠牲牯挠摯⁥〲″‽桔⁥祳瑳浥挠畯摬渠瑯映湩⁤桴⁥湥楶潲浮湥⁴灯楴湯琠慨⁴慷⁳湥整敲⹤†)>."

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

Hello,

Could you please paste here log of agent ?

You can find them into hidden folder C:\ProgramData\OCS Inventory NG\Agent\*.log.

Also, please, run before pasting logs. It may help me.

 ocsinventory.exe /DEBUG=2

Cheers

Changed in ocsinventory-windows-agent:
assignee: nobody → Didier Liroulet (dliroulet)
Revision history for this message
engin maden (enginmaden2006) wrote : Yan: [Bug 865983] Re: windows 7 gets error while launching OCS
Download full text (81.1 KiB)

Here is the OCSInventory.log
---------------------------------------------------------------
==============================================================================
Starting OCS Inventory NG Agent on Friday, October 07, 2011 14:44:22.
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 <SDIEMAS-2011-07-04-14-25-55> and MACs <70:F3:95:0E:01:07> 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://idmvbts.tcmb.gov.tr/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============
<?xml version='1.0' encoding='ISO-8859-1'?>
<REPLY>
  <OPTION>
    <NAME>REGISTRY</NAME>
    <PARAM NAME="HKCU_Startup" REGKEY="Software\Microsoft\Windows\CurrentVersion\Run" REGTREE="3">*</PARAM>
    <PARAM NAME="HKLM_Startup" REGKEY="Software\Microsoft\Windows\CurrentVersion\Run" REGTREE="2">*</PARAM>
    <PARAM NAME="DB2_RTC" REGKEY="SOFTWARE\IBM\DB2\DB2 Run-Time Client\CurrentVersion" REGTREE="2">Version</PARAM>
    <PARAM NAME="DB2_7_UnInst" REGKEY="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DB2" REGTREE="2">VersionMajor</PARAM>
    <PARAM NAME="StartTime" REGKEY="SOFTWARE\Microsoft\Windows NT\CurrentVersion\Prefetcher" REGTREE="2">StartTime</PARAM>
  </OPTION>
  <OPTION>
    <NAME>DOWNLOAD</NAME>
    <PARAM FRAG_LATENCY="5" PERIOD_LATENCY="5" TIMEOUT="30" ON="1" TYPE="CONF" CYCLE_LATENCY="5" PERIOD_LENGTH="6" />
  </OPTION>
  <RESPONSE>SEND</RESPONSE>
  <PROLOG_FREQ>5</PROLOG_FREQ>
</REPLY>

================= TRACE STOP ===============
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
ERROR *** AGENT => Failed to write Prolog Frequency <Error code 32 = The process cannot access the file because it is being used by another process.  >
AGENT => Inventory required
AGENT => Launching hardware and software checks
    INVENTORY => Loading Download history
    INVENTORY => Logged on user ID is <sdiemas>
    INVENTORY => Operating System is <Microsoft Windows 7 Professional 6.1.7601 Service Pack 1>, description <>
    INVENTORY => Operating System uses 64 bits memory address width
    INVENTORY => Computer domain or workgroup is <tcmb.gov.tr>
    WARNING *** INVENTORY => Failed to retrieve user domain
    INVENTORY => System Manufacturer <LENOVO>, System Model <5536AS1>, System S/N <R8H90D2>, Bio...

Revision history for this message
engin maden (enginmaden2006) wrote :
Download full text (79.9 KiB)

Here is the OCSInventory.log
---------------------------------------------------------------
==============================================================================
Starting OCS Inventory NG Agent on Friday, October 07, 2011 14:44:22.
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 <SDIEMAS-2011-07-04-14-25-55> and MACs <70:F3:95:0E:01:07> 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://idmvbts.tcmb.gov.tr/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============
<?xml version='1.0' encoding='ISO-8859-1'?>
<REPLY>
  <OPTION>
    <NAME>REGISTRY</NAME>
    <PARAM NAME="HKCU_Startup" REGKEY="Software\Microsoft\Windows\CurrentVersion\Run" REGTREE="3">*</PARAM>
    <PARAM NAME="HKLM_Startup" REGKEY="Software\Microsoft\Windows\CurrentVersion\Run" REGTREE="2">*</PARAM>
    <PARAM NAME="DB2_RTC" REGKEY="SOFTWARE\IBM\DB2\DB2 Run-Time Client\CurrentVersion" REGTREE="2">Version</PARAM>
    <PARAM NAME="DB2_7_UnInst" REGKEY="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DB2" REGTREE="2">VersionMajor</PARAM>
    <PARAM NAME="StartTime" REGKEY="SOFTWARE\Microsoft\Windows NT\CurrentVersion\Prefetcher" REGTREE="2">StartTime</PARAM>
  </OPTION>
  <OPTION>
    <NAME>DOWNLOAD</NAME>
    <PARAM FRAG_LATENCY="5" PERIOD_LATENCY="5" TIMEOUT="30" ON="1" TYPE="CONF" CYCLE_LATENCY="5" PERIOD_LENGTH="6" />
  </OPTION>
  <RESPONSE>SEND</RESPONSE>
  <PROLOG_FREQ>5</PROLOG_FREQ>
</REPLY>

================= TRACE STOP ===============
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
ERROR *** AGENT => Failed to write Prolog Frequency <Error code 32 = The process cannot access the file because it is being used by another process. >
AGENT => Inventory required
AGENT => Launching hardware and software checks
    INVENTORY => Loading Download history
    INVENTORY => Logged on user ID is <sdiemas>
    INVENTORY => Operating System is <Microsoft Windows 7 Professional 6.1.7601 Service Pack 1>, description <>
    INVENTORY => Operating System uses 64 bits memory address width
    INVENTORY => Computer domain or workgroup is <tcmb.gov.tr>
    WARNING *** INVENTORY => Failed to retrieve user domain
    INVENTORY => System Manufacturer <LENOVO>, System Model <5536AS1>, System S/N <R8H90D2>, Bio...

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

Hi.

Agent works fine when launched manually.

What's the user account launching OCS service ? System ? Other ?

Could you stop service, update %ProgramData%\OCS Inventory NG\agent\ocsinventory.ini to set DEBUG=1, restart service, force inventory using systray and paste here ocsinventory.log ?

Cheers

Revision history for this message
engin maden (enginmaden2006) wrote :
Download full text (6.2 KiB)

When launced by using systray, OCS does not produce any log and there is an application log in event viewer in windows7 as in the following:

<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-10-11T07:29:03.000000000Z" />
  <EventRecordID>17332</EventRecordID>
  <Channel>Application</Channel>
  <Computer>xxxxr</Computer>
  <Security />
  </System>
- <EventData>
  <Data>Can't launch OCS Inventory NG Agent (敇⁴佃卍䕐⁃牅潲㩲䔠牲牯挠摯⁥〲″‽桔⁥祳瑳浥挠畯摬渠瑯映湩⁤桴⁥湥楶潲浮湥⁴灯楴湯琠慨⁴慷⁳湥整敲⹤†)</Data>
  </EventData>
  </Event>

But if I run the agent by executing OCSIncentory.exe, theOCSInventoryLog file's content is:

==============================================================================
Starting OCS Inventory NG Agent on Tuesday, October 11, 2011 10:31:35.
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 <xxxx-2011-07-04-14-25-55> and MACs <70:F3:95:0E:01:07> 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://xxxx/ocsinventory>
 COM SERVER => HTTP Post response received <HTTP Status Code #200>
 COM SERVER => Cleaning cURL library
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
ERROR *** AGENT => Failed to write Prolog Frequency <Error code 32 = The process cannot access the file because it is being used by another process. >
AGENT => Inventory required
AGENT => Launching hardware and software checks
 INVENTORY => Loading Download history
 INVENTORY => Logged on user ID is <xxx>
 INVENTORY => Operating System is <Microsoft Windows 7 Professional 6.1.7601 Service Pack 1>, description <>
 INVENTORY => Operating System uses 64 bits memory address width
 INVENTORY => Computer domain or workgroup is <xxx>
 WARNING *** INVENTORY => Failed to retrieve user domain
 INVENTORY => System Manufacturer <LENOVO>, System Model <5536AS1>, System S/N <R8H90D2>, Bios Manufacturer <LENOVO>, Bios Date <11/25/2010>, Bios Version <5JKT53AUS>
 INVENTORY => 1 processor(s) Intel(R) Core(TM) i5 CPU 650 @ 3.20GHz [2 core(s) x64] at 3193 MHz
 INVENTORY => OS Memory 3766 MB, OS Swap size 7531 MB
 INVENTORY => 4 memory slot(s) found
 INVENTORY => 2 input device(s) found
 INVENTORY => 24 system port(s) found
 INVENTORY => 5 s...

Read more...

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

Ok, so even Systray or service cannot write into folder %ProgramData%\OCS Inventory NG\agent

Could you please try to uninstall/reinstall agent ?

Cheers

Changed in ocsinventory-windows-packager:
status: New → Invalid
importance: Undecided → Low
assignee: nobody → Didier Liroulet (dliroulet)
Changed in ocsinventory-windows-agent:
importance: Undecided → Low
status: New → In Progress
Revision history for this message
engin maden (enginmaden2006) wrote :

I tried to uninstall the agent and install again but the result is the same.I have encountered the same error in application log.

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

Hi.

Have you upgraded from Agent 1.X, aka serie 4000 ?

Could you please attach here content of C:\Program Files\OCS Inventory Agent (use command prompt and enter "dir /s > content.txt") ?

Could you double click on OCS systray icon, make a screen shot of windows and attach it here ?

Cheers

Changed in ocsinventory-windows-agent:
status: In Progress → Invalid
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.