Login window won't load remotely

Stephen Cunningham 7 years ago

I have traccar reversed proxied through nginx. On my local network it works fine at mydomain.com/gps/ . If I try to access remotely I can reach traccar but it just spins trying to load the login page. Does traccar have some kind of whitelist setting that could be blocking it from loading. I have web sockets proxied also. Anything I could be missing?

Anton Tananaev 7 years ago

No, it doesn't. Check browser console.

Stephen Cunningham 7 years ago
Failed to load resource: the server responded with a status of 404 (Not Found)
default.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
animal.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
bicycle.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
bus.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
boat.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
car.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
crane.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
helicopter.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
motorcycle.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
offroad.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
person.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
pickup.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
plane.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
ship.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
tractor.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
van.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
truck.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/l10n/en.json?_dc=1530985012320:1 Failed to load resource: the server responded with a status of 404 (Not Found)
ext-all.js:22 Uncaught Error: You're trying to decode an invalid JSON String: <!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>An Error Occurred: Not Found</title>
    </head>
    <body>
        <h1>Oops! An Error Occurred</h1>
        <h2>The server returned a "404 Not Found".</h2>

        <div>
            Something is broken. Please let us know what you were doing when this error occurred.
            We will fix it as soon as possible. Sorry for any inconvenience caused.
        </div>
    </body>
</html>


    at new Ext.Error (ext-all.js:22)
    at Function.raise (ext-all.js:22)
    at Object.Ext.raise (ext-all.js:22)
    at Object.Ext.JSON.me.decode (ext-all.js:22)
    at callback (process.php?d=XURnJ5k5Q5QfC0KBb2BJEp8b8lvS9i%2FMGro%3D&b=1:118)
    at Object.callback (ext-all.js:22)
    at F.onComplete (ext-all.js:22)
    at F.onStateChange (ext-all.js:22)
    at XMLHttpRequest.<anonymous> (ext-all.js:22)
/process.php?d=XURnJ5k5Q5QfC0KBb2BJHIwHsxnN%2BSw%3D&b=1:1 Failed to load resource: the server responded with a status of 404 (Not Found)
arrow.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
default.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
animal.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
bicycle.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
boat.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
bus.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
car.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
crane.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
helicopter.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
motorcycle.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
offroad.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
person.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
pickup.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
plane.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
ship.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
tractor.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
truck.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
van.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Stephen Cunningham 7 years ago

It's working, just failed going through a proxy site. Had a friend connect remotely without a problem. Thanks. Now I just need to figure out why port 5055 is not working even though it's forwarded.

alexbk66 5 years ago

I have same problem - "server responded with a status of 404" /l10n/en.json?_dc=1601704793661:1

I'm trying to browse the site locally in the server VM, so not sure if it's caused by proxy

[EDIT]

The server is Windows server 2008, IIS7

Anton Tananaev 5 years ago

Have you checked if the file is there?

alexbk66 5 years ago

Привет Антон,
Yeah, the file is there. I'm helping Calum from OzSmartThings.
The long story:
Since TLS under 1.2 is not allowed anymore - I enabled TLS 1.2
Also, I added read permissions for IIS_IUSRS on the web folder
Then after lots of Googling I added URL rewrite https://freek.ws/2017/12/09/tutorial-how-to-secure-traccar-with-ssl-https-for-free-using-iis-and-lets-encrypt-on-windows-server/
So I have HTTPS working, but now the problem with en.json file
From 404 the error changed to 502.3, now it's 500.19
And I'm lost... It's 1 AM in Australia

Anton Tananaev 5 years ago

So you are using proxy. Probably that's the issue as well.

alexbk66 5 years ago

I'm not an expert in setting up websites, I'm SW engineer.
So I don't know much about proxies. Do I need the proxy?
What do I need to do to get HTTPS? It was working before. Does it have to do with TLS 1.2?

alexbk66 5 years ago

The error 500.19 was caused by bad web.config, not it's back to:
502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.