Post migration to V3 errors

Posted on
Sun Nov 12, 2017 7:36 am
wormhole offline
Posts: 125
Joined: Feb 21, 2017

Post migration to V3 errors

Followed all the instructions,
1. Downloaded and migrated names
2. Adjusted names with bad characters
3. Forgot all prior names via Alex iOS
4. Restarted plugin


While most stuff appears to work, upon the plugin starting i get the following errors in the log, any help appreciated.

Nov 12, 2017, 8:32:21 AM
Alexa-Hue Bridge 'Alexa Devices 2' updated and now has 16 Alexa Devices published
Reloading plugin "Alexa-Hue Bridge 3.0.12"
Stopping plugin "Alexa-Hue Bridge 3.0.12" (pid 3598)
Alexa-Hue Bridge Alexa-Hue Bridge shutdown requested
Alexa-Hue Bridge HTTP server stopped...
Alexa-Hue Bridge HTTP server stopped...
Stopped plugin "Alexa-Hue Bridge 3.0.12"
Starting plugin "Alexa-Hue Bridge 3.0.12" (pid 3602)
Alexa-Hue Bridge Alexa-Hue Bridge initialising . . .
Alexa-Hue Bridge Alexa discovery request logging disabled
Alexa-Hue Bridge No debugging requested
Started plugin "Alexa-Hue Bridge 3.0.12"
Alexa-Hue Bridge Alexa-Hue Bridge checking network access by attempting to access 'www.google.com'
Alexa-Hue Bridge Alexa-Hue Bridge network access check to www.google.com successfully completed.
Alexa-Hue Bridge Alexa-Hue Bridge initialization complete
Alexa-Hue Bridge Hue Bridge 'Alexa Devices 1' Host: 10.0.1.183
Alexa-Hue Bridge Hue Bridge 'Alexa Devices 2' Host: 10.0.1.183
Alexa-Hue Bridge Hue Bridge 'Alexa Groups' Host: 10.0.1.183
Alexa-Hue Bridge Hue Bridge 'Alexa Devices 1' Host: 10.0.1.183
Alexa-Hue Bridge 'Alexa Devices 1' has 19 Alexa Devices published
Alexa-Hue Bridge Starting Hue Bridge 'Alexa Devices 1' web server thread
Alexa-Hue Bridge Starting Hue Bridge 'Alexa Devices 1' discovery thread as 'Auto Start Discovery' requested
Alexa-Hue Bridge Hue Bridge 'Alexa Devices 2' Host: 10.0.1.183
Alexa-Hue Bridge 'Alexa Devices 2' has 16 Alexa Devices published
Alexa-Hue Bridge Starting Hue Bridge 'Alexa Devices 2' web server thread
Alexa-Hue Bridge Starting Hue Bridge 'Alexa Devices 2' discovery thread as 'Auto Start Discovery' requested
Alexa-Hue Bridge Hue Bridge 'Alexa Groups' Host: 10.0.1.183
Alexa-Hue Bridge 'Alexa Groups' has no Alexa Devices published
Alexa-Hue Bridge Starting Hue Bridge 'Alexa Groups' web server thread
Alexa-Hue Bridge Starting Hue Bridge 'Alexa Groups' discovery thread as 'Auto Start Discovery' requested
Alexa-Hue Bridge Error getHueDeviceJSON exception:
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 261, in getHueDeviceJSON
deviceListDict = self._createFullDeviceDict(ahbDevId)
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 372, in _createFullDeviceDict
publishedAlexaDevices = self.jsonLoadsProcess(ahbDev.pluginProps['alexaDevices'])
KeyError: 'key alexaDevices not found in dict'

Alexa-Hue Bridge Error StandardError detected in HttpdRequestHandler for device 90920739. Line '141' has error='must be string or buffer, not None'
Alexa-Hue Bridge Error getHueDeviceJSON exception:
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 261, in getHueDeviceJSON
deviceListDict = self._createFullDeviceDict(ahbDevId)
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 372, in _createFullDeviceDict
publishedAlexaDevices = self.jsonLoadsProcess(ahbDev.pluginProps['alexaDevices'])
KeyError: 'key alexaDevices not found in dict'

