Issues creating webapps snaps with stric confinement

James Jesudason james.jesudason at canonical.com
Wed Apr 19 08:42:55 UTC 2017


I'm not sure where the documentation for proxies is, but you need to
configure the proxy on the machine in either one or two places:

 - /etc/systemd/system/snapd.service.d/snap_layer_proxy.conf
 - /var/snap/<snap-name>/common/config

I haven't seen full confirmation of this anywhere, but I think that
the first setting is for snapd itself i.e. so it can use the proxy to
access the store (for refreshing snaps). The second seems to be the
proxy for the application.

You can see examples of these in a couple of charms:
 - https://github.com/stub42/layer-snap/blob/master/reactive/snap.py#L86
 - https://git.launchpad.net/canonical-livepatch-charm/tree/reactive/canonical_livepatch.py#n106

After the config changes, a daemon-reload and snapd.service restart is
required (you can see that in the charms).

On 18 April 2017 at 22:10, Vincent JOBARD <vinzjobard at gmail.com> wrote:
> Hi all,
>
> It seems that's a proxy issue since the webapps works well at home. Is
> there a way to use a webapp through a proxy by the way ?
>
> The one I use at work is very specific I have to use cntlm to go to
> Internet
>
> Thx for your the answers you gave me
>
> Cheers
> Winael
>
> On Tue, Apr 4, 2017 at 1:40 PM XiaoGuo Liu <xiaoguo.liu at canonical.com>
> wrote:
>
>> Hi Winael,
>>
>> Have you seen the tutorial at
>> https://tutorials.ubuntu.com/tutorial/snap-a-website#0?
>>
>> Best regards,
>> XiaoGuo
>>
>> On Fri, Mar 31, 2017 at 9:28 PM, Vincent JOBARD <vinzjobard at gmail.com>
>> wrote:
>>
>> > Hi Everyone
>> >
>> > I just try to follow the tutorial to learn how to create webapps snaps
>> > using snapcraft. (
>> > https://developer.ubuntu.com/en/phone/web/ubuntu-webapps-guide/, very
>> nice
>> > tutorial by the way)
>> >
>> > Unfortunately, when I try to create my snap with strict confinement, I
>> have
>> > a network Error page, but all works fine in devmode.
>> >
>> > I'm at work behind a proxy with cntlm authentification. could it be
>> related
>> > ?
>> >
>> > Thx for your answers guys
>> >
>> > Cheers
>> > Winael
>> > --
>> > Snapcraft mailing list
>> > Snapcraft at lists.snapcraft.io
>> > Modify settings or unsubscribe at: https://lists.ubuntu.com/
>> > mailman/listinfo/snapcraft
>> >
>>
>>
>>
>> --
>> XiaoGuo, Liu
>> --
>> Snapcraft mailing list
>> Snapcraft at lists.snapcraft.io
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/snapcraft
>>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft




More information about the Snapcraft mailing list