Failures building from source
I'm following the "Building from source" instructions here: https://homarr.dev/docs/introduction/installation
After cloning and changing to the new directory, I run
yarn install
, after ~1 minute it exits with failures (way more than would be helpful to post here). Trying to install with npm install
instead also fails with errors:
I'm trying to build from source because docker-compose ends up in an infinite loop printing the following [sic]:
🚀 Installation | Homarr Docs
Homarr can be installed in many ways. For most users, Installation using Docker will be sufficient and the easiest.
14 Replies
FWIW
--force
and --legacy-peer-deps
do not resolve the issueYou can try deleting the database ./data/db.sqlite
This will force it to reinitialise for your docker compose.
I've nuked the directory entirely a few times, just tried again deleting only data/db.sqlite specifically and I'm getting the same thing
You can try replacing db.sqlite with a clean one here: https://discord.com/channels/972958686051962910/1172826100209025135/1173104601134805012
I think that I may have had a different issue entirely. While the instance writes that to the output indefinitely, when I navigate to <IP>:7575, I'm shown the page to add the data path, which says to refresh after adding it to the docker-compose.yml file (it was already there) and then click continue. I would stop the instance, make sure it was there, restart it, get back to that page and be told to do it again. I just continued past it and there seemingly isn't any issue
do you mind showing me your docker-compose script? @ryab
It's literally just copied from the install instructions, though I did try messing around with it a bit before.
Unfortunately this is beyond my expertise.
They are usually on around 08h00 UTC
I'm fairly certain it's actually working now, just maybe with the quirk that I think those two lines about the database are being printed forever
I have homarr up and just added radarr to it, so far so good. Still getting those lines printed, and I assume that if I hadn't created the admin account, it would still be prompting me to add that line to the docker-compose yaml and refresh
Good to hear
No rush, but could you do me a favour and restart the container at some time?
If it was a one off, I'll call it gremlins; but if the repeating error returns I'll open an issue in github.
Nothing interesting in the logs after restarting
I did try multiple times and removed dirs etc before reaching out here. I couldn't tell you why it's working now 🤷♂️
Gremlins it is!
I appreciate the help and the time either way
Hi, installing from source is not easy to do as you need specific requirements (node version, correct build tools, ...).
It's normal to see the database message being logged many times - But does the application work at all when this message is being logged?
Or why did you decide to switch to running from source?