Help required after install of 3.11 on pi, login with admin admin not working

Tim3 years ago

following the guide https://www.traccar.org/forums/topic/installing-traccar-server-on-raspberry-pi-rasperian/
i have setup traccar using mariadb, and can see the default user present.

MariaDB [traccar]> select * from users;
+----+-------+-------+--------------------------------------------------+--------------------------------------------------+----------+-------+------+--------------+-----------+----------+-----------+------+------------------+------------+------------------+----------+----------------+-------------+-------+-----------+----------------+-------+----------+
| id | name  | email | hashedpassword                                   | salt                                             | readonly | admin | map  | distanceunit | speedunit | latitude | longitude | zoom | twelvehourformat | attributes | coordinateformat | disabled | expirationtime | devicelimit | token | userlimit | devicereadonly | phone | timezone |
+----+-------+-------+--------------------------------------------------+--------------------------------------------------+----------+-------+------+--------------+-----------+----------+-----------+------+------------------+------------+------------------+----------+----------------+-------------+-------+-----------+----------------+-------+----------+
|  1 | admin | admin | D33DCA55ABD4CC5BC76F2BC0B4E603FE2C6F61F4C1EF2D47 | 000000000000000000000000000000000000000000000000 |          |      | NULL | NULL         | NULL      |        0 |         0 |    0 |                  | NULL       | NULL             |          | NULL           |          -1 | NULL  |         0 |                | NULL  | NULL     |
+----+-------+-------+--------------------------------------------------+--------------------------------------------------+----------+-------+------+--------------+-----------+----------+-----------+------+------------------+------------+------------------+----------+----------------+-------------+-------+-----------+----------------+-------+----------+
1 row in set (0.000 sec)

MariaDB [traccar]>

nothing in logs that i can see

2020-11-24 20:54:01  INFO: Shutting down server...
2020-11-24 20:54:04  INFO: Operating system name: Linux version: 4.19.66-v7+ architecture: arm
2020-11-24 20:54:04  INFO: Java runtime name: OpenJDK Server VM vendor: Raspbian version: 11.0.9+11-post-Raspbian-1deb10u1
2020-11-24 20:54:04  INFO: Memory limit heap: 181mb non-heap: 0mb
2020-11-24 20:54:04  INFO: Character encoding: UTF-8 charset: UTF-8
2020-11-24 20:54:04  INFO: Version: 3.11-SNAPSHOT
2020-11-24 20:54:25  INFO: Starting server...

However when i try and login with admin admin i get a 500 server error

Anton Tananaev3 years ago

What is the full API response?

Tim3 years ago

Didnt think about looking at that, seems to be having troubles finding the page but is oddly displaying the login??

:8082/api/session?_dc=1606252736890:1 Failed to load resource: the server responded with a status of 404 (Not Found)
fake-login.html:1 POST http://192.168.1.3:8082/fake-login.html 404 (Not Found)
ext-all.js:22 POST http://192.168.1.3:8082/api/session 500 (Request failed.)
start @ ext-all.js:22
request @ ext-all.js:22
login @ app.min.js:67
onLoginClick @ app.min.js:70
callback @ ext-all.js:22
fireHandler @ ext-all.js:22
onClick @ ext-all.js:22
fire @ ext-all.js:22
fire @ ext-all.js:22
publish @ ext-all.js:22
publishDelegatedDomEvent @ ext-all.js:22
doDelegatedEvent @ ext-all.js:22
onDelegatedEvent @ ext-all.js:22
t @ ext-all.js:22
Anton Tananaev3 years ago
  1. Error 404 has absolutely nothing to do with your problem. It's expected.
  2. Still waiting for details on the API response.
Tim3 years ago

Other than the api output from developer console on browser I don't know what you mean by api response?

Anton Tananaev3 years ago

There should be a network tab in your browser with details about each network request (full request and response).

Tim3 years ago

Ah okay sorry, here is the session .

Request URL: http://192.168.1.3:8082/api/session
Request Method: POST
Status Code: 500 Request failed.
Remote Address: 192.168.1.3:8082
Referrer Policy: strict-origin-when-cross-origin

Cache-Control: must-revalidate,no-cache,no-store
Content-Length: 92
Content-Type: text/html; charset=ISO-8859-1
Date: Wed, 25 Nov 2020 06:51:58 GMT
Server: Jetty(9.2.21.v20170120)

Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: keep-alive
Content-Length: 42
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Cookie: JSESSIONID=tm9viqg8xfoj166sgfpdv0fhc
Host: 192.168.1.3:8082
Origin: http://192.168.1.3:8082
Referer: http://192.168.1.3:8082/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36

X-Requested-With: XMLHttpRequest
email: admin
password: admin
undefined: false
Anton Tananaev3 years ago

So, where is the response body?

Tim3 years ago
<!DOCTYPE<html><head><title>Error</title></head><html><body>500 - Server Error</body></html>
Anton Tananaev3 years ago

Have you checked wrapper log for errors?

Anton Tananaev3 years ago

Btw why are you using such an ancient version of Traccar?

Tim3 years ago

Only reason was that the guide used that version as it was written 4 years ago. I didn't want to follow same instructions with newer version encase there was any issues. More than happy to use a newer version if there is a guide for raspberry pi installs.
As in teh java wrapper log, or is the name for another traccar log file? If the latter all i see in logs is tracker-server.log

Anton Tananaev3 years ago

Doesn't raspberry use a standard Linux os?

Tim3 years ago

Its running Raspbian, from my understanding the PI i have has a 64 bit CPU but Raspbian is 32bit. I read on some forums that people had uncovered issues with running the standard linux installer with 32 bit os? Thus i opted to follow the manual install