First login : user and password ?

zos938 years ago

Hi,

i try to login for the fisrt time to traccar server with a browser. I filled in email "admin" and password "admin" but it doesn't work...
The user "admin" exists in table "users". I tried to change password in MySQL but the message is the same : incorrect email or password.

Could you help me please ?

Thank you

Anton Tananaev8 years ago

Default use is "admin" with password "admin" (without quotes). How did you change the password in the database? It's hashed. Did you hash your new password?

zos938 years ago

The java installation was bad : traccar could'nt access to an encoder class.
After resintalling java and traccar, its 'ok.

Thank you for your answer.

Yechiel cohena year ago

Hi,

I was trying to use version v5.8 with the Modern Web App. So I have followed the insructions and managed to compile both the server and the web app (using VSCode). I also managed to run the server locally, but when trying to login from the browser at localhost:8082 with user:admin, password:admin, I get a little error message: "Incorrect email address or password"

The server standard output is as follows:

$  cd /home/byc013/data/AdvanceTec/GIT/NEW-SRV/traccar ; /usr/bin/env /usr/java/oracle/jdk-18.0.2.1/bin/java -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:37777 @/tmp/cp_bwq3ka3cukit2w83q8bqjwf5r.argfile org.traccar.Main 
2023-06-25 16:16:10  INFO: Operating system name: Linux version: 5.15.0-75-generic architecture: amd64
2023-06-25 16:16:10  INFO: Java runtime name: Java HotSpot(TM) 64-Bit Server VM vendor: Oracle Corporation version: 18.0.2.1+1-1
2023-06-25 16:16:10  INFO: Memory limit heap: 7964mb non-heap: 0mb
2023-06-25 16:16:10  INFO: Character encoding: UTF-8 charset: UTF-8
2023-06-25 16:16:10  INFO: Version: null
2023-06-25 16:16:10  INFO: Starting server...
2023-06-25 16:16:10  INFO: HikariPool-1 - Starting...
2023-06-25 16:16:11  INFO: HikariPool-1 - Added connection conn0: url=jdbc:h2:./target/database user=SA
2023-06-25 16:16:11  INFO: HikariPool-1 - Start completed.
2023-06-25 16:16:11  INFO: Set default schema name to PUBLIC
2023-06-25 16:16:11  INFO: Clearing database change log checksums
2023-06-25 16:16:11  INFO: Successfully acquired change log lock
2023-06-25 16:16:11  INFO: Successfully released change log lock
2023-06-25 16:16:11  INFO: Successfully acquired change log lock
2023-06-25 16:16:12  INFO: Reading from PUBLIC.DATABASECHANGELOG
2023-06-25 16:16:12  INFO: Reading from PUBLIC.DATABASECHANGELOG
Database is up to date, no changesets to execute
2023-06-25 16:16:12  INFO: Reading from PUBLIC.DATABASECHANGELOG
2023-06-25 16:16:12  INFO: UPDATE SUMMARY
2023-06-25 16:16:12  INFO: Run:                          0
2023-06-25 16:16:12  INFO: Previously run:              43
2023-06-25 16:16:12  INFO: Filtered out:                 0
2023-06-25 16:16:12  INFO: -------------------------------
2023-06-25 16:16:12  INFO: Total change sets:           43


UPDATE SUMMARY
Run:                          0
Previously run:              43
Filtered out:                 0
-------------------------------
Total change sets:           43

2023-06-25 16:16:12  INFO: Update summary generated
2023-06-25 16:16:12  INFO: Successfully released change log lock
2023-06-25 16:16:12  INFO: Successfully released change log lock
2023-06-25 16:16:12  INFO: Command execution complete
2023-06-25 16:16:13  INFO: jetty-10.0.15; built: 2023-04-11T17:25:14.480Z; git: 68017dbd00236bb7e187330d7585a059610f661d; jvm 18.0.2.1+1-1
2023-06-25 16:16:13  INFO: Started o.t.w.@9df564f{/,null,AVAILABLE}
2023-06-25 16:16:13  INFO: Session workerName=node0
2023-06-25 16:16:13  WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2023-06-25 16:16:14  INFO: Started o.e.j.s.ServletContextHandler@7cdfa824{/,null,AVAILABLE}
2023-06-25 16:16:14  INFO: Started ServerConnector@8aeab9e{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
2023-06-25 16:16:14  INFO: Started Server@7c96c85{STARTING}[10.0.15,sto=0] @4498ms
2023-06-25 16:16:39  INFO: login failed from: [0:0:0:0:0:0:0:1]
Anton Tananaeva year ago

There's no default user anymore. You have to register it yourself, but if the app doesn't ask, it means you already have a user.

Yechiel cohena year ago

That worked! Thank you!
Thats fine, but how can I prevent any user from registering a new user for non-developement server?

Anton Tananaeva year ago

Disable it in the server settings.

Yechiel cohena year ago

Oh, now I see that by default :

  1. The modern web app (react) is on port 3000
  2. The legacy web app is active on port 8082

Please clarify, if I add register a user, the legacy web app will force the login page while the modern one will use my cookies to login?

Anton Tananaeva year ago

I don't really understand the question. Those are completely separate apps and hosts.