DiouxX / docker-glpi

Project to deploy GLPI with docker
239 stars 187 forks source link

GLPI does not show Images and doesn't attache documents #119

Closed robertocpiconi closed 4 months ago

robertocpiconi commented 5 months ago

Hi,

GLPI was working fine, but suddenly it stopped showing images and attachment files. image

image

image

Can you help us?

We already tried to recreate the container and check directory permissions.

Best regards.

DiouxX commented 5 months ago

Hello,

Which GLPI version are you using and which docker image ?

robertocpiconi commented 5 months ago

Hello,

Thanks for your fast response.

Information:

diouxx/glpi             latest      sha256:a37c4e5acf37d3981e48a364ea0132c1b0e5ffb0d4bfff47caf30b45e458ddd0   21cf900de1c9

Error when I try to upload(Copy and Paste) an image. image

And there are no errors when I upload an attachment.

Permissions are set to use www-data as owner and group. image

robertocpiconi commented 4 months ago

Hello.

I've founded the solution.

  1. Connect into GLPI container
  2. Run php bin/console glpi:database:check_schema_integrity
  3. This command will show you multiple tables that is not correct configured.
  4. Fix all table and columns in DB.
  5. Check again inside GLPI container if there is table that still needed to be fixed.
  6. Run php bin/console glpi:migration:unsigned_key

Now you are good to go.