Device image wont change

Anthony Ta month 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 Tananaeva month ago

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

Anthony Ta month ago

.

Anton Tananaeva month ago

Yes, it should.

Anthony Ta month 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 Tananaeva month 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 Ta month 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 Tananaeva month ago

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

Anthony Ta month 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 Ta month ago

traccar 3.png

Anthony Ta month 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 Tananaeva month ago

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

Anthony Ta month ago

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

Anton Tananaeva month ago

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

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

Anthony Ta month ago

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