Kimai LXC Installation fails during “Setup Kimai” with exit code 0 (Debian 13, default settings) #2314

Closed
opened 2025-11-20 05:27:19 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @schneider-de-com on GitHub (Nov 13, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Kimai

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/kimai.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 13

📈 Which Proxmox version are you on?

9.0.11

📝 Provide a clear and concise description of the issue.

When creating a Kimai LXC container using the default settings, the script completes most steps successfully (container creation, network checks, MariaDB 12.1.1, PHP 8.4, Composer, database setup, and deployment of Kimai 2.42.0).

However, during the final “Setup Kimai” step, the script fails with:
[ERROR] in line 159: exit code 0: while executing command "$@" > /dev/null 2>&1
[ERROR] in line 1346: exit code 0: while executing command lxc-attach ...

It is confusing that the error reports “exit code 0” but still treats it as a failure. After the error, the script stops and reports the issue.

I used default settings on node pve2 with the following LXC configuration:
Container ID: 123
OS: debian (13)
Container Type: Unprivileged
Disk Size: 7 GB
CPU Cores: 2
RAM: 2048 MiB

Storage:
Template: local (Free: 59.0GB Used: 8.8GB)
Container: data (Free: 721.7GB Used: 180.0GB)

Network and internet connectivity (IPv4 + IPv6) inside the LXC are working and GitHub DNS checks are all green.

🔄 Steps to reproduce the issue.

Log in to Proxmox node (in my case: pve2).
Run the Kimai LXC script with default settings:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/kimai.sh)"

Accept / use the default settings offered by the script.
Wait until the script reaches the “Setup Kimai” step.
Observe that the script prints error messages regarding line 159 and line 1346 with exit code 0 and aborts.

Paste the full error output (if available).

Package doctrine/cache is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
94 packages you are using are looking for funding.
Use the composer fund command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [OK]
Executing script assets:install [OK]

Start installation ...
Database kimai_db for connection named default already exists. Skipped.
Creating database ...
[notice] Migrating up to DoctrineMigrations\Version20251031143000
[error] Migration DoctrineMigrations\Version20210802160837 failed during Execution. Error: "An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'date_tz'"

[ERROR] Failed to set migration status: An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or
access violation: 1067 Invalid default value for 'date_tz'

[ERROR] in line 53: exit code 0: while executing command $STD bin/console kimai:install -n

[ERROR] in line 1346: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"

🖼️ Additional context (optional).

No response

Originally created by @schneider-de-com on GitHub (Nov 13, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Kimai ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/kimai.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 13 ### 📈 Which Proxmox version are you on? 9.0.11 ### 📝 Provide a clear and concise description of the issue. When creating a Kimai LXC container using the default settings, the script completes most steps successfully (container creation, network checks, MariaDB 12.1.1, PHP 8.4, Composer, database setup, and deployment of Kimai 2.42.0). However, during the final “Setup Kimai” step, the script fails with: [ERROR] in line 159: exit code 0: while executing command "$@" > /dev/null 2>&1 [ERROR] in line 1346: exit code 0: while executing command lxc-attach ... It is confusing that the error reports “exit code 0” but still treats it as a failure. After the error, the script stops and reports the issue. I used default settings on node pve2 with the following LXC configuration: Container ID: 123 OS: debian (13) Container Type: Unprivileged Disk Size: 7 GB CPU Cores: 2 RAM: 2048 MiB Storage: Template: local (Free: 59.0GB Used: 8.8GB) Container: data (Free: 721.7GB Used: 180.0GB) Network and internet connectivity (IPv4 + IPv6) inside the LXC are working and GitHub DNS checks are all green. ### 🔄 Steps to reproduce the issue. Log in to Proxmox node (in my case: pve2). Run the Kimai LXC script with default settings: bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/kimai.sh)" Accept / use the default settings offered by the script. Wait until the script reaches the “Setup Kimai” step. Observe that the script prints error messages regarding line 159 and line 1346 with exit code 0 and aborts. ### ❌ Paste the full error output (if available). Package doctrine/cache is abandoned, you should avoid using it. No replacement was suggested. Generating optimized autoload files 94 packages you are using are looking for funding. Use the `composer fund` command to find out more! Run composer recipes at any time to see the status of your Symfony recipes. Executing script cache:clear [OK] Executing script assets:install [OK] Start installation ... Database `kimai_db` for connection named default already exists. Skipped. Creating database ... [notice] Migrating up to DoctrineMigrations\Version20251031143000 [error] Migration DoctrineMigrations\Version20210802160837 failed during Execution. Error: "An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'date_tz'" [ERROR] Failed to set migration status: An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'date_tz' [ERROR] in line 53: exit code 0: while executing command $STD bin/console kimai:install -n [ERROR] in line 1346: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)" ### 🖼️ Additional context (optional). _No response_
saavagebueno added the bug label 2025-11-20 05:27:19 -05:00
Author
Owner

@tremor021 commented on GitHub (Nov 13, 2025):

This was fixed already, but @MickLesk doesn't like me so he accidentally reverted my fix. Try again after #9124 merges

@tremor021 commented on GitHub (Nov 13, 2025): This was fixed already, but @MickLesk doesn't like me so he accidentally reverted my fix. Try again after #9124 merges
Author
Owner

@schneider-de-com commented on GitHub (Nov 13, 2025):

it is working thank you.

@schneider-de-com commented on GitHub (Nov 13, 2025): it is working thank you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#2314