Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.6 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

<HTTP Status Code #404>

Hello,

I've set an OCS server up on our network, but no information is uploaded to the server's db. Each time the agent launchs, I get a 404 HTTP error. I've seen this issue a lot over differents forums but I couldn't figure how to fix it.

So I'm running the 2.1.2 OCS server on a 14.04LTS Ubuntu .

My ocsinventory.ini on our clients : 

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=2
Local=
NoSoftware=1
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://192.168.0.200/ocsinventory
SSL=0
CaBundle=cacert.pem
AuthRequired=1
User=YDH5T5U8W2P28dtVDuO7fQ==|||fh/gKLdX5+kz2OXfypbmsQ==
Pwd=YOmkBb/pNpyhI6s/alEQoQ==|||1aGr+WTzpHydMoJPzdX3SA==
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=0
PROLOG_FREQ=10
OLD_PROLOG_FREQ=10

OCSInventory.log 

==============================================================================
Starting OCS Inventory NG Agent on Tuesday, July 07, 2015 11:35:07.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.1
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.1
AGENT => Loading plug-in(s)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
    DLL PLUGIN => 0 DLL Plug-in(s) succesfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
    COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
    AGENT => Sending getLabel request
    COM SERVER => Initializing cURL library for getFile
    COM SERVER => Using cURL with server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Disabling cURL SSL server validation support
    COM SERVER => Sending fileGet request to URL <http://192.168.0.200/ocsinventory/deploy/label>
    COM SERVER => fileGet response received <HTTP Status Code #404>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <HTTP Status Code #404>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <POR-TBLONDY-2015-06-16-16-30-11> and MACs <00:26:6C:88:70:FE4C:ED:DE:11:6D:D708:00:27:00:C0:344C:ED:DE:11:6D:D7> in file <ocsinventory.dat>
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL with server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Disabling cURL SSL server validation support
    COM SERVER => Sending HTTP Post request to URL <http://192.168.0.200/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #404>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.

I've been trying to figure it our for 2 days now, but my linux skills are a bit rusty so maybe I'm missing the obvious there? 

in OCS Inventory NG server for Unix by (120 points)

2 Answers

0 votes

Hi,

  1. Have you error in error.log file of Apache?
  2. Is the user declared on Apache?
  3. Is mod_perl enabled in apache?

Regards

Frank

by (70.7k points)
0 votes

hi,

Try to access http://yourocsIP/ocsinventory . If the result show 400 bad request => your mod perl are configured ok.

Then move these files:

#mv /etc/apache2/conf-available/ocsinventory-reports.conf /etc/apache2/sites-enabled/

#mv /etc/apache2/conf-available/z-ocsinventory-server.conf /etc/apache2/sites-enabled/

Restart apache2 service

# /etc/init.d/apache2 restart

Hope it help!

by (380 points)
 
Powered by Question2Answer
...