Pi rebooting every few minutes

Posted on
Sat Jan 27, 2018 4:59 pm
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Pi rebooting every few minutes

Hey Karl,

Thanx for all the help offline! I know I pestered you quite a bit to get started. Turns out I had an issue with a bad apt-get upgrade, where one of the kernel packages didn't update. Had to run that three times to get it cleaned up and then all went well in BLE land for me. :-)

New issue, though, is that while I'm seeing devices and things appear to be running correctly [ haven't yet identified my beacons as I seem to have 6 or 7 within range that are news to me lol ], my pi keeps rebooting about every two minutes. I'm seeing the following in the logs:

WebServer request to set variable "pi_IN_0" value to "{"msgs":[["B8:27:EB:E1:4E:57",2,"2f234454cf6d4a0fadf2f4911ba9ffa6-9-1",-39.0,-59.0,1,"",30],["E2:88:B0:B7:D7:2C",2,"fabfa2bd01467d6e00fbabad08160a18-5636-2384",-74.1,3.0,11,"",30],["00:EA:24:32:C9:27",2,"08885dd0111b11e491910800200c9a66-9266-51495",-49.3,-49.0,6,"",30],["00:EA:24:32:C9:24",2,"08885dd0111b11e491910800200c9a66-9266-51492",-60.2,-60.0,18,"",30],["00:EA:24:46:CA:97",2,"08885dd0111b11e491910800200c9a66-9286-51863",-60.8,-49.0,5,"",30],["00:EA:24:46:CA:94",2,"08885dd0111b11e491910800200c9a66-9286-51860",-68.1,-60.0,13,"",30],["00:EA:24:3F:0F:94",2,"08885dd0111b11e491910800200c9a66-9279-3988",-52.7,-60.0,17,"",30],["00:EA:24:3F:0F:97",2,"08885dd0111b11e491910800200c9a66-9279-3991",-42.4,-49.0,7,"",30]],"reason":2,"secsCol":30,"mac":"B8:27:EB:E1:CB:01","program":"beaconloop","pi":"0","ipAddress":"10.10.10.106"}" from 10.10.10.106
piBeacon ------------------------------------------------------------------------------
piBeacon updateBeaconStates in Line '10496' has error='local variable 'dev' referenced before assignment'
piBeacon ------------------------------------------------------------------------------
piBeacon ------------------------------------------------------------------------------
piBeacon beacons[piMACSend] 0 B8:27:EB:E1:CB:01 0 {u'minSignalCutoff': -999, u'receivedSignals': [[-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0], [-999, 0]], u'showBeaconSymboluseErrorSize': u'1', 'showBeaconNickName': u'', u'PosZ': 0.0, u'PosX': 0.0, u'PosY': 0.0, u'signalDelta': 999, 'pause': 1517093725.768, u'showBeaconSymbolColor': u'b', u'beaconTxPower': 999, u'note': u'Pi-0', u'expirationTime': 80.0, u'batteryLevel': u'', u'status': 'up', u'updateSignalValuesSeconds': 0, u'updateFING': 0, u'indigoId': 0, u'fastDown': u'0', u'created': '2018-01-27 14:55:25', u'lastUp': 1517093815.673245, u'updateWindow': 0, u'showBeaconOnMap': u'0', u'ignore': 0, u'showBeaconSymbolAlpha': u'0.5', u'typeOfBeacon': 'rPi'}
piBeacon ------------------------------------------------------------------------------
piBeacon ------------------------------------------------------------------------------
piBeacon error ok if new / replaced RPI
piBeacon ------------------------------------------------------------------------------
piBeacon ------------------------------------------------------------------------------
piBeacon deleting beacon: Pi_B8:27:EB:E1:CB:01 replacing simple beacon with rPi model(2)
piBeacon ------------------------------------------------------------------------------
piBeacon creating new pi 3-- 0 0 B8:27:EB:E1:CB:01
piBeacon fixConfig in Line '1696' has error=''key id 905869272 not found in database''
piBeacon error normal if rpi has been deleted, removing from list: setting piDevId=0
SQL Logger deleting table device_history_905869272
SQL Logger creating table device_history_1406349723 for "Pi_B8:27:EB:E1:CB:01"


then the device gets readded, and we lather, rinse, repeat. Beacon status seems fine, but the reboots seem like there's an issue. I would think they wouldn't have to be rebooted regularly at all, so this makes me think I've messed something up again. doh!

here's a grep from the indigo_log.txt to give you an idea on frequency:
2018-01-27 14:45:38.702 piBeacon deleting beacon: Pi_B8:27:EB:E1:CB:01 replacing simple beacon with rPi model(2)
2018-01-27 14:45:38.918 SQL Logger creating table device_history_1966405971 for "Pi_B8:27:EB:E1:CB:01"
2018-01-27 14:45:42.393 piBeacon deleting beacon: Pi_B8:27:EB:E1:CB:01 replacing simple beacon with rPi model(2)
2018-01-27 14:45:42.487 SQL Logger creating table device_history_1622623288 for "Pi_B8:27:EB:E1:CB:01"
2018-01-27 14:47:12.938 piBeacon deleting beacon: Pi_B8:27:EB:E1:CB:01 replacing simple beacon with rPi model(2)
2018-01-27 14:47:12.949 SQL Logger creating table device_history_500003561 for "Pi_B8:27:EB:E1:CB:01"
2018-01-27 14:47:15.737 piBeacon deleting beacon: Pi_B8:27:EB:E1:CB:01 replacing simple beacon with rPi model(2)
2018-01-27 14:47:15.748 SQL Logger creating table device_history_10855487 for "Pi_B8:27:EB:E1:CB:01"
2018-01-27 14:48:46.728 piBeacon deleting beacon: Pi_B8:27:EB:E1:CB:01 replacing simple beacon with rPi model(2)
2018-01-27 14:48:46.735 SQL Logger creating table device_history_1513822614 for "Pi_B8:27:EB:E1:CB:01"
2018-01-27 14:49:58.331 piBeacon deleting beacon: Pi_B8:27:EB:E1:CB:01 replacing simple beacon with rPi model(2)
2018-01-27 14:49:58.338 SQL Logger creating table device_history_1517351623 for "Pi_B8:27:EB:E1:CB:01"
2018-01-27 14:50:01.042 piBeacon deleting beacon: Pi_B8:27:EB:E1:CB:01 replacing simple beacon with rPi model(2)
2018-01-27 14:50:01.259 SQL Logger creating table device_history_1627738464 for "Pi_B8:27:EB:E1:CB:01"


thanx again Karl! Really appreciate the plugin, and all of the effort, and your willingness to reply to my silly questions so quickly.

Posted on
Sat Jan 27, 2018 6:38 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Pi rebooting every few minutes

that error has been fixed in the recent releases ..
could you update to ...199

Posted on
Sun Jan 28, 2018 11:59 pm
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Re: Pi rebooting every few minutes

Looks like the upgrade did the trick :-) Thanks!

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests