Dead Edgerouter Lite 3.

Posted on
Sat Sep 08, 2018 2:27 am
siclark offline
Posts: 1961
Joined: Jun 13, 2017
Location: UK

Re: Dead Edgerouter Lite 3.

With the 2 more children about to come in a few weeks we definitely need to be able to support a more devices in a few years but 20k is pushing it, unless they've thrown an insane party.


Sent from my iPhone using Tapatalk

Posted on
Sun Sep 09, 2018 1:45 am
siclark offline
Posts: 1961
Joined: Jun 13, 2017
Location: UK

Re: Dead Edgerouter Lite 3.

Karl, as I'm changing around IP addresses it looks like I've lots of old plugin devices created with duplicates of online ones. Can I safely delete all UniFi created ones in the knowledge that next time they come in line they will be recreated?


Sent from my iPhone using Tapatalk

Posted on
Sun Sep 09, 2018 6:48 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Dead Edgerouter Lite 3.

Yes
Only if you set a device to ignore it will not be recreated


Sent from my iPhone using Tapatalk

Posted on
Sun Sep 09, 2018 8:57 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Dead Edgerouter Lite 3.

I've lots of old plugin devices created with duplicates of online ones

that should actually not happen.

A new device should only be created when the MAC number of a device is new/different, not when any other property changes ie not when the IP# changes.

if you have 2 devices with the same MAC number PLEASE let me know. I would like to understand how that can happen

Karl

Posted on
Mon Sep 10, 2018 11:10 am
siclark offline
Posts: 1961
Joined: Jun 13, 2017
Location: UK

Re: Dead Edgerouter Lite 3.

kw123 wrote:
I've lots of old plugin devices created with duplicates of online ones

that should actually not happen.

A new device should only be created when the MAC number of a device is new/different, not when any other property changes ie not when the IP# changes.

if you have 2 devices with the same MAC number PLEASE let me know. I would like to understand how that can happen

Karl


Sorry I've deleted everything. But in short I had the plugin running only using access points but then bought a USG. In between getting everything set up correctly I moved the APs around between several different cloud controllers and they changed IP address several times so I had to keep updating the plugin. Plus I think I've changed physical AP is AP1, 2, 3 etc on the plugin. Also changed all the static IP address or device. But as you say, no MAC changes obviously.
Maybe I imagined it but sure I saw 2 rows for my phone, one showing inactive for 4 days. The other one as UP.
Anyway, nice opportunity to start from fresh.


Sent from my iPhone using Tapatalk

Posted on
Wed Sep 26, 2018 3:03 am
siclark offline
Posts: 1961
Joined: Jun 13, 2017
Location: UK

Re: Dead Edgerouter Lite 3.

Morning, just going through updating the device names to something meaningful and came across this example of duplicated device.

Any ideas on what its done?
Attachments
unfi dupe device.jpeg
unfi dupe device.jpeg (53.86 KiB) Viewed 2313 times

Posted on
Wed Sep 26, 2018 6:01 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Dead Edgerouter Lite 3.

Could you show all the states and props for both devices ?
Porps : use menu print...


Sent from my iPhone using Tapatalk

{edit] this can happen: when indigo times out in creating a device or the device already exists but can not read it --> ie AppleScript is holding indigo
then the plugin does;
Code: Select all
                    try:  # normal creation
                        dev = indigo.device.create(
                            protocol=indigo.kProtocol.Plugin,
                            address=MAC,
                            name=devName + u"_" + MAC,
                            description=ipx + u"-" + nameCl+"=Wifi",
                            pluginId=self.pluginId,
                            deviceTypeId=devType,
                            folder=self.folderNameCreatedID,
                            props={u"useWhatForStatus":u"WiFi", u"useWhatForStatusWiFi":u"Expiration",isType:True})
                    except  Exception, e:
                        if len(unicode(e)) > 5:
                            indigo.server.log(u"in Line '%s' has error='%s'" % (sys.exc_traceback.tb_lineno, e))
                        try: # if device not successfully created try to create it again but with random number added
                            devName += u"_"+( unicode(time.time() - int(time.time())) ).split(".")[1] # create random name
                            indigo.server.log(u"trying again to create device with differnt name "+devName)
                            dev = indigo.device.create(
                                protocol=indigo.kProtocol.Plugin,
                                address=MAC,
                                name=devName + u"_" + MAC,
                                description=ipx + u"-" + nameCl+"=Wifi",
                                pluginId=self.pluginId,
                                deviceTypeId=devType,
                                folder=self.folderNameCreatedID,
                                props={u"useWhatForStatus":u"WiFi", u"useWhatForStatusWiFi":u"Expiration",isType:True})
                        except  Exception, e:
                            if len(unicode(e)) > 5:
                                indigo.server.log(u"in Line '%s' has error='%s'" % (sys.exc_traceback.tb_lineno, e))
                            continue
