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

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

Plugin install error (Err_02) on Centos using rpm

I installed the last version of OCS (2.4.1) by using RPM on a new VM with CentOS 7 :

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget https://rpm.ocsinventory-ng.org/ocsinventory-release-latest.el7.ocs.noarch.rpm
yum install ocsinventory-release-latest.el7.ocs.noarch.rpm epel-release-latest-7.noarch.rpm
yum install ocsinventory

I can't install correctly plugins, I always have "Err_02" and the "Plugins" menu was not updated.
Actually I try to install officepack, but I have the same problem with other plugins.
(Zip file in the "/var/lib/ocsinventory-reports/plugins/download" folder)

Now I can't delete the officepack plugin, the apache service will crash during process...

There are maybe things to do after the installation in RPM mode?

On my installation, there is no folder "/config/" in the folder "/usr/share/ocsinventory-reports/ocsreports/"

(and no "plugins.xml" or "main_menu.xml")

but all are in /var/lib/ocsinventory-reports/config... don't know if it's a part of the problem


Version de PHP : 5.4.16
Serveur Web : Apache/2.4.6 (CentOS) PHP/5.4.16 mod_perl/2.0.10 Perl/v5.16.3
Serveur SQL : MariaDB Server version 5.5.56-MariaDB
Version OCSReports: 2.4.1

asked in OCS Inventory NG server for Unix by (120 points)
edited by

1 Answer

0 votes
Hi @Rylok,

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
answered by (1.1k points)
 
Powered by Question2Answer
...