Hello, I would like to build from source, I've installed latest lts versions of node /npm on a debian 11 machine. I'm following these instructions from the documentation and I also copied the env.example to .env and generated and added the nextauthkey as specified in the file.
Clone the Repository using git clone https://github.com/ajnart/homarr.gitEnter the created directory using cd homarrInstall all dependencies using npm installBuild the source using npm buildStart the NextJS web server using npm startAlternatively, use npm run dev to run a live development server
Clone the Repository using git clone https://github.com/ajnart/homarr.gitEnter the created directory using cd homarrInstall all dependencies using npm installBuild the source using npm buildStart the NextJS web server using npm startAlternatively, use npm run dev to run a live development server
The
npm install
npm install
command is throwing some errors related to the versioning of i18next. So I do
npm install --legacy-peer-deps
npm install --legacy-peer-deps
instead.
But then during
npm start
npm start
I'm getting error like this:
}}, data: { code: 'INTERNAL_SERVER_ERROR', httpStatus: 500, path: 'user.count', zodError: null}, name: 'TRPCClientError'}, elapsedMs: 582}Error [TRPCClientError]: no such table: user at TRPCClientError.from (file:///root/homarr/.next/server/src/middleware.js:2202:20) at <unknown> (file:///root/homarr/.next/server/src/middleware.js:2757:60) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
}}, data: { code: 'INTERNAL_SERVER_ERROR', httpStatus: 500, path: 'user.count', zodError: null}, name: 'TRPCClientError'}, elapsedMs: 582}Error [TRPCClientError]: no such table: user at TRPCClientError.from (file:///root/homarr/.next/server/src/middleware.js:2202:20) at <unknown> (file:///root/homarr/.next/server/src/middleware.js:2757:60) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
This looks like the issue is related to the database server. Do I need to initialize a db server somehow? The .env specifications are default and it seems to create a db file within /database.
I also looked into the scripts folder and there is a run.sh, which has some db migration thingies for yarn, I converted them to npm and giving a try but that was just a hopeless try and didnt do anything.
Please advise if there is a known solution or how to further debug. Thanks.
A sleek, modern dashboard that puts all of your apps and services at your fingertips. Control everything in one convenient location. Seamlessly integrates with the apps you've added, providing you with valuable information.