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.

Can't call method "do" on an undefined value at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Server/System.pm

Hey guys,

I run into issues after upgrading to the lateste OCSNG_UNIX_SERVER-2.2RC1.tar.gz emergings error in the apache logs.

[Thu Aug 13 12:44:07 2015] [error] [client 192.168.] Can't call method "do" on an undefined value at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Server/System.pm line 177.\n
[Thu Aug 13 12:44:12 2015] [error] [client 192.168.] Can't call method "do" on an undefined value at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Server/System.pm line 177.\n
[Thu Aug 13 12:44:48 2015] [error] [client 192.168.] Can't call method "do" on an undefined value at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Server/System.pm line 177.\n
[Thu Aug 13 12:44:55 2015] [error] [client 192.168.] Can't call method "do" on an undefined value at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Server/System.pm line 177.\n
[Thu Aug 13 12:44:59 2015] [error] [client 192.168.] Can't call method "do" on an undefined value at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Server/System.pm line 177.\n
[Thu Aug 13 12:45:11 2015] [error] [client 192.168.] Can't call method "do" on an undefined value at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Server/System.pm line 177.\n
[Thu Aug 13 12:46:23 2015] [error] [client 192.168.] Can't call method "do" on an undefined value at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Server/System.pm line 177.\n
[Thu Aug 13 12:46:33 2015] [error] [client 192.168.] Can't call method "do" on an undefined value at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Server/System.pm line 177.\n
[Thu Aug 13 12:47:06 2015] [error] [client 192.168.] Can't call method "do" on an undefined value at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Server/System.pm line 177.\n
[Thu Aug 13 12:47:16 2015] [error] [client 192.168.] Can't call method "do" on an undefined value at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Server/System.pm line 177.\n

System.pm line 177 excerpt:

 $dbh->do("SET sql_mode='NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'");

Activities Logs are only filled with old before upgrade information....

Currently I'm running Debian 8.1,
Agent: OCS-NG_WINDOWS_AGENT_v2.1.1.1
Server: OCSNG_UNIX_SERVER-2.2RC1

 

Please give me some hints to solve that issue.

 

Regards

sip_mw
in OCS Inventory NG server for Unix by (520 points)

1 Answer

+1 vote
 
Best answer
Hi,

By upgrading to the new version, dbconfig.inc.php and z-ocsinventory-server.conf files are overwritten with files of the OCSNG_UNIX_SERVER-2.2RC1.tar.gz archive. Replace user/password values fin these files, then restart apache. All will be OK after.

Regards

Frank
by (90.4k points)
selected by
I missed to edit and replace user and pass in z-ocsinventory-server.conf that has been my mistake - thanks for  for your helping! ;)

 

Regards

Marco
 
Powered by Question2Answer
...