wallacepos icon indicating copy to clipboard operation
wallacepos copied to clipboard

realtime admin page - update feed could not be connected.

Open SargonII opened this issue 7 years ago • 3 comments

So, I think I'm almost there but I'm still stuck with the realtime admin page generating the error - update feed could not be connected.

Everything else appears to be running fine as detailed in - https://github.com/micwallace/wallacepos/issues/75

Source code is showing 404's and also some .js errors - ('Cannot read property 'series' of null' - jquery.flot.pie.min.js and 'Cannot read property 'parentNode' of undefined' - ace.min.js)

image

I've checked my apache virtual host file (as below) and temporarily disabled ufw to test, but no change. I also tried a different port (changed in both my apache virtual host and in the admin dashboard - utilities) but still no joy.


<VirtualHost :80> DocumentRoot /var/www/******.co.uk/public_html/ ServerName *******.co.uk

    RewriteEngine on
    RewriteCond %{SERVER_NAME} =*******.co.uk
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]

<VirtualHost :443> DocumentRoot /var/www/******.co.uk/public_html/ ServerName *******.co.uk ServerAdmin *******

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined

     SSLEngine on
             SSLCipherSuite !ADH:!DSS:!RC4:HIGH:+3DES:+RC4
             SSLProtocol all -SSLv2 -SSLv3
             #%certificate_location%
             SSLCertificateFile /etc/letsencrypt/live/*******.co.uk/cert.pem
             #%key_location%
             SSLCertificateKeyFile /etc/letsencrypt/live/*******.co.uk/privkey.pem
             #%cert_chain_location%
             SSLCertificateChainFile /etc/letsencrypt/live/*******.co.uk/fullchain.pem

     <Directory /var/www/*******.co.uk/public_html>
            AllowOverride all
     </Directory>

     # WSPROXY CONF
     ProxyRequests Off
     ProxyPreserveHost On
     <Proxy *>
                     Order deny,allow
                     Allow from all
     </Proxy>
     RewriteEngine On
     RewriteCond %{HTTP:Connection} Upgrade [NC]
     RewriteRule /(.*) ws://localhost:8080/$1 [P,L]
     ProxyPass        /socket.io http://localhost:8080/socket.io/
     ProxyPassReverse /socket.io http://localhost:8080/socket.io/
     <Location /socket.io>
                     Order allow,deny
                     Allow from all
     </Location>

I've looked over all the relevant articles I can find and I'm no closer, please help.

Thanks,

SargonII avatar Mar 27 '17 21:03 SargonII

Check if node.js is running on port 8080?

micwallace avatar Mar 30 '17 08:03 micwallace

I ran the following;

'netstat -nlp|grep 8080' tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN

'sudo lsof -i :8080' COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME nodejs 21889 www-data 10u IPv4 737816 0t0 TCP localhost:http-alt (LISTEN)

'ps aux | grep node' www-data 21889 0.0 3.6 1043980 18116 ? Sl Mar27 0:00 nodejs /var/www/***************.co.uk/public_html/api/server.js

SargonII avatar Mar 31 '17 19:03 SargonII

Running wget from terminal connects but gets no response.

wget localhost:8080 --2017-03-31 14:50:55-- http://localhost:8080/ Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:8080... connected. HTTP request sent, awaiting response... No data received. Retrying.

--2017-03-31 14:52:57-- (try: 2) http://localhost:8080/ Connecting to localhost (localhost)|127.0.0.1|:8080... connected. HTTP request sent, awaiting response...

SargonII avatar Mar 31 '17 21:03 SargonII