I have added a 2. try to create the device then the name gets this number in the middle

you can delete one of them then restart the plugin

Karl

Posted on
Tue Oct 02, 2018 3:12 pm
siclark offline
Posts: 1961
Joined: Jun 13, 2017
Location: UK

Re: Dead Edgerouter Lite 3.

Is this the right info?

===== UNIFI device info =========
device info Derek dupe iphone unifi id: 1753581898 ; type:UniFi
props:
Group0 False
address 48:4b:aa:df:28:eb
enableBroadCastEvents 0
expirationTime 120
isUniFi True
useWhatForStatus WiFi
useWhatForStatusWiFi Expiration
states:
AP 192.168.0.6-#1
GHz 2
MAC 48:4b:aa:df:28:eb
SW_Port
created 2018-09-20 12:49:47
displayStatus expired 09-20 16:36:45
groupMember
ipNumber 192.168.0.60
lastStatusChange 2018-09-20 16:36:45
lastStatusChangeReason Period Check Wifi expired
name Dereks-iPhone-7
noiseWiFi -108
powerMgmtWiFi False
rx_tx_RateWiFi 1000/2000 [Kb]
signalWiFi -90
stateWiFi 00001111
status expired
upDownSetting Wifi-exp:120
vendor Apple
device info Derek iPhone unifi id: 1176125291 ; type:UniFi
props:
Group0 False
Group1 True
address 48:4b:aa:df:28:eb
enableBroadCastEvents 0
expirationTime 120
isUniFi True
useWhatForStatus WiFi
useWhatForStatusWiFi Expiration
states:
AP 192.168.0.5-#0
GHz 2
MAC 48:4b:aa:df:28:eb
SW_Port
created 2018-09-14 10:46:55
displayStatus expired 09-20 13:00:55
groupMember Group1
ipNumber 192.168.0.60
lastStatusChange 2018-09-20 13:00:55
lastStatusChangeReason Period Check Wifi expired
name Dereks-iPhone-7
noiseWiFi -111
powerMgmtWiFi True
rx_tx_RateWiFi 24000/69586 [Kb]
signalWiFi -55
stateWiFi 00011111
status expired
upDownSetting Wifi-exp:120
vendor Apple
counters, timers etc:
UniFi {u'upTimeWifi': u'', u'devId': 1753581898, u'inListSWITCH_6': -1, u'inListSWITCH_7': -1, u'inListSWITCH_4': -1, u'inListSWITCH_5': -1, u'inListSWITCH_2': -1, u'inListSWITCH_3': -1, u'inListSWITCH_0': -1, u'inListSWITCH_1': -1, u'inListSWITCH_8': -1, u'inListSWITCH_9': -1, u'uptimeSWITCH_7': u'', u'inListDHCP': False, u'GHz': u'', u'inListSWITCH_10': -1, u'uptimeSWITCH_5': u'', u'uptimeSWITCH_4': u'', u'upTimeDHCP': u'', u'uptimeSWITCH_10': u'', u'idleTimeWiFi': u'', u'ageSWITCH_7': u'', u'ageSWITCH_6': u'', u'ageSWITCH_5': u'', u'ageSWITCH_4': u'', u'ageSWITCH_3': u'', u'ageSWITCH_2': u'', u'ageSWITCH_1': u'', u'ageSWITCH_0': u'', u'uptimeSWITCH_3': u'', u'uptimeSWITCH_2': u'', u'uptimeSWITCH_1': u'', u'uptimeSWITCH_0': u'', u'ipNumber': u'192.168.0.60', u'uptimeSWITCH_6': u'', u'ageSWITCH_9': u'', u'ageSWITCH_8': u'', u'AP': u'192.168.0.6', u'lastUp': 0.0, u'ageSWITCH_10': u'', u'uptimeSWITCH_9': u'', u'uptimeSWITCH_8': u'', u'lastWOL': 0.0, u'inListWiFi': 0}
device info ===== UNIFI device info ========= END

===== UNIFI device info =========
device info Derek dupe iphone unifi id: 1753581898 ; type:UniFi
props:
Group0 False
address 48:4b:aa:df:28:eb
enableBroadCastEvents 0
expirationTime 120
isUniFi True
useWhatForStatus WiFi
useWhatForStatusWiFi Expiration
states:
AP 192.168.0.6-#1
GHz 2
MAC 48:4b:aa:df:28:eb
SW_Port
created 2018-09-20 12:49:47
displayStatus expired 09-20 16:36:45
groupMember
ipNumber 192.168.0.60
lastStatusChange 2018-09-20 16:36:45
lastStatusChangeReason Period Check Wifi expired
name Dereks-iPhone-7
noiseWiFi -108
powerMgmtWiFi False
rx_tx_RateWiFi 1000/2000 [Kb]
signalWiFi -90
stateWiFi 00001111
status expired
upDownSetting Wifi-exp:120
vendor Apple
device info Derek iPhone unifi id: 1176125291 ; type:UniFi
props:
Group0 False
Group1 True
address 48:4b:aa:df:28:eb
enableBroadCastEvents 0
expirationTime 120
isUniFi True
useWhatForStatus WiFi
useWhatForStatusWiFi Expiration
states:
AP 192.168.0.5-#0
GHz 2
MAC 48:4b:aa:df:28:eb
SW_Port
created 2018-09-14 10:46:55
displayStatus expired 09-20 13:00:55
groupMember Group1
ipNumber 192.168.0.60
lastStatusChange 2018-09-20 13:00:55
lastStatusChangeReason Period Check Wifi expired
name Dereks-iPhone-7
noiseWiFi -111
powerMgmtWiFi True
rx_tx_RateWiFi 24000/69586 [Kb]
signalWiFi -55
stateWiFi 00011111
status expired
upDownSetting Wifi-exp:120
vendor Apple
counters, timers etc:
UniFi {u'upTimeWifi': u'', u'devId': 1753581898, u'inListSWITCH_6': -1, u'inListSWITCH_7': -1, u'inListSWITCH_4': -1, u'inListSWITCH_5': -1, u'inListSWITCH_2': -1, u'inListSWITCH_3': -1, u'inListSWITCH_0': -1, u'inListSWITCH_1': -1, u'inListSWITCH_8': -1, u'inListSWITCH_9': -1, u'uptimeSWITCH_7': u'', u'inListDHCP': False, u'GHz': u'', u'inListSWITCH_10': -1, u'uptimeSWITCH_5': u'', u'uptimeSWITCH_4': u'', u'upTimeDHCP': u'', u'uptimeSWITCH_10': u'', u'idleTimeWiFi': u'', u'ageSWITCH_7': u'', u'ageSWITCH_6': u'', u'ageSWITCH_5': u'', u'ageSWITCH_4': u'', u'ageSWITCH_3': u'', u'ageSWITCH_2': u'', u'ageSWITCH_1': u'', u'ageSWITCH_0': u'', u'uptimeSWITCH_3': u'', u'uptimeSWITCH_2': u'', u'uptimeSWITCH_1': u'', u'uptimeSWITCH_0': u'', u'ipNumber': u'192.168.0.60', u'uptimeSWITCH_6': u'', u'ageSWITCH_9': u'', u'ageSWITCH_8': u'', u'AP': u'192.168.0.6', u'lastUp': 0.0, u'ageSWITCH_10': u'', u'uptimeSWITCH_9': u'', u'uptimeSWITCH_8': u'', u'lastWOL': 0.0, u'inListWiFi': 0}
device info ===== UNIFI device info ========= END

Posted on
Tue Oct 02, 2018 5:06 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Dead Edgerouter Lite 3.

siclark wrote:
kw123 wrote:
I've lots of old plugin devices created with duplicates of online ones

that should actually not happen.

A new device should only be created when the MAC number of a device is new/different, not when any other property changes ie not when the IP# changes.

if you have 2 devices with the same MAC number PLEASE let me know. I would like to understand how that can happen

Karl


Sorry I've deleted everything. But in short I had the plugin running only using access points but then bought a USG. In between getting everything set up correctly I moved the APs around between several different cloud controllers and they changed IP address several times so I had to keep updating the plugin. Plus I think I've changed physical AP is AP1, 2, 3 etc on the plugin. Also changed all the static IP address or device. But as you say, no MAC changes obviously.
Maybe I imagined it but sure I saw 2 rows for my phone, one showing inactive for 4 days. The other one as UP.
Anyway, nice opportunity to start from fresh.


Sent from my iPhone using Tapatalk


Hi Karl,
I can confirm I have this issue, see image of 3 devices for my phone.
Attachments
Screen Shot 2018-10-03 at 00.03.39.png
Screen Shot 2018-10-03 at 00.03.39.png (25.66 KiB) Viewed 2193 times

Posted on
Tue Oct 02, 2018 5:35 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Dead Edgerouter Lite 3.

are you running applescript things? that can trigger this .. AppleScript can hold all of indigo and make queries time out. That error looks like a device does not exist or the plugin has to check for all kinds of exceptions. ... just my guess.

there is only one way to create duplicated devices. indigo does not find the device, then it tries to recreate it and it finds it already exists and it tries to create one with additional numbers.

Karl

Posted on
Wed Oct 03, 2018 1:55 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Dead Edgerouter Lite 3.

No Applescript running. I'll keep an eye on it to see when/if it happens again.

Who is online

Users browsing this forum: No registered users and 20 guests