Jump to content

How can I remove PG3 from Polisy to restart from scratch


apostolakisl

Recommended Posts

Posted

I'm trying to remove PG3 from polisy and then start with a virgin install of it.  I have tried

sudo pkg delete pg3

But it does not delete the "user" and "group" and asks me to manually do so.  I do not know how to do that and also have concern that perhaps pg2 is stored there.

 

[admin@polisy ~]$ sudo pkg delete pg3
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        pg3: 3.0.59

Number of packages to be removed: 1

The operation will free 62 MiB.

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling pg3-3.0.59...
[1/1] Deleting files for pg3-3.0.59: 100%
==> You should manually remove the "polyglot" user.
==> You should manually remove the "polyglot" group

 

Posted
4 minutes ago, apostolakisl said:

I'm trying to remove PG3 from polisy and then start with a virgin install of it.  I have tried

sudo pkg delete pg3

But it does not delete the "user" and "group" and asks me to manually do so.  I do not know how to do that and also have concern that perhaps pg2 is stored there.

 

[admin@polisy ~]$ sudo pkg delete pg3
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        pg3: 3.0.59

Number of packages to be removed: 1

The operation will free 62 MiB.

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling pg3-3.0.59...
[1/1] Deleting files for pg3-3.0.59: 100%
==> You should manually remove the "polyglot" user.
==> You should manually remove the "polyglot" group

 

Not a PG3 expert, but leaving the group and user doesn't do anything bad to the OS.  They'll just be reinstalled later with you install PG3 again.  Likely, these entities are just a line in a couple of files (/etc/passwd and /etc/group) and possibly a directory (/var/polyglot).  I've uninstalled/reinstalled PG3 a couple of times to no bad effect.  Of course, YMMV.

Posted

There's no reason to ever remove the "polyglot" user/group.  And yes, both PG3 and PG2 rely on those.

Deleting the package also won't delete the database since that's not generally what is desired.  If you really want to start over with a fresh install, you'll need to do a 'sudo rm /var/polyglot/pg3/pg3.db' after removing the package.

 

Posted (edited)
30 minutes ago, bpwwer said:

There's no reason to ever remove the "polyglot" user/group.  And yes, both PG3 and PG2 rely on those.

Deleting the package also won't delete the database since that's not generally what is desired.  If you really want to start over with a fresh install, you'll need to do a 'sudo rm /var/polyglot/pg3/pg3.db' after removing the package.

 

OK, PG3 now opens without phantom ISY.  It found the correct uuid for IoP and says it is connected.  But there are no nodes listed, managed or otherwise.  Before it listed all of my nodes as unmanaged, PG2 and ones I had previously set up on PG3.  I am hoping to get my PG3 nodes back to "managed" on PG3.

EDIT: and when I say "before it listed. . " I mean after moving to IoP and before the deletion I just did a few minutes ago.  Everything was fine before IoP migration

image.thumb.png.175fbb5b8edd0f3610a9b5491e9864f4.png

Edited by apostolakisl
Posted
18 minutes ago, apostolakisl said:

OK, PG3 now opens without phantom ISY.  It found the correct uuid for IoP and says it is connected.  But there are no nodes listed, managed or otherwise.  Before it listed all of my nodes as unmanaged, PG2 and ones I had previously set up on PG3.  I am hoping to get my PG3 nodes back to "managed" on PG3.

You should have mentioned that you wanted to keep existing PG3 nodes.  That's not really what "start with a virgin install" implies.  

Likely why nothing is showing up as unmanaged is because it doesn't have the correct password for the ISY and thus, can't query the ISY for the node servers currently installed on it.

Removing the database makes PG3 start without any knowledge of the previous installed version.  There is currently no way to recover unless you made a backup with the previous install.  If you did make a backup, you should be able to restore that.

You can check to see if something did backup the database recently as PG3 will sometimes do that if making changes to the database schema.  

'sudo ls -l /var/polyglot/pg3' 

If there's a pg3db_xxxxxxxxxxxx in there and it's recent, you can replace the new database with that one 

'sudo cp /var/polyglot/pg3/pg3db_xxxxxxxxxx /var/polyglot/pg3/pg3.db'
'sudo service pg3 restart'

The numbers after 'pg3db_' will be unique to your environment as that would be the timestamp of when the database was backed up.

However, restoring either a backup or just the database, will bring back the ISY entry that you can't remove.

Posted (edited)
9 minutes ago, bpwwer said:

You should have mentioned that you wanted to keep existing PG3 nodes.  That's not really what "start with a virgin install" implies.  

