Jump to content

Pg3 crashing after latest update


Go to solution Solved by bpwwer,

Recommended Posts

Posted

Here are the packages that were updated:

The following 4 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
	node: 17.0.1_1 -> 18.2.0 [udi]
	npm: 8.10.0 -> 8.12.1 [udi]
	py38-pip: 22.1.1 -> 22.1.2 [udi]
	py38-setuptools: 57.0.0 -> 62.1.0 [udi]

Here are the Pg3 logs after the update (this pattern continues every few seconds):

6/5/2022, 15:00:29 [pg3] info: Starting PG3 version 3.0.62
6/5/2022, 15:00:29 [pg3] info: Using Workdir /var/polyglot/pg3/
6/5/2022, 15:00:29 [pg3] debug: Created PID file: /var/polyglot/pg3/pg3.pid
6/5/2022, 15:00:32 [pg3] debug: NSChild: PythonInterface /usr/local/bin/pip3 install udi_interface --user: Requirement already satisfied: udi_interface in /var/polyglot/.local/lib/python3.8/site-packages (3.0.46)

6/5/2022, 15:00:33 [pg3] debug: NSChild: PythonInterface /usr/local/bin/pip3 install udi_interface --user: Requirement already satisfied: netifaces in /usr/local/lib/python3.8/site-packages (from udi_interface) (0.11.0)

6/5/2022, 15:00:33 [pg3] debug: NSChild: PythonInterface /usr/local/bin/pip3 install udi_interface --user: Requirement already satisfied: python-dotenv in /var/polyglot/.local/lib/python3.8/site-packages (from udi_interface) (0.20.0)

6/5/2022, 15:00:33 [pg3] debug: NSChild: PythonInterface /usr/local/bin/pip3 install udi_interface --user: Requirement already satisfied: pyisy!=2.1.5,<3.0.0,>2.0 in /var/polyglot/.local/lib/python3.8/site-packages (from udi_interface) (2.1.4)

6/5/2022, 15:00:33 [pg3] debug: NSChild: PythonInterface /usr/local/bin/pip3 install udi_interface --user: Requirement already satisfied: markdown2 in /var/polyglot/.local/lib/python3.8/site-packages (from udi_interface) (2.4.3)
Requirement already satisfied: paho-mqtt in /var/polyglot/.local/lib/python3.8/site-packages (from udi_interface) (1.6.1)

6/5/2022, 15:00:33 [pg3] debug: NSChild: PythonInterface /usr/local/bin/pip3 install udi_interface --user: Requirement already satisfied: requests in /usr/local/lib/python3.8/site-packages (from pyisy!=2.1.5,<3.0.0,>2.0->udi_interface) (2.27.1)

6/5/2022, 15:00:33 [pg3] debug: NSChild: PythonInterface /usr/local/bin/pip3 install udi_interface --user: Requirement already satisfied: python-dateutil in /usr/local/lib/python3.8/site-packages (from pyisy!=2.1.5,<3.0.0,>2.0->udi_interface) (2.8.2)

6/5/2022, 15:00:33 [pg3] debug: NSChild: PythonInterface /usr/local/bin/pip3 install udi_interface --user: Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.8/site-packages (from python-dateutil->pyisy!=2.1.5,<3.0.0,>2.0->udi_interface) (1.16.0)

6/5/2022, 15:00:33 [pg3] debug: NSChild: PythonInterface /usr/local/bin/pip3 install udi_interface --user: Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.8/site-packages (from requests->pyisy!=2.1.5,<3.0.0,>2.0->udi_interface) (1.26.9)

6/5/2022, 15:00:33 [pg3] debug: NSChild: PythonInterface /usr/local/bin/pip3 install udi_interface --user: Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.8/site-packages (from requests->pyisy!=2.1.5,<3.0.0,>2.0->udi_interface) (2022.5.18.1)

6/5/2022, 15:00:33 [pg3] debug: NSChild: PythonInterface /usr/local/bin/pip3 install udi_interface --user: Requirement already satisfied: charset_normalizer~=2.0.0 in /usr/local/lib/python3.8/site-packages (from requests->pyisy!=2.1.5,<3.0.0,>2.0->udi_interface) (2.0.12)

6/5/2022, 15:00:33 [pg3] debug: NSChild: PythonInterface /usr/local/bin/pip3 install udi_interface --user: Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.8/site-packages (from requests->pyisy!=2.1.5,<3.0.0,>2.0->udi_interface) (3.3)

6/5/2022, 15:00:35 [pg3] debug: NSChild: PythonInterface /usr/local/bin/pip3 install udi_interface --user: exited with cause code: 0

 

Posted

Yup it does.  It appears that PG3 (or rather one of it's dependencies) doesn't work with the new version of Node.js.

You'll have try rolling back the version of node to 17.x or wait until I can get PG3 updated to work with node 18.

Posted
57 minutes ago, bpwwer said:

You'll have try rolling back the version of node to 17.x or wait until I can get PG3 updated to work with node 18.

I'll give you some time before I panic and make a mess of things...  ?

  • Solution
Posted

I was just about to post here that I pushed out a new version, updated to work with node 18.  But I see you noticed.  Thanks for letting me know that it's working.

Posted
1 hour ago, oskrypuch said:

So, it now works with .18, and .17, or only .18?

* Orest

PG3 3.0.62 works with Node 17.x

PG3 3.0.63 works with Node 18.x

If you update the packages on the Polisy, it should update both PG3 and Node so they are in sync.   If you force it to update only one, PG3 will not work.

There is no difference between versions 3.0.62 and 3.0.63 other than updating the dependent Node libraries to work with Node 18.x

  • Like 1
Guest
This topic is now closed to further replies.

×
×
  • Create New...