koillection icon indicating copy to clipboard operation
koillection copied to clipboard

Docker Container Remains Unhealthy

Open ItsNoted opened this issue 2 years ago • 4 comments

I'm a bit weary to use the docker image because when I deploy it, I keep getting this error:

[23-Jul-2022 16:42:55] NOTICE: PHP message: PHP Warning: Can't preload already declared class ReflectionEnum in /var/www/koillection/vendor/laminas/laminas-code/polyfill/ReflectionEnumPolyfill.php on line 8

And the docker container remains unhealthy.

I am not sure what is causing this.

ItsNoted avatar Jul 23 '22 16:07 ItsNoted

I'll have a look into why the container appears unhealthy.

But otherwise this message can be safely ignored, it's only informative (preloading is a way to make some PHP code faster, its not a problem if something is skipped, it's optional)

benjaminjonard avatar Jul 23 '22 17:07 benjaminjonard

I published a new version of the docker image that fixes the problem.

I made a mistake when updating the image last week. In an effort to make the image as lightweight as possible I uninstalled some dependencies from the image and I removed curl, forgetting it was necessary for performing the healthcheck

benjaminjonard avatar Jul 23 '22 18:07 benjaminjonard

I am still seeing the same error [28-Jul-2022 20:44:44] NOTICE: PHP message: PHP Warning: Can't preload already declared class ReflectionEnum in /var/www/koillection/vendor/laminas/laminas-code/polyfill/ReflectionEnumPolyfill.php on line 8 I have thrown the latest flag and still looks to be present. I can then still hit the webUI but when I go to create the initial user and I hit submit I receive the following error. The CSRF token is invalid. Please try to resubmit the form.

dafaras avatar Jul 28 '22 20:07 dafaras

Hello, this two problems are unrelated, could you have a look at this issue #341 ?

benjaminjonard avatar Jul 28 '22 21:07 benjaminjonard

Latest Docker images should fix the unhealthy container. Closing for now but don't hesitate to reopen if the problem persists.

benjaminjonard avatar Jun 07 '23 14:06 benjaminjonard