New install asking for credentials

Turbow53 days ago

I've done a fresh install of Traccar (windows) and have no problem getting to the login screen. But what are the default credentials to get in?? From the install video, it's suppose to ask me for what I want the creds to be but it doesn't do that at all. I looked into the database and there are zero entries for users. So...What am I suppose to do here?

Anton Tananaev3 days ago

There are no default credentials. First time you open the app, it should prompt you to register admin user.

Turbow53 days ago

It really doesn't do that though. It goes straight to login credentials. Is there a way to reset the password? And find out what the username is.

Anton Tananaev3 days ago

If it doesn't do that, it means someone already registered an admin user.

You can just clear the database to reset everything.

Turbow53 days ago

I did do that though. I deleted the database, even did fresh installs to new directories, and it still goes straight to the login page.

I even used power shell to confirm there was only one traccar running, and of course, restarted the PC. But it still lands me on that login page.

Anton Tananaev3 days ago

What version of Traccar do you have?

Turbow53 days ago

The latest one from the download page. (At work ATM, so I can't tell you the exact version)

Anton Tananaev3 days ago

Then you should definitely see a registration page with a clean database.

Turbow53 days ago

I know what it's suppose to do because I got it to work on a Linux machine before.
But this is not landing me on anything but the login screen.n even on fresh installs. And deleting the database. Which explains why when I queries the DB, it said no users.

What I don't understand is why it skips user creation. I can record a video if you wanna see for yourself.

Anton Tananaev3 days ago

I don't need a video. I trust that it's what you see, but it means you're missing something important. Maybe you're looking at the wrong database or connecting to the wrong server or something along those lines.

Turbow53 days ago

Going of memory here. There are two database files in a folder (config?) and I deleted them both. Restarted traccar. And watched them go from 0KB to 136KB (pretty sure it was 136).

With the service not running, I cannot connect to localhost:8082 then I start the service and I get directed to localhost:8082/login.

I thought initially maybe it was connecting to a database I'm not seeing. So I installed it on a new drive, and I get the same thing. It's skipping the user creation part. Or magically connecting to a database not in its install directory.

Turbow53 days ago

Would it be possible to download another users database, to see if mine can read it and get in that way? Then I can create my own creds?

Anton Tananaev3 days ago

One option is to set service account token in the config. Login with that token and register any user you want.

Turbow53 days ago

Is there a guide for that?

Anton Tananaev3 days ago

Configuration doc (see web.serviceAccountToken):

https://www.traccar.org/configuration-file/

Then login using the token. Example here:

https://www.traccar.org/user-management/