Phoenixx
HHomarr
•Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
Im not entirely sure what I am doing wrong when starting the container but I keep getting this error when I attempt to start the container
homarr | Exporting hostname...
homarr | Migrating database...
homarr | yarn run v1.22.19
homarr | $ ts-node ./migrate.ts
homarr | /app/migrate/node_modules/better-sqlite3/lib/database.js:69
homarr | [util.cppdb]: { value: new addon.Database(filename, filenameGiven, anonymous, readonly, fileMustExist, timeout, verbose || null, buffer || null) },
homarr | ^
homarr | SqliteError: unable to open database file
homarr | at new Database (/app/migrate/node_modules/better-sqlite3/lib/database.js:69:26)
homarr | at Object.<anonymous> (/app/migrate/migrate.ts:12:16)
homarr | at Module._compile (node:internal/modules/cjs/loader:1255:14)
homarr | at Module.m._compile (/app/migrate/node_modules/ts-node/src/index.ts:1618:23)
homarr | at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)
homarr | at Object.require.extensions.<computed> [as .ts] (/app/migrate/node_modules/ts-node/src/index.ts:1621:12)
homarr | at Module.load (node:internal/modules/cjs/loader:1113:32)
homarr | at Function.Module._load (node:internal/modules/cjs/loader:960:12)
homarr | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
homarr | at phase4 (/app/migrate/node_modules/ts-node/src/bin.ts:649:14) {
homarr | code: 'SQLITE_CANTOPEN'
homarr | }
homarr | error Command failed with exit code 1.
homarr | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
homarr | cp: cannot create regular file '/app/data/configs/default.json': Permission denied
homarr | Starting production server...
homarr | Error: EACCES: permission denied, opendir '/app/public/icons'
homarr | at Object.opendirSync (node:internal/fs/dir:335:3)
homarr | at recursiveReadDirSync (/app/node_modules/next/dist/server/lib/recursive-readdir-sync.js:20:32)
homarr | at recursiveReadDirSync (/app/node_modules/next/dist/server/lib/recursive-readdir-sync.js:25:13)
homarr | at NextNodeServer.generatePublicRoutes (/app/node_modules/next/dist/server/next-server.js:504:84)
homarr | at NextNodeServer.generateRoutes (/app/node_modules/next/dist/server/next-server.js:816:35)
homarr | at new Server (/app/node_modules/next/dist/server/base-server.js:206:48)
homarr | at new NextNodeServer (/app/node_modules/next/dist/server/next-server.js:175:9)
homarr | at NextServer.createServer (/app/node_modules/next/dist/server/next.js:179:24)
homarr | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
homarr | at async /app/node_modules/next/dist/server/next.js:200:31 {
homarr | type: 'Error',
homarr | errno: -13,
homarr | syscall: 'opendir',
homarr | code: 'EACCES',
homarr | path: '/app/public/icons'
homarr | }
homarr | Exporting hostname...
homarr | Migrating database...
homarr | yarn run v1.22.19
homarr | $ ts-node ./migrate.ts
homarr | /app/migrate/node_modules/better-sqlite3/lib/database.js:69
homarr | [util.cppdb]: { value: new addon.Database(filename, filenameGiven, anonymous, readonly, fileMustExist, timeout, verbose || null, buffer || null) },
homarr | ^
homarr | SqliteError: unable to open database file
homarr | at new Database (/app/migrate/node_modules/better-sqlite3/lib/database.js:69:26)
homarr | at Object.<anonymous> (/app/migrate/migrate.ts:12:16)
homarr | at Module._compile (node:internal/modules/cjs/loader:1255:14)
homarr | at Module.m._compile (/app/migrate/node_modules/ts-node/src/index.ts:1618:23)
homarr | at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)
homarr | at Object.require.extensions.<computed> [as .ts] (/app/migrate/node_modules/ts-node/src/index.ts:1621:12)
homarr | at Module.load (node:internal/modules/cjs/loader:1113:32)
homarr | at Function.Module._load (node:internal/modules/cjs/loader:960:12)
homarr | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
homarr | at phase4 (/app/migrate/node_modules/ts-node/src/bin.ts:649:14) {
homarr | code: 'SQLITE_CANTOPEN'
homarr | }
homarr | error Command failed with exit code 1.
homarr | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
homarr | cp: cannot create regular file '/app/data/configs/default.json': Permission denied
homarr | Starting production server...
homarr | Error: EACCES: permission denied, opendir '/app/public/icons'
homarr | at Object.opendirSync (node:internal/fs/dir:335:3)
homarr | at recursiveReadDirSync (/app/node_modules/next/dist/server/lib/recursive-readdir-sync.js:20:32)
homarr | at recursiveReadDirSync (/app/node_modules/next/dist/server/lib/recursive-readdir-sync.js:25:13)
homarr | at NextNodeServer.generatePublicRoutes (/app/node_modules/next/dist/server/next-server.js:504:84)
homarr | at NextNodeServer.generateRoutes (/app/node_modules/next/dist/server/next-server.js:816:35)
homarr | at new Server (/app/node_modules/next/dist/server/base-server.js:206:48)
homarr | at new NextNodeServer (/app/node_modules/next/dist/server/next-server.js:175:9)
homarr | at NextServer.createServer (/app/node_modules/next/dist/server/next.js:179:24)
homarr | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
homarr | at async /app/node_modules/next/dist/server/next.js:200:31 {
homarr | type: 'Error',
homarr | errno: -13,
homarr | syscall: 'opendir',
homarr | code: 'EACCES',
homarr | path: '/app/public/icons'
homarr | }
63 replies