H
Homarr•13mo ago
wangel

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:
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)....
Jump to solution
18 Replies
explosive parrot
explosive parrot•13mo ago
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?
wangel
wangelOP•13mo ago
Yes, I have
explosive parrot
explosive parrot•13mo ago
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.
wangel
wangelOP•13mo ago
this is what I have;
No description
wangel
wangelOP•13mo ago
going into /opt/appdata/homarr/wallpapers and doing an ls -l shows cp1.jpg
explosive parrot
explosive parrot•13mo ago
what i'm saying is //wallpapers isn't successfully linking to //img
wangel
wangelOP•13mo ago
if I do; docker exec -it homarr sh
No description
wangel
wangelOP•13mo ago
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
wangel
wangelOP•13mo ago
No description
wangel
wangelOP•13mo ago
well, that was where I changed it to 2, but cp1.jpg doens't work either. Sorry, was trying all kinds of things, lol
explosive parrot
explosive parrot•13mo ago
my exec -it homarr sh doesn't show img
No description
explosive parrot
explosive parrot•13mo ago
I think if you rename the source folder from wallpaper to img, then relink like that it will fix it
wangel
wangelOP•13mo ago
oh I see what you mean lemme try that well, that seems to have fixed it. weird. Hoooray 😄
explosive parrot
explosive parrot•13mo ago
very odd, I just tried to replicate it, but it worked fine 🤷 At least we found the gremlin.
wangel
wangelOP•13mo ago
yp! ty very much for the help 😄
Serenaphic
Serenaphic•13mo ago
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
explosive parrot
explosive parrot•13mo ago
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).
Serenaphic
Serenaphic•13mo ago
Good thinking, thanks for helping :)
Want results from more Discord servers?
Add your server