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

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

Apache not start after install plugins [OCS 2.6]


Im trying install OCS first time. Everything was going well until the plugins were installed. After install extension on webconsole:

# sudo python3 /usr/share/ocsinventory-reports/ocsreports/tools/install_plugin.py

First error:

ERROR: check if Map.pm and uptime-2.0.conf exist

I solved it by changing the file name:

# sudo cp /usr/share/ocsinventory-reports/ocsreports/extensions/uptime-2.0/APACHE/uptime.conf /usr/share/ocsinventory-reports/ocsreports/extensions/uptime-2.0/APACHE/uptime-2.0.conf

After that:

uptime-2.0has been successfully installed ! Don't forget to restart your Apache server

OK. I restart than and... error.

[Thu Dec 12 20:10:04.231575 2019] [perl:error] [pid 12607] $s->add_config() has failed: Can't locate Apache/Ocsinventory/Plugins/Officepack/Map.pm in @INC (you may need to install the Apache::Ocsinventory::Plugins::Officepack::Map module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /etc/apache2 /etc/ocsinventory-server/perl) at (eval 100) line 1.\nCompilation failed in require at (eval 99) line 1.\n

[Thu Dec 12 20:10:04.231675 2019] [perl:error] [pid 12607] Can't load Perl module Apache::Ocsinventory::Plugins for server, exiting...

I don't know Linux, and I haven't found an effective solution on the network :-(
If i delete files from  etc/ocsinventory-server/plugins/ - apache gets up. But i guess the plugin doesn't work then.

Operating system
    OS Name: Linux x86_64
    Version: 4.15.0-72-generic
    Distribution: Ubuntu 18.04.3 LTS

    PHP Version: 7.2.24
    Web Server: Apache/2.4.29 (Ubuntu)
    Database Server: (Ubuntu) version 5.7.28-0ubuntu0.18.04.4
    Version OCSReports: 2.6

I tried with:

in OCS Inventory NG server for Unix by (810 points)

1 Answer

0 votes
It was problem with letters size. After:

# sudo mv /etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/Officepack-3.0 /etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/Officepack

(and the same for other plugins)... the apache has started. But now i dont know how to check if the plugin works. Maybe this change caused that despite the successful installation it is broken. But i start new thread maybe.
by (810 points)
Powered by Question2Answer