Likely why nothing is showing up as unmanaged is because it doesn't have the correct password for the ISY and thus, can't query the ISY for the node servers currently installed on it.

Removing the database makes PG3 start without any knowledge of the previous installed version.  There is currently no way to recover unless you made a backup with the previous install.  If you did make a backup, you should be able to restore that.

You can check to see if something did backup the database recently as PG3 will sometimes do that if making changes to the database schema.  

'sudo ls -l /var/polyglot/pg3' 

If there's a pg3db_xxxxxxxxxxxx in there and it's recent, you can replace the new database with that one 

'sudo cp /var/polyglot/pg3/pg3db_xxxxxxxxxx /var/polyglot/pg3/pg3.db'
'sudo service pg3 restart'

The numbers after 'pg3db_' will be unique to your environment as that would be the timestamp of when the database was backed up.

However, restoring either a backup or just the database, will bring back the ISY entry that you can't remove.

I do have a backup and tried to restore it but nothing happens.

I put in the password, it says it is connected.

image.png.abc5d4e1d7fd334b58a55222ca6cad21.png

Edited by apostolakisl
Posted

Changed from "localhost" to the ip address and now I have the unmanaged nodes.  How do I get PG3 ones to be managed again?  I do have a backup but nothing seems to happen when I try to restore it.

Posted

The restore process is two steps

1. select the backup file to restore. Then the button will change from "select file" to "restore"

2. restore the selected backup

The restore process will log what it is doing to the PG3 log.

Posted
9 minutes ago, bpwwer said:

The restore process is two steps

1. select the backup file to restore. Then the button will change from "select file" to "restore"

2. restore the selected backup

The restore process will log what it is doing to the PG3 log.

It said it restored, this is from pre IoP migration.  But PG3 says it can find no ISY's.  I tried manually entering info, and nothing.  Rebooted PG3 multipel times.  I guess I try rebooting polisy.

Posted (edited)

This is killing me.  I wish I had stayed with ISY and not done this migration.

I finally deleted the node servers that were pg3 from the ISY admin console because I could not get control of them in PG3.  I then did 

sudo pkg delete pg3

sudo cp /var/polyglot/pg3/pg3db_xxxxxxxxxx /var/polyglot/pg3/pg3.db

sudo install pkg pg3

Logged back into pg3.  PG3 still had my configurations from earlier, so I figured something was up with that.  Tried to add in my first PG3 node (itach).  It added in and itach showed up in ISY.  Then I tried to configure it.  It won't configure.  I cut and paste the same configuration I had from before.

 


 AutoScroll

      
