
Bumbershoot
Members-
Posts
2413 -
Joined
-
Last visited
Everything posted by Bumbershoot
-
In the meantime, if unix2dos doesn't become available, you can use the 'tr' command -- which is already on Polisy -- to convert those Dos files into something usable in Unix. tr -d '\015' < DOS-file > UNIX-file Gets rid of those pesky carriage returns. Just make sure that Unix-file has a different name.
-
Agreed, an Emacs install is huge, and if you haven't spent countless hours working with it, it's obtuse, obscure and difficult. Nano is pretty easy for the casual user, which argues in it's favor. The default of vi should at least be functional for the intended crowd in this release. If you think you're going to need to have users editing files after the general Polisy release, then I'd suggest including nano.
-
The Camera nodeserver. See this post. It appears to get hung up on a DNS query. @Jimbo is aware of the problem, and there's no particular urgency for a fix on my part.
-
I suspect that: sudo systemctl enable polyglot-v2 will do the job for you.
-
I wonder on which filesystem UDI will put the ISY files when they migrate over to this hardware?
-
Polyglot failed for me when I was on 2.2.5_4, but it now works with the latest release (yesterday afternoon) of 2.2.5_5.
-
This is what I get out of df -h: Filesystem Size Used Avail Capacity Mounted on zudi/ROOT/default 5.2G 1.4G 3.7G 28% / devfs 1.0K 1.0K 0B 100% /dev procfs 4.0K 4.0K 0B 100% /proc zudi/tmp 3.7G 25K 3.7G 0% /tmp zudi/usr/home 3.7G 6.1M 3.7G 0% /usr/home zudi/var/crash 3.7G 23K 3.7G 0% /var/crash zudi/var/db 3.8G 17M 3.7G 0% /var/db zudi/var/db/pkg 3.7G 5.4M 3.7G 0% /var/db/pkg zudi/var/empty 3.7G 23K 3.7G 0% /var/empty zudi/var/log 3.7G 174K 3.7G 0% /var/log zudi/var/run 3.7G 46K 3.7G 0% /var/run zudi/var/tmp 3.7G 23K 3.7G 0% /var/tmp zudi 3.7G 23K 3.7G 0% /zudi [admin@polisy /var/polyglot]$
-
I haven't tried it, but this ought to work, provided you have a standard Polyglot installation: sudo systemctl disable polyglot-v2
-
I have one nodeserver that doesn't run yet on the Polisy, so I'm running that one on my RPi still. If you want a clean swap, you might want to wait until some declares success with installing all your nodeservers on the Polisy. It's not that big a deal here, as I still have NodeLink and some other things running my RPi, so it's not going away immediately. This configuration seems to run alright (as in the ISY doesn't complain). The nodeservers on the other device show up with a Current Status as "Unmanaged" in the Dashboard, just as nodeservers on the PGC show up as "Unmanaged" on the local instance of Polyglot. It's not ideal, but I suspect I could go on like this indefinitely.
-
Nope, but I’ll rebuild over morning coffee. EDIT: all done, not too big of a deal.
-
All my nodeservers are reporting as "Unmanaged". Slots 3, 4, 6 ,8 and 9 should be running on Polisy (see screenshot).
-
polyglot 2.2.5_5 I might be getting ahead of things here, but this might help. 2019-10-30 16:46:59 [polyglot] info: MQTTS: Client Connected: 2019-10-30 16:46:59 [polyglot] debug: MQTTC: Subscribed to udi/polyglot/connections/# QoS 0 2019-10-30 16:47:00 [polyglot] debug: MQTTC: Subscribed to udi/polyglot/frontend/# QoS 0 2019-10-30 16:47:00 [polyglot] debug: MQTTC: Subscribed to udi/polyglot/frontend/settings QoS 0 2019-10-30 16:47:00 [polyglot] debug: MQTTC: Subscribed to udi/polyglot/frontend/nodeservers QoS 0 2019-10-30 16:47:00 [polyglot] debug: MQTTC: Subscribed to udi/polyglot/frontend/log QoS 0 2019-10-30 16:47:00 [polyglot] debug: MQTTC: Subscribed to udi/polyglot/ns/# QoS 0 2019-10-30 16:47:00 [polyglot] debug: MQTTC: Subscribed to udi/polyglot/profile/# QoS 0 2019-10-30 16:47:00 [polyglot] debug: ISY: 404 - http://192.168.1.10:80/rest/config/ 2019-10-30 16:47:00 [polyglot] error: ISY: Could not get Version. Check your settings. If this is the first time you are starting Polyglot, this is normal. 2019-10-30 16:47:45 [polyglot] error: MQTTS: polyglot_frontend-cDOoa authentication failed. Someone is messing with something.... 2019-10-30 16:47:45 [polyglot] info: MQTTS: Client Connected: 2019-10-30 16:47:45 [polyglot] info: MQTTP: Frontend Websockets interface Connected. 2019-10-30 16:48:22 [polyglot] info: Settings Saved Successfully. 2019-10-30 16:48:22 [polyglot] debug: ISY: 200 - http://192.168.1.20:80/rest/config/ 2019-10-30 16:48:22 [polyglot] info: ISY: Got Version 5.0.16 2019-10-30 16:48:22 [polyglot] debug: ISY: 200 - http://192.168.1.20:80/rest/profiles/ns/0/connection/ 2019-10-30 16:48:22 [polyglot] info: NS: Registered new unmanaged NodeServer: Ring(1) 2019-10-30 16:48:22 [polyglot] info: NS: Registered new unmanaged NodeServer: isylink(2) 2019-10-30 16:48:22 [polyglot] info: NS: Registered new unmanaged NodeServer: Push(3) 2019-10-30 16:48:22 [polyglot] info: NS: Registered new unmanaged NodeServer: LiFX(4) 2019-10-30 16:48:22 [polyglot] info: NS: Registered new unmanaged NodeServer: Camera(5) 2019-10-30 16:48:23 [polyglot] info: NS: Registered new unmanaged NodeServer: WirelessTag(6) 2019-10-30 16:48:23 [polyglot] info: NS: Registered new unmanaged NodeServer: ISY Portal(7) 2019-10-30 16:48:23 [polyglot] info: NS: Registered new unmanaged NodeServer: Sonos(8) 2019-10-30 16:48:23 [polyglot] info: NS: Registered new unmanaged NodeServer: DarkSky(9) 2019-10-30 16:48:32 [polyglot] debug: {"node":"polyglot_frontend-cDOoa","restartPolyglot":{}} 2019-10-30 16:48:32 [polyglot] info: Caught SIGTERM/SIGINT Shutting down. 2019-10-30 16:48:32 [polyglot] debug: All NodeServers stopped. 2019-10-30 16:48:32 [polyglot] info: MQTT Client Services Stopping Gracefully. 2019-10-30 16:48:32 [polyglot] info: HTTP Interface Service: Stopping 2019-10-30 16:48:32 [polyglot] info: Aedes MQTT Broker Service: Stopping 2019-10-30 16:48:32 [polyglot] error: unhandledRejection REPORT THIS!: MongoError: pool destroyed at Pool.write (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/pool.js:860:12) at _command (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/wireprotocol/command.js:107:10) at command (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/wireprotocol/command.js:25:5) at Object.query (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/wireprotocol/query.js:57:3) at Server.query (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/topologies/server.js:640:16) at FindOperation.execute (/snapshot/polyglot-v2/node_modules/mongodb/lib/operations/find.js:24:12) at topology.selectServer (/snapshot/polyglot-v2/node_modules/mongodb/lib/operations/execute_operation.js:167:15) at Server.selectServer (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/topologies/server.js:828:3) at Server.selectServer (/snapshot/polyglot-v2/node_modules/mongodb/lib/topologies/topology_base.js:363:32) at executeWithServerSelection (/snapshot/polyglot-v2/node_modules/mongodb/lib/operations/execute_operation.js:150:12) at executeOperation (/snapshot/polyglot-v2/node_modules/mongodb/lib/operations/execute_operation.js:81:16) at Cursor._initializeCursor (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/cursor.js:545:7) at Cursor._initializeCursor (/snapshot/polyglot-v2/node_modules/mongodb/lib/cursor.js:191:11) at nextFunction (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/cursor.js:748:10) at Cursor._next (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/cursor.js:202:5) at fetchDocs (/snapshot/polyglot-v2/node_modules/mongodb/lib/operations/to_array.js:27:14) 2019-10-30 16:48:32 [polyglot] debug: MongoDB: Disconnected from database. 2019-10-30 16:48:34 [polyglot] debug: Created PID file: /var/polyglot/polyglot.pid 2019-10-30 16:48:37 [polyglot] info: Starting Polyglot.... 2019-10-30 16:48:37 [polyglot] info: Settings: Polyglot Version 2.2.5 2019-10-30 16:48:37 [polyglot] info: Settings: Retrieved config from database 2019-10-30 16:48:37 [polyglot] info: Running in Polisy mode 2019-10-30 16:48:37 [polyglot] info: Settings: Retrieved config overrides from .env and updated database 2019-10-30 16:48:37 [polyglot] debug: TLS: Found Keys and Certificate data in database. Exporting to /var/polyglot/ssl/ 2019-10-30 16:48:37 [polyglot] debug: Checking for DB Maintenence needs... 2019-10-30 16:48:37 [polyglot] debug: DB Version Found: 2 no maintenence necessary. 2019-10-30 16:48:37 [polyglot] info: Aedes MQTT Broker Service: Started on port 1883 2019-10-30 16:48:38 [polyglot] info: MQTT Client Service: Started 2019-10-30 16:48:38 [polyglot] info: HTTPS Interface Service: Started - Address: 0.0.0.0 Port: 443 2019-10-30 16:48:38 [polyglot] debug: NodeServer Ring [1] added to running config. 2019-10-30 16:48:38 [polyglot] debug: NodeServer isylink [2] added to running config. 2019-10-30 16:48:38 [polyglot] debug: NodeServer Push [3] added to running config. 2019-10-30 16:48:38 [polyglot] debug: NodeServer LiFX [4] added to running config. 2019-10-30 16:48:38 [polyglot] debug: NodeServer Camera [5] added to running config. 2019-10-30 16:48:38 [polyglot] debug: NodeServer WirelessTag [6] added to running config. 2019-10-30 16:48:38 [polyglot] debug: NodeServer ISY Portal [7] added to running config. 2019-10-30 16:48:38 [polyglot] debug: NodeServer Sonos [8] added to running config. 2019-10-30 16:48:38 [polyglot] debug: NodeServer DarkSky [9] added to running config. 2019-10-30 16:48:38 [polyglot] debug: MongoDB: 9 NodeServer(s) retrieved from database 2019-10-30 16:48:38 [polyglot] info: MQTTS: polyglot authenticated successfully. 2019-10-30 16:48:38 [polyglot] info: MQTTS: Client Connected: 2019-10-30 16:48:38 [polyglot] debug: MQTTC: Subscribed to udi/polyglot/connections/# QoS 0 2019-10-30 16:48:38 [polyglot] debug: MQTTC: Subscribed to udi/polyglot/frontend/# QoS 0 2019-10-30 16:48:38 [polyglot] debug: MQTTC: Subscribed to udi/polyglot/frontend/settings QoS 0 2019-10-30 16:48:38 [polyglot] debug: MQTTC: Subscribed to udi/polyglot/frontend/nodeservers QoS 0 2019-10-30 16:48:38 [polyglot] debug: MQTTC: Subscribed to udi/polyglot/frontend/log QoS 0 2019-10-30 16:48:38 [polyglot] debug: MQTTC: Subscribed to udi/polyglot/ns/# QoS 0 2019-10-30 16:48:38 [polyglot] debug: MQTTC: Subscribed to udi/polyglot/profile/# QoS 0 2019-10-30 16:48:38 [polyglot] debug: ISY: 200 - http://192.168.1.20:80/rest/config/ 2019-10-30 16:48:39 [polyglot] info: ISY: Got Version 5.0.16 2019-10-30 16:48:39 [polyglot] debug: ISY: 200 - http://192.168.1.20:80/rest/profiles/ns/0/connection/ 2019-10-30 16:48:43 [polyglot] debug: REST: SET_HSBKD Command received from ISY for n004_d073d5213fe8 2019-10-30 16:48:43 [polyglot] info: Received SET_HSBKD for n004_d073d5213fe8 however NodeServer LiFX is not connected. Ignoring. 2019-10-30 16:48:46 [polyglot] debug: REST: ACTIONS Command received from ISY for n003_humidifier 2019-10-30 16:48:46 [polyglot] info: Received ACTIONS for n003_humidifier however NodeServer Push is not connected. Ignoring. 2019-10-30 16:49:00 [polyglot] info: Successful login by admin 2019-10-30 16:49:00 [polyglot] error: MQTTS: polyglot_frontend-cDOoa authentication failed. Someone is messing with something.... 2019-10-30 16:49:00 [polyglot] info: MQTTS: Client Connected: 2019-10-30 16:49:00 [polyglot] info: MQTTP: Frontend Websockets interface Disconnected. 2019-10-30 16:49:00 [polyglot] info: MQTTP: Frontend Websockets interface Connected. 2019-10-30 16:49:00 [polyglot] info: MQTTP: Frontend Websockets interface Connected. 2019-10-30 16:49:00 [polyglot] error: MQTTS: clientError: polyglot_frontend-cDOoa write after end 2019-10-30 16:49:00 [polyglot] info: MQTTS: Client Disconnected: 2019-10-30 16:49:01 [polyglot] error: MQTTS: polyglot_frontend-cDOoa authentication failed. Someone is messing with something.... 2019-10-30 16:49:01 [polyglot] info: MQTTS: Client Connected: 2019-10-30 16:49:01 [polyglot] info: MQTTP: Frontend Websockets interface Connected. 2019-10-30 16:49:01 [polyglot] info: MQTTP: Frontend Websockets interface Connected. 2019-10-30 16:49:16 [polyglot] info: MQTTS: Client Disconnected: 2019-10-30 16:49:16 [polyglot] info: MQTTS: polyglot_frontend-rGDEs authenticated successfully. 2019-10-30 16:49:16 [polyglot] info: MQTTS: Client Connected: 2019-10-30 16:49:17 [polyglot] info: MQTTP: Frontend Websockets interface Connected.
-
Yep, I didn't have the file either. sudo touch .env I used vi as well to enter the content. Scary... It's been 20 years since I've used vi, and I swore I'd never use it again. Emacs forever! ?
-
My pleasure, kind sir!
-
Email coming shortly, but this is the jist of it: 2019-10-30 16:10:11 [polyglot] debug: Created PID file: /var/polyglot/polyglot.pid 2019-10-30 16:10:14 [polyglot] info: Starting Polyglot.... 2019-10-30 16:10:14 [polyglot] info: Settings: Polyglot Version 2.2.5 2019-10-30 16:10:14 [polyglot] info: Settings: Retrieved config from database 2019-10-30 16:10:14 [polyglot] info: Running in Polisy mode 2019-10-30 16:10:14 [polyglot] info: Settings: Retrieved config overrides from .env and updated database 2019-10-30 16:10:14 [polyglot] debug: TLS: Found Keys and Certificate data in database. Exporting to /var/polyglot/ssl/ 2019-10-30 16:10:14 [polyglot] debug: Checking for DB Maintenence needs... 2019-10-30 16:10:14 [polyglot] debug: DB Version Found: 2 no maintenence necessary. 2019-10-30 16:10:14 [polyglot] info: Aedes MQTT Broker Service: Started on port 1883 2019-10-30 16:10:15 [polyglot] info: MQTT Client Service: Started 2019-10-30 16:10:15 [polyglot] error: uncaughtException: listen EACCES 0.0.0.0:443 Error: listen EACCES 0.0.0.0:443 at Object._errnoException (util.js:1031:13) at _exceptionWithHostPort (util.js:1052:20) at Server.setupListenHandle [as _listen2] (net.js:1350:19) at listenInCluster (net.js:1408:12) at doListen (net.js:1523:7) at _combinedTickCallback (internal/process/next_tick.js:141:11) at process._tickCallback (internal/process/next_tick.js:180:9) 2019-10-30 16:10:15 [polyglot] error: uncaughtException REPORT THIS!: Error: listen EACCES 0.0.0.0:443 at Object._errnoException (util.js:1031:13) at _exceptionWithHostPort (util.js:1052:20) at Server.setupListenHandle [as _listen2] (net.js:1350:19) at listenInCluster (net.js:1408:12) at doListen (net.js:1523:7) at _combinedTickCallback (internal/process/next_tick.js:141:11) at process._tickCallback (internal/process/next_tick.js:180:9) 2019-10-30 16:10:15 [polyglot] info: Caught SIGTERM/SIGINT Shutting down. 2019-10-30 16:10:15 [polyglot] debug: All NodeServers stopped.
-
Letting it run for a few more minutes... I'll have your log shortly.
-
Here's what I get, but it looks the same as before: polyglot 3518 0.0 0.1 10768 2336 - Ss 15:45 0:00.01 daemon: /usr/local/bin/polyglot-v2-freebsd-x64[3535] (daemon) polyglot 3535 0.0 1.0 585004 42768 - R 15:46 0:00.43 /usr/local/bin/polyglot-v2-freebsd-x64 -w /var/polyglot admin 3537 0.0 0.1 11248 2696 0 S+ 15:46 0:00.01 grep poly [admin@polisy ~]$
-
Same symptoms here, exactly. I believe it's the package 'py37-cryptography' that causes the problems. Here's the output of 'ps aux | grep poly' prior to that installation" [admin@polisy ~]$ ps aux | grep poly polyglot 4043 31.0 3.9 735316 160240 - S 09:49 5:08.74 /usr/local/bin/polyglot-v2-freebsd-x64 -w /var/polyglot polyglot 4047 9.3 0.7 47568 29524 - Is 09:49 1:53.53 python3 ./sonos-poly.py (python3.7) polyglot 3619 1.6 0.7 46872 29536 - Is 05:59 2:26.99 python3 ./darksky.py (python3.7) polyglot 4046 1.6 0.8 51424 31424 - Is 09:49 0:07.92 python3 ./wirelesstags-poly.py (python3.7) polyglot 4049 1.4 0.7 48100 30500 - Is 09:49 0:24.07 python3 ./darksky.py (python3.7) polyglot 3966 1.1 0.7 47604 30152 - Is 09:00 1:18.68 python3 ./darksky.py (python3.7) polyglot 1011 0.0 0.1 10768 2192 - Is 10:33 0:00.02 daemon: /usr/local/bin/polyglot-v2-freebsd-x64[4043] (daemon) polyglot 1840 0.0 0.7 48264 29940 - Is 16:01 92:56.74 python3 ./sonos-poly.py (python3.7) polyglot 1866 0.0 0.7 47792 30164 - Is 16:13 2:36.27 python3 ./darksky.py (python3.7) polyglot 3618 0.0 0.7 47776 29712 - Is 05:59 20:08.85 python3 ./sonos-poly.py (python3.7) polyglot 3964 0.0 0.7 48108 30048 - Is 09:00 5:29.02 python3 ./sonos-poly.py (python3.7) polyglot 4044 0.0 0.7 45124 27492 - Is 09:49 0:02.74 python3 ./push-poly.py (python3.7) polyglot 4070 0.0 0.6 44380 24528 - Is 09:56 0:33.76 python3 ./lifx-poly.py (python3.7) admin 4091 0.0 0.1 11248 2696 0 S+ 10:06 0:00.01 grep poly and after the package was installed and a reboot: [admin@polisy ~]$ ps aux | grep poly polyglot 1319 0.0 0.1 10768 2336 - Ss 12:48 0:00.69 daemon: /usr/local/bin/polyglot-v2-freebsd-x64[1920] (daemon) polyglot 1920 0.0 1.2 596420 50940 - R 13:37 0:00.57 /usr/local/bin/polyglot-v2-freebsd-x64 -w /var/polyglot admin 1922 0.0 0.1 11248 2696 0 S+ 13:37 0:00.01 grep poly [admin@polisy ~]$ You'll also may notice that the process ID of the running binary changes every second or so, meaning that it's constantly stopping | restarting.
-
I've got my trusty 2.2.4 running on my RPi for fallback. ?
-
No, I'm running it on a Pi2 as well, and it runs like a champ. I think you'll have to wait for the developer to chime in here.
-
Well, 2.2.5_4 was running fine prior to the last command in this sequence (reboot): [admin@polisy ~]$ ps aux | grep poly polyglot 4043 31.0 3.9 735316 160240 - S 09:49 5:08.74 /usr/local/bin/polyglot-v2-freebsd-x64 -w /var/polyglot polyglot 4047 9.3 0.7 47568 29524 - Is 09:49 1:53.53 python3 ./sonos-poly.py (python3.7) polyglot 3619 1.6 0.7 46872 29536 - Is 05:59 2:26.99 python3 ./darksky.py (python3.7) polyglot 4046 1.6 0.8 51424 31424 - Is 09:49 0:07.92 python3 ./wirelesstags-poly.py (python3.7) polyglot 4049 1.4 0.7 48100 30500 - Is 09:49 0:24.07 python3 ./darksky.py (python3.7) polyglot 3966 1.1 0.7 47604 30152 - Is 09:00 1:18.68 python3 ./darksky.py (python3.7) polyglot 1011 0.0 0.1 10768 2192 - Is 10:33 0:00.02 daemon: /usr/local/bin/polyglot-v2-freebsd-x64[4043] (daemon) polyglot 1840 0.0 0.7 48264 29940 - Is 16:01 92:56.74 python3 ./sonos-poly.py (python3.7) polyglot 1866 0.0 0.7 47792 30164 - Is 16:13 2:36.27 python3 ./darksky.py (python3.7) polyglot 3618 0.0 0.7 47776 29712 - Is 05:59 20:08.85 python3 ./sonos-poly.py (python3.7) polyglot 3964 0.0 0.7 48108 30048 - Is 09:00 5:29.02 python3 ./sonos-poly.py (python3.7) polyglot 4044 0.0 0.7 45124 27492 - Is 09:49 0:02.74 python3 ./push-poly.py (python3.7) polyglot 4070 0.0 0.6 44380 24528 - Is 09:56 0:33.76 python3 ./lifx-poly.py (python3.7) admin 4091 0.0 0.1 11248 2696 0 S+ 10:06 0:00.01 grep poly [admin@polisy ~]$ sudo pkg install py37-netifaces Password: Updating udi repository catalogue... udi repository is up to date. All repositories are up to date. Checking integrity... done (0 conflicting) The most recent versions of packages are already installed [admin@polisy ~]$ sudo pkg update && sudo pkg upgrade Updating udi repository catalogue... udi repository is up to date. All repositories are up to date. Updating udi repository catalogue... udi repository is up to date. All repositories are up to date. Checking for upgrades (0 candidates): 100% Processing candidates (0 candidates): 100% Checking integrity... done (0 conflicting) Your packages are up to date. [admin@polisy ~]$ sudo pkg install py37-cryptography Updating udi repository catalogue... udi repository is up to date. All repositories are up to date. The following 5 package(s) will be affected (of 0 checked): New packages to be INSTALLED: py37-cryptography: 2.6.1 py37-six: 1.12.0 py37-cffi: 1.13.1 py37-pycparser: 2.19 py37-asn1crypto: 0.24.0 Number of packages to be installed: 5 The process will require 6 MiB more space. 867 KiB to be downloaded. Proceed with this action? [y/N]: y [1/5] Fetching py37-cryptography-2.6.1.txz: 100% 327 KiB 334.8kB/s 00:01 [2/5] Fetching py37-six-1.12.0.txz: 100% 19 KiB 19.0kB/s 00:01 [3/5] Fetching py37-cffi-1.13.1.txz: 100% 202 KiB 207.3kB/s 00:01 [4/5] Fetching py37-pycparser-2.19.txz: 100% 163 KiB 167.2kB/s 00:01 [5/5] Fetching py37-asn1crypto-0.24.0.txz: 100% 156 KiB 159.3kB/s 00:01 Checking integrity... done (0 conflicting) [1/5] Installing py37-pycparser-2.19... [1/5] Extracting py37-pycparser-2.19: 100% [2/5] Installing py37-six-1.12.0... [2/5] Extracting py37-six-1.12.0: 100% [3/5] Installing py37-cffi-1.13.1... [3/5] Extracting py37-cffi-1.13.1: 100% [4/5] Installing py37-asn1crypto-0.24.0... [4/5] Extracting py37-asn1crypto-0.24.0: 100% [5/5] Installing py37-cryptography-2.6.1... [5/5] Extracting py37-cryptography-2.6.1: 100% [admin@polisy ~]$ sudo reboot This might be helpful to UDI. No joy for Polyglot after the reboot...
-
Starting Polyglot at the command line after the crypto updates: [admin@polisy /usr/local/bin]$ ./polyglot-v2-freebsd-x64 WARNING: The `useMongoClient` option is no longer necessary in mongoose 5.x, please remove it. at handleUseMongoClient (/snapshot/polyglot-v2/node_modules/mongoose/lib/connection.js:738:17) at NativeConnection.Connection.openUri (/snapshot/polyglot-v2/node_modules/mongoose/lib/connection.js:572:7) at Mongoose.connect (/snapshot/polyglot-v2/node_modules/mongoose/lib/index.js:327:15) at Object.start (/snapshot/polyglot-v2/lib/services/db.js:40:40) at start (/snapshot/polyglot-v2/bin/polyglot-v2.js:101:14) at Object.<anonymous> (/snapshot/polyglot-v2/bin/polyglot-v2.js:215:1) at Module._compile (pkg/prelude/bootstrap.js:1243:22) at Object.Module._extensions..js (module.js:650:10) at Module.load (module.js:558:32) at tryModuleLoad (module.js:501:12) at Function.Module._load (module.js:493:3) at Function.Module.runMain (pkg/prelude/bootstrap.js:1298:12) at startup (bootstrap_node.js:227:16) at bootstrap_node.js:649:3 (node:1307) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. (node:1307) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor. [winston] Attempt to write logs with no transports {"message":"Polyglot shutdown complete with code: 1","level":"info"}
-
I'm seeing the same thing after the crypto updates.
-
After installing the py37-cryptography package and rebooting, Polyglot has entered an unproductive state. Polyglot itself is running, but none of the individual nodeservers are. [admin@polisy /var/polyglot/log]$ ps aux | grep poly polyglot 1216 66.9 2.6 684776 108124 - R 12:29 0:03.44 /usr/local/bin/polyglot-v2-freebsd-x64 -w /var/polyglot polyglot 1023 0.0 0.1 10768 2188 - Ss 12:24 0:00.07 daemon: /usr/local/bin/polyglot-v2-freebsd-x64[1216] (daemon) admin 1218 0.0 0.1 11248 2696 0 S+ 12:29 0:00.01 grep poly From the logs: 2019-10-30 10:42:33 [polyglot] error: MQTTS: clientError: DARKSKY read ECONNRESET 2019-10-30 10:42:33 [polyglot] error: unhandledRejection REPORT THIS!: MongoError: interrupted at shutdown at Connection.Pool.socketCount (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/pool.js:466:61) at Connection.emit (events.js:159:13) at processMessage (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:364:10) at Socket.module.exports (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:533:15) at Socket.emit (events.js:159:13) at addChunk (_stream_readable.js:265:12) at readableAddChunk (_stream_readable.js:252:11) at Socket.Readable.push (_stream_readable.js:209:10) at TCP.onread (net.js:598:20) 2019-10-30 10:42:33 [polyglot] info: Caught SIGTERM/SIGINT Shutting down. 2019-10-30 10:42:33 [polyglot] info: MQTTS: Client Disconnected: 2019-10-30 10:42:33 [polyglot] error: unhandledRejection REPORT THIS!: MongoError: interrupted at shutdown at Connection.Pool.socketCount (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/pool.js:466:61) at Connection.emit (events.js:159:13) at processMessage (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:364:10) at Socket.module.exports (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:533:15) at Socket.emit (events.js:159:13) at addChunk (_stream_readable.js:265:12) at readableAddChunk (_stream_readable.js:252:11) at Socket.Readable.push (_stream_readable.js:209:10) at TCP.onread (net.js:598:20) 2019-10-30 10:42:33 [polyglot] error: unhandledRejection REPORT THIS!: MongoError: interrupted at shutdown at Connection.Pool.socketCount (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/pool.js:466:61) at Connection.emit (events.js:159:13) at processMessage (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:364:10) at Socket.module.exports (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:533:15) at Socket.emit (events.js:159:13) at addChunk (_stream_readable.js:265:12) at readableAddChunk (_stream_readable.js:252:11) at Socket.Readable.push (_stream_readable.js:209:10) at TCP.onread (net.js:598:20) 2019-10-30 10:42:33 [polyglot] error: unhandledRejection REPORT THIS!: MongoError: interrupted at shutdown at Connection.Pool.socketCount (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/pool.js:466:61) at Connection.emit (events.js:159:13) at processMessage (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:364:10) at Socket.module.exports (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:533:15) at Socket.emit (events.js:159:13) at addChunk (_stream_readable.js:265:12) at readableAddChunk (_stream_readable.js:252:11) at Socket.Readable.push (_stream_readable.js:209:10) at TCP.onread (net.js:598:20) 2019-10-30 10:42:33 [polyglot] error: unhandledRejection REPORT THIS!: MongoError: interrupted at shutdown at Connection.Pool.socketCount (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/pool.js:466:61) at Connection.emit (events.js:159:13) at processMessage (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:364:10) at Socket.module.exports (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:533:15) at Socket.emit (events.js:159:13) at addChunk (_stream_readable.js:265:12) at readableAddChunk (_stream_readable.js:252:11) at Socket.Readable.push (_stream_readable.js:209:10) at TCP.onread (net.js:598:20) 2019-10-30 10:42:33 [polyglot] error: unhandledRejection REPORT THIS!: MongoError: interrupted at shutdown at Connection.Pool.socketCount (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/pool.js:466:61) at Connection.emit (events.js:159:13) at processMessage (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:364:10) at Socket.module.exports (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:533:15) at Socket.emit (events.js:159:13) at addChunk (_stream_readable.js:265:12) at readableAddChunk (_stream_readable.js:252:11) at Socket.Readable.push (_stream_readable.js:209:10) at TCP.onread (net.js:598:20) 2019-10-30 10:42:34 [polyglot] error: unhandledRejection REPORT THIS!: MongoError: interrupted at shutdown at Connection.Pool.socketCount (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/pool.js:466:61) at Connection.emit (events.js:159:13) at processMessage (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:364:10) at Socket.module.exports (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:533:15) at Socket.emit (events.js:159:13) at addChunk (_stream_readable.js:265:12) at readableAddChunk (_stream_readable.js:252:11) at Socket.Readable.push (_stream_readable.js:209:10) at TCP.onread (net.js:598:20) 2019-10-30 10:42:34 [polyglot] error: unhandledRejection REPORT THIS!: MongoError: interrupted at shutdown at Connection.Pool.socketCount (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/pool.js:466:61) at Connection.emit (events.js:159:13) at processMessage (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:364:10) at Socket.module.exports (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:533:15) at Socket.emit (events.js:159:13) at addChunk (_stream_readable.js:265:12) at readableAddChunk (_stream_readable.js:252:11) at Socket.Readable.push (_stream_readable.js:209:10) at TCP.onread (net.js:598:20) 2019-10-30 10:42:34 [polyglot] error: unhandledRejection REPORT THIS!: MongoError: interrupted at shutdown at Connection.Pool.socketCount (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/pool.js:466:61) at Connection.emit (events.js:159:13) at processMessage (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:364:10) at Socket.module.exports (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:533:15) at Socket.emit (events.js:159:13) at addChunk (_stream_readable.js:265:12) at readableAddChunk (_stream_readable.js:252:11) at Socket.Readable.push (_stream_readable.js:209:10) at TCP.onread (net.js:598:20) 2019-10-30 10:42:34 [polyglot] error: unhandledRejection REPORT THIS!: MongoError: interrupted at shutdown at Connection.Pool.socketCount (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/pool.js:466:61) at Connection.emit (events.js:159:13) at processMessage (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:364:10) at Socket.module.exports (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:533:15) at Socket.emit (events.js:159:13) at addChunk (_stream_readable.js:265:12) at readableAddChunk (_stream_readable.js:252:11) at Socket.Readable.push (_stream_readable.js:209:10) at TCP.onread (net.js:598:20) 2019-10-30 10:42:34 [polyglot] error: unhandledRejection REPORT THIS!: MongoError: interrupted at shutdown at Connection.Pool.socketCount (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/pool.js:466:61) at Connection.emit (events.js:159:13) at processMessage (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:364:10) at Socket.module.exports (/snapshot/polyglot-v2/node_modules/mongodb/lib/core/connection/connection.js:533:15) at Socket.emit (events.js:159:13) at addChunk (_stream_readable.js:265:12) at readableAddChunk (_stream_readable.js:252:11) at Socket.Readable.push (_stream_readable.js:209:10) at TCP.onread (net.js:598:20) 2019-10-30 10:42:34 [polyglot] info: MQTTS: Client Disconnected: 2019-10-30 10:42:34 [polyglot] info: MQTTS: Client Disconnected: 2019-10-30 10:42:34 [polyglot] info: MQTTS: Client Disconnected: 2019-10-30 10:42:34 [polyglot] info: MQTTS: Client Disconnected: 2019-10-30 10:42:35 [polyglot] info: LiFX(4):: Not running. Ignoring stop command. 2019-10-30 10:43:33 [polyglot] info: Starting Polyglot.... 2019-10-30 10:43:33 [polyglot] info: Settings: Polyglot Version 2.2.5 2019-10-30 10:43:33 [polyglot] info: Settings: Retrieved config from database 2019-10-30 10:43:33 [polyglot] info: Running in Polisy mode 2019-10-30 10:43:33 [polyglot] info: Settings: Retrieved config overrides from .env and updated database 2019-10-30 10:43:33 [polyglot] info: Aedes MQTT Broker Service: Started on port 1883 2019-10-30 10:43:38 [polyglot] info: Starting Polyglot.... 2019-10-30 10:43:39 [polyglot] info: Settings: Polyglot Version 2.2.5 2019-10-30 10:43:39 [polyglot] info: Settings: Retrieved config from database 2019-10-30 10:43:39 [polyglot] info: Running in Polisy mode 2019-10-30 10:43:39 [polyglot] info: Settings: Retrieved config overrides from .env and updated database 2019-10-30 10:43:44 [polyglot] info: Starting Polyglot.... 2019-10-30 10:43:44 [polyglot] info: Settings: Polyglot Version 2.2.5
-
Nope, it's not running. Crash. You might try running NodeLink from the command line, and see if it sends any helpful output to the screen (I think you can just run the command that you see in output above): dotnet /home/pi/node/NodeLink.dll Other than that, I don't know how I can help with a seg fault.