Solved

OCS Inventory NG Agent HTTP Status Code 500

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
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…

863 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

24 Experts available now in Live!

Get 1:1 Help Now