Hi All, I’m having some issues with a fresh install of brewpi on a Raspberry Pi 2 and a BrewPi Spark. I’ve run through the usual:
sudo apt-get update
sudo apt-get upgrade
sudo rpi-update
git clone https://github.com/BrewPi/brewpi-tools.git ~/brewpi-tools
sudo ~/brewpi-tools/install.sh
sudo python /home/brewpi/brewpi.py --kill
sudo python ~/brewpi-tools/updater.py
(I chose the develop branch for both /home/brewpi and /var/www)
I created a config.cfg containing:
boardType = spark-core
But when I check the web interface I get the following:
http://imgur.com/WeKRAf1
However, brewpi.py --status shows that it is running:
[{‘cfg’: ConfigObj({‘scriptPath’: ‘/home/brewpi/’, ‘wwwPath’: ‘/var/www/’, ‘port’: ‘/dev/ttyACM0’, ‘altport’: ‘/dev/ttyACM1’, ‘boardType’: ‘spark-core’, ‘beerName’: ‘My First BrewPi Run’, ‘interval’: ‘120.0’, ‘dataLogging’: ‘active’}),
‘pid’: 3515,
‘port’: ‘/dev/ttyACM0’,
‘sock’: {‘sock’: 0, ‘host’: ‘localhost’, ‘type’: ‘f’, ‘port’: None, ‘file’: ‘/home/brewpi/BEERSOCKET’}}]
There are no errors in stderr.txt:
Mar 31 2015 11:34:03 Notification: Script started for beer 'My First BrewPi Run’
Mar 31 2015 11:35:03 Notification: Script started for beer ‘My First BrewPi Run’
I’ve manually run sudo /home/brewpi/utils/runAfterUpdate.sh and
sudo /home/brewpi/utils/fixPermissions.sh. But that didn’t help.
The only oddity I’ve noticed is that the socketfile isn’t getting created?
ls -lta /home/brewpi/BEERSOCKET
ls: cannot access /home/brewpi/BEERSOCKET: No such file or directory
If I manually run the script and ctrl+c it, this is the result:
Mar 31 2015 13:21:13 Notification: Script started for beer ‘Test’
^CTraceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 358, in
hwVersion = brewpiVersion.getVersionFromSerial(ser)
File “/home/brewpi/brewpiVersion.py”, line 28, in getVersionFromSerial
ser.write(‘n’) # request version info
File “/usr/local/lib/python2.7/dist-packages/serial/serialposix.py”, line 511, in write
_, ready, _ = select.select([], [self.fd], [], None)
KeyboardInterrupt
I’ve been troubleshooting this for hours now with no success. Any ideas?
Thanks!