Edo
Edo
HHomarr
Created by Edo on 11/27/2024 in #💬・get-help
Issue trying to install with Helm
After installing Homarr using the traditional method, I get the following error in my deployment:
Exporting hostname...
Migrating database...
yarn run v1.22.19
$ ts-node ./migrate.ts
/app/migrate/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 (/app/migrate/node_modules/better-sqlite3/lib/database.js:65:9)
at Object.<anonymous> (/app/migrate/migrate.ts:12:16)
at Module._compile (node:internal/modules/cjs/loader:1255:14)
at Module.m._compile (/app/migrate/node_modules/ts-node/src/index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)
at Object.require.extensions.<computed> [as .ts] (/app/migrate/node_modules/ts-node/src/index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1113:32)
at Function.Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at phase4 (/app/migrate/node_modules/ts-node/src/bin.ts:649:14)
error Command failed with exit code 1.
Exporting hostname...
Migrating database...
yarn run v1.22.19
$ ts-node ./migrate.ts
/app/migrate/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 (/app/migrate/node_modules/better-sqlite3/lib/database.js:65:9)
at Object.<anonymous> (/app/migrate/migrate.ts:12:16)
at Module._compile (node:internal/modules/cjs/loader:1255:14)
at Module.m._compile (/app/migrate/node_modules/ts-node/src/index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)
at Object.require.extensions.<computed> [as .ts] (/app/migrate/node_modules/ts-node/src/index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1113:32)
at Function.Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at phase4 (/app/migrate/node_modules/ts-node/src/bin.ts:649:14)
error Command failed with exit code 1.
I've tried downgrading to Homarr version 0.15.2 and no success. Any ideas? I'm also getting this error in the log:
https://next-auth.js.org/errors#client_fetch_error Unexpected token 'I', "Internal S"... is not valid JSON {
error: {
message: `Unexpected token 'I', "Internal S"... is not valid JSON`,
stack: `SyntaxError: Unexpected token 'I', "Internal S"... is not valid JSON\n` +
' at JSON.parse (<anonymous>)\n' +
' at parseJSONFromBytes (/app/node_modules/next/dist/compiled/undici/index.js:2:4905)\n' +
' at successSteps (/app/node_modules/next/dist/compiled/undici/index.js:2:4473)\n' +
' at /app/node_modules/next/dist/compiled/undici/index.js:2:65581\n' +
' at node:internal/process/task_queues:140:7\n' +
' at AsyncResource.runInAsyncScope (node:async_hooks:206:9)\n' +
' at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)',
name: 'SyntaxError'
},
url: 'http://homarr-5ccbf47785-h7xkn:7575/api/auth/session',
message: `Unexpected token 'I', "Internal S"... is not valid JSON`
}
https://next-auth.js.org/errors#client_fetch_error Unexpected token 'I', "Internal S"... is not valid JSON {
error: {
message: `Unexpected token 'I', "Internal S"... is not valid JSON`,
stack: `SyntaxError: Unexpected token 'I', "Internal S"... is not valid JSON\n` +
' at JSON.parse (<anonymous>)\n' +
' at parseJSONFromBytes (/app/node_modules/next/dist/compiled/undici/index.js:2:4905)\n' +
' at successSteps (/app/node_modules/next/dist/compiled/undici/index.js:2:4473)\n' +
' at /app/node_modules/next/dist/compiled/undici/index.js:2:65581\n' +
' at node:internal/process/task_queues:140:7\n' +
' at AsyncResource.runInAsyncScope (node:async_hooks:206:9)\n' +
' at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)',
name: 'SyntaxError'
},
url: 'http://homarr-5ccbf47785-h7xkn:7575/api/auth/session',
message: `Unexpected token 'I', "Internal S"... is not valid JSON`
}
Thank you.
27 replies