[Solved!] Images on cards disappeared after upgrade from 5.1.0M2 to M3

Have tried to get them back from folder /static/images/*.jpg, but all my trials and changes were w/o success upto now. Also very mysterious that some of the images in that folder are completely deleted. Is anyone else having this problem and a solution for that?

Thanks a lot

Neither openHAB nor the openHAB installer/upgraders changes anything in the $OH_CONF folder. It only reads from those folders.

So if you have files disappearing from there it has been caused by something else. Perhaps a backup service run amok? SD card is wearing out? Failed restore from a backup? With the information provided it’s impossible to say.

As for trying to get the images to show :person_shrugging: There isn’t nearly enough information to address that. But I suspect the two issues might be related.

For completeness,

  1. Place the file in $OH_CONF/html and make sure it’s owned/has read permission for the openhab user. For this example I’ll call it “foo.jpg”.
  2. Click on the pencil on the overview page and menu icon next to the card you want to set the image for and choose “Configure card”
  3. Set the “Background Image” to /static/foo.jpg

Thank you very much for your hints. I have made some trials and have gone through your suggestions. I have two OH-systems running.One is OH4.3.x running for my home since version 2.8 where I have never had such behaviour. The new system OH5.1.0.M3 is for a different project an is running on Raspberry 5.And as I just said, the issue is dirctly appeared after upgrade from OH5.1.0M2 to M3. Before all worked fine.

  • new SD-card doesn’t change anything
  • all images are correct in the indicated folders, also moving into static/ directly dosn’t solve it.
  • finally the solution was that I had the path in the cards “background image” line defined w/o the slash at the beginning (static/images/…). This worked obviously since 5.1.0M2. In 5.1.0M3 it is mandatory to put the slash on the beginning of the path (/static/images/…)!

Also in my system running on OH 4.3.x it worked with and w/o the slash in front of the path!

Small difference with big effect :wink: