Closed swoop124 closed 1 year ago
You're running out of memory/thread
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /opt/kimai/vendor/twig/twig/src/Node/PrintNode.php on line 27
Are you running with a lot of plugins?
You can up the memory limit at run time using:
-e memory_limit=512
or
environment:
- memory_limit=512
Hello tobybatch,
no Plugins installed, according to Plugins Tab.
thanks for the memmory advice, now this message is gon, but the problem is now a 500 internal server error:
root@docker3:/daten/docker/kimai2# docker-compose up -d && docker-compose logs -f
[+] Running 5/5
⠿ Network kimai2_default Created 0.2s
⠿ Container kimai2-sqldb-1 Started 15.2s
⠿ Container kimai2-kimai-1 Started 15.8s
⠿ Container kimai2-postfix-1 Started 15.0s
⠿ Container kimai2-nginx-1 Started 8.4s
kimai2-postfix-1 | find: `/etc/postfix/certs': No such file or directory
kimai2-sqldb-1 | 2023-02-10 23:20:17+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.41-1.el7 started.
kimai2-postfix-1 | find: `/etc/opendkim/domainkeys': No such file or directory
kimai2-postfix-1 | 2023-02-10 23:20:17,624 CRIT Supervisor running as root (no user in config file)
kimai2-postfix-1 | 2023-02-10 23:20:17,624 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
kimai2-postfix-1 | 2023-02-10 23:20:17,643 INFO RPC interface 'supervisor' initialized
kimai2-postfix-1 | 2023-02-10 23:20:17,643 CRIT Server 'unix_http_server' running without any HTTP authentication checking
kimai2-postfix-1 | 2023-02-10 23:20:17,643 INFO supervisord started with pid 24
kimai2-sqldb-1 | 2023-02-10 23:20:17+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
kimai2-sqldb-1 | 2023-02-10 23:20:17+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.41-1.el7 started.
kimai2-sqldb-1 | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
kimai2-sqldb-1 | 2023-02-10T23:20:17.684360Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
kimai2-sqldb-1 | 2023-02-10T23:20:17.685270Z 0 [Note] mysqld (mysqld 5.7.41) starting as process 1 ...
kimai2-sqldb-1 | 2023-02-10T23:20:17.707333Z 0 [Note] InnoDB: PUNCH HOLE support available
kimai2-sqldb-1 | 2023-02-10T23:20:17.707356Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
kimai2-sqldb-1 | 2023-02-10T23:20:17.707359Z 0 [Note] InnoDB: Uses event mutexes
kimai2-sqldb-1 | 2023-02-10T23:20:17.707361Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
kimai2-sqldb-1 | 2023-02-10T23:20:17.707363Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.12
kimai2-sqldb-1 | 2023-02-10T23:20:17.707366Z 0 [Note] InnoDB: Using Linux native AIO
kimai2-sqldb-1 | 2023-02-10T23:20:17.707517Z 0 [Note] InnoDB: Number of pools: 1
kimai2-sqldb-1 | 2023-02-10T23:20:17.707590Z 0 [Note] InnoDB: Using CPU crc32 instructions
kimai2-sqldb-1 | 2023-02-10T23:20:17.708721Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
kimai2-sqldb-1 | 2023-02-10T23:20:17.714097Z 0 [Note] InnoDB: Completed initialization of buffer pool
kimai2-sqldb-1 | 2023-02-10T23:20:17.715460Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
kimai2-sqldb-1 | 2023-02-10T23:20:17.726817Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
kimai2-sqldb-1 | 2023-02-10T23:20:17.790543Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
kimai2-sqldb-1 | 2023-02-10T23:20:17.790614Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
kimai2-sqldb-1 | 2023-02-10T23:20:17.943115Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
kimai2-sqldb-1 | 2023-02-10T23:20:17.943720Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
kimai2-sqldb-1 | 2023-02-10T23:20:17.943731Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
kimai2-sqldb-1 | 2023-02-10T23:20:17.944044Z 0 [Note] InnoDB: 5.7.41 started; log sequence number 811674185
kimai2-sqldb-1 | 2023-02-10T23:20:17.944148Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
kimai2-sqldb-1 | 2023-02-10T23:20:17.944281Z 0 [Note] Plugin 'FEDERATED' is disabled.
kimai2-sqldb-1 | 2023-02-10T23:20:17.945669Z 0 [Note] InnoDB: Buffer pool(s) load completed at 230210 23:20:17
kimai2-sqldb-1 | 2023-02-10T23:20:17.947980Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
kimai2-sqldb-1 | 2023-02-10T23:20:17.947993Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
kimai2-sqldb-1 | 2023-02-10T23:20:17.947997Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
kimai2-sqldb-1 | 2023-02-10T23:20:17.947999Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
kimai2-sqldb-1 | 2023-02-10T23:20:17.948419Z 0 [Warning] CA certificate ca.pem is self signed.
kimai2-sqldb-1 | 2023-02-10T23:20:17.948452Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
kimai2-sqldb-1 | 2023-02-10T23:20:17.948664Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
kimai2-sqldb-1 | 2023-02-10T23:20:17.948693Z 0 [Note] IPv6 is available.
kimai2-sqldb-1 | 2023-02-10T23:20:17.948702Z 0 [Note] - '::' resolves to '::';
kimai2-sqldb-1 | 2023-02-10T23:20:17.948716Z 0 [Note] Server socket created on IP: '::'.
kimai2-sqldb-1 | 2023-02-10T23:20:18.040174Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
kimai2-sqldb-1 | 2023-02-10T23:20:18.046402Z 0 [Warning] Optional native table 'performance_schema'.'processlist' has the wrong structure or is missing.
kimai2-sqldb-1 | 2023-02-10T23:20:18.046575Z 0 [Note] Event Scheduler: Loaded 0 events
kimai2-sqldb-1 | 2023-02-10T23:20:18.046685Z 0 [Note] mysqld: ready for connections.
kimai2-sqldb-1 | Version: '5.7.41' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL)
kimai2-kimai-1 |
kimai2-kimai-1 | Wait for MySQL DB connection ...
kimai2-kimai-1 | Testing DB:** new \PDO(mysql:host=sqldb;dbname=kimai;port=3306, kimaiuser, lCJW459bWOjPHQIevLflPgYs, [ \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION ]);*Connection established
kimai2-kimai-1 | /startup.sh: line 41: [: : integer expression expected
kimai2-kimai-1 | /startup.sh: line 44: assets/monolog.yaml: No such file or directory
kimai2-kimai-1 | tar: public/touch-icon-512x512.png: Cannot open: Permission denied
kimai2-kimai-1 | tar: public/apple-touch-icon-precomposed.png: Cannot open: Permission denied
kimai2-kimai-1 | tar: public/.htaccess: Cannot open: File exists
kimai2-kimai-1 | tar: public/favicon-16x16.png: Cannot open: Permission denied
kimai2-kimai-1 | tar: public/index.php: Cannot open: File exists
kimai2-kimai-1 | tar: public/manifest.json: Cannot open: File exists
kimai2-kimai-1 | tar: public/favicon.ico: Cannot open: File exists
kimai2-kimai-1 | tar: public/browserconfig.xml: Cannot open: File exists
kimai2-kimai-1 | tar: public/touch-icon-192x192.png: Cannot open: File exists
kimai2-kimai-1 | tar: public/wizard: Cannot mkdir: Permission denied
kimai2-kimai-1 | tar: public/wizard: Cannot mkdir: Permission denied
kimai2-kimai-1 | tar: public/wizard/time-management.png: Cannot open: No such file or directory
kimai2-kimai-1 | tar: public/wizard: Cannot mkdir: Permission denied
kimai2-kimai-1 | tar: public/wizard/done.png: Cannot open: No such file or directory
kimai2-kimai-1 | tar: public/touch-icon-180x180.png: Cannot open: Permission denied
kimai2-kimai-1 | tar: public/favicon-32x32.png: Cannot open: File exists
kimai2-kimai-1 | tar: public/apple-touch-icon.png: Cannot open: File exists
kimai2-kimai-1 | tar: public/robots.txt: Cannot open: File exists
kimai2-kimai-1 | tar: public: Cannot utime: Operation not permitted
kimai2-kimai-1 | tar: Exiting with failure status due to previous errors
kimai2-kimai-1 |
kimai2-kimai-1 | Kimai installation running ...
kimai2-kimai-1 | ==============================
kimai2-kimai-1 |
kimai2-kimai-1 | Database `kimai` for connection named default already exists. Skipped.
kimai2-kimai-1 |
kimai2-kimai-1 | [OK] Already at the latest version ("DoctrineMigrations\Version20230126002049")
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 | Rebuilding your cache, please be patient ...
kimai2-kimai-1 |
kimai2-kimai-1 | // Clearing the cache for the prod environment with debug false
kimai2-kimai-1 |
kimai2-postfix-1 | 2023-02-10 23:20:18,645 INFO spawned: 'postfix' with pid 27
kimai2-postfix-1 | 2023-02-10 23:20:18,646 INFO spawned: 'rsyslog' with pid 28
kimai2-postfix-1 | 2023-02-10 23:20:19,633 INFO exited: postfix (exit status 1; not expected)
kimai2-postfix-1 | 2023-02-10 23:20:20,634 INFO spawned: 'postfix' with pid 95
kimai2-postfix-1 | 2023-02-10 23:20:20,635 INFO success: rsyslog entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
kimai2-postfix-1 | 2023-02-10 23:20:21,671 INFO success: postfix entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
kimai2-kimai-1 | [OK] Cache for the "prod" environment (debug=false) was successfully cleared.
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 | // Warming up the cache for the prod environment with debug false
kimai2-kimai-1 |
kimai2-kimai-1 | [OK] Cache for the "prod" environment (debug=false) was successfully warmed.
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 | [OK] Congratulations! Successfully installed Kimai version 2.0.0
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 | Kimai updates running ...
kimai2-kimai-1 | =========================
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 | [OK] Already at the latest version ("DoctrineMigrations\Version20230126002049")
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 | Rebuilding your cache, please be patient ...
kimai2-kimai-1 |
kimai2-kimai-1 | // Clearing the cache for the prod environment with debug false
kimai2-kimai-1 |
kimai2-kimai-1 | [OK] Cache for the "prod" environment (debug=false) was successfully cleared.
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 | // Warming up the cache for the prod environment with debug false
kimai2-kimai-1 |
kimai2-kimai-1 | [OK] Cache for the "prod" environment (debug=false) was successfully warmed.
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 | [OK] Congratulations! Successfully updated Kimai to version 2.0.0
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 | The command "kimai:reset:locales" does not exist.
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 | Kimai2 ready
kimai2-kimai-1 |
kimai2-kimai-1 | Reloading configurations ...
kimai2-kimai-1 | ============================
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 | [OK] All 25 YAML files contain valid syntax.
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-nginx-1 | 172.25.0.5 - - [10/Feb/2023:23:20:38 +0000] "GET /health HTTP/1.1" 200 5 "-" "Wget" "-"
kimai2-kimai-1 |
kimai2-kimai-1 | [OK] All 513 XLIFF files contain valid syntax.
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 | Rebuilding your cache, please be patient ...
kimai2-kimai-1 |
kimai2-kimai-1 | // Clearing the cache for the prod environment with debug false
kimai2-kimai-1 |
kimai2-nginx-1 | 172.25.0.1 - - [10/Feb/2023:23:20:42 +0000] "GET / HTTP/1.1" 502 158 "-" "axios/0.27.2" "10.10.10.212"
kimai2-nginx-1 | 2023/02/10 23:20:42 [error] 8#8: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 172.25.0.1, server: nginx, request: "GET / HTTP/1.1", upstream: "fastcgi://172.25.0.4:9000", host: "kimai.domain.tld"
kimai2-kimai-1 | [OK] Cache for the "prod" environment (debug=false) was successfully cleared.
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 | // Warming up the cache for the prod environment with debug false
kimai2-kimai-1 |
kimai2-kimai-1 | [OK] Cache for the "prod" environment (debug=false) was successfully warmed.
kimai2-kimai-1 |
kimai2-kimai-1 |
kimai2-kimai-1 | [OK] Kimai config was reloaded
kimai2-kimai-1 |
kimai2-kimai-1 | [11-Feb-2023 00:20:47] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
kimai2-kimai-1 | [11-Feb-2023 00:20:47] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
kimai2-kimai-1 | [11-Feb-2023 00:20:47] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
kimai2-kimai-1 | [11-Feb-2023 00:20:47] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
kimai2-kimai-1 | [11-Feb-2023 00:20:47] NOTICE: fpm is running, pid 1
kimai2-kimai-1 | [11-Feb-2023 00:20:47] NOTICE: ready to handle connections
kimai2-kimai-1 | 172.25.0.5 - 11/Feb/2023:00:20:57 +0100 "GET /index.php" 500
kimai2-kimai-1 | NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-nginx-1 | 2023/02/10 23:20:57 [error] 8#8: *4 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-nginx-1 | Stack trace:
kimai2-nginx-1 | #0 {main}
kimai2-nginx-1 | thrown in /opt/kimai/public/index.php on line 23" while reading response header from upstream, client: 192.168.251.59, server: nginx, request: "GET / HTTP/1.1", upstream: "fastcgi://172.25.0.4:9000", host: "kimai.domain.tld"
kimai2-kimai-1 | Stack trace:
kimai2-kimai-1 | #0 {main}
kimai2-kimai-1 | thrown in /opt/kimai/public/index.php on line 23
kimai2-nginx-1 | 192.168.251.59 - - [10/Feb/2023:23:20:57 +0000] "GET / HTTP/1.1" 500 5 "-" "axios/0.27.2" "10.10.10.212"
kimai2-kimai-1 | 127.0.0.1 - 11/Feb/2023:00:20:58 +0100 "GET /ping" 404
kimai2-nginx-1 | 172.25.0.5 - - [10/Feb/2023:23:20:59 +0000] "GET /health HTTP/1.1" 200 5 "-" "Wget" "-"
kimai2-kimai-1 | NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-kimai-1 | Stack trace:
kimai2-kimai-1 | #0 {main}
kimai2-kimai-1 | thrown in /opt/kimai/public/index.php on line 23
kimai2-kimai-1 | 172.25.0.5 - 11/Feb/2023:00:21:15 +0100 "GET /index.php" 500
kimai2-nginx-1 | 192.168.251.59 - - [10/Feb/2023:23:21:15 +0000] "GET / HTTP/1.1" 500 5 "-" "axios/0.27.2" "10.10.10.212"
kimai2-nginx-1 | 2023/02/10 23:21:15 [error] 8#8: *7 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-nginx-1 | Stack trace:
kimai2-nginx-1 | #0 {main}
kimai2-nginx-1 | thrown in /opt/kimai/public/index.php on line 23" while reading response header from upstream, client: 192.168.251.59, server: nginx, request: "GET / HTTP/1.1", upstream: "fastcgi://172.25.0.4:9000", host: "kimai.domain.tld"
kimai2-kimai-1 | 127.0.0.1 - 11/Feb/2023:00:21:18 +0100 "GET /ping" 404
kimai2-nginx-1 | 172.25.0.5 - - [10/Feb/2023:23:21:19 +0000] "GET /health HTTP/1.1" 200 5 "-" "Wget" "-"
kimai2-kimai-1 | NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-kimai-1 | Stack trace:
kimai2-kimai-1 | #0 {main}
kimai2-kimai-1 | thrown in /opt/kimai/public/index.php on line 23
kimai2-kimai-1 | 172.25.0.5 - 11/Feb/2023:00:21:26 +0100 "GET /index.php" 500
kimai2-nginx-1 | 192.168.251.59 - - [10/Feb/2023:23:21:26 +0000] "GET /de/doctor HTTP/1.1" 500 5 "https://kimai.domain.tld/de/admin/plugins/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.76" "2a05:1142:1::2ef9"
kimai2-nginx-1 | 2023/02/10 23:21:26 [error] 8#8: *10 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-nginx-1 | Stack trace:
kimai2-nginx-1 | #0 {main}
kimai2-nginx-1 | thrown in /opt/kimai/public/index.php on line 23" while reading response header from upstream, client: 192.168.251.59, server: nginx, request: "GET /de/doctor HTTP/1.1", upstream: "fastcgi://172.25.0.4:9000", host: "kimai.domain.tld", referrer: "https://kimai.domain.tld/de/admin/plugins/"
kimai2-kimai-1 | NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-kimai-1 | 172.25.0.5 - 11/Feb/2023:00:21:32 +0100 "GET /index.php" 500
kimai2-kimai-1 | Stack trace:
kimai2-kimai-1 | #0 {main}
kimai2-kimai-1 | thrown in /opt/kimai/public/index.php on line 23
kimai2-nginx-1 | 2023/02/10 23:21:32 [error] 8#8: *12 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-nginx-1 | Stack trace:
kimai2-nginx-1 | #0 {main}
kimai2-nginx-1 | thrown in /opt/kimai/public/index.php on line 23" while reading response header from upstream, client: 192.168.251.59, server: nginx, request: "GET / HTTP/1.1", upstream: "fastcgi://172.25.0.4:9000", host: "kimai.domain.tld"
kimai2-nginx-1 | 192.168.251.59 - - [10/Feb/2023:23:21:32 +0000] "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.76" "2a05:1142:::2ef9"
kimai2-kimai-1 | 127.0.0.1 - 11/Feb/2023:00:21:38 +0100 "GET /ping" 404
kimai2-nginx-1 | 172.25.0.5 - - [10/Feb/2023:23:21:39 +0000] "GET /health HTTP/1.1" 200 5 "-" "Wget" "-"
kimai2-kimai-1 | NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-kimai-1 | Stack trace:
kimai2-kimai-1 | 172.25.0.5 - 11/Feb/2023:00:21:42 +0100 "GET /index.php" 500
kimai2-kimai-1 | #0 {main}
kimai2-kimai-1 | thrown in /opt/kimai/public/index.php on line 23
kimai2-nginx-1 | 2023/02/10 23:21:42 [error] 8#8: *15 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-nginx-1 | Stack trace:
kimai2-nginx-1 | #0 {main}
kimai2-nginx-1 | thrown in /opt/kimai/public/index.php on line 23" while reading response header from upstream, client: 172.25.0.1, server: nginx, request: "GET / HTTP/1.1", upstream: "fastcgi://172.25.0.4:9000", host: "kimai.domain.tld"
kimai2-nginx-1 | 172.25.0.1 - - [10/Feb/2023:23:21:42 +0000] "GET / HTTP/1.1" 500 5 "-" "axios/0.27.2" "10.10.10.212"
kimai2-nginx-1 | 2023/02/10 23:21:44 [error] 8#8: *17 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-kimai-1 | NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-kimai-1 | 172.25.0.5 - 11/Feb/2023:00:21:44 +0100 "GET /index.php" 500
kimai2-kimai-1 | Stack trace:
kimai2-kimai-1 | #0 {main}
kimai2-kimai-1 | thrown in /opt/kimai/public/index.php on line 23
kimai2-nginx-1 | Stack trace:
kimai2-nginx-1 | #0 {main}
kimai2-nginx-1 | thrown in /opt/kimai/public/index.php on line 23" while reading response header from upstream, client: 192.168.251.59, server: nginx, request: "GET / HTTP/1.1", upstream: "fastcgi://172.25.0.4:9000", host: "kimai.domain.tld"
kimai2-nginx-1 | 192.168.251.59 - - [10/Feb/2023:23:21:44 +0000] "GET / HTTP/1.1" 500 5 "-" "axios/0.27.2" "10.10.10.212"
kimai2-kimai-1 | NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-kimai-1 | Stack trace:
kimai2-kimai-1 | #0 {main}
kimai2-kimai-1 | 172.25.0.5 - 11/Feb/2023:00:21:57 +0100 "GET /index.php" 500
kimai2-kimai-1 | thrown in /opt/kimai/public/index.php on line 23
kimai2-nginx-1 | 172.25.0.1 - - [10/Feb/2023:23:21:57 +0000] "GET / HTTP/1.1" 500 5 "-" "axios/0.27.2" "10.10.10.212"
kimai2-nginx-1 | 2023/02/10 23:21:57 [error] 8#8: *19 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-nginx-1 | Stack trace:
kimai2-nginx-1 | #0 {main}
kimai2-nginx-1 | thrown in /opt/kimai/public/index.php on line 23" while reading response header from upstream, client: 172.25.0.1, server: nginx, request: "GET / HTTP/1.1", upstream: "fastcgi://172.25.0.4:9000", host: "kimai.domain.tld"
kimai2-kimai-1 | 127.0.0.1 - 11/Feb/2023:00:21:58 +0100 "GET /ping" 404
kimai2-nginx-1 | 172.25.0.5 - - [10/Feb/2023:23:22:00 +0000] "GET /health HTTP/1.1" 200 5 "-" "Wget" "-"
kimai2-kimai-1 | 172.25.0.5 - 11/Feb/2023:00:22:10 +0100 "GET /index.php" 500
kimai2-kimai-1 | NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-kimai-1 | Stack trace:
kimai2-kimai-1 | #0 {main}
kimai2-kimai-1 | thrown in /opt/kimai/public/index.php on line 23
kimai2-nginx-1 | 192.168.251.59 - - [10/Feb/2023:23:22:10 +0000] "GET / HTTP/1.1" 500 5 "-" "axios/0.27.2" "10.10.10.212"
kimai2-nginx-1 | 2023/02/10 23:22:10 [error] 8#8: *22 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-nginx-1 | Stack trace:
kimai2-nginx-1 | #0 {main}
kimai2-nginx-1 | thrown in /opt/kimai/public/index.php on line 23" while reading response header from upstream, client: 192.168.251.59, server: nginx, request: "GET / HTTP/1.1", upstream: "fastcgi://172.25.0.4:9000", host: "kimai.domain.tld"
kimai2-nginx-1 | 2023/02/10 23:22:14 [error] 8#8: *24 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-nginx-1 | Stack trace:
kimai2-nginx-1 | #0 {main}
kimai2-nginx-1 | thrown in /opt/kimai/public/index.php on line 23" while reading response header from upstream, client: 172.25.0.1, server: nginx, request: "GET / HTTP/1.1", upstream: "fastcgi://172.25.0.4:9000", host: "docker3.domain.tld:8001"
kimai2-nginx-1 | 172.25.0.1 - - [10/Feb/2023:23:22:14 +0000] "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.76" "-"
kimai2-kimai-1 | NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-kimai-1 | Stack trace:
kimai2-kimai-1 | #0 {main}
kimai2-kimai-1 | thrown in /opt/kimai/public/index.php on line 23
kimai2-kimai-1 | 172.25.0.5 - 11/Feb/2023:00:22:14 +0100 "GET /index.php" 500
kimai2-kimai-1 | NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-kimai-1 | Stack trace:
kimai2-kimai-1 | 172.25.0.5 - 11/Feb/2023:00:22:15 +0100 "GET /index.php" 500
kimai2-kimai-1 | #0 {main}
kimai2-kimai-1 | thrown in /opt/kimai/public/index.php on line 23
kimai2-nginx-1 | 192.168.251.59 - - [10/Feb/2023:23:22:15 +0000] "GET / HTTP/1.1" 500 5 "-" "axios/0.27.2" "10.10.10.212"
kimai2-nginx-1 | 2023/02/10 23:22:15 [error] 8#8: *27 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL in /opt/kimai/public/index.php:23
kimai2-nginx-1 | Stack trace:
kimai2-nginx-1 | #0 {main}
kimai2-nginx-1 | thrown in /opt/kimai/public/index.php on line 23" while reading response header from upstream, client: 192.168.251.59, server: nginx, request: "GET / HTTP/1.1", upstream: "fastcgi://172.25.0.4:9000", host: "kimai.domain.tld"
kimai2-kimai-1 | 127.0.0.1 - 11/Feb/2023:00:22:18 +0100 "GET /ping" 404
kimai2-nginx-1 | 172.25.0.5 - - [10/Feb/2023:23:22:20 +0000] "GET /health HTTP/1.1" 200 5 "-" "Wget" "-"
^Ccanceled
root@docker3:/daten/docker/kimai2# docker-compose down
[+] Running 5/5
⠿ Container kimai2-nginx-1 Removed 1.1s
⠿ Container kimai2-postfix-1 Removed 11.1s
⠿ Container kimai2-sqldb-1 Removed 2.5s
⠿ Container kimai2-kimai-1 Removed 1.1s
⠿ Network kimai2_default Removed 0.4s
OK, there are some permission errors. So i changed /publics owner to 82:82 All inside this folder have 82:82 as owner already. How should the permissions be correctly? Maybe i should correct the permissions? After i changed the permissions, the login screen appears but without the logo. There is only a placeholder. This happens when i try to connect to servers-IP:8001 (docker3.domain.tld:8001) but not when i brows to kimai.domain.tld (over nginx proxy manager). It takes forever to load. So i will try it on another docker server and report back.
Hello,
i tested it on the second docker server and now it looks very good. Good Job with the new look. It looks like the previous docker server is little overloaded.
thanks again
thanks for your help.
It seems I just had the same permission problem after updating to the latest version:
went as root into the container, set the permissions manually and I hope thats enough to fix it for now.
But I dont actually think so because the folder is not persisted in any way by default?
Might this be a freshly introduced bug, or is there a way to fix the perms in Dockerfile?
Anyway here is what I did:
#-u 0 = as root
docker exec -it -u 0 kimai bash
chown -R www-data var/
chmod -R 777 var/
hi,
I did the permissions through the host.
I went into to folder of kimai, then i changed the permissions of the folder public
with: chown 82:82 public
Then restart kimai.
All Folder and Files in public
should be owned by 82:82. At least that is it on my system.
Hello,
Describe the bug i use Kimai2 since over two years or so and it worked great so far. But since yesterday, when i open the kimia2 homepage there is only a white screen.
To Reproduce Steps to reproduce the behaviour:
Desktop (please complete the following information):
Command used to run the container
Docker compose file (with passwords redacted)
Additional context it was working til yesterday afternoon, then i had to reboot the server. After the reboot this problem was present.
After this happened, i tried debian update and upgrade and even moved to a second docker server i have. I updated docker and docker-compose
I get this logs:
to get my instance working again, i switched back to version
fpm-1.30.6-prod
But i rather would like to work with the new version.