Webpage Note Loading
endo34 opened this issue · 7 comments
Hi,
Fresh install of raspbian-lite (Feb 13, 2020) and then install of polyglot-v2 using the script. I get no errors but the webpage doesn't load.
I notice that running:
sudo systemctl status polyglot-v2.service
I get:
Mar 22 18:47:58 polyglot-kitchen polyglot-v2-linux-armv7[344]: (node:344) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usa
Mar 22 18:47:58 polyglot-kitchen polyglot-v2-linux-armv7[344]: (node:344) Warning: Use Cipheriv for counter mode of aes-256-ctr
Everything else looks normal. Mongodb is running with no errors.
Appreciate the assistance.
Did you specify https://your.ip.address ? Must be https by default.
If so, please attach ~/.polyglot/log/debug.log file
I've never seen those warnings, may be a nodejs version isssue, @Einstein42 any ideas?
Jimboca: I was using https: with no result. I've attached the debug.log file, not much in it?
debug.log
Please do this and see if the log has any more clues
echo 'NODE_ENV=development' >~/.polyglot/.env
sudo systemctl restart polyglot-v2
Check the debug.log again and the systemctl status
Jimboca,
The output of systemctl status is:
pi@polyglot-kitchen:~ $ sudo systemctl status polyglot-v2.service
● polyglot-v2.service - polyglot-v2
Loaded: loaded (/lib/systemd/system/polyglot-v2.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-03-24 11:01:08 EDT; 41s ago
Main PID: 3284 (polyglot-v2-lin)
Tasks: 9 (limit: 2200)
Memory: 51.0M
CGroup: /system.slice/polyglot-v2.service
└─3284 /home/pi/polyglot/polyglot-v2-linux-armv7
Mar 24 11:01:08 polyglot-kitchen systemd[1]: Started polyglot-v2.
Mar 24 11:01:09 polyglot-kitchen polyglot-v2-linux-armv7[3284]: 3/24/2020, 11:01:09 AM - debug: Created PID file: /home/pi/.polyglot/polyglot.pid
Mar 24 11:01:14 polyglot-kitchen polyglot-v2-linux-armv7[3284]: 3/24/2020, 11:01:14 AM - info: Starting Polyglot....
Mar 24 11:01:14 polyglot-kitchen polyglot-v2-linux-armv7[3284]: (node:3284) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and u
Mar 24 11:01:14 polyglot-kitchen polyglot-v2-linux-armv7[3284]: (node:3284) Warning: Use Cipheriv for counter mode of aes-256-ctr
Mar 24 11:01:14 polyglot-kitchen polyglot-v2-linux-armv7[3284]: (node:3284) Warning: Use Cipheriv for counter mode of aes-256-ctr
Mar 24 11:01:14 polyglot-kitchen polyglot-v2-linux-armv7[3284]: 3/24/2020, 11:01:14 AM - info: Settings: No config found in database, creating setting
Mar 24 11:01:14 polyglot-kitchen polyglot-v2-linux-armv7[3284]: 3/24/2020, 11:01:14 AM - info: Auto Discovering ISY on local network.....
The debug log doesn't provide much more information.
regards,
debug2.log
Sorry, I forgot you must use https://your.ip.address:3000
The port number is necessary on all platforms, except on Polisy.
And I assume you are on a Rasberry Pi right?
And you have not added any customization besides what I requested above to the ~/.polyglot/.env file right?
And your network is not segemented?
Also, when logged into the polyglot-kitchen machine, can you ping the machine you are trying to connect from?
Also, Just for reference, the debug.log should have more info in it:
2/8/2020, 3:42:58 AM - info: Starting Polyglot....
2/8/2020, 3:42:58 AM - info: Settings: No config found in database, creating settings entries.
2/8/2020, 3:42:58 AM - info: Auto Discovering ISY on local network.....
2/8/2020, 3:42:58 AM - info: ISY discovered at address: x.x.x.x:80
2/8/2020, 3:43:05 AM - info: Settings: Polyglot Version 2.2.3
2/8/2020, 3:43:05 AM - info: Settings: Retrieved config from database
2/8/2020, 3:43:05 AM - info: Settings: Retrieved config overrides from .env and updated database
2/8/2020, 3:43:05 AM - info: SSL: No HTTPS Certificate or Key found. Generating...
2/8/2020, 3:43:29 AM - info: SSL: Certificate Generation completed successfully.
2/8/2020, 3:43:29 AM - info: Aedes MQTT Broker Service: Started on port 1883
2/8/2020, 3:43:30 AM - info: MQTT Client Service: Started
2/8/2020, 3:43:30 AM - info: HTTPS Interface Service: Started - Address: 0.0.0.0 Port: 3000
2/8/2020, 3:43:30 AM - info: Users: No users found in database. Added default user.
2/8/2020, 3:43:30 AM - info: MQTTS: polyglot authenticated successfully.
2/8/2020, 3:43:30 AM - info: MQTTS: Client Connected: polyglot
2/8/2020, 3:43:30 AM - info: ISY: Got Version 5.0.16B
Jimboca- thanks. From your suggestions, I realized I had to put the node-server on the same vlan as the ISY. It is working now!