Hi,
I've installed traccar in two different RaspberryPi. Traccar works perfectly in one of them but not in the other one (if I point to http://localhost:8082 I only get a blank screen). In both cases, the source code is the same
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#1E88E5"/><meta name="description" content="Traccar GPS tracking system"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><link rel="stylesheet" href="/styles.css"><title>Traccar</title><script defer="defer" src="/static/js/main.276d165c.js"></script><link href="/static/css/main.967cebd1.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root" class="root"></div></body></html>
Both are running traccar 5.5 on Debian Bullseye (Debian 11). Does anybody know what could cause this blank screen instead of login page?
From the machine where traccar works
Linux raspberrypi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
2023-02-02 07:46:44 INFO: Stopping server...
2023-02-02 07:46:59 INFO: Operating system name: Linux version: 5.10.103-v7+ architecture: arm
2023-02-02 07:46:59 INFO: Java runtime name: OpenJDK Server VM vendor: Eclipse Adoptium version: 17.0.4+8
2023-02-02 07:46:59 INFO: Memory limit heap: 224mb non-heap: 0mb
2023-02-02 07:46:59 INFO: Character encoding: UTF-8 charset: UTF-8
2023-02-02 07:46:59 INFO: Version: 5.5
2023-02-02 07:46:59 INFO: Starting server...
2023-02-02 07:47:00 INFO: HikariPool-1 - Starting...
2023-02-02 07:47:04 INFO: HikariPool-1 - Added connection conn0: url=jdbc:h2:./data/database user=SA
2023-02-02 07:47:04 INFO: HikariPool-1 - Start completed.
2023-02-02 07:47:05 INFO: Set default schema name to PUBLIC
2023-02-02 07:47:05 INFO: Clearing database change log checksums
2023-02-02 07:47:06 INFO: Successfully acquired change log lock
2023-02-02 07:47:06 INFO: Successfully released change log lock
2023-02-02 07:47:06 INFO: Successfully acquired change log lock
2023-02-02 07:47:15 INFO: Reading from PUBLIC.DATABASECHANGELOG
2023-02-02 07:47:17 INFO: Reading from PUBLIC.DATABASECHANGELOG
2023-02-02 07:47:18 INFO: Successfully released change log lock
2023-02-02 07:47:20 INFO: Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system instability.
2023-02-02 07:47:28 INFO: jetty-10.0.12; built: 2022-09-14T01:54:40.076Z; git: 408d0139887e27a57b54ed52e2d92a36731a7e88; jvm 17.0.4+8
2023-02-02 07:47:28 INFO: Started o.t.w.@1179f51{/,null,AVAILABLE}
2023-02-02 07:47:29 INFO: Session workerName=node0
2023-02-02 07:47:31 WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2023-02-02 07:47:34 INFO: Started o.e.j.s.ServletContextHandler@1f3410a{/,null,AVAILABLE}
2023-02-02 07:47:34 INFO: Started ServerConnector@10902b4{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
2023-02-02 07:47:34 INFO: Started Server@b29ea8{STARTING}[10.0.12,sto=0] @42532ms
2023-02-02 07:47:34 INFO: Health check enabled with period 480000
From the machine where traccar fails
Linux raspberrypi 5.15.90-v7+ #1623 SMP Mon Jan 30 14:59:14 GMT 2023 armv7l GNU/Linux
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
2023-02-02 07:35:52 INFO: Stopping server...
2023-02-02 07:39:43 INFO: Operating system name: Linux version: 5.15.90-v7+ architecture: arm
2023-02-02 07:39:43 INFO: Java runtime name: OpenJDK Server VM vendor: Eclipse Adoptium version: 17.0.4+8
2023-02-02 07:39:43 INFO: Memory limit heap: 210mb non-heap: 0mb
2023-02-02 07:39:43 INFO: Character encoding: UTF-8 charset: UTF-8
2023-02-02 07:39:43 INFO: Version: 5.5
2023-02-02 07:39:43 INFO: Starting server...
2023-02-02 07:39:44 INFO: HikariPool-1 - Starting...
2023-02-02 07:39:48 INFO: HikariPool-1 - Added connection conn0: url=jdbc:h2:./data/database user=SA
2023-02-02 07:39:48 INFO: HikariPool-1 - Start completed.
2023-02-02 07:39:49 INFO: Set default schema name to PUBLIC
2023-02-02 07:39:49 INFO: Clearing database change log checksums
2023-02-02 07:39:50 INFO: Successfully acquired change log lock
2023-02-02 07:39:51 INFO: Successfully released change log lock
2023-02-02 07:39:51 INFO: Successfully acquired change log lock
2023-02-02 07:39:59 INFO: Reading from PUBLIC.DATABASECHANGELOG
2023-02-02 07:40:02 INFO: Reading from PUBLIC.DATABASECHANGELOG
2023-02-02 07:40:03 INFO: Successfully released change log lock
2023-02-02 07:40:06 INFO: Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system instability.
2023-02-02 07:40:13 INFO: jetty-10.0.12; built: 2022-09-14T01:54:40.076Z; git: 408d0139887e27a57b54ed52e2d92a36731a7e88; jvm 17.0.4+8
2023-02-02 07:40:13 INFO: Started o.t.w.@1428830{/,null,AVAILABLE}
2023-02-02 07:40:14 INFO: Session workerName=node0
2023-02-02 07:40:16 WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2023-02-02 07:40:19 INFO: Started o.e.j.s.ServletContextHandler@10c171c{/,null,AVAILABLE}
2023-02-02 07:40:19 INFO: Started ServerConnector@1d3d54e{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
2023-02-02 07:40:19 INFO: Started Server@b5c902{STARTING}[10.0.12,sto=0] @41523ms
2023-02-02 07:40:20 INFO: Health check enabled with period 480000
Thanks
I don't see any issues in the logs. Have you checked the browser console for errors?
The browser console says:
Uncaught SyntaxError: Unexpected token ... main.276d165c.js: 2
Are you sure you're using the official release?
Is that the full error message?
The error is:
Uncaught SyntaxError: Unexpected token ...
and on the right side appears main.276d165c.js: 2
or mapUtil.js:64
I've diff-ed main.276d165c.js
from both Raspberries and both files are exactly identical (as expected).
Is your server accessible externally? What's the URL?
With Firefox I've got some more detailed errors:
Error: Failed to initialize WebGL. main.276d165c.js:2:1556115
Map http ://localhost:8082/static/js/main.276d165c.js:2
<anonymous> http ://localhost:8082/static/js/main.276d165c.js:2
<anonymous> http ://localhost:8082/static/js/main.276d165c.js:2
<anonymous> http ://localhost:8082/static/js/main.276d165c.js:2
21:46:29.690
<unavailable> main.276d165c.js:2:863983
fire http ://localhost:8082/static/js/main.276d165c.js:2
_setupPainter http ://localhost:8082/static/js/main.276d165c.js:2
Map http ://localhost:8082/static/js/main.276d165c.js:2
<anonymous> http ://localhost:8082/static/js/main.276d165c.js:2
<anonymous> http ://localhost:8082/static/js/main.276d165c.js:2
<anonymous> http ://localhost:8082/static/js/main.276d165c.js:2
21:46:29.712
Error: Failed to initialize WebGL. main.276d165c.js:2:1556115
Map http ://localhost:8082/static/js/main.276d165c.js:2
<anonymous> http ://localhost:8082/static/js/main.276d165c.js:2
<anonymous> http ://localhost:8082/static/js/main.276d165c.js:2
<anonymous> http ://localhost:8082/static/js/main.276d165c.js:2
The server is not accessible from outside yet (the internet provider has to open the port himself: it is not a «normal» connection...)
Have you tried other browsers. For example, the latest Chrome?
Your browser may have WebGL disabled.
The problem was not WebGL but the browser version. The problem is solved.
Thanks a lot.
Hi,
I've installed traccar in two different RaspberryPi. Traccar works perfectly in one of them but not in the other one (if I point to http://localhost:8082 I only get a blank screen). In both cases, the source code is the same
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#1E88E5"/><meta name="description" content="Traccar GPS tracking system"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><link rel="stylesheet" href="/styles.css"><title>Traccar</title><script defer="defer" src="/static/js/main.276d165c.js"></script><link href="/static/css/main.967cebd1.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root" class="root"></div></body></html>
Both are running traccar 5.5 on Debian Bullseye (Debian 11). Does anybody know what could cause this blank screen instead of login page?
From the machine where traccar works
From the machine where traccar fails
Thanks