OCSInventory-Docker-Image
OCSInventory-Docker-Image copied to clipboard
Client Cannot establish communication : 500 Internal Server Error
Client Cannot establish communication, this is a logs:
[Thu Jun 10 09:49:31 2021][error] Cannot establish communication : 500 Internal Server Error [Thu Jun 10 09:49:40 2021][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.6.1 [Thu Jun 10 09:49:40 2021][debug] Log system initialised (File) [Thu Jun 10 09:49:40 2021][debug] --scan-homedirs missing. Don't scan user directories [Thu Jun 10 09:49:40 2021][debug] Accountinfo file: /var/lib/ocsinventory-agent/https:__gestionti......_ocsinventory/ocsinv.adm [Thu Jun 10 09:49:40 2021][debug] OCS Agent initialised [Thu Jun 10 09:49:40 2021][debug] Failed to load `/etc/ocsinventory-agent/modules.conf': 0 [Thu Jun 10 09:49:40 2021][debug] No modules will be used. [Thu Jun 10 09:49:40 2021][debug] Compress::Zlib is not available! The data will be compressed with gzip instead but won't be accepted by server prior 1.02 [Thu Jun 10 09:49:40 2021][debug] sending XML [Thu Jun 10 09:49:40 2021][debug] sending: <REQUEST> <DEVICEID>MacBook-Pro-de-Horacio-2021-06-10-09-18-37</DEVICEID> <QUERY>PROLOG</QUERY> </REQUEST> [Thu Jun 10 09:49:40 2021][error] Cannot establish communication : 500 Internal Server Error
This problem in Linux client and OSX client
General informations
Docker host's operating system : Ubuntu 20.04
Docker informations
OCS Image version: 2.9 MySQL Image version: 5.7
We have the same problem. With version 2.8.1 everything works fine.
In the DB-Container following message appears:
2021-06-15T14:17:19.293544Z 27923 [Note] Aborted connection 27923 to db: 'ocsweb' user: 'ocs' host: '10.0.5.18' (Got an error reading communication packets)
After some research, I came across on this: https://dba.stackexchange.com/questions/19135/mysql-error-reading-communication-packets Maybe the problem is not the OCS enviroment. In our surrounding this error would make sense, because the connection drops only after some time.
Perhaps it will help you.
Hey,
Are you using the provided compose or do you connect to an external database ?
Regards, Gilles.
Hey,
yes we use the compose file, but the containers run behind traefik.
Many greetings Eric
see my issue #59
try to not mount the /usr/share part in compose file
or try to remove var.php
i had 500 error and found that a table was missing. and this was because the update process of the database wasnt executed.