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.

http://oscinventory-ng/ocsreports works but http://oscinventory-ng/ocsinventory does not work

Hi,

I installed ocs unix server, ocs GUI at  http://oscinventory-ng/ocsreports works but virtual interface at http://oscinventory-ng/ocsinventory is not working, it says" internal server error:" this is making my agents show the "error 500 failed to communicate with server"

help
in OCS Inventory NG server for Unix by (370 points)

2 Answers

+1 vote
by (1.7k points)

yes ill use dns but i had read in the forums " If you try to access e.g http://10.10.100.200/ocsinventory with a browser, you must have this result: Bad request., mine shows "internal server error"

+1 vote
Hi

Post content of apache error log (error_log). I suppose you have "Can't call to..." error. Verify mysql password for ocs user in z-ocsinventory-server.conf file. It must be identical as those in /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php file.

Regards

Frank
by (90.2k points)
[root@keondc1is002 httpd]# vim error_log
[Sun May 31 03:12:02 2015] [notice] Digest: generating secret for digest authentication ...
[Sun May 31 03:12:02 2015] [notice] Digest: done
[Sun May 31 03:12:02 2015] [warn] ./mod_dnssd.c: No services found to register
[Sun May 31 03:12:02 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun May 31 18:27:45 2015] [error] [client 10.104.104.54] Can't call method "do" on an undefined value at /usr/local/share/perl5/Apache/Ocsinventory/Server/System.pm line 177.\n
[Sun May 31 22:40:01 2015] [error] [client 10.96.180.15] Can't call method "do" on an undefined value at /usr/local/share/perl5/Apache/Ocsinventory/Server/System.pm line 177.\n
[Sun May 31 22:40:47 2015] [error] [client 10.96.180.69] Directory index forbidden by Options directive: /var/www/html/
[Mon Jun 01 18:27:48 2015] [error] [client 10.104.104.54] Can't call method "do" on an undefined value at /usr/local/share/perl5/Apache/Ocsinventory/Server/System.pm line 177.\n
[Mon Jun 01 22:40:01 2015] [error] [client 10.96.180.15] Can't call method "do" on an undefined value at /usr/local/share/perl5/Apache/Ocsinventory/Server/System.pm line 177.\n
[Tue Jun 02 08:48:13 2015] [error] [client 10.99.27.23] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Africa/Khartoum' for 'EAT/3.0/no DST' instead in /usr/share/ocsinventory-reports/ocsreports/require/function_console.php on line 33, referer: http://10.96.180.133/ocsreports/
[Tue Jun 02 08:48:13 2015] [error] [client 10.99.27.23] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Africa/Khartoum' for 'EAT/3.0/no DST' instead in /usr/share/ocsinventory-reports/ocsreports/require/function_console.php on line 34, referer: http://10.96.180.133/ocsreports/
[Tue Jun 02 08:48:13 2015] [error] [client 10.99.27.23] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Africa/Khartoum' for 'EAT/3.0/no DST' instead in /usr/share/ocsinventory-reports/ocsreports/require/function_console.php on line 35, referer: http://10.96.180.133/ocsreports/
[Tue Jun 02 08:48:13 2015] [error] [client 10.99.27.23] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Africa/Khartoum' for 'EAT/3.0/no DST' instead in /usr/share/ocsinventory-reports/ocsreports/require/function_console.php on line 35, referer: http://10.96.180.133/ocsreports/
[Tue Jun 02 08:48:13 2015] [error] [client 10.99.27.23] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Africa/Khartoum' for 'EAT/3.0/no DST' instead in /usr/share/ocsinventory-reports/ocsreports/require/function_console.php on line 35, referer: http://10.96.180.133/ocsreports/
 
Powered by Question2Answer
...