Solved

OCS Inventory NG Agent HTTP Status Code 500

Posted on 2016-08-16
5
107 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

706 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now