I am new in snappy ubuntu core. I downloaded the webchat example from https://github.com/ubuntu-core/snapcraft/tree/master/examples/webchat. Then I called snapcraft snap command, and snappy build inside snap folder. That created .snap file which I copied to my Beagle bone black and installed it successfully. I followed all instructions but application, when I go to http://webdm.local:3000 in my browser, is not working. Did I forget something, and what I need to do to make this example work on BeagleBone Black? Thanks in advance.

share|improve this question
    
Which version of Snapcraft are you using? Which version of Ubuntu Core are you using? Also, can you be more specific about HOW it's not working? Finally, any errors in the syslog? – Kyle Mar 14 '16 at 17:06
    
I am using Ubuntu core 15.4 and Snapcraft version 1.1.0. on Ubuntu 14.04 LTS. There are no errors in syslog but there is no service in etc/systemd/system to start the application either. I can maually change package.yaml file like in on this link insights.ubuntu.com/2015/06/03/… but then some paths are not right and application doesn't start. – user3506697 Mar 14 '16 at 18:12
up vote 1 down vote accepted

You're using examples out of the master branch of Snapcraft, which represents Snapcraft 2.x. Since you're using Snapcraft 1.x, I suggest either using the example here, or use the examples distributed for your Snapcraft release with:

$ sudo apt-get install snapcraft-examples

Those examples should work a bit more like what you expect :) .

share|improve this answer
    
Thank you Kyle. I didn't see that branch is set on master. But now I have a problem after I build it with right snapcraft yaml script. Linux service is failed when it's automatically called. To check why it's not working I opened webchat_server_IOgafUPRUCPP.service and in other terminal gone to WorkingDirectory. So when i run ExecStart line from service it should work but it's doesn't. I says "/apps/webchat.sideload/IOgafUPRUCPP/bin/webchat-for-a-snap.‌​wrapper: 5: exec: /bin/webchat-for-a-snap: not found " – user3506697 Mar 15 '16 at 9:53
    
and when I start service with systemctl I get error Active: failed (Result: start-limit) and (code=exited, status=2) – user3506697 Mar 15 '16 at 10:08
    
Anything in the syslog? – Kyle Mar 15 '16 at 12:59
    
I got new info about problem. I repeated the whole procedure with KVM and everything works fine. So it is problem with BeagleBone Black. Maybe it is beacause I create .snap package on x64 and beagle is x32. – user3506697 Mar 15 '16 at 15:47
    
Ah, yes indeed-- Snapcraft doesn't support cross-building, so you need to build on the same architecture. – Kyle Mar 15 '16 at 19:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.