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.4 available

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

HTTP STATUS CODE #404

Hello everyone, 

I'm trying to install a new OCS server for my company but a have some problems.

I installed a Unix Server 2.3.1 in a CentOS, here is my server information.

Software

  • PHP Version :
  • Web Server :
  • Database Server :
  • Version OCSReports:
  • 5.4.16
  • Apache/2.4.6 (CentOS) PHP/5.4.16
  • MySQL Community Server (GPL) version 5.6.38
  • 2.3.1

No problems to come here, but when i try to connect a client with the server i get this problem:

Starting OCS Inventory NG Agent on Tuesday, November 28, 2017 11:34:39.

AGENT => Running OCS Inventory NG Agent Version 2.3.1.1

AGENT => Using OCS Inventory NG FrameWork Version 2.3.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) successfully 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.3.1.1>

AGENT => Sending Prolog

DID_CHECK => Read DeviceID <XXXXX 2017-11-27-14-38-30> and MACs <XXXXX> 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://XXX.XX.XX.XX/ocsinventory>

COM SERVER => HTTP Post response received <HTTP Status Code #404>

COM SERVER => Cleaning cURL library

ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:00:00.

I try to read about this error but no solution work for me.

This is my apache log:


[Tue Nov 28 12:05:02.135486 2017] [:error] [pid 20380] [client 172.25.18.12:6
3923] PHP Warning:  mysqli_connect(): Headers and client library minor versio
n mismatch. Headers:50556 Library:50638 in /usr/share/ocsinventory-reports/oc
sreports/require/function_commun.php on line 160, referer: http://172.25.17.4
7/ocsreports/index.php?function=debug&head=1
[Tue Nov 28 12:05:02.138384 2017] [:error] [pid 20380] [client 172.25.18.12:6
3923] PHP Warning:  mysqli_connect(): Headers and client library minor versio
n mismatch. Headers:50556 Library:50638 in /usr/share/ocsinventory-reports/oc
sreports/require/function_commun.php on line 160, referer: http://172.25.17.4
7/ocsreports/index.php?function=debug&head=1
[Tue Nov 28 12:09:29.816905 2017] [mpm_prefork:notice] [pid 20375] AH00171: G
raceful restart requested, doing restart
[Tue Nov 28 12:09:29.946414 2017] [alias:warn] [pid 20375] AH00671: The Alias
 directive in /etc/httpd/conf.d/ocsinventory-reports.conf at line 23 will pro
bably never match because it overlaps an earlier Alias.
[Tue Nov 28 12:09:29.946445 2017] [alias:warn] [pid 20375] AH00671: The Alias
 directive in /etc/httpd/conf.d/ocsinventory-reports.conf at line 102 will pr
obably never match because it overlaps an earlier Alias.
[Tue Nov 28 12:09:29.946451 2017] [alias:warn] [pid 20375] AH00671: The Alias
 directive in /etc/httpd/conf.d/ocsinventory-reports.conf at line 120 will pr
obably never match because it overlaps an earlier Alias.
[Tue Nov 28 12:09:29.946783 2017] [auth_digest:notice] [pid 20375] AH01757: g
enerating secret for digest authentication ...
[Tue Nov 28 12:09:29.947525 2017] [lbmethod_heartbeat:notice] [pid 20375] AH0
2282: No slotmem from mod_heartmonitor
[Tue Nov 28 12:09:29.963328 2017] [mpm_prefork:notice] [pid 20375] AH00163: A
pache/2.4.6 (CentOS) PHP/5.4.16 configured -- resuming normal operations
[Tue Nov 28 12:09:29.963340 2017] [core:notice] [pid 20375] AH00094: Command
line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Nov 28 12:09:49.400414 2017] [mpm_prefork:notice] [pid 20375] AH00170: c
aught SIGWINCH, shutting down gracefully
[Tue Nov 28 12:09:50.490253 2017] [suexec:notice] [pid 20592] AH01232: suEXEC
 mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Nov 28 12:09:50.531537 2017] [alias:warn] [pid 20592] AH00671: The Alias
 directive in /etc/httpd/conf.d/ocsinventory-reports.conf at line 23 will pro
bably never match because it overlaps an earlier Alias.
[Tue Nov 28 12:09:50.531578 2017] [alias:warn] [pid 20592] AH00671: The Alias
 directive in /etc/httpd/conf.d/ocsinventory-reports.conf at line 102 will pr
obably never match because it overlaps an earlier Alias.
[Tue Nov 28 12:09:50.531586 2017] [alias:warn] [pid 20592] AH00671: The Alias
 directive in /etc/httpd/conf.d/ocsinventory-reports.conf at line 120 will pr
obably never match because it overlaps an earlier Alias.
[Tue Nov 28 12:09:50.532011 2017] [auth_digest:notice] [pid 20592] AH01757: g
enerating secret for digest authentication ...
[Tue Nov 28 12:09:50.533131 2017] [lbmethod_heartbeat:notice] [pid 20592] AH0
2282: No slotmem from mod_heartmonitor
[Tue Nov 28 12:09:50.560165 2017] [mpm_prefork:notice] [pid 20592] AH00163: A
pache/2.4.6 (CentOS) PHP/5.4.16 configured -- resuming normal operations
[Tue Nov 28 12:09:50.560190 2017] [core:notice] [pid 20592] AH00094: Command
line: '/usr/sbin/httpd -D FOREGROUND'

I'm only trying with one client(172.25.18.32), but the IP is not the same like the apache log (172.25.18.12)

Any idea to solved it?

Thanks.

asked Nov 28 in OCS Inventory NG server for Unix by evila (240 points)

6 Answers

0 votes
Hi,

Is mod_perl module installed and activated?

Regards

Frank
answered Nov 28 by frankb (52,090 points)
0 votes

Hi,

Thanks for your quick answer

i dont have installed mod_perl, i just installed but now i have other problem when i try to start httpd service.

I follow this manual to install perl_mod

https://server-world.info/en/note?os=CentOS_7&p=httpd&f=18

Nov 29 11:54:18 mur-srv-ocs2 polkitd[601]: Registered Authentication Agent for unix-process:21781:17154997 (system bus name :1.171 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgen
Nov 29 11:54:18 mur-srv-ocs2 systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Nov 29 11:54:18 mur-srv-ocs2 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Nov 29 11:54:18 mur-srv-ocs2 kill[21788]: kill: cannot find process ""
Nov 29 11:54:18 mur-srv-ocs2 systemd[1]: httpd.service: control process exited, code=exited status=1
Nov 29 11:54:18 mur-srv-ocs2 systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Nov 29 11:54:18 mur-srv-ocs2 systemd[1]: Unit httpd.service entered failed state.
Nov 29 11:54:18 mur-srv-ocs2 systemd[1]: httpd.service failed.
Nov 29 11:54:18 mur-srv-ocs2 polkitd[601]: Unregistered Authentication Agent for unix-process:21781:17154997 (system bus name :1.171, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus

answered Nov 29 by evila (240 points)
0 votes
Hi,

Edit error_log apache file to find the error.

I suggest you to let perl.conf file with default values and restart httpd.

Regards

Frank
answered Nov 30 by frankb (52,090 points)
0 votes

Hi,

i edited a perl.conf and now is default, but de apache not start.

Here is de log:

[Thu Nov 30 12:19:59.048304 2017] [perl:error] [pid 22811] Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 2) line 2.\n
[Thu Nov 30 12:19:59.048431 2017] [perl:error] [pid 22811] Can't load Perl module Apache::DBI for server 172.25.17.47:80, exiting...

apache::dbi is installed.

cpan[1]> install Apache::DBI
Reading '/root/.cpan/Metadata'
  Database was generated on Thu, 30 Nov 2017 08:17:02 GMT
Apache::DBI is up to date (1.12).

answered Nov 30 by evila (240 points)
0 votes
Hi,

On CentOS just run yum install perl-Apache-DBI to install this module. Is perl-DBI module also installed?

Regards

Frank
answered Dec 1 by frankb (52,090 points)
0 votes

Hi, 

I have problems when i try to install perl-apache-dbi

yum install perl-Apache-DBI
Loaded plugins: fastestmirror
base                                                     | 3.6 kB     00:00
epel/x86_64/metalink                                     |  25 kB     00:00
extras                                                   | 3.4 kB     00:00
mysql-connectors-community                               | 2.5 kB     00:00
mysql-tools-community                                    | 2.5 kB     00:00
mysql56-community                                        | 2.5 kB     00:00
updates                                                  | 3.4 kB     00:00
Loading mirror speeds from cached hostfile
 * base: mirror.tedra.es
 * epel: mirror.netsite.dk
 * extras: mirror.tedra.es
 * updates: mirror.tedra.es
No package perl-Apache-DBI available.
Error: Nothing to do

And perl-dbi is already installed.

 yum install perl-DBI
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.tedra.es
 * epel: mirrors.neterra.net
 * extras: mirror.tedra.es
 * updates: mirror.tedra.es
Package perl-DBI-1.627-4.el7.x86_64 already installed and latest version
Nothing to do

answered Dec 1 by evila (240 points)
 
Powered by Question2Answer
...