Phoenixx
Phoenixx
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
I figured out the issue, it had to do with SELinux
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
Yeah still having the same issue
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
Will try chmod 777 when I get home
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
Any other ideas in which I could try?
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
I fixed that issue, there is now one directory
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
Still the same issue
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
Im going to try root:root, maybe itll make a difference maybe not
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
Yeah
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
Thats with --user 0:0
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
Yeah
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker 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 | }
Back to this error
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
Default permissions for the directories
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
alright
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
This command
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
docker run \
--name homarr \
--restart unless-stopped \
-p 7575:7575 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v <your-path>/homarr/configs:/app/data/configs \
-v <your-path>/homarr/data:/data \
-v <your-path>/homarr/icons:/app/public/icons \
-d ghcr.io/ajnart/homarr:latest
docker run \
--name homarr \
--restart unless-stopped \
-p 7575:7575 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v <your-path>/homarr/configs:/app/data/configs \
-v <your-path>/homarr/data:/data \
-v <your-path>/homarr/icons:/app/public/icons \
-d ghcr.io/ajnart/homarr:latest
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
Should I add --user uid:gid \ to the command?
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
It seems like I can do stuff since I can use touch and create a file then edit the file with no issues and without sudo
63 replies
HHomarr
Created by Phoenixx on 12/28/2023 in #💬・get-help
Errors when starting the docker container
Other than going back to the previous error
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