Karakeep - Updating karakeep version 0.24 fails. #1402

Closed
opened 2026-02-05 00:38:38 +03:00 by OVERLORD · 8 comments
Owner

Originally created by @juanchopablo on GitHub (Aug 6, 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?

update inside lxc console

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

No response

📝 Provide a clear and concise description of the issue.

updating running karakeep version 0.24

🔄 Steps to reproduce the issue.

Open running karakeep, run the update command inside the lxc console

Paste the full error output (if available).

__                    __                 

/ /______ __________ / /____ ___ ____
/ /// __ / ___/ __ / /// _ / _ / __
/ ,< / // / / / // / ,< / / / // /
/
/||_,// _,//||_
/_
/ .__/
/
/

✔️ Stopped Services
Updating yt-dlpCurrent version: nightly@2025.08.03.233131 from yt-dlp/yt-dlp-nightly-builds
Latest version: nightly@2025.08.05.233158 from yt-dlp/yt-dlp-nightly-builds
Current Build Hash: 0e0aec947f445d790e20d23360dfbea9efd724bcf72261299a7e602c915f4cb1
Updating to nightly@2025.08.05.233158 from yt-dlp/yt-dlp-nightly-builds ...
Updated yt-dlp to nightly@2025.08.05.233158 from yt-dlp/yt-dlp-nightly-builds
✔️ Updated yt-dlp
✔️ Update prepared
✔️ Deployed: karakeep (0.26.0)
✔️ Installed Node.js modules: pnpm@9.15.9
Updating karakeep to v0.26.0Scope: all 22 workspace projects
../.. | +3109 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
../.. | Progress: resolved 0, reused 1, downloaded 0, added 0
../.. | Progress: resolved 0, reused 275, downloaded 0, added 0
../.. | Progress: resolved 0, reused 911, downloaded 0, added 0
../.. | Progress: resolved 0, reused 2062, downloaded 0, added 0
../.. | Progress: resolved 0, reused 2858, downloaded 0, added 81
../.. | Progress: resolved 0, reused 2858, downloaded 0, added 261
../.. | Progress: resolved 0, reused 2858, downloaded 0, added 664
../.. | Progress: resolved 0, reused 2858, downloaded 0, added 1293
../.. | Progress: resolved 0, reused 2858, downloaded 0, added 2376
../.. | Progress: resolved 0, reused 2858, downloaded 0, added 3109
../.. | Progress: resolved 0, reused 2858, downloaded 0, added 3109, done

dependencies:

  • @karakeep/api 0.1.0 <- ../../packages/api
  • @karakeep/db 0.1.0 <- ../../packages/db
  • @karakeep/shared 0.1.0 <- ../../packages/shared
  • @karakeep/shared-react 0.1.0 <- ../../packages/shared-react
  • @karakeep/trpc 0.1.0 <- ../../packages/trpc

devDependencies:

  • @karakeep/prettier-config 0.1.0 <- ../../tooling/prettier
  • @karakeep/tailwind-config 0.1.0 <- ../../tooling/tailwind
  • @karakeep/tsconfig 0.1.0 <- ../../tooling/typescript

../.. prepare$ husky
../.. prepare: .git can't be found
../.. prepare: Done
Done in 10.8s using pnpm v9.15.9

@karakeep/web@0.1.0 build /opt/karakeep/apps/web
next build --experimental-build-mode compile

⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
▲ Next.js 14.2.25

Creating an optimized production build ...

[PWA] Compile server
[PWA] Compile server
[PWA] Compile client (static)
[PWA] Auto register service worker with: /opt/karakeep/node_modules/next-pwa/register.js
[PWA] Service worker: /opt/karakeep/apps/web/public/sw.js
[PWA] url: /sw.js
[PWA] scope: /
⚠ Compiled with warnings

/_next/static/chunks/c5753105-4aa06a1eadac8811.js is 5.6 MB, and won't be precached. Configure maximumFileSizeToCacheInBytes to change this limit.

✓ Collecting page data
✓ Collecting build traces
✓ Finalizing page optimization

Route (app) Size First Load JS
┌ ƒ /
├ ƒ /_not-found
├ ƒ /admin
├ ƒ /admin/background_jobs
├ ƒ /admin/overview
├ ƒ /admin/users
├ ƒ /api/...route
├ ƒ /api/auth/[...nextauth]
├ ƒ /api/bookmarks/export
├ ƒ /apple-icon.png
├ ƒ /check-email
├ ƒ /dashboard/(.)preview/[bookmarkId]
├ ƒ /dashboard/[...catchAll]
├ ƒ /dashboard/archive
├ ƒ /dashboard/bookmarks
├ ƒ /dashboard/cleanups
├ ƒ /dashboard/favourites
├ ƒ /dashboard/feeds/[feedId]
├ ƒ /dashboard/highlights
├ ƒ /dashboard/lists
├ ƒ /dashboard/lists/[listId]
├ ƒ /dashboard/preview/[bookmarkId]
├ ƒ /dashboard/search
├ ƒ /dashboard/tags
├ ƒ /dashboard/tags/[tagId]
├ ƒ /forgot-password
├ ƒ /icon.png
├ ƒ /invite/[token]
├ ƒ /logout
├ ƒ /public/lists/[listId]
├ ƒ /reader/[bookmarkId]
├ ƒ /reset-password
├ ƒ /settings
├ ƒ /settings/ai
├ ƒ /settings/api-keys
├ ƒ /settings/assets
├ ƒ /settings/broken-links
├ ƒ /settings/feeds
├ ƒ /settings/import
├ ƒ /settings/info
├ ƒ /settings/rules
├ ƒ /settings/stats
├ ƒ /settings/subscription
├ ƒ /settings/webhooks
├ ƒ /signin
├ ƒ /signup
└ ƒ /verify-email

  • First Load JS shared by all 87.9 kB
    ├ chunks/1528-558a22c3086e61fc.js 31.7 kB
    ├ chunks/1dd3208c-c3377787a9a5a7c7.js 53.6 kB
    └ other shared chunks (total) 2.6 kB

ƒ (Dynamic) server-rendered on demand

Scope: all 22 workspace projects
../.. | Progress: resolved 0, reused 1, downloaded 0, added 0
../.. | Progress: resolved 0, reused 38, downloaded 0, added 0
../.. | -208 ---------------------
../.. | Progress: resolved 0, reused 75, downloaded 0, added 0
../.. | Progress: resolved 0, reused 83, downloaded 0, added 0, done

../.. prepare$ husky
../.. prepare: .git can't be found
../.. prepare: Done
Done in 4.1s using pnpm v9.15.9

@karakeep/workers@0.1.0 build /opt/karakeep/apps/workers
tsdown

ℹ tsdown v0.12.9 powered by rolldown v1.0.0-beta.28
ℹ Using tsdown config: /opt/karakeep/apps/workers/tsdown.config.ts
ℹ entry: index.ts
ℹ target: node22
ℹ tsconfig: tsconfig.json
ℹ Build start
ℹ dist/index.mjs 9528.00 kB
ℹ dist/index.mjs.map 12769.57 kB
ℹ dist/isFile-CAdLIt4X.mjs.map 137.98 kB │ gzip: 29.39 kB
ℹ dist/isFile-CAdLIt4X.mjs 89.64 kB │ gzip: 19.08 kB
ℹ dist/fileFromPath-C7Pj3lIx.mjs.map 7.55 kB │ gzip: 2.49 kB
ℹ dist/fileFromPath-C7Pj3lIx.mjs 4.68 kB │ gzip: 1.61 kB
ℹ 6 files, total: 22537.43 kB
✔ Build complete in 583ms
Scope: all 22 workspace projects
../.. | Progress: resolved 0, reused 1, downloaded 0, added 0
../.. | Progress: resolved 0, reused 20, downloaded 0, added 0
../.. | -208 ---------------------
../.. | Progress: resolved 0, reused 73, downloaded 0, added 0, done

../.. prepare$ husky
../.. prepare: .git can't be found
../.. prepare: Done
Done in 4s using pnpm v9.15.9

@karakeep/cli@0.25.0 build /opt/karakeep/apps/cli
vite build

vite v5.1.4 building SSR bundle for production...
transforming...
✓ 261 modules transformed.
rendering chunks...
dist/index.mjs 500.04 kB
✓ built in 1.21s

@karakeep/db@0.1.0 migrate /opt/karakeep/packages/db
tsx migrate.ts

/opt/karakeep/node_modules/better-sqlite3/lib/database.js:65
throw new TypeError('Cannot open database because the directory does not exist');
^

TypeError: Cannot open database because the directory does not exist
at new Database (/opt/karakeep/node_modules/better-sqlite3/lib/database.js:65:9)
at /opt/karakeep/packages/db/drizzle.ts:2:1610
at Object. (/opt/karakeep/packages/db/drizzle.ts:3:3)
at Module._compile (node:internal/modules/cjs/loader:1730:14)
at Object.S (/opt/karakeep/node_modules/tsx/dist/cjs/index.cjs:1:1292)
at Module.load (node:internal/modules/cjs/loader:1465:32)
at Function._load (node:internal/modules/cjs/loader:1282:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module.require (node:internal/modules/cjs/loader:1487:12)

Node.js v22.15.1
 ELIFECYCLE  Command failed with exit code 1.

[ERROR] in line 84: exit code 0: while executing command $STD pnpm migrate

root@karakeep:~#

🖼️ Additional context (optional).

No response

Originally created by @juanchopablo on GitHub (Aug 6, 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? update inside lxc console ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 📝 Provide a clear and concise description of the issue. updating running karakeep version 0.24 ### 🔄 Steps to reproduce the issue. Open running karakeep, run the update command inside the lxc console ### ❌ Paste the full error output (if available). __ __ / /______ __________ _/ /_____ ___ ____ / //_/ __ `/ ___/ __ `/ //_/ _ \/ _ \/ __ \ / ,< / /_/ / / / /_/ / ,< / __/ __/ /_/ / /_/|_|\__,_/_/ \__,_/_/|_|\___/\___/ .___/ /_/ ✔️ Stopped Services ⏳ Updating yt-dlpCurrent version: nightly@2025.08.03.233131 from yt-dlp/yt-dlp-nightly-builds Latest version: nightly@2025.08.05.233158 from yt-dlp/yt-dlp-nightly-builds Current Build Hash: 0e0aec947f445d790e20d23360dfbea9efd724bcf72261299a7e602c915f4cb1 Updating to nightly@2025.08.05.233158 from yt-dlp/yt-dlp-nightly-builds ... Updated yt-dlp to nightly@2025.08.05.233158 from yt-dlp/yt-dlp-nightly-builds ✔️ Updated yt-dlp ✔️ Update prepared ✔️ Deployed: karakeep (0.26.0) ✔️ Installed Node.js modules: pnpm@9.15.9 ⏳ Updating karakeep to v0.26.0Scope: all 22 workspace projects ../.. | +3109 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ../.. | Progress: resolved 0, reused 1, downloaded 0, added 0 ../.. | Progress: resolved 0, reused 275, downloaded 0, added 0 ../.. | Progress: resolved 0, reused 911, downloaded 0, added 0 ../.. | Progress: resolved 0, reused 2062, downloaded 0, added 0 ../.. | Progress: resolved 0, reused 2858, downloaded 0, added 81 ../.. | Progress: resolved 0, reused 2858, downloaded 0, added 261 ../.. | Progress: resolved 0, reused 2858, downloaded 0, added 664 ../.. | Progress: resolved 0, reused 2858, downloaded 0, added 1293 ../.. | Progress: resolved 0, reused 2858, downloaded 0, added 2376 ../.. | Progress: resolved 0, reused 2858, downloaded 0, added 3109 ../.. | Progress: resolved 0, reused 2858, downloaded 0, added 3109, done dependencies: + @karakeep/api 0.1.0 <- ../../packages/api + @karakeep/db 0.1.0 <- ../../packages/db + @karakeep/shared 0.1.0 <- ../../packages/shared + @karakeep/shared-react 0.1.0 <- ../../packages/shared-react + @karakeep/trpc 0.1.0 <- ../../packages/trpc devDependencies: + @karakeep/prettier-config 0.1.0 <- ../../tooling/prettier + @karakeep/tailwind-config 0.1.0 <- ../../tooling/tailwind + @karakeep/tsconfig 0.1.0 <- ../../tooling/typescript ../.. prepare$ husky ../.. prepare: .git can't be found ../.. prepare: Done Done in 10.8s using pnpm v9.15.9 > @karakeep/web@0.1.0 build /opt/karakeep/apps/web > next build --experimental-build-mode compile ⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache ▲ Next.js 14.2.25 Creating an optimized production build ... > [PWA] Compile server > [PWA] Compile server > [PWA] Compile client (static) > [PWA] Auto register service worker with: /opt/karakeep/node_modules/next-pwa/register.js > [PWA] Service worker: /opt/karakeep/apps/web/public/sw.js > [PWA] url: /sw.js > [PWA] scope: / ⚠ Compiled with warnings /_next/static/chunks/c5753105-4aa06a1eadac8811.js is 5.6 MB, and won't be precached. Configure maximumFileSizeToCacheInBytes to change this limit. ✓ Collecting page data ✓ Collecting build traces ✓ Finalizing page optimization Route (app) Size First Load JS ┌ ƒ / ├ ƒ /_not-found ├ ƒ /admin ├ ƒ /admin/background_jobs ├ ƒ /admin/overview ├ ƒ /admin/users ├ ƒ /api/[[...route]] ├ ƒ /api/auth/[...nextauth] ├ ƒ /api/bookmarks/export ├ ƒ /apple-icon.png ├ ƒ /check-email ├ ƒ /dashboard/(.)preview/[bookmarkId] ├ ƒ /dashboard/[...catchAll] ├ ƒ /dashboard/archive ├ ƒ /dashboard/bookmarks ├ ƒ /dashboard/cleanups ├ ƒ /dashboard/favourites ├ ƒ /dashboard/feeds/[feedId] ├ ƒ /dashboard/highlights ├ ƒ /dashboard/lists ├ ƒ /dashboard/lists/[listId] ├ ƒ /dashboard/preview/[bookmarkId] ├ ƒ /dashboard/search ├ ƒ /dashboard/tags ├ ƒ /dashboard/tags/[tagId] ├ ƒ /forgot-password ├ ƒ /icon.png ├ ƒ /invite/[token] ├ ƒ /logout ├ ƒ /public/lists/[listId] ├ ƒ /reader/[bookmarkId] ├ ƒ /reset-password ├ ƒ /settings ├ ƒ /settings/ai ├ ƒ /settings/api-keys ├ ƒ /settings/assets ├ ƒ /settings/broken-links ├ ƒ /settings/feeds ├ ƒ /settings/import ├ ƒ /settings/info ├ ƒ /settings/rules ├ ƒ /settings/stats ├ ƒ /settings/subscription ├ ƒ /settings/webhooks ├ ƒ /signin ├ ƒ /signup └ ƒ /verify-email + First Load JS shared by all 87.9 kB ├ chunks/1528-558a22c3086e61fc.js 31.7 kB ├ chunks/1dd3208c-c3377787a9a5a7c7.js 53.6 kB └ other shared chunks (total) 2.6 kB ƒ (Dynamic) server-rendered on demand Scope: all 22 workspace projects ../.. | Progress: resolved 0, reused 1, downloaded 0, added 0 ../.. | Progress: resolved 0, reused 38, downloaded 0, added 0 ../.. | -208 --------------------- ../.. | Progress: resolved 0, reused 75, downloaded 0, added 0 ../.. | Progress: resolved 0, reused 83, downloaded 0, added 0, done ../.. prepare$ husky ../.. prepare: .git can't be found ../.. prepare: Done Done in 4.1s using pnpm v9.15.9 > @karakeep/workers@0.1.0 build /opt/karakeep/apps/workers > tsdown ℹ tsdown v0.12.9 powered by rolldown v1.0.0-beta.28 ℹ Using tsdown config: /opt/karakeep/apps/workers/tsdown.config.ts ℹ entry: index.ts ℹ target: node22 ℹ tsconfig: tsconfig.json ℹ Build start ℹ dist/index.mjs 9528.00 kB ℹ dist/index.mjs.map 12769.57 kB ℹ dist/isFile-CAdLIt4X.mjs.map 137.98 kB │ gzip: 29.39 kB ℹ dist/isFile-CAdLIt4X.mjs 89.64 kB │ gzip: 19.08 kB ℹ dist/fileFromPath-C7Pj3lIx.mjs.map 7.55 kB │ gzip: 2.49 kB ℹ dist/fileFromPath-C7Pj3lIx.mjs 4.68 kB │ gzip: 1.61 kB ℹ 6 files, total: 22537.43 kB ✔ Build complete in 583ms Scope: all 22 workspace projects ../.. | Progress: resolved 0, reused 1, downloaded 0, added 0 ../.. | Progress: resolved 0, reused 20, downloaded 0, added 0 ../.. | -208 --------------------- ../.. | Progress: resolved 0, reused 73, downloaded 0, added 0, done ../.. prepare$ husky ../.. prepare: .git can't be found ../.. prepare: Done Done in 4s using pnpm v9.15.9 > @karakeep/cli@0.25.0 build /opt/karakeep/apps/cli > vite build vite v5.1.4 building SSR bundle for production... transforming... ✓ 261 modules transformed. rendering chunks... dist/index.mjs 500.04 kB ✓ built in 1.21s > @karakeep/db@0.1.0 migrate /opt/karakeep/packages/db > tsx migrate.ts /opt/karakeep/node_modules/better-sqlite3/lib/database.js:65 throw new TypeError('Cannot open database because the directory does not exist'); ^ TypeError: Cannot open database because the directory does not exist at new Database (/opt/karakeep/node_modules/better-sqlite3/lib/database.js:65:9) at /opt/karakeep/packages/db/drizzle.ts:2:1610 at Object.<anonymous> (/opt/karakeep/packages/db/drizzle.ts:3:3) at Module._compile (node:internal/modules/cjs/loader:1730:14) at Object.S (/opt/karakeep/node_modules/tsx/dist/cjs/index.cjs:1:1292) at Module.load (node:internal/modules/cjs/loader:1465:32) at Function._load (node:internal/modules/cjs/loader:1282:12) at TracingChannel.traceSync (node:diagnostics_channel:322:14) at wrapModuleLoad (node:internal/modules/cjs/loader:235:24) at Module.require (node:internal/modules/cjs/loader:1487:12) Node.js v22.15.1  ELIFECYCLE  Command failed with exit code 1. [ERROR] in line 84: exit code 0: while executing command $STD pnpm migrate root@karakeep:~# ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-05 00:38:38 +03:00
Author
Owner

@MickLesk commented on GitHub (Aug 6, 2025):

@MohamedBassem do you changed something? in discord there are a lot of these errors with latest version

@MickLesk commented on GitHub (Aug 6, 2025): @MohamedBassem do you changed something? in discord there are a lot of these errors with latest version
Author
Owner

@vhsdream commented on GitHub (Aug 6, 2025):

@juanchopablo Do you have anything set for DATA_DIR in /etc/karakeep/karakeep.env?

@vhsdream commented on GitHub (Aug 6, 2025): @juanchopablo Do you have anything set for `DATA_DIR` in `/etc/karakeep/karakeep.env`?
Author
Owner

@Go2Engle commented on GitHub (Aug 7, 2025):

im having the same issue! to answer your question @vhsdream in my /etc/karakeep/karakeep.env I have DATA_DIR="/opt/karakeep_data"

@Go2Engle commented on GitHub (Aug 7, 2025): im having the same issue! to answer your question @vhsdream in my `/etc/karakeep/karakeep.env` I have `DATA_DIR="/opt/karakeep_data"`
Author
Owner

@vhsdream commented on GitHub (Aug 7, 2025):

@Go2Engle What version of Karakeep are you running, before trying to update?

@vhsdream commented on GitHub (Aug 7, 2025): @Go2Engle What version of Karakeep are you running, before trying to update?
Author
Owner

@Go2Engle commented on GitHub (Aug 7, 2025):

@vhsdream looks like Iwas on version 0.23.1 if im not mistaken.

@Go2Engle commented on GitHub (Aug 7, 2025): @vhsdream looks like Iwas on version 0.23.1 if im not mistaken.
Author
Owner

@vhsdream commented on GitHub (Aug 8, 2025):

No worries, it turns out that it's the script. I'll work on a fix soon.

@vhsdream commented on GitHub (Aug 8, 2025): No worries, it turns out that it's the script. I'll work on a fix soon.
Author
Owner

@vhsdream commented on GitHub (Aug 8, 2025):

@Go2Engle @juanchopablo Remove the quotes from the DATA_DIR var in /etc/karakeep/karakeep.env - that seems to be the issue.

@vhsdream commented on GitHub (Aug 8, 2025): @Go2Engle @juanchopablo Remove the quotes from the `DATA_DIR` var in `/etc/karakeep/karakeep.env` - that seems to be the issue.
Author
Owner

@Go2Engle commented on GitHub (Aug 8, 2025):

@vhsdream that did the trick! Removed the quotes > deleted .karakeep > ran update > profit

@Go2Engle commented on GitHub (Aug 8, 2025): @vhsdream that did the trick! Removed the quotes > deleted `.karakeep` > ran `update` > profit
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1402