Password reset link is broken

savasy2 years ago

Hello,

This is how we get password reset link, (and obviously doesn't work)

To reset password please click on the following link:

http://10.0.0.4:8082/reset-password?passwordReset=[REDACTED]

Any idea why "10.0.0.4" instead of FQDN ?

Best,

Savas

Anton Tananaev2 years ago

Have you set the web.url parameter? If not, how do you expect Traccar to know your external URL?

savasy2 years ago

I added <entry key='web.url'>server.REDACTED.com</entry> to traccar.xml file, restarted server and now I am getting the following error message when I try to access the server,

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>503 Service Unavailable</title> </head><body> <h1>Service Unavailable</h1> <p>The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.</p> <hr> <address>Apache/2.4.41 (Ubuntu) Server at server.REDACTED.com Port 443</address> </body></html>
savasy2 years ago

I fixed "503 Service Unavailable" issue as follows;

mysql -u root -h localhost -p -e 'show databases;' (to find the name of the database)
mysql -u root -p
    SELECT * FROM traccar.DATABASECHANGELOGLOCK;
    update traccar.DATABASECHANGELOGLOCK set locked=0 WHERE ID=1;
    SELECT * FROM traccar.DATABASECHANGELOGLOCK; (to verify)

reboot the server, fixed

Anton Tananaev2 years ago

Your config is wrong. You have to use a proper URL, not just the host name.

savasy2 years ago

<entry key='web.url'>http://server.REDACTED.com</entry>

instead of

<entry key='web.url'>server.REDACTED.com</entry> ?