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

Does not record inventory #1611

Open
iRoot13x18 opened this issue Jun 24, 2024 · 3 comments
Open

Does not record inventory #1611

iRoot13x18 opened this issue Jun 24, 2024 · 3 comments

Comments

@iRoot13x18
Copy link

OCS Inventory version
Server : 2.12.1
Agent : 2.10.1.0

Describe the bug
I have two servers, one with ocs inventory server and the other for the mariadb database, when I install ocs inventory and want to test the inventory by installing the agent on a computer it does not register in ocs.

To Reproduce

Steps to reproduce the behavior:

1.Basic installation of ocs inventory server
2.Running an agent on a computer to test the inventory

Expected behavior
I just did this and I'm getting this error, I had tried it before but with the database on the same server as the ocs inventory and it worked perfectly.

Agent Log
COM SERVER => Initializing cURL library for sendRequest
COM SERVER => Using cURL without server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Disabling cURL SSL server validation support
COM SERVER => Sending HTTP Post request to URL https://ocsinventory.domain.com/ocsinventory
COM SERVER => HTTP Post response received <HTTP Status Code #500>
COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #500>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

@gillesdubois
Copy link
Member

Hi,

An error 500 mean there is an issue on the server side (communication server).

Make sure your z-ocsinventory-server.conf point to your mariadb database.
If your apache error log is not detailled enough, you can enable DBI_PRINT_ERROR in the file mentionned above.

Regards,
Gilles DUBOIS.

@iRoot13x18
Copy link
Author

thanks for your answer, in the configuration it is already pointing to the database and still nothing.

@Salbei
Copy link

Salbei commented Jul 8, 2024

I have the same problem with RPM install on Rocky Linux 9.

Server : 2.12.1
Agent : 2.10.1.0

After enable DBI verbosity, I can see that:
DBD::mysql::st execute failed: Table 'ocsweb.software' doesn't exist at /usr/share/perl5/vendor_perl/Apache/Ocsinventory/Server/Inventory/Software.pm line 64.

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

No branches or pull requests

6 participants