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.

OCS 2.0.5 upgrade to 2.2 Apache error

Hello,

What might be causing this apache error when trying to upgrade from 2.0.5 to 2.2

Click Enter

variables not defined?

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

2 Answers

0 votes
same error on upgrade from ocs 2.1.2, the O.S. of the server is ubuntu 14.04
by (240 points)
0 votes
hi,

could you try replace your actual setup with this setup.sh instead ? https://github.com/OCSInventory-NG/OCSInventory-Server/blob/master/setup.sh

This one has been fixed recently for ubuntu / debian distro.

Regards,

Gilles Dubois.
by (3.1k points)

The  setup.sh works for this problem ... but Apache won't start.

[Tue Jun 07 08:25:50.721079 2016] [alias:warn] [pid 62751] AH00671: The Alias directive in /etc/apache2/conf.d/ocsinventory-reports.conf at line 23 will probably never match because it overlaps an earlier Alias.
[Tue Jun 07 08:25:50.721136 2016] [alias:warn] [pid 62751] AH00671: The Alias directive in /etc/apache2/conf.d/ocsinventory-reports.conf at line 83 will probably never match because it overlaps an earlier Alias.
[Tue Jun 07 08:25:50.721147 2016] [alias:warn] [pid 62751] AH00671: The Alias directive in /etc/apache2/conf.d/ocsinventory-reports.conf at line 101 will probably never match because it overlaps an earlier Alias.

if i check the log of apache

ocsinventory-server: Bad setting. `SUPPORT` is not set. Default: `1`
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
[Tue Jun 07 08:25:50.936351 2016] [perl:error] [pid 62752] Can't locate Apache/Ocsinventory/Plugins/Apache.pm in @INC (you may need to install the Apache::Ocsinventory::Plugins::Apache module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl . /etc/apache2) at (eval 14) line 2.\n
[Tue Jun 07 08:25:50.936374 2016] [perl:error] [pid 62752] Can't load Perl module Apache::Ocsinventory::Plugins::Apache for server fog:0, exiting...
i check the directory /etc/ocsinventory-server/plugins, it's empty
The alias problem come from a configuration problem, you have to wipe your old ocs' configuration files.

Could you check and wipe this directory ? /etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins

You must have something in the directory that come from an older version.

Regards,

Gilles Dubois.

i delete the directory /etc/ocsinventory-server, run the setup.sh

reinstall the soap (all last version)

modify the password for the db in the 2 files,  try to start apache => same error

ocsinventory-server: Bad setting. `SUPPORT` is not set. Default: `1`
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
[Tue Jun 07 10:22:42.266475 2016] [perl:error] [pid 6644] Can't locate Apache/Ocsinventory/Plugins/Apache.pm in @INC (you may need to install the Apache::Ocsinventory::Plugins::Apache module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl . /etc/apache2) at (eval 14) line 2.\n
[Tue Jun 07 10:22:42.266602 2016] [perl:error] [pid 6644] Can't load Perl module Apache::Ocsinventory::Plugins::Apache for server fog:0, exiting...
i found the error with a restore of the z-ocsinventory file

new one :

  PerlSetEnv OCS_PLUGINS_PERL_DIR "/etc/ocsinventory-server/plugins"
  PerlSetEnv OCS_PLUGINS_CONF_DIR "/etc/ocsinventory-server/perl"

there is an invertion in the serup
Hello for me the script worked and I managed to upgrade but the clients are not updating? All the data is ~week old.
did you modify the password for the mysql connexion in the z-ocs..... file ?
At first I forgot it but now it's changed, but the clients are still not updating.
 
Powered by Question2Answer
...