BeagleStache

Hi Jason,

I am trying to re-create the awesome demo
BeagleStache - BeagleBoard. I have followed the instructions
there to clone the github repo and 'make & make install' it. However, when
double clicking the beagle icon on desktop or execute ./runstache from the
command line nothing is running.

I checked the log file and see this:

root@beaglebone:~/stache# cat /var/log/beaglestache.log
{"level":"info","message":"LED
initialized","timestamp":"2012-11-22T12:06:20.265Z"}
{"level":"info","message":"stache exited: 1 signal:
null","timestamp":"2012-11-22T12:06:20.759Z"}
{"level":"info","message":"LED
initialized","timestamp":"2012-11-22T12:20:00.471Z"}
{"level":"info","message":"End LED","timestamp":"2012-11-22T12:20:00.507Z"}
{"level":"info","message":"stache exited: 1 signal:
null","timestamp":"2012-11-22T12:20:01.003Z"}
{"level":"info","message":"LED
initialized","timestamp":"2012-11-22T12:29:54.564Z"}
{"level":"info","message":"End LED","timestamp":"2012-11-22T12:29:54.601Z"}
{"level":"info","message":"stache exited: 1 signal:
null","timestamp":"2012-11-22T12:29:55.070Z"}

It look like there's some error when the program exits. Do you have any
pointer that I can use to troubleshoot this?

Well, I guess we know that the 'runstache' script is running based on
tapping the 'beaglestache.desktop' icon and that it has successfully
launched 'node tweetstache.js'. It seems 'stache' is spawned, but dies
within a second of being launched. Given that the return code is a 1, it
seems it isn't reaching one of the error conditions that exit with an
alternative code.

Question: Do you have a webcam installed and does it show up to Linux?

You can attempt to start 'stache' manually by opening up a terminal under X
and running the app. You can do so remotely by using 'ssh -X
root@beaglebone.local' and then executing 'stache'. Please report what you
see on the terminal output.

Yes, I am using the same webcam as specified. It is working with ‘Cheese’ app as well as when activated from command line like you suggested. When running under X, I can see it detects faces and adds mustaches to them.

Not sure if it is relevant, but when executing ./stache under X, I see some errrors like in http://pastebin.com/7V3PcsYt even though the camera streaming is still working.

David

Yes, I am using the same webcam as specified. It is working with 'Cheese'
app as well as when activated from command line like you suggested. When
running under X, I can see it detects faces and adds mustaches to them.

Great!

Not sure if it is relevant, but when executing ./stache under X, I see
some errrors like in root@beaglebone:~/stache# ./stache./stache IMPORTANT: READ BEFORE DOWNLOADIN - Pastebin.com even though the camera
streaming is still working.

Those notices at the bottom are harmless.

Sounds like it might be an Xauthority issue. Are you running Angstrom or
Debian? Reversing this patch might help if using Angstrom:

Have you tried running 'runstache'?

Hi Jason,

That was it! I was still using Angstrom. Thanks a lot for your help!

David