Custom Background
I know I'm missing something simple.
I have this in my docker-compose file;
- /opt/appdata/homarr/configs:/app/data/configs
- /opt/appdata/homarr/icons:/app/public/icons
- /opt/appdata/homarr/data:/data
- /opt/appdata/homarr/wallpapers:/app/public/img
- /var/run/docker.sock:/var/run/docker.sock
if I look in /opt/appdata/homarr/wallpapers I see my background, cp1.jpg.
If I docker exec -it homarr sh and go to /app/public/img and do an ls, I see my cp1.jpg.
If I add /img/cp1.jpg or /cp1.jpg or anything in Homarr, it never shows, I keep getting: http://ipaddress/img/cp1.jpg not found.
I've tried reading the docs, and wher it says "You can find out here how to mount the public image directory", the "here" part of the link points to https://link.to.something. (https://homarr.dev/docs/customizations/board-customization)
I know I'm missing something easy;
📄 Board customization | Homarr Docs
How to get to the customize page
Solution:Jump to solution
Restart didn't work, we had to go deeper.
A folder named wallpapers wasn't linking to app/public/img
Renaming the folder to IMG solved it.
I couldn't replicate on docker compose.
Also a chance of a typo along the way (part of my rationale to change the folder name to troubleshoot)....
18 Replies
I missread the error
It should be /img/cp1.jpg linking to /opt/appdata/homarr/wallpapers/cp1.jpg
you may have to save the change to allow the update to view, unlike the old versions.
Homarr also needs to be restarted to see new files. Have you restarted the container after putting cp1.jpg in the folder?
Yes, I have
hmm. Perhaps the issue is soucre folder naming?
Does the problem persist if you try renaming your wallpaper folder to img, the re-variable with /opt/appdata/homarr/img:/app/public/img
or perhaps nesting it with: /opt/appdata/homarr/wallpapers/img:/app/public/img
It shouldn't matter, but i would help find the code issue if it fixes it.
This line makes me think the variable isn't connecting: I keep getting: http://ipaddress/img/cp1.jpg not found.
this is what I have;
going into /opt/appdata/homarr/wallpapers and doing an ls -l shows cp1.jpg
what i'm saying is //wallpapers isn't successfully linking to //img
if I do; docker exec -it homarr sh
and sorry, I just cp'ed cp1.jpg to cp2.jpg just to make sure it was linking right
and in the console of the web browser; I get
well, that was where I changed it to 2, but cp1.jpg doens't work either. Sorry, was trying all kinds of things, lol
my exec -it homarr sh doesn't show img
I think if you rename the source folder from wallpaper to img, then relink like that it will fix it
oh I see
what you mean
lemme try that
well, that seems to have fixed it. weird. Hoooray 😄
very odd, I just tried to replicate it, but it worked fine 🤷
At least we found the gremlin.
yp! ty very much for the help 😄
A bit late to the party sorry, when you add an image or a logo, homarr will only see it after you restart the container. Unless you had done that and it still didn't work and it was a deeper issue.
Solution
Restart didn't work, we had to go deeper.
A folder named wallpapers wasn't linking to app/public/img
Renaming the folder to IMG solved it.
I couldn't replicate on docker compose.
Also a chance of a typo along the way (part of my rationale to change the folder name to troubleshoot).
Good thinking, thanks for helping :)