Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
klabacita opened this issue Aug 1, 2021 · 6 comments
Closed

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

klabacita opened this issue Aug 1, 2021 · 6 comments

Comments

@klabacita
Copy link

klabacita commented Aug 1, 2021

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
Copy link

firemdkfighter commented Aug 2, 2021

Hi. Try execute:

/bin/php /usr/share/ocsinventory-reports/ocsreports/crontab/cron_all_software.php

@klabacita
Copy link
Author

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
Copy link

firemdkfighter commented Aug 9, 2021

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

@klabacita
Copy link
Author

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
Copy link
Author

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
Copy link
Member

Hi,

I close this issue.

Regards,
Charlene

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants