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

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

Android Agent Http communication Error code 500


I have Http communication Error code 500 at Android Agent 2.3.1 and 2.7

This is th server 

  • PHP Version :              8.1.13
  • Web Server :               Apache/2.4.54 (Debian)
  • Database Server :       Debian 11 version 10.5.15-MariaDB-0+deb11u1
  • Version OCSReports:  2.11.1

Apache service:

● apache2.service - The Apache HTTP Server

     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)

     Active: active (running) since Wed 2022-12-14 17:22:55 EST; 27min ago

       Docs: https://httpd.apache.org/docs/2.4/

    Process: 314520 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)

   Main PID: 314524 (/usr/sbin/apach)

      Tasks: 8 (limit: 1088)

     Memory: 105.0M

        CPU: 1.707s

     CGroup: /system.slice/apache2.service

             ├─314524 /usr/sbin/apache2 -k start

             ├─314525 /usr/sbin/apache2 -k start

             ├─314526 /usr/sbin/apache2 -k start

             ├─314527 /usr/sbin/apache2 -k start

             ├─314528 /usr/sbin/apache2 -k start

             ├─314529 /usr/sbin/apache2 -k start

             ├─314535 /usr/sbin/apache2 -k start

             └─314564 /usr/sbin/apache2 -k start

Dec 14 17:22:55 localhost systemd[1]: Starting The Apache HTTP Server...

Dec 14 17:22:55 localhost systemd[1]: Started The Apache HTTP Server.

There is no error in apache2 service, and I've already installed the SSL certificate just like the official documentation requires, but the error still remains, I'm trying on an Android 10.

I'm on a VPN and there is no problem using Windows' Agent, Linux's Agent and Mac's Agent... but Android's Agent don't pass to the server

I've tried using server URL(I've changed http to nttp to post): 













Checking and unchecking SSL Control option, do you know how to fix it?

Update: 05 january 2023

At OCS' log, there's no error, but in apache2's log there's 1 error:

[Thu Jan 05 12:43:06.385549 2023] [perl:error] [pid 1298] [client] \nnot well-formed (invalid token) at line 76, column 18, byte 2248 at /usr/lib/x86_64-linux-gnu/perl5/5.32/XML/Parser.pm line 187.\nXML::Simple called at /usr/local/share/perl/5.32.1/Apache/Ocsinventory.pm line 220.\n

in OCS Inventory NG agent for Android by (330 points)
retagged by

2 Answers

–1 vote
There is A LOT of threads here with 'Error 500' : please search before asking ...
by (19.2k points)
0 votes
Before asking, I searched this error, but there's no questions about android´s agent http error code 500 who have had been correctly questioned and answered, or if you have the answer, please help me to fix it.
by (330 points)
Powered by Question2Answer