Comment 0 for bug 1671421

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote : app keeps asking installing ubuntu-app-platform and connecting platform interface

The problem is that my app keeps giving me the following error message:

$ ubuntu-webapp
You need to connect this snap to the ubuntu app platform snap.
You can do this with those commands:
snap install ubuntu-app-platform
snap connect ubuntu-webapp:platform ubuntu-app-platform:platform

Using "snapcraft interfaces" command, it shows that the platform interface is auto-connected after the app is installed and it does not need to have a manual connection. The ubuntu-app-platform package is also installed on the system

I have a sample project using the platform interface for launching a website. My sample app is at:

https://github.com/ubuntu/snap-tutorials-code/tree/master/webapp-ubuntu/final

To produce the problem:

1) change the confinement from strict to devmode
2) build the application and run it
3) change the confinement from devmode to strict
4) build the application and run it

You will be able to see the problem. The only solution is to use the following command:

sudo /usr/lib/snapd/snap-discard-ns ubuntu-webapp

to clear the namespace to get it working again.

Thanks & best regards,
XiaoGuo