http 404 not found - notfoundexception (...)

Dave3 years ago

I have been using Traccar on my Truenas Scale Server, through the stable Traccar release in Truecharts. I have reached out to Truenas support and Truecharts support and in the end they have decided that my issue is such a fringe case that it is not worth the time to solve. On a completely fresh install of both Truenas and Traccar, on first launch I get a small red box at the bottom that says "http 404 not found - notfoundexception (...)" and the admin login does not work. When I try to switch to the old login screen, I get the same error message in a blue box and the blue spinning circle never changes. I have recorded the entire process including pulling logs and uploaded it to youtube. https://youtube.com/playlist?list=PLF5OsuUZ_157HSl0LN0kiBYVymHYxf99L Feel free to ask me to do anything, sans another fresh Truenas install. I have already done that thrice and it gets to be tedious.

Anton Tananaev3 years ago

I think those errors on the login screen mean that you have some issue with the API. Check browser console. Maybe there's some more information there.

Dave3 years ago

https://youtu.be/1UcL_lx6NsU
This video shows the console errors. it should be high enough definition to make out what it says and you can frame by frame see it happen in real time

Anton Tananaev3 years ago

The /api/server should never return 404. Check headers in the response.

Dave3 years ago

Apologies, im not sure how to do that.

Anton Tananaev3 years ago

Open the network tab in the developer tools.

Dave3 years ago
Request URL: http://192.168.1.180:8082/modern/login
Request Method: GET
Status Code: 404 Not Found
Remote Address: 192.168.1.180:8082
Referrer Policy: strict-origin-when-cross-origin
Cache-Control: must-revalidate,no-cache,no-store
Content-Length: 90
Content-Type: text/html;charset=iso-8859-1
Server: Jetty(10.0.7)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Cache-Control: max-age=0
Connection: keep-alive
Cookie: remember_web_59ba36addc2b2f9401580f014c7f58ea4e30989d=eyJpdiI6ImtQbk9KQ0crNjZ3dkc5NHBxSW04cHc9PSIsInZhbHVlIjoiSmVyU29US1huRmgxVTRwNGFtR3JCaEphQi9ST1hXQVMxNmVEeXBqcjg4OFF3WFBnOTI1SThIaENOZUdycG02UFBQRkJvMng4QzQzU2VDa2NrL2Q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.180:8082
Referer: http://192.168.1.180:8082/
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Dave3 years ago

So im just gonna screen cap again for this. Give me like... 10 mins.

Anton Tananaev3 years ago

You need to look at the API request.

Dave3 years ago

https://youtu.be/gjZ1H7J4HIc

ULTRA HD recording this time
Edit: I thought it was going to be epicly higher resolution, it wasn't.

Dave3 years ago

Sorry, if you need me to get something specific, you will probably need to tell me where to look as i am not familiar with this kind of troubleshooting. Where can i see the API request? Also, if it would help, i can provide the front facing IP so you can pull up the live version i am currently running.

Dave3 years ago
Anton Tananaev3 years ago

We were talking about /api/server request, so I was expecting that request from the network tab.

Public access will probably be the easiest option.

Dave3 years ago

I can also pull updated logs if you need those as well

Anton Tananaev3 years ago

Something really odd is happening. Something is wrong with the API. Maybe some Java issue. Not sure.