sshToRPI Error

rhanson
Posts: 198
Joined: Tue Apr 30, 2013 6:31 pm

sshToRPI Error

Post by rhanson »

Karl,

I've been using piBeacon for years without issue. Went today to set up a new Pi, and I'm getting this error in the log every few seconds:

Code: Select all

   piBeacon                        sshToRPI in Line '13443' has error=''Popen' object does not support indexing'
Debug lines:

Code: Select all

   piBeacon                         sbin/ping  -c 1 -W 40 -o 192.168.6.100 return-code: 0
   piBeacon                        rebootSSH.exp rPi# 1
/usr/bin/expect '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/rebootSSH.exp'  pi ##correct-password## assword 192.168.6.100 15  &
["assword"? Is that like Seinfeld's assman?]
   piBeacon                        sshToRPI in Line '13443' has error=''Popen' object does not support indexing'
   piBeacon                        last updates were not successful wait, then try again
   piBeacon                        rpiUpdateThread executing  {'fileToSend': 'rebootSSH.exp', 'endAction': 'repeatUntilFinished', 'tries': 7, 'exeTime': 1543351213.549131, 'pi': 1, 'type': 'ssh'}
   piBeacon                        rpiUpdateThread executing  {'fileToSend': 'rebootSSH.exp', 'endAction': 'repeatUntilFinished', 'tries': 7, 'exeTime': 1543351213.549131, 'pi': 1, 'type': 'ssh'}
Data points:
- configured pi correctly (including timezone, etc)
- able to ssh from the Indigo machine terminal (and other machines) to the pi without issue
- password is correct in the config
- new Pi's MAC address correctly appears in the dropdown list of Pis
- Indigo device for the new pi has not been created
- didn't feel like looking at line 13443, figured you would know best
- pi scripts are running on the pi (master, receiveGPIOcommands, beaconloop, copyToTemp)
- installLibs.py is not running
- stopped/restarted plugin
- stopped/restarted whole indigo server
- plugin version 7.94.250
- Indigo 7.2.0

Any ideas?

How do I delete a pi (whose device doesn't yet exist) and start over?
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: sshToRPI Error

Post by kw123 »

the line # 13443 is:>> if len(ret[1]) > 0: <<
but ret = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
missing .communicate().. hence the Popen error

This happens only for certain commands (ie reboot ) only when done manually or program update to RPi

fixed in 7.95.251

don't know why ".communicate()." disappeared

Karl

assman: some prompts are Password some password .. hence assword .. long enough and works.. :lol:
had a plugin "mother" (.. does not work any more vendor website is gone) and you could add some f words behind that one
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

sshToRPI Error

Post by kw123 »

>> How do I delete a pi (whose device doesn't yet exist) and start over?:
in initial setup delete userid and or password and set to off & save that should do it

or just edit that PI# in initial setup, set the new configs and save

Karl
rhanson
Posts: 198
Joined: Tue Apr 30, 2013 6:31 pm

Re: sshToRPI Error

Post by rhanson »

Thanks for the patch. Success! :-)
Post Reply

Return to “piBeacon”