Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Cannot establish communication : 500 Internal Server Error #57

Open
hmunoz opened this issue Jun 10, 2021 · 5 comments
Open

Client Cannot establish communication : 500 Internal Server Error #57

hmunoz opened this issue Jun 10, 2021 · 5 comments

Comments

@hmunoz
Copy link

hmunoz commented Jun 10, 2021

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:

MacBook-Pro-de-Horacio-2021-06-10-09-18-37
PROLOG

[Thu Jun 10 09:49:40 2021][error] Cannot establish communication : 500 Internal Server Error

@hmunoz
Copy link
Author

hmunoz commented Jun 10, 2021

This problem in Linux client and OSX client

@eric-it6
Copy link

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.

@gillesdubois
Copy link
Member

Hey,

Are you using the provided compose or do you connect to an external database ?

Regards,
Gilles.

@eric-it6
Copy link

Hey,

yes we use the compose file, but the containers run behind traefik.

Many greetings
Eric

@sstidl
Copy link

sstidl commented Jun 17, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants