Solved

OCS Inventory NG Agent HTTP Status Code 500

Posted on 2016-08-16
5
325 Views
Last Modified: 2016-08-21
Hello,

I recently implemented OCS and can't seem to get the windows agent to communicate with the OCS server.

optional server credentials
I installed OCS on a windows server 2008 r2 box. At the step where I asked for credentials(optional) I have entered all the credentials i have documented. Yet below is the output of the ocsinventory.log file

Starting OCS Inventory NG Agent on Tuesday, August 16, 2016 12:50:08.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.3>
AGENT => Sending Prolog
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.


I have also left the credentials prompt blank. What credentials am I suppose to use here?

I have used the mysql root, web ui user/pass, and ocs db user and password with no luck.

lastly, I modified the ocsinventory.ini file as recommended on their wiki documentation:

Solution: OCS engine can't comunicate with mysql server. Probably due to a wrong mysql account. You have to check z-ocsinventory-server.conf (ocsinventory-server.conf on Windows Server), exactly theses few lines
# Master Database settings
  # Replace localhost by hostname or ip of MySQL server for WRITE
  PerlSetEnv OCS_DB_HOST localhost
  # Replace 3306 by port where running MySQL server, generally 3306
  PerlSetEnv OCS_DB_PORT 3306
  # Name of database
  PerlSetEnv OCS_DB_NAME ocsweb
  PerlSetEnv OCS_DB_LOCAL ocsweb
  # User allowed to connect to database
  PerlSetEnv OCS_DB_USER ocs
  # Password for user
  PerlSetVar OCS_DB_PWD ocs

Modify OCS_DB_USER and OCS_DB_PWD with your own account, restart apache, and finaly launch an inventory.
--


Thanks in advance

t
0
Comment
Question by:tobe1424
  • 3
  • 2
5 Comments
 
LVL 14

Expert Comment

by:Kaffiend
ID: 41758375
Are you using a port other than port 80?  I see that you did not specify a non-default port in the server URL
0
 

Author Comment

by:tobe1424
ID: 41758381
using port 80

the image above is a screenshot with the default values. My values look something like..

http://10.30.10.16/ocsinventory

also, I have disabled the firewall on my server.
0
 
LVL 14

Assisted Solution

by:Kaffiend
Kaffiend earned 500 total points
ID: 41758480
Http 500 is a generic error, so that doesn't help much.

Do you see anything in Apache logs?  Also, is the ocs-ng web console working?
0
 

Accepted Solution

by:
tobe1424 earned 0 total points
ID: 41758648
I looked at the ocsinvenroty-server.conf file in the apache logs. not sure if it was the same one i modified or a different one - perhaps the same. but i changed the the mysql ocsweb password and it all works now.

thanks
0
 

Author Closing Comment

by:tobe1424
ID: 41764181
found the issue.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Note: This is the second blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   Every month t…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question