DiouxX / docker-glpi

Project to deploy GLPI with docker
222 stars 185 forks source link

Image Version 9.4.6 #27

Closed omontigny closed 4 years ago

omontigny commented 4 years ago

Good Morning Diouxx

I noticed today that the latest Glpi image you provide has the version number 9.4.6 whereas the latest stable GLPI Official version is 9.4.5 is it normal ?

So I don't know if it is related but I deployed FusionInventory plugin and when I want to execute the tasksheduler task (in automated tasks) , I have a blank page and this error :

Fatal error: Cannot redeclare plugin_fusioninventory_footer() (previously declared in /var/www/html/glpi/plugins/fusioninventory/setup.php:596) in /var/www/html/glpi/plugins/Fusioninventory/setup.php on line 596

I already deleted (remove fusionInventory folder) and re-install the fusionInventory plugin but nothing changed.

For information I am on Mac OS Catalina . I used your exact docker-compose.yml file without volumes for time

Do you have any idea where does it come from please ? Thank you in advance.

Best regards

DiouxX commented 4 years ago

Hi,

For Glpi Version, the latest version is 9.4.6 as on their realease page

For Taskscheduler from fusioninventory plugins, i've testing this morning on a fresh install and i've not your error type.

My install version :

What versions are you using ?

How did you install fusioninventory plugin ?

Can you test with same version that me and give a feedback ?

Best Regards.

omontigny commented 4 years ago

Hi DiouxX

Thank you very much for your quick answer. I am sorry I don't have Debian server. I have an ubuntu 20.04 desktop I will test on it. For the moment I have this config :

My Install version :

To install the plugin :

Capture d’écran 2020-05-14 à 09 27 50 Capture d’écran 2020-05-14 à 09 27 39
DiouxX commented 4 years ago

The only difference, execpt OS version, is that to change the rights. I do it from the host system because there's a volume so there's no need to be inside the container.

diouxx@laptop:~$ sudo chown -R www-data:www-data /var/www/html/glpi/plugins/fusioninventory

See if that solves the problem and try on your Ubuntu 20.04.

If it doesn't solve it, it's because the problem is probably at the plugin level and, unfortunately, i can't help for that.

omontigny commented 4 years ago

Hi DiouxX

I don't have this www-data:www-data user and group on my local host. But it is Exactly a problem with my volume rights because without the volume the action is working fine .... I really don't understand why ? I know that MacOs recently add new restrictions in Catalina with Filesystem rights ... I continue digging .... Thank you anyway

DiouxX commented 4 years ago

I'm glad we found a solution.

Even though the rights issue on the Mac is still there. I haven't a Mac so i can't help you with that either.

But if you figure it out, you can give me a feedback. It will be for my general knowledge ;)

omontigny commented 4 years ago

It worked also with named volume (which is inside Docker System - so don't really know exactly where it is) . I think It's really un problem with the path I used for my local volume. anyway I solved with named-volume but I had to do a

docker cp fusioninventory-9.4+2.4.tar.bz2 <CONTAINER_ID>:/var/www/html/glpi/plugins/ and go inside the container to untar the plugin and change the ownership docker exec -ti <CONTAINER_ID> /bin/bash

 #GLPI Container
  glpi:
    image: diouxx/glpi:latest
    container_name : glpi
    hostname: glpi
    ports:
      - "8282:80"
    volumes:
      - glpi:/var/www/html/glpi
    environment:
      - TIMEZONE=${TZ}
    restart: always

volumes:
  glpi: