Web device offline mode after switching to Secured Connection

elvin10 months ago

Hi,

Tried switching to secured connection using the apache proxy, everything works and it properly managed to redirect the page to the secured site and by the way thanks for the documentation, but for some reason the status of all the device are offline even thought you can clearly see from the last update was 0 seconds ago then it won't seem to get any update anymore.

I tried looking on the browser network tab I don't see any connection issue, the websocket looks good too, so I'm a bit of lost here.

elvin10 months ago

just an update I'm seeing multiple WS calls on the secured site as well not sure what's happening to be honest

Track-trace10 months ago

Do you see the devices sending data in the server log?

elvin10 months ago

yes i'm sure i have to instance of the web running on different server one is HTTP and the other is setup for https, did this so I can switch over later the user to the https, I'm sure the device are properly being logged. HTTP server has no issue, its the other server that I setup for https.

Looks to be some issue on the websocket because i'm seeing multiple websocket connection on chrome

Track-trace10 months ago

Then you logicly post your proxy config here so People might have suggestions.

elvin10 months ago

below is the settings

<VirtualHost *:80>
  ServerName web.asaka.ph
  Redirect / https://web.asaka.ph/
RewriteEngine on
RewriteCond %{SERVER_NAME} =web.asaka.ph
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<IfModule mod_ssl.c>
        <VirtualHost _default_:443>

                ServerName web.asaka.ph
                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/web.asaka.ph/fullchain.pem
                SSLCertificateKeyFile /etc/letsencrypt/live/web.asaka.ph/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
        </VirtualHost>
</IfModule>
Anton Tananaev10 months ago

Offline device status has nothing to do with your proxy. Have you checked logs to see if devices disconnect or not?

elvin10 months ago

Yes the device are properly being log, check the logs, i notice on thr browser its making mutliple socket connection because i keep getting socket connection error

Anton Tananaev10 months ago

That still has nothing to do with device status.

elvin10 months ago

Sorry not sure what else to check

Anton Tananaev10 months ago

For connection status issues you should check server logs.