Fail in build from surce -legacy web-

DaveGG8 months ago

Hello! After work in my local server and traccar-web and try to do Legacy web with this steps https://www.traccar.org/build-extjs/
After that I stop the services traccar and start services traccar again, my localhost:8082 show me the modern app web.
I don't know why even after solve some issues. Yes I can see my app.min.js make it in my web folder. I don't know what is happend, even I delete my IP history and cookies fron mozilla. I don't know.
an idea that's happen?
Cheers!

Anton Tananaev8 months ago
  1. Make sure the server configuration is correct.
  2. Make sure you remove all the web app data, not just cookies and history.
DaveGG8 months ago

OK I'll do. Thanks for your time.

DaveGG8 months ago

Hello again. All my web app data is remove. Server is ok, is work. But...
I've undone everything, stop services unistall traccar and install again vs 64-5.8 because....
Because I'm in Debian or Linux Mint this time use the recomend Digital Ocean linux installation, all install is good, open localhost:8082 an is there the login modern page. So go to Build from source. But the problems is there.
The problem I suspect is when in my machine I do the process Build server, I do ./gradlew assemble and when finish replace the tracker-server.jar in my original opt/traccar folder, when I do this start the fails. Now have one NetworkError when attempting to fetch resource when type localhost:8082 & enter
and after a deep search the Network tab web console say something like this
Failed to register/update a ServiceWorker for scope 'http://localhost:8082/': upload failed with status 404 for script 'http://localhost:8082/service-worker.js'. 2

DaveGG8 months ago

Hello.
I don't know why but...

● traccar.service - traccar
     Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Wed 2023-08-23 20:28:19 CEST; 6s ago
    Process: 5893 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml (code=exited, status=1/FAILURE)
   Main PID: 5893 (code=exited, status=1/FAILURE)
        CPU: 205ms

All this changes when stop the traccar service, copy the tracker-server.jar to replace the original & when restart the traccar service is activating, not active.