tobybatch / kimai2

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

[FEATURE] Upgrade to the newest kimai 2.0.22 version (official release) #507

Closed bykof closed 1 year ago

bykof commented 1 year ago

Nothing to explain :D Kimai was officially released in 2.0.22

kevinpapst commented 1 year ago

The auto-build trigger failed on my side: https://github.com/kimai/kimai/actions/runs/5031770066 🤷 Will try again with the next release.

Not sure if @tobybatch has to do anything else for 2.x ?

chrisonline commented 1 year ago

Same here. Want to upgrade :-) Any news about this?

kevinpapst commented 1 year ago

I just released 2.0.23 but that trigger did not do anything here: https://github.com/kimai/kimai/actions/runs/5046689277/jobs/9052560255

Probably @tobybatch deactivated builds to prevent that invalid builds spread into the wild: https://github.com/tobybatch/kimai2/blob/main/.github/workflows/kimai-release.yml#L4

tobybatch commented 1 year ago

I'm on it. New release coming ASAP

tobybatch commented 1 year ago

Just triggered a v2 build. I'll keep it manual for now. We'll turn actions back on when I'm happy.

tobybatch commented 1 year ago

Tags are built and pushed, they took ages to build...

Selection_172

I left them building overnight. I'll try and check ASAP but I'm at work today. Quick look seems good:

tobias@tobias:~$ docker run -ti --entrypoint bash kimai/kimai2:fpm-2.0.23-dev
52913cb888d1:/var/www/html# cd /opt/kimai/
52913cb888d1:/opt/kimai# ./bin/console kimai:version
Kimai 2.0.23 by Kevin Papst.
52913cb888d1:/opt/kimai# 
kevinpapst commented 1 year ago

So we are now waiting for feedback, e.g. from @chrisonline or @bykof ?

tobybatch commented 1 year ago

Yes.

kimai/kimai2:fpm-dev is pulling and running the FPM dev image and I get the login screen when using https://github.com/tobybatch/kimai2/blob/main/docker-compose.yml

namelivia commented 1 year ago

I tested it briefly and it worked for me, created a new user, logged in and clicked around a bit, started projects, and activities, and tracked some time using kimai/kimai2:fpm-2.0.23-prod

chrisonline commented 1 year ago

Just updated and it is working so far with "kimai/kimai2:fpm"! Thanks!

vpanchal-code commented 1 year ago

I updated as well and it is working so far with "kimai/kimai2"

The steps I took upgrading from 1.30.11 to 2.0.23:

  1. Backed up my database
  2. Remove all my plugins
  3. Removed mapping for local.yaml on my docker compose.
  4. Stopped and removed kimai container (removed the volumes as well)
  5. Started the kimai container with the new image
  6. Ran the following commands:
    docker exec --user root kimai chown -R www-data:www-data /opt/kimai/var
    docker exec kimai /opt/kimai/bin/console kimai:update
    docker exec -ti kimai /opt/kimai/bin/console kimai:reload --env=prod

I did receive the following message in the log when I reloaded the cache:

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 69632 bytes) in /opt/kimai/vendor/twig/twig/src/TokenStream.php on line 41
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /opt/kimai/vendor/symfony/var-dumper/Dumper/CliDumper.php on line 480

Regardless the error, I was able to log in and create new time entries. Still testing other functionality.

vpanchal-code commented 1 year ago

I was able to resolve the memory size error by adding in the - memory_limit=256M as an environment value in my docker compose.