tobybatch / kimai2

Docker containers for the kimai2 web application including docker-compose and kubernetes/helm deployment.
MIT License
181 stars 96 forks source link

Fail to deploy kimai/kimai2:apache-1.15.1-prod #295

Closed csageder closed 3 years ago

csageder commented 3 years ago

Describe the bug When starting a docker container with the tag: kimai/kimai2:apache-1.15.1-prod there are several errors in the log. With kimai/kimai2:apache-1.14.3-prod there are no issues at all

To Reproduce Steps to reproduce the behaviour:

  1. Start the container 'kimai/kimai2:apache-1.15.1-prod'
  2. Check log

Desktop (please complete the following information):

Additional context Part of the log file.

PHP Warning:  include_once(/opt/kimai/vendor/gedmo/doctrine-extensions/lib/Gedmo/Mapping/MappedEventSubscriber.php): Failed to open stream: No such file or directory in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getTimestampableListenerService.php on line 10
PHP Warning:  include_once(): Failed opening '/opt/kimai/vendor/gedmo/doctrine-extensions/lib/Gedmo/Mapping/MappedEventSubscriber.php' for inclusion (include_path='.:/usr/local/lib/php') in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getTimestampableListenerService.php on line 10
PHP Warning:  include_once(/opt/kimai/vendor/gedmo/doctrine-extensions/lib/Gedmo/AbstractTrackingListener.php): Failed to open stream: No such file or directory in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getTimestampableListenerService.php on line 11
PHP Warning:  include_once(): Failed opening '/opt/kimai/vendor/gedmo/doctrine-extensions/lib/Gedmo/AbstractTrackingListener.php' for inclusion (include_path='.:/usr/local/lib/php') in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getTimestampableListenerService.php on line 11
PHP Warning:  include_once(/opt/kimai/vendor/gedmo/doctrine-extensions/lib/Gedmo/Timestampable/TimestampableListener.php): Failed to open stream: No such file or directory in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getTimestampableListenerService.php on line 12
PHP Warning:  include_once(): Failed opening '/opt/kimai/vendor/gedmo/doctrine-extensions/lib/Gedmo/Timestampable/TimestampableListener.php' for inclusion (include_path='.:/usr/local/lib/php') in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getTimestampableListenerService.php on line 12
PHP Warning:  include_once(/opt/kimai/vendor/kimai/user-bundle/Doctrine/UserListener.php): Failed to open stream: No such file or directory in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getFosUser_UserListenerService.php on line 10
PHP Warning:  include_once(): Failed opening '/opt/kimai/vendor/kimai/user-bundle/Doctrine/UserListener.php' for inclusion (include_path='.:/usr/local/lib/php') in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getFosUser_UserListenerService.php on line 10
PHP Warning:  include_once(/opt/kimai/src/Twig/AvatarExtension.php): Failed to open stream: No such file or directory in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getTwigService.php on line 28
PHP Warning:  include_once(): Failed opening '/opt/kimai/src/Twig/AvatarExtension.php' for inclusion (include_path='.:/usr/local/lib/php') in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getTwigService.php on line 28
PHP Warning:  include_once(/opt/kimai/src/Utils/AvatarService.php): Failed to open stream: No such file or directory in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getTwigService.php on line 29
PHP Warning:  include_once(): Failed opening '/opt/kimai/src/Utils/AvatarService.php' for inclusion (include_path='.:/usr/local/lib/php') in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getTwigService.php on line 29
PHP Warning:  include_once(/opt/kimai/src/Twig/ConfigExtension.php): Failed to open stream: No such file or directory in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getTwigService.php on line 30
PHP Warning:  include_once(): Failed opening '/opt/kimai/src/Twig/ConfigExtension.php' for inclusion (include_path='.:/usr/local/lib/php') in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getTwigService.php on line 30
PHP Warning:  include_once(/opt/kimai/src/Twig/TitleExtension.php): Failed to open stream: No such file or directory in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getTwigService.php on line 36
PHP Warning:  include_once(): Failed opening '/opt/kimai/src/Twig/TitleExtension.php' for inclusion (include_path='.:/usr/local/lib/php') in /opt/kimai/var/cache/prod/ContainerEmhj52Q/getTwigService.php on line 36

 [WARNING] Some commands could not be registered:                               

In srcApp_KernelProdContainer.php line 1863:

  Class "FOS\UserBundle\Validator\Initializer" not found  

In FileLoader.php line 38:

  The mapping file "/opt/kimai/vendor/kimai/user-bundle/Resources/config/vali  
  dation.xml" does not exist.                                                  

In FileLoader.php line 38:

  The mapping file "/opt/kimai/vendor/kimai/user-bundle/Resources/config/vali  
  dation.xml" does not exist.                                                  

In FilesystemLoader.php line 92:

  The "/opt/kimai/templates/bundles/FOSUserBundle" directory does not exist (  
  "/opt/kimai/templates/bundles/FOSUserBundle").                               

In FileLoader.php line 38:

  The mapping file "/opt/kimai/vendor/kimai/user-bundle/Resources/config/vali  
  dation.xml" does not exist.                                                  

 [WARNING] Some commands could not be registered:                               

In srcApp_KernelProdContainer.php line 1863:

  Class "FOS\UserBundle\Validator\Initializer" not found  

In FileLoader.php line 38:

  The mapping file "/opt/kimai/vendor/kimai/user-bundle/Resources/config/vali  
  dation.xml" does not exist.                                                  

...
kevinpapst commented 3 years ago

Read this: https://github.com/tobybatch/kimai2/issues/293

csageder commented 3 years ago

Thanks, deleting the cache solved it