2022-04-27 20:06:16,756 MainThread udi_interface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2022-04-27 20:06:18,758 MainThread udi_interface      INFO     __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.32 Starting...
2022-04-27 20:06:18,915 MainThread udi_interface      INFO     initializer:<module>: __name__ == "__main__" init called
2022-04-27 20:06:18,926 MainThread udi_interface.interface INFO     interface:__init__: Connect: Network Interface: {'addr': '192.168.1.9', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'}
2022-04-27 20:06:18,928 Interface  udi_interface.interface INFO     interface:_startMqtt: Connecting to MQTT... localhost:1888
2022-04-27 20:06:18,936 MainThread udi_interface.interface WARNING  interface:db_getNodeDrivers: Node server config has not yet been recieved.
2022-04-27 20:06:18,937 MainThread udi_interface.interface WARNING  interface:send: MQTT Send waiting on connection :: {'set': [{'address': 'itachir', 'driver': 'ST', 'value': '1', 'uom': 2}]}
2022-04-27 20:06:18,985 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Connected with result code 0 (Success)
2022-04-27 20:06:18,986 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:52:bf:4c_20 -  MID: 1 Result: 0
2022-04-27 20:06:18,999 MQTT       udi_interface.interface INFO     interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2022-04-27 20:06:21,971 MainThread udi_interface.interface INFO     interface:addNode: Adding node iTach IR(itachir) [None]
2022-04-27 20:06:22,245 Thread-1   udi_interface      ERROR    udi_interface:write: Exception in thread
2022-04-27 20:06:22,247 Thread-1   udi_interface      ERROR    udi_interface:write: Thread-1
2022-04-27 20:06:22,248 Thread-1   udi_interface      ERROR    udi_interface:write: :
2022-04-27 20:06:22,248 Thread-1   udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-04-27 20:06:22,249 Thread-1   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-04-27 20:06:22,255 Thread-1   udi_interface      ERROR    udi_interface:write: self.run()
2022-04-27 20:06:22,256 Thread-1   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-04-27 20:06:22,260 Thread-1   udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-04-27 20:06:22,260 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/objects/LiveObject.py", line 40, in update
2022-04-27 20:06:22,262 Thread-1   udi_interface      ERROR    udi_interface:write: handler(value)
2022-04-27 20:06:22,262 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/nodes/controller/controller.py", line 125, in parameterHandler
2022-04-27 20:06:22,264 Thread-1   udi_interface      ERROR    udi_interface:write: self.processParameters(params=params)
2022-04-27 20:06:22,264 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/nodes/controller/controller.py", line 146, in processParameters
2022-04-27 20:06:22,266 Thread-1   udi_interface      ERROR    udi_interface:write: LOGGER.info('Process Params: ' + str(len(params)))
2022-04-27 20:06:22,266 Thread-1   udi_interface      ERROR    udi_interface:write: TypeError
2022-04-27 20:06:22,267 Thread-1   udi_interface      ERROR    udi_interface:write: :
2022-04-27 20:06:22,268 Thread-1   udi_interface      ERROR    udi_interface:write: object of type 'NoneType' has no len()
2022-04-27 20:07:00,478 Thread-4   udi_interface      ERROR    udi_interface:write: Exception in thread
2022-04-27 20:07:00,479 Thread-4   udi_interface      ERROR    udi_interface:write: Thread-4
2022-04-27 20:07:00,480 Thread-4   udi_interface      ERROR    udi_interface:write: :
2022-04-27 20:07:00,481 Thread-4   udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-04-27 20:07:00,481 Thread-4   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-04-27 20:07:00,486 Thread-4   udi_interface      ERROR    udi_interface:write: self.run()
2022-04-27 20:07:00,486 Thread-4   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-04-27 20:07:00,490 Thread-4   udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-04-27 20:07:00,491 Thread-4   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/objects/LiveObject.py", line 40, in update
2022-04-27 20:07:00,493 Thread-4   udi_interface      ERROR    udi_interface:write: handler(value)
2022-04-27 20:07:00,493 Thread-4   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/nodes/controller/controller.py", line 125, in parameterHandler
2022-04-27 20:07:00,495 Thread-4   udi_interface      ERROR    udi_interface:write: self.processParameters(params=params)
2022-04-27 20:07:00,496 Thread-4   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/nodes/controller/controller.py", line 148, in processParameters
2022-04-27 20:07:00,497 Thread-4   udi_interface      ERROR    udi_interface:write: self.processDefinedParams(params)
2022-04-27 20:07:00,498 Thread-4   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/nodes/controller/controller.py", line 186, in processDefinedParams
2022-04-27 20:07:00,500 Thread-4   udi_interface      ERROR    udi_interface:write: url = params[Params.url.value]
2022-04-27 20:07:00,500 Thread-4   udi_interface      ERROR    udi_interface:write: KeyError
2022-04-27 20:07:00,501 Thread-4   udi_interface      ERROR    udi_interface:write: :
2022-04-27 20:07:00,502 Thread-4   udi_interface      ERROR    udi_interface:write: 'url'
2022-04-27 20:07:07,668 Thread-5   udi_interface      ERROR    udi_interface:write: Exception in thread
2022-04-27 20:07:07,670 Thread-5   udi_interface      ERROR    udi_interface:write: Thread-5
2022-04-27 20:07:07,670 Thread-5   udi_interface      ERROR    udi_interface:write: :
2022-04-27 20:07:07,671 Thread-5   udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-04-27 20:07:07,671 Thread-5   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-04-27 20:07:07,676 Thread-5   udi_interface      ERROR    udi_interface:write: self.run()
2022-04-27 20:07:07,676 Thread-5   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-04-27 20:07:07,680 Thread-5   udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-04-27 20:07:07,681 Thread-5   udi_interface      ERROR    udi_interface:write: TypeError
2022-04-27 20:07:07,682 Thread-5   udi_interface      ERROR    udi_interface:write: :
2022-04-27 20:07:07,682 Thread-5   udi_interface      ERROR    udi_interface:write: update() missing 1 required positional argument: 'value'
2022-04-27 20:07:15,233 MainThread udi_interface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2022-04-27 20:07:17,944 MainThread udi_interface      INFO     __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.32 Starting...
2022-04-27 20:07:17,985 MainThread udi_interface      INFO     initializer:<module>: __name__ == "__main__" init called
2022-04-27 20:07:17,993 MainThread udi_interface.interface INFO     interface:__init__: Connect: Network Interface: {'addr': '192.168.1.9', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'}
2022-04-27 20:07:17,995 Interface  udi_interface.interface INFO     interface:_startMqtt: Connecting to MQTT... localhost:1888
2022-04-27 20:07:18,002 MainThread udi_interface.interface WARNING  interface:db_getNodeDrivers: Node server config has not yet been recieved.
2022-04-27 20:07:18,003 MainThread udi_interface.interface WARNING  interface:send: MQTT Send waiting on connection :: {'set': [{'address': 'itachir', 'driver': 'ST', 'value': '1', 'uom': 2}]}
2022-04-27 20:07:18,053 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Connected with result code 0 (Success)
2022-04-27 20:07:18,055 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:52:bf:4c_20 -  MID: 1 Result: 0
2022-04-27 20:07:18,075 MQTT       udi_interface.interface INFO     interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2022-04-27 20:07:21,034 MainThread udi_interface.interface INFO     interface:addNode: Adding node iTach IR(itachir) [None]
2022-04-27 20:07:21,316 Thread-1   udi_interface      ERROR    udi_interface:write: Exception in thread
2022-04-27 20:07:21,319 Thread-1   udi_interface      ERROR    udi_interface:write: Thread-1
2022-04-27 20:07:21,319 Thread-1   udi_interface      ERROR    udi_interface:write: :
2022-04-27 20:07:21,320 Thread-1   udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-04-27 20:07:21,321 Thread-1   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-04-27 20:07:21,325 Thread-1   udi_interface      ERROR    udi_interface:write: self.run()
2022-04-27 20:07:21,326 Thread-1   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-04-27 20:07:21,330 Thread-1   udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-04-27 20:07:21,331 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/objects/LiveObject.py", line 40, in update
2022-04-27 20:07:21,333 Thread-1   udi_interface      ERROR    udi_interface:write: handler(value)
2022-04-27 20:07:21,333 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/nodes/controller/controller.py", line 125, in parameterHandler
2022-04-27 20:07:21,335 Thread-1   udi_interface      ERROR    udi_interface:write: self.processParameters(params=params)
2022-04-27 20:07:21,335 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/nodes/controller/controller.py", line 148, in processParameters
2022-04-27 20:07:21,337 Thread-1   udi_interface      ERROR    udi_interface:write: self.processDefinedParams(params)
2022-04-27 20:07:21,338 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/nodes/controller/controller.py", line 186, in processDefinedParams
2022-04-27 20:07:21,339 Thread-1   udi_interface      ERROR    udi_interface:write: url = params[Params.url.value]
2022-04-27 20:07:21,340 Thread-1   udi_interface      ERROR    udi_interface:write: KeyError
2022-04-27 20:07:21,340 Thread-1   udi_interface      ERROR    udi_interface:write: :
2022-04-27 20:07:21,341 Thread-1   udi_interface      ERROR    udi_interface:write: 'url'
2022-04-27 20:07:43,714 Thread-4   udi_interface      ERROR    udi_interface:write: Exception in thread
2022-04-27 20:07:43,715 Thread-4   udi_interface      ERROR    udi_interface:write: Thread-4
2022-04-27 20:07:43,716 Thread-4   udi_interface      ERROR    udi_interface:write: :
2022-04-27 20:07:43,717 Thread-4   udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-04-27 20:07:43,717 Thread-4   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-04-27 20:07:43,722 Thread-4   udi_interface      ERROR    udi_interface:write: self.run()
2022-04-27 20:07:43,723 Thread-4   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-04-27 20:07:43,727 Thread-4   udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-04-27 20:07:43,728 Thread-4   udi_interface      ERROR    udi_interface:write: TypeError
2022-04-27 20:07:43,729 Thread-4   udi_interface      ERROR    udi_interface:write: :
2022-04-27 20:07:43,730 Thread-4   udi_interface      ERROR    udi_interface:write: update() missing 1 required positional argument: 'value'
2022-04-27 20:07:48,856 MainThread udi_interface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2022-04-27 20:07:51,328 MainThread udi_interface      INFO     __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.32 Starting...
2022-04-27 20:07:51,369 MainThread udi_interface      INFO     initializer:<module>: __name__ == "__main__" init called
2022-04-27 20:07:51,377 MainThread udi_interface.interface INFO     interface:__init__: Connect: Network Interface: {'addr': '192.168.1.9', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'}
2022-04-27 20:07:51,379 Interface  udi_interface.interface INFO     interface:_startMqtt: Connecting to MQTT... localhost:1888
2022-04-27 20:07:51,385 MainThread udi_interface.interface WARNING  interface:db_getNodeDrivers: Node server config has not yet been recieved.
2022-04-27 20:07:51,386 MainThread udi_interface.interface WARNING  interface:send: MQTT Send waiting on connection :: {'set': [{'address': 'itachir', 'driver': 'ST', 'value': '1', 'uom': 2}]}
2022-04-27 20:07:51,432 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Connected with result code 0 (Success)
2022-04-27 20:07:51,434 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:52:bf:4c_20 -  MID: 1 Result: 0
2022-04-27 20:07:51,446 MQTT       udi_interface.interface INFO     interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,)
2022-04-27 20:07:54,401 MainThread udi_interface.interface INFO     interface:addNode: Adding node iTach IR(itachir) [None]
2022-04-27 20:07:54,676 Thread-1   udi_interface      ERROR    udi_interface:write: Exception in thread
2022-04-27 20:07:54,678 Thread-1   udi_interface      ERROR    udi_interface:write: Thread-1
2022-04-27 20:07:54,681 Thread-1   udi_interface      ERROR    udi_interface:write: :
2022-04-27 20:07:54,682 Thread-1   udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2022-04-27 20:07:54,682 Thread-1   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2022-04-27 20:07:54,687 Thread-1   udi_interface      ERROR    udi_interface:write: self.run()
2022-04-27 20:07:54,688 Thread-1   udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run
2022-04-27 20:07:54,692 Thread-1   udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2022-04-27 20:07:54,692 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/objects/LiveObject.py", line 40, in update
2022-04-27 20:07:54,694 Thread-1   udi_interface      ERROR    udi_interface:write: handler(value)
2022-04-27 20:07:54,694 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/nodes/controller/controller.py", line 125, in parameterHandler
2022-04-27 20:07:54,696 Thread-1   udi_interface      ERROR    udi_interface:write: self.processParameters(params=params)
2022-04-27 20:07:54,696 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/nodes/controller/controller.py", line 148, in processParameters
2022-04-27 20:07:54,698 Thread-1   udi_interface      ERROR    udi_interface:write: self.processDefinedParams(params)
2022-04-27 20:07:54,699 Thread-1   udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/00:0d:b9:52:bf:4c_20/nodes/controller/controller.py", line 186, in processDefinedParams
2022-04-27 20:07:54,700 Thread-1   udi_interface      ERROR    udi_interface:write: url = params[Params.url.value]
2022-04-27 20:07:54,701 Thread-1   udi_interface      ERROR    udi_interface:write: KeyError
2022-04-27 20:07:54,701 Thread-1   udi_interface      ERROR    udi_interface:write: :
2022-04-27 20:07:54,702 Thread-1   udi_interface      ERROR    udi_interface:write: 'url'

 

Edited by apostolakisl
Posted
13 hours ago, apostolakisl said:

This is killing me.  I wish I had stayed with ISY and not done this migration.

I finally deleted the node servers that were pg3 from the ISY admin console because I could not get control of them in PG3.  I then did 

sudo pkg delete pg3

sudo cp /var/polyglot/pg3/pg3db_xxxxxxxxxx /var/polyglot/pg3/pg3.db

sudo install pkg pg3

Logged back into pg3.  PG3 still had my configurations from earlier, so I figured something was up with that.  Tried to add in my first PG3 node (itach).  It added in and itach showed up in ISY.  Then I tried to configure it.  It won't configure.  I cut and paste the same configuration I had from before.

I'll try to explain what happened and where I think you're currently at and next steps.

The ISY and PG3 both contain information that links node servers between them.  If you mess with one but not the other you end up in a bad state.

The "/var/polyglot/pg3/pg3db_xxxxxxxxxx" file contains the PG3 configuration at the time it was created. It contains the node servers installed on the ISY/PG3, the node server configuration info, the ISY configuration info, and PG3 configuration info.   By copying that file, you put PG3 back to the state it was in when that file was created.

By deleting the node servers from the ISY without also removing them PG3, you've left PG3 in a state where it thinks the node servers are installed on the ISY, but they aren't.

If you have backups of everything, you can, in theory put everything back to the state it was in, but at this point, I'm not sure that's the best way forward.

Since you've deleted the node servers from the ISY, it may make sense to clear the PG3 configuration again and start from scratch.  To do that, you can simply 'sudo rm /var/polyglot/pg3/pg3.db' and then restart PG3.  If the database doesn't exist, PG3 will create it with default values.   Then configure the ISY and start installing node servers.

If you continue to have issues with the itach node server, you'll have to contact the author of that node server.  I believe there is a forum section where you can do that.

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

×
×
  • Create New...