Alexa-Hue Bridge Error StandardError detected in HttpdRequestHandler for device 90920739. Line '141' has error='must be string or buffer, not None'
Alexa-Hue Bridge Error getHueDeviceJSON exception:
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 261, in getHueDeviceJSON
deviceListDict = self._createFullDeviceDict(ahbDevId)
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 372, in _createFullDeviceDict
publishedAlexaDevices = self.jsonLoadsProcess(ahbDev.pluginProps['alexaDevices'])
KeyError: 'key alexaDevices not found in dict'

Alexa-Hue Bridge Error StandardError detected in HttpdRequestHandler for device 90920739. Line '141' has error='must be string or buffer, not None'
Alexa-Hue Bridge Error getHueDeviceJSON exception:
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 261, in getHueDeviceJSON
deviceListDict = self._createFullDeviceDict(ahbDevId)
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 372, in _createFullDeviceDict
publishedAlexaDevices = self.jsonLoadsProcess(ahbDev.pluginProps['alexaDevices'])
KeyError: 'key alexaDevices not found in dict'

Alexa-Hue Bridge Error StandardError detected in HttpdRequestHandler for device 90920739. Line '141' has error='must be string or buffer, not None'
Alexa-Hue Bridge Error getHueDeviceJSON exception:
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 261, in getHueDeviceJSON
deviceListDict = self._createFullDeviceDict(ahbDevId)
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 372, in _createFullDeviceDict
publishedAlexaDevices = self.jsonLoadsProcess(ahbDev.pluginProps['alexaDevices'])
KeyError: 'key alexaDevices not found in dict'

Alexa-Hue Bridge Error StandardError detected in HttpdRequestHandler for device 90920739. Line '141' has error='must be string or buffer, not None'
Alexa-Hue Bridge Error getHueDeviceJSON exception:
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 261, in getHueDeviceJSON
deviceListDict = self._createFullDeviceDict(ahbDevId)
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 372, in _createFullDeviceDict
publishedAlexaDevices = self.jsonLoadsProcess(ahbDev.pluginProps['alexaDevices'])
KeyError: 'key alexaDevices not found in dict'

Alexa-Hue Bridge Error StandardError detected in HttpdRequestHandler for device 90920739. Line '141' has error='must be string or buffer, not None'
Alexa-Hue Bridge Error getHueDeviceJSON exception:
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 261, in getHueDeviceJSON
deviceListDict = self._createFullDeviceDict(ahbDevId)
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 372, in _createFullDeviceDict
publishedAlexaDevices = self.jsonLoadsProcess(ahbDev.pluginProps['alexaDevices'])
KeyError: 'key alexaDevices not found in dict'

Alexa-Hue Bridge Error StandardError detected in HttpdRequestHandler for device 90920739. Line '141' has error='must be string or buffer, not None'
Alexa-Hue Bridge Error getHueDeviceJSON exception:
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 261, in getHueDeviceJSON
deviceListDict = self._createFullDeviceDict(ahbDevId)
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Alexa-Hue Bridge.indigoPlugin/Contents/Server Plugin/hue_listener.py", line 372, in _createFullDeviceDict
publishedAlexaDevices = self.jsonLoadsProcess(ahbDev.pluginProps['alexaDevices'])
KeyError: 'key alexaDevices not found in dict'

Alexa-Hue Bridge Error StandardError detected in HttpdRequestHandler for device 90920739. Line '141' has error='must be string or buffer, not None'

Posted on
Sun Nov 12, 2017 8:24 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Post migration to V3 errors

Had a quick look at this and can't instantly see how this can happen but it obviously can? :?

I note that
Alexa-Hue Bridge 'Alexa Groups' has no Alexa Devices published
Is this a new Alexa-Hue bridge setup in V3 or did it exist before in V2. I am wondering if it this empty (no devices) Alexa-Hue Bridge that is causing the issue?

Posted on
Sun Nov 12, 2017 8:39 am
wormhole offline
Posts: 125
Joined: Feb 21, 2017

Re: Post migration to V3 errors

all existed in V2

Posted on
Sun Nov 12, 2017 8:43 am
wormhole offline
Posts: 125
Joined: Feb 21, 2017

Re: Post migration to V3 errors

also despite migrating i am still see v2 errors in the log
Nov 12, 2017, 9:37:41 AM
Alexa-Hue Bridge Alexa Device (Plugin V2.x.x) 'Garage Door' definition detected in Indigo Device 'Alexa Garage Door': Converting to V3 format.
Alexa-Hue Bridge Error Alexa Device (Plugin V2.x.x) 'Downstairs Lights' definition detected in Indigo Device 'Downstairs Lights': Unable to convert as Alexa Device Name is already allocated on Alexa-Hue Bridge 'Alexa Devices 2'
Alexa-Hue Bridge Alexa Device (Plugin V2.x.x) 'Theater Lights' definition detected in Indigo Device 'Theater Lights': Converting to V3 format.
Alexa-Hue Bridge Error Alexa Device (Plugin V2.x.x) 'Upstairs Lights' definition detected in Indigo Device 'Upstairs Lights': Unable to convert as Alexa Device Name is already allocated on Alexa-Hue Bridge 'Alexa Devices 2'
Alexa-Hue Bridge Alexa Device (Plugin V2.x.x) 'Welcome Home' definition detected in Indigo Device 'Welcome Home Group': Converting to V3 format.

Nov 12, 2017, 9:37:58 AM
Alexa-Hue Bridge 'Alexa Groups' updated and now has 3 Alexa Devices published

Nov 12, 2017, 9:40:00 AM
Schedule Garage Door Check

Nov 12, 2017, 9:40:23 AM
Alexa-Hue Bridge 'Alexa Groups' updated and now has 3 Alexa Devices published

Posted on
Sun Nov 12, 2017 9:07 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Post migration to V3 errors

The errors indicate that you already have those Alexa Names defined on another Alexa-Hue Bridge - that is invalid and so they weren't migrated (which is correct). The error messages are highlighting the situation for you and drawing it to your attention. :)

If you reload the plugin now - do you still get errors?

Posted on
Sun Nov 12, 2017 9:50 am
wormhole offline
Posts: 125
Joined: Feb 21, 2017

Re: Post migration to V3 errors

I do not understand your response. I did not create any new Hue Bridges, i simply migrated from V2 to V3. The same bridges exist now as before, Alexa Devices 1, Alexa Devices 2 and Alexa Groups. So why it would be telling me those names were used in other bridges i am unsure.

When i reloaded the plugin i do not see the errors. Thanks for responding and assisting.

Posted on
Sun Nov 12, 2017 10:54 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Post migration to V3 errors

wormhole wrote:
I do not understand your response. I did not create any new Hue Bridges, i simply migrated from V2 to V3. The same bridges exist now as before, Alexa Devices 1, Alexa Devices 2 and Alexa Groups. So why it would be telling me those names were used in other bridges i am unsure.

If you check in Alexa Devices 2 you should see that those Alexa device names are already defined. With Version 3 of the plugin, it is invalid to have the same name (as known by Alexa) defined on more than one Alexa-Hue Bridge. Alexa doesn't allow duplicate names. Is it possible that when you did your renaming, you used some of the names that were previously defined in Alexa Groups (that hadn't yet been migrated)? I suspect that when you went through the migration process you didn't edit Alexa Groups and save it. If you had then the error with the missing key shouldn't have happened. Obviously the plugin needs to check for this and I will fix this in due course (it only affects the initial migration from V2). :)

wormhole wrote:
When i reloaded the plugin i do not see the errors. Thanks for responding and assisting.
As I suspected, now that you have edited and saved Alexa Groups and done the migration, all should be well. If it isn't, then please post back with the details. :)

Posted on
Sun Nov 12, 2017 11:12 am
wormhole offline
Posts: 125
Joined: Feb 21, 2017

Re: Post migration to V3 errors

Not sure what you mean by 'already defined'. Devices 1 is basically Indigo Devices A-Ma while Devices 2 is ME-Z, there is and was no overlap in devices or Alexa Names (i used the Indigo device names as the Alexa names), so maybe I am not following your meaning. Regarding Groups, i did not 'redo' that 'device name" like i did Devices 1 and Devices 2. Thanks again for the responses.

Posted on
Sun Nov 12, 2017 11:31 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Post migration to V3 errors

OK - As long as it is now working for you, it probably isn't worth investing more time in trying to understand the exact circumstances. :)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests

cron