An unexpected error has occurred
I talked to Mani about it a little bit here: https://canary.discord.com/channels/972958686051962910/1049079561071120384/1155548495399354489
This still does not work on all devices, on the deviced I have the page cached on it works with image dev-db-error. Un uncached devices I just get 404
If I use the dev image I get this:
An unexpected error has occurred
This page has crashed unexpectedly. We're sorry for the inconvenience. Please try again or contact an administrator
Homarr docker logs, it also shows as unhealty: https://pastebin.com/raw/6KJJNZH7
15 Replies
TypeError: Cannot open database because the directory does not exist
I guess you need to mount the db directory@Spillebulle are you mounting a db correctly ?
Here are the mounts @Meierschlumpf @ajnart
![No description](https://cdn.answeroverflow.com/1167075778098372751/image.png)
![No description](https://cdn.answeroverflow.com/1167078524880957480/image.png)
You need to mount the /app/database directory too, thats new for the new database stuff we added
@Spillebulle
We should add that here in the docs. I kept double checking here that I had done everything correct
![No description](https://cdn.answeroverflow.com/1167080122441023599/image.png)
Yeah it's not yet officially released and still on dev. Thats the reason why the documentation has not been updated yet π
@Meierschlumpf Still same Unexpected error has occurred https://pastebin.com/raw/Up8mtsrs
![No description](https://cdn.answeroverflow.com/1167081561712234557/image.png)
For me this command works on windows with docker desktop:
docker run --name homarr-error --restart unless-stopped -p 7575:7575 -v configs:/app/data/configs -v icons:/app/public/icons -v database:/app/database -d ghcr.io/ajnart/homarr:dev
![No description](https://cdn.answeroverflow.com/1167082712293720135/image.png)
I am doing it through portainer but the run command would be like so I guess
docker run --name Homarr --restart unless-stopped -p 7575:7575 -v /var/lib/docker/volumes/Homarr-data/_data:/app/data/configs -v /var/lib/docker/volumes/Homarr-database/_data:/app/database -d ghcr.io/ajnart/homarr:dev
Solution
Apparently I had the PASSWORD env still in, removed that and works now
Nice!
@Spillebulle please help us write documentation for the new update if you have some free time π«Άπ»