Xum
Xum
HHomarr
Created by Xum on 10/21/2023 in #💬・get-help
Build from source issues
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.git
Enter the created directory using cd homarr
Install all dependencies using npm install
Build the source using npm build
Start the NextJS web server using npm start
Alternatively, use npm run dev to run a live development server
Clone the Repository using git clone https://github.com/ajnart/homarr.git
Enter the created directory using cd homarr
Install all dependencies using npm install
Build the source using npm build
Start the NextJS web server using npm start
Alternatively, use npm run dev to run a live development server
The npm install command is throwing some errors related to the versioning of i18next. So I do npm install --legacy-peer-deps instead. But then during 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.
11 replies