No Device Icons after move to an other Server (Docker)

Peter Leibling3 months ago

Hello, yesterday i migrate my Docker Host to another (Ubunutu 20.x > 24.x). For this i copy all my Datafolders to the new Server and starts the containers - all works find, except a little problem.

The Device Icons are now not shown.

For Traccar i compare my Datafolders on booth Servers (/docker-data/traccar/conf and /docker-data/traccar/logs) but everything is the same, include the permissions and ownership.

If i update my Devicesettings, the Image for the Device isn't shown. I take a look in the Database and they show me for every Device {"deviceImage":"device.png"}

Can somebody tell me, how i can fix the problem? Or where the Images has to be? Are they in the container instead of an local folder? If yes where? So i can mount them out of the Container in the local filesystem.

Thanks for your help.

Turbovix3 months ago

When you say icons, are you actually referring to the icon you reference (car, motorcycle, boat, person, plane...) or are you saying the image you uploaded to reference a device?

Peter Leibling3 months ago

Thanks for our help.

I mean the Image for reference to a Device.
Bildschirmfoto 2024-09-10 um 14.20.57.png

Turbovix3 months ago

This image is located inside /opt/traccar/media.
This image is located inside /opt/traccar/media
Therefore, you must correctly map the folder between the host and container. In the same way as you would do with the /config folder.

Turbovix3 months ago

version: '3.7'

services:
traccar:
image: traccar/traccar
volumes:
- ./Your path on the host/config:/opt/traccar/config
- .Your path on the host/media:/opt/traccar/media
ports:
- "8082:8082"

Turbovix3 months ago

Here you will find the information you need.

https://github.com/traccar/traccar-docker

Peter Leibling3 months ago

Thanks a lot for your fast replay - it works perfectly :).
Bildschirmfoto 2024-09-10 um 14.41.48.png

Peter Leibling3 months ago

@turbofix: Yeah, i know this, but i hasn't the path for the media - but it shown too easy :).

Migration yesterday round about 30 Container to a new host, and thats was the only problem.

I love Traccar, it is very easy and cool.

If needed, i wrote an German Manual (you can use Google Translate for other languages), including complete configuration for an ST-902L: https://wiki.leibling.de/books/traccar