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.12.3 available

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

Difficulty to use ocspackage

Hello,

This is the problematic:

I was sure I had solved the problem with ocspackage.exe when I have installed it. The problem is when I run ocspackager.exe this one generates correctly ocspackage.exe However, when I try to run ocspackage.exe as an administrator I have again this message that displays:

OCS INVENTORY NG AGENT has stopped working

Problem signature:

  Problem Event Name:                        APPCRASH

  Application Name:                             ocsinventory.exe

  Application Version:                           2.1.1.1

  Application Timestamp:                     53768f91

  Fault Module Name:                          MSVCR90.dll

  Fault Module Version:                        9.0.30729.6161

  Fault Module Timestamp:                  4dace5b9

  Exception Code:                                  c0000005

  Exception Offset:                                00056b1d

  OS Version:                                          6.1.7601.2.1.0.272.7

  Locale ID:                                             2057

  Additional Information 1:                  0a9e

  Additional Information 2:                  0a9e372d3b4ad19135b953a78882e789

  Additional Information 3:                  0a9e

  Additional Information 4:                  0a9e372d3b4ad19135b953a78882e789

 

Read our privacy statement online:

  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

 

If the online privacy statement is not available, please read our privacy statement offline:

  C:\Windows\system32\en-US\erofflps.txt

 

Test performed to fix this problem:

When I run ocspakager.exe I have taken care to write in the command line options: /NP /S /SERVER=http://ipserver/ocsinventory /TAG="test" /DEBUG=2 /NOW . In addition my account is correct and I have the cacert.pem file and the PsEXec file.To solve this issue I have installed on the Windows server the application Dll-files fixer but nothing happens. This error message persists. Which is surprising it's I have no error messages in the ocsinventory.log file. But only these warning messages:

WARNING *** DID_CHECK => Failed to read file <ocsinventory.dat>

WARNING *** INVENTORY => Failed to retrieve user domain

WARNING *** INVENTORY => Failed to retrieve sound devices

WARNING *** INVENTORY => Failed to retrieve modems
 
This OSCPACKAGE.LOG:
OCS Inventory NG Packager (All-In-One Agent Installer) : ********************************************************
OCS Inventory NG Packager (All-In-One Agent Installer) : Starting OCS Inventory NG Packager (All-In-One Agent Installer) on 14/07/2014 at 17:15:19
OCS Inventory NG Packager (All-In-One Agent Installer) : Installing <OCS-NG-Windows-Agent-Setup.exe> version <2.1.1.1>
OCS Inventory NG Packager (All-In-One Agent Installer) : Installing from <C:\Users\meynard\AppData\Local\Temp\nsxCB3E.tmp>\
OCS Inventory NG Packager (All-In-One Agent Installer) : Extracting privilegied installer
OCS Inventory NG Packager (All-In-One Agent Installer) : Extracting Agent setup file
OCS Inventory NG Packager (All-In-One Agent Installer) : Extracting Agent configuration files
OCS Inventory NG Packager (All-In-One Agent Installer) : Extracting Agent plugin files
OCS Inventory NG Packager (All-In-One Agent Installer) : Installing Agent to folder <C:\Program Files (x86)\OCS Inventory Agent>
OCS Inventory NG Packager (All-In-One Agent Installer) : Configuring Agent from folder <C:\ProgramData\OCS Inventory NG\Agent>
OCS Inventory NG Packager (All-In-One Agent Installer) : Loging privilegied installer to <C:\Users\meynard\AppData\Local\Temp\ocspackage.log>
OCS Inventory NG Packager (All-In-One Agent Installer) : Current user has Administrator privileges
OCS Inventory NG Packager (All-In-One Agent Installer) : Launching Privilegied Installer directly...
OCS Inventory NG Packager (Privilegied Installer) : ********************************************************
OCS Inventory NG Packager (Privilegied Installer) : Starting OCS Inventory NG Packager (Privilegied Installer) 2.1.0.1 on 14/07/2014 at 17:15:20
OCS Inventory NG Packager (Privilegied Installer) : ABORT because setup already running !
OCS Inventory NG Packager (All-In-One Agent Installer) : Successfull end of OCS Inventory NG Packager (All-In-One Agent Installer) on 14/07/2014 at 17:15:20

This is  my IT environment:

Server used to install OCS-windows-server 2.1.1: Windows SERVER 2008 R2

Agent OCS : version 2.1.1

OCSPACKAGER: version 2.1rc1

 

If someone has any idea feel free to present them

Kind regards

in OCS Inventory NG agent for Windows by (280 points)
edited by

1 Answer

0 votes

Hi,

Your version of ocspackager is 2.1rc1 which is not a stable version. Can you try with https://launchpad.net/ocsinventory-windows-packager/2.1/2.1.1/+download/OCSNG-Windows-Packager-2.1.1.zip?

by (90.2k points)

Hi,

Thank you very much frankb. I have followed your advice and for all the day I have tried to deploy the Agent ocs with ocspackage.exe and a login script but unsuccess.

Main error identified in apache:

error.log:

[Tue Jul 15 16:59:31 2014] [error] [client 192.168.1.253] Can't call method "do" on an undefined value at C:/xampp/perl/site/lib/Apache/Ocsinventory/Server/System.pm line 177.\n

[Tue Jul 15 17:08:23 2014] [error] [client fe80::d1be:15d:75a2:5ab2] client denied by server configuration: C:/xampp/htdocs/xampp

System.pm line 174-178:

 # Connection...
  my $dbh = DBI->connect("DBI:mysql:database=$database;host=$host;port=$port", $user, $password, \%params);
  $dbh->do("SET NAMES 'utf8'") if($dbh && $ENV{'OCS_OPT_UNICODE_SUPPORT'});
  $dbh->do("SET sql_mode='NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'");
  return $dbh;

Summary

IT tools:

  • Windows server 2008 R2
  • Windows XP Professional

OCS tools:

  • OCSNG-Windows-Server- 2.1.2
  • OCSNG-Windows-agent-2.1.1
  • OCSNG-Windows-Packager-2.1.1

Other applications useful:

  • cacert.pem
  • PsExec.exe

Tasks realised:

  • No logged on as administrator but has a full control of windows server 2008 R2
  • setup of all OCS tools in windows server 2008 R2
  • In the command line options of ocspackager: S/ SERVER=http://ipserver/ocsinventory /TAG="test" /DEBUG=2  /NOW
  • Checking  the password of the ocsweb database is the same in the the ocsinventory-server.conf and dbconfig.inc.php files
  • Put in the httpd.conf file of apache these lines:
    • Listen ipserver:80
    • Listen 127.0.0.1:3306
  • Has downloaded dffsetup-msvcr90
  • Dll-Files fixer
  • Has checked if there is a firewall activated
  • Has checked if there a conflict of the port between some applications
  • Has created a file  in windows server 2008 called OCS-script and shared with Windows XP Professional
  • ocs.bat file and Ocslogon.exe in OCS_script
  • Login script of ocs.bat: \\myserver\OCS_script\OcsLogon.exe

/PACKAGER /NP /INSTALL /DEPLOY:2.1.1.1 /SERVER=http://ipserver/ocsinventory

Objectives:

  • Deploy the Agent ocs from ocspackage.exe
  • Working with a login script and without GPO

Problem faced:

  • Cannot run ocspackage
  • No inventory displayed in the interface of the server ocs

Question:

What are the other alternatives you recommend me?

Thank you and kind regards

 
Powered by Question2Answer
...