When I go to the URL with http:// the login and register screen appears. When I use https:// I get the following error:
Cannot invoke "org.traccar.api.security.LoginResult.getUser()" because "loginResult" is null - NullPointerException (SecurityRequestFilter:93 < ... < OverrideFilter:49 < ...)
Changed my domain
Header
GET
https://domain>/api/server
Status
400
Bad Request
VersionHTTP/1.1
Transferred545 B (174 B size)
Referrer Policystrict-origin-when-cross-origin
DNS ResolutionDNS over HTTPS
EC2 instance, MySQL, Apache SSL, custom build, certbot, routing configured, everything was working. I have terminated two instances and done fresh installs of everything, even the OS. I have tested with basic install, without MySQL, without Apache SSL proxy. The only thing that seems to work is if I downgrade to Traccar 5.9. Traccar 5.9 still gets the error but I can still log in and register.
Changed my domain
/etc/apache2/sites-available/traccar.conf
VirtualHost *:80>
ServerName domain>
Redirect / https://domain>/
#RewriteEngine on
#RewriteCond %{SERVER_NAME} =<domain>
#RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
/VirtualHost>
IfModule mod_ssl.c>
VirtualHost _default_:443>
ServerName domain>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ProxyPass /api/socket ws://localhost:8082/api/socket
ProxyPassReverse /api/socket ws://localhost:8082/api/socket
ProxyPass / http://localhost:8082/
ProxyPassReverse / http://localhost:8082/
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/domain>/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain>/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
/VirtualHost>
/IfModule>
Thank you for the quick response.
I tried for days. Cleared browser cache and data, etc. I followed your instructions, rebuilt many instances, went through line by line...
It randomly started working.
Very frustrating. I wish I had an answer so I can avoid it in the future.
When I go to the URL with http:// the login and register screen appears. When I use https:// I get the following error:
Changed my domain
Header
EC2 instance, MySQL, Apache SSL, custom build, certbot, routing configured, everything was working. I have terminated two instances and done fresh installs of everything, even the OS. I have tested with basic install, without MySQL, without Apache SSL proxy. The only thing that seems to work is if I downgrade to Traccar 5.9. Traccar 5.9 still gets the error but I can still log in and register.
Changed my domain