<div dir="ltr"><div><div><div><div><div>Thanks Ted. Your suggestions worked. I see cherrypy webserver running at launch. I can access cherrypy hello world webpage on my host PC browser. <br>I got rid of run.sh file. I started cherrypy webserver from YAML file. <br><br>I have few more questions<br><br></div>1. I see this message "Signature check failed, but installing anyway as requested" when I install a snap on Snappy QEMU. How do I get valid signature for my snap?<br><br></div>2. I installed snappy example py3-project on Snappy QEMU. It has sha3sum.py. I can't run that python program on Snappy. How to execute program installed with Snap manually?<br><br></div>3. I have webdm installed on Snappy QEMU.I am not able to access webdm from my host PC browser. I tried webdm.local:8080 or localhost:8080<br><br></div>Thanks,<br></div>Vani<br><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 7, 2015 at 8:05 PM, Ted Gould <span dir="ltr"><<a href="mailto:ted@ubuntu.com" target="_blank">ted@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>


  
  

<div><span class="">
On Wed, 2015-10-07 at 17:53 -0700, Vani Desai wrote:
<blockquote type="CITE">
    I have created very simple "hello world" cherrypy webserver application using Snapcraft. I am able to create snap and install snap on Snappy emulator running on Ubuntu. My app starts CherryPy webserver upon lunch. But cherrypy webserver doesn't start after snap installation. Also I am not able to run this app manually on Snappy.<br>
</blockquote>
<br></span>
Cool!<span class=""><br>
<br>
<blockquote type="CITE">
    I have attached all files used for creating this snap. Can you help in identifying issue?<br>
</blockquote>
<br></span>
You're setting up the service to run "run.sh" but the snapcraft.yaml is copying that to "bin/run.sh". So you need to change your snapcraft.yaml to execute the shell script correctly.
<br>
You also need to start your server with the python 3 interpreter which is "python3" not "python."<br>
<br>
Lastly you need to tell Snappy to open the port for your webserver, so you need this in your snapcraft.yaml (attached):<br>
<br>
 <tt>  ports:</tt><br>
<tt>     external:</tt><br>
<tt>       cherrypi:</tt><br>
<tt>         port: 3092/tcp</tt><br>
<tt>         negotiable: false</tt><br>
<br>
I've attached the snapcraft.yaml that I edited.<span class="HOEnZb"><font color="#888888"><br>
<br>
Ted
</font></span></div>

<br>--<br>
snappy-app-devel mailing list<br>
<a href="mailto:snappy-app-devel@lists.ubuntu.com">snappy-app-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snappy-app-devel" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/snappy-app-devel</a><br>
<br></blockquote></div><br></div>