Device image wont change

Anthony T3 months ago

yes...

user@traccar:/opt/traccar/media/868022033625497$ ls
device.jpg  device.png
user@traccar:/opt/traccar/media/868022033625497$

i tried enabling cors, just to test, i know it involves security issues, but it was just to test, but still same error

Anton Tananaev3 months ago

No other ideas. One thing I recommend trying is removing the media folder and uploading again.

Anthony T3 months ago

.

Anton Tananaev3 months ago

Yes, it should.

Anthony T3 months ago

ok, i did, the folder was created again automatically when i uploaded the image, but the result is still the same. could it be a permission issue?

Anton Tananaev3 months ago

Highly unlikely. If the image and folders were created by the server, it should have access. Are you sure you don't have some configuration changes that might affect it?

Anthony T3 months ago

I don't think so, this is a fresh install... i only changed logo in server/attributes under settings (and it worked), and added 2 devices. i only asked about permissions because i have not made the installation under root, but my user is a sudoer, so it shouldn't be a problem

Anton Tananaev3 months ago

If you did "sudo", it means it was installed under a root user.

Anthony T3 months ago

ok, i found the issue... i t was actually a permission issue but in the apache config file, i added:

                <Location /api/media/>
                    ProxyPass !
                </Location>

                Alias /api/media /opt/traccar/media
                <Directory /opt/traccar/media>
                    Options Indexes FollowSymLinks
                    AllowOverride None
                    Require all granted
                </Directory>

and now it shows

Anthony T3 months ago

traccar 3.png

Anthony T3 months ago

now i am able to see the image when i click the vehicle... but there is another question... is it possible to add that picture to the status icon? i know the icon shows green and grey when online/offline, but is there a chance to replace the icon for the device custom image?

Anton Tananaev3 months ago

In earlier comments I don't see any mention of the fact that you even had Apache.

Anthony T3 months ago

yes, sorry, my bad... i followed instructions on documentation to install SSL and redirect to https

Anton Tananaev3 months ago

We definitely don't have those lines in our official documentation:

https://www.traccar.org/secure-connection/

Anthony T3 months ago

so, is there a chance to replace the status icon for the device image?, i mean directly from the web app?