tobybatch / kimai2

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

[BUG] 500 internal server error with apache-1.30.11-prod #498

Closed klangborste closed 1 year ago

klangborste commented 1 year ago

Describe the bug After the last update from the kimai apache image with the tag "apache2" and the image name "kimai/kimai2:apache" I get again an 500 internal server error. After a rollback to the container image https://hub.docker.com/layers/kimai/kimai2/apache-1.30.6-prod/images/sha256-aeda8a97c08e2a04e27a0d9277215f4061dd27c92daccb337cb9ae171adc8694?context=explore it works fine again.

To Reproduce Steps to reproduce the behaviour:

  1. Update to apache-1.30.11-prod
  2. Open Kimai UI web interface
  3. See the error from screenshot: image

Server

Command used to run the container

Docker compose file (with passwords redacted)

# Kimai - Time Tracking
  kimai:
    container_name: kimai
    image: kimai/kimai2:apache
    #image: kimai/kimai2:apache-1.30.11-prod
    restart: always
    networks:
      - kimai_net
    volumes:
      - $DOCKERDIR/kimai/templates:/opt/kimai/var/invoices
    ports:
      - "8001:8001"
    depends_on:
        - kimai-mariadb
    environment:
      - DATABASE_URL=$DB_STRING
      - TRUSTED_HOSTS=$TRUSTED_HOSTS

Additional context Perhaps it belongs to the ticket what I had already set once: https://github.com/kimai/kimai/issues/3788

klangborste commented 1 year ago

docker logs show not really something helpful for diagnosis and also internally I was not able to find a place where the logs from apache are expected.

tobybatch commented 1 year ago

There is a fix on the way for this but for now

docker exec -ti CONTAINER_NAME chown -R www-kimai /opt/kimai/var
klangborste commented 1 year ago

Thanks for the super fast reply.

For me an docker exec -ti kimai chown -R www-kimai: /opt/kimai/var docker exec -ti kimai apachectl -k restart still fails with 500 internal error.

tobybatch commented 1 year ago

New images are now built and pushed (including multiarch). I'll close this for now, please open a new ticket if issues persist.

klangborste commented 1 year ago

kimai2:apache is running fine again, thanks!