OCSInventory-NG / OCSInventory-Server

Communication server of OCS Inventory
http://www.ocsinventory-ng.org/
GNU General Public License v2.0
352 stars 140 forks source link

Cannot display all sofware from Inventory -> All Software. #345

Closed klabacita closed 3 years ago

klabacita commented 3 years ago

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : Linux Ubuntu 20.04.2 LTS

Server informations

Perl version : 5.30 Mysql / Mariadb / Percona version : MariaDB 10.3.30

OCS Inventory informations

Ocs server version : 2.9.1

Problem's description

If I try to display from the menu Inventory -> All Software I get nothing. If I chose any client I can see the software of each one. Don't know if this has a relation with the Dashboard which show 0 in the field software. Something I need to setup first?

Regards!!!

firemdkfighter commented 3 years ago

Hi. Try execute:

/bin/php /usr/share/ocsinventory-reports/ocsreports/crontab/cron_all_software.php
klabacita commented 3 years ago

Hi firemdkfighter.

Thanks for your answer.

The first time I run this command I got a error, but forget to copy here.

Latter I move to the directory where crontab_all_software.php exist and repeat the command.

root@bos-ocsserver:/usr/share/ocsinventory-reports/ocsreports/crontab# /bin/php ./cron_all_software.php Please wait, software processing is in progress. It could take a few minutes ...

Now I can see the software, Do I have to manually run this command every N time?

Thanks again!!!

firemdkfighter commented 3 years ago

I'm find this solution into https://github.com/OCSInventory-NG/OCSInventory-Server/issues/343, and i'm add run script to crontab

klabacita commented 3 years ago

Here is the error if we run the command:

/bin/php /usr/share/ocsinventory-reports/ocsreports/crontab/cron_all_software.php PHP Warning: require_once(../var.php): failed to open stream: No such file or directory in /usr/share/ocsinventory-reports/ocsreports/crontab/cron_all_software.php on line 3 PHP Fatal error: require_once(): Failed opening required '../var.php' (include_path='.:/usr/share/php') in /usr/share/ocsinventory-reports/ocsreports/crontab/cron_all_software.php on line 3

The path is right.

I have to move to the directory ../crontab and run the command and will work.

Just to update this issue, thanks!!!

klabacita commented 3 years ago

I'm find this solution into #343, and i'm add run script to crontab

Got it, I will follow the instructions, thanks again budy!!!

charleneauger commented 3 years ago

Hi,

I close this issue.

Regards, Charlene