Hello
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):
nttp://local_server_ip/ocsinventory
nttp://local_server_ip:80/ocsinventory
nttp://local_server_ip:443/ocsinventory
nttps://local_server_ip/ocsinventory
nttps://local_server_ip:80/ocsinventory
nttps://local_server_ip:443/ocsinventory
nttp://VPN_server_ip/ocsinventory
nttp://VPN_server_ip:80/ocsinventory
nttp://VPN_server_ip:443/ocsinventory
nttps://VPN_server_ip/ocsinventory
nttps://VPN_server_ip:80/ocsinventory
nttps://VPN_server_ip:443/ocsinventory
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 10.0.10.14:56638] \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