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 http://wiki.ocsinventory-ng.org. Read it before asking your question.

plugin install err_02 and xml data not being written in database

Configuration :
- ocs server on docker container latest image, installation as instructed on the docker official store page
- ocs agent on windows machine latest version

Ocsreports install is successful (database ocsweb is on another container but linking is good and working as intended). Agent sends correct data to the server. But there are a few problems :

- Any plugin whether offical (https://github.com/PluginsOCSInventory-NG) or that I made for testing purposes, is not installed correctly : plugin manager show Err_02. (Note : for all plugins .zip in download folder of the server, I did chown www-data:www-data so that apache was able to unzip, etc)

The plugin ocsweb database tables are created successfully, the vbscript on agent is working (tested with a local dump of xml file generated by agent). 

The XML data sent by agent looks good (plugin data is there) but the XML from the server (I looked it up by cliking on the machine name, then xml link) does not contain plugin data at all.

The plugin tables are therefore never completed with plugin data... And I get and nice "0 result" from my sql queries in Ocsreports

Here's what I did :

I lookep up Err_02 "Err_02 : Module transfer between ocsreports and ocsserver failed ( Can be a network related issue )"

This is not network issue since ocsreport and ocsserver are on same container.
On the help page of this error message (https://github.com/OCSInventory-NG/OCSInventory-ocsreports/wiki/Plugins-Engine-:-Web-service-error-codes) it is stated at the top : "To install the ocsserver part a webservice is used to send file and submit them to the server."

When checking apache error_log we can see : "ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable". The module IS installed (btw when I used setup.sh everything was fine...)

I tried to manually install the server part of the plugin (Map.pm / plugin.conf) but to no avail.
I tried to install Transport::HTTP but to no avail (Err_02 becomes "Err" and no number lol).

I need to know how to make SOAP::Transport::HTTP work or how to install plugin correctly manually.
in OCS Inventory NG server for Unix by (640 points)

1 Answer

0 votes
Hi @Jeremy,

I have the same issue, after getting the Err_02 and seek for any hint on the web I found and reading the Modules.pm code, I've found a workaround manually copying the Map.pm file of my plugin in

/etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/<Plugin_name>/Map.pm

and the configuration file in

/etc/ocsinventory-server/plugins/lastupdate/<plugin_name>.conf

Take care of the case ov Plugin_name and plugin_name, it's not a typo.

I hope that this can help you.

Gabriele
by (1.3k points)
 
Powered by Question2Answer
...