Karakeep: Update broken when using custom data directory #1576

Open
opened 2025-11-20 05:12:41 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @Zuplyx on GitHub (Jul 26, 2025).

Originally assigned to: @vhsdream on GitHub.

Have you read and understood the above guidelines?

yes

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

karakeep

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

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

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📝 Provide a clear and concise description of the issue.

In my /etc/karakeep/karakeep.env file I set a custom DATA_DIR (e.g. DATA_DIR="/mnt/Hoarder"). This causes the DB not to be migrated on updates, as the script expects the DB to be in the default directory (/opt/karakeep_data)

🔄 Steps to reproduce the issue.

  1. Install Karakeep via the script
  2. Change the DATA_DIR in /etc/karakeep/karakeep.env to a different location and copy the original DB from /opt/karakeep_data to the new location
  3. Run the script to update karakeep to a newer version

Now karakeep will probably not start and log errors due to the missing DB migration.

Paste the full error output (if available).

Karakeep log contains various DB erros (e.g. columns not existing) due to the missing migration.

🖼️ Additional context (optional).

The issue lies in this line, where the DATA_DIR is set to a hardcoded value:

67973ada07/ct/karakeep.sh (L75)

Instead the value from the /etc/karakeep/karakeep.env file should probably be used.

Originally created by @Zuplyx on GitHub (Jul 26, 2025). Originally assigned to: @vhsdream on GitHub. ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? karakeep ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/karakeep.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. In my `/etc/karakeep/karakeep.env` file I set a custom `DATA_DIR` (e.g. `DATA_DIR="/mnt/Hoarder"`). This causes the DB not to be migrated on updates, as the script expects the DB to be in the default directory (`/opt/karakeep_data`) ### 🔄 Steps to reproduce the issue. 1. Install Karakeep via the script 2. Change the `DATA_DIR` in `/etc/karakeep/karakeep.env` to a different location and copy the original DB from `/opt/karakeep_data` to the new location 3. Run the script to update karakeep to a newer version Now karakeep will probably not start and log errors due to the missing DB migration. ### ❌ Paste the full error output (if available). Karakeep log contains various DB erros (e.g. columns not existing) due to the missing migration. ### 🖼️ Additional context (optional). The issue lies in this line, where the `DATA_DIR` is set to a hardcoded value: https://github.com/community-scripts/ProxmoxVE/blob/67973ada075bd86bd38ce6d1134a26df86d81735/ct/karakeep.sh#L75 Instead the value from the `/etc/karakeep/karakeep.env` file should probably be used.
saavagebueno added the enhancement label 2025-11-20 05:12:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#1576