Re: Issues creating webapps snaps with stric confinement
On Tue, Apr 18, 2017 at 11:10 PM, Vincent JOBARD 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 ? webapp-launcher, being based on oxide, should be proxy-aware if the correct environment variables are set within the snap’s environment (HTTP_PROXY or ALL_PROXY). > 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 > 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 >> 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@lists.snapcraft.io >> > Modify settings or unsubscribe at: https://lists.ubuntu.com/ >> > mailman/listinfo/snapcraft >> > >> >> >> >> -- >> XiaoGuo, Liu >> -- >> Snapcraft mailing list >> Snapcraft@lists.snapcraft.io >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/snapcraft >> > -- > Snapcraft mailing list > Snapcraft@lists.snapcraft.io > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/snapcraft -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: Issues creating webapps snaps with stric confinement
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//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 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 > 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 >> 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@lists.snapcraft.io >> > Modify settings or unsubscribe at: https://lists.ubuntu.com/ >> > mailman/listinfo/snapcraft >> > >> >> >> >> -- >> XiaoGuo, Liu >> -- >> Snapcraft mailing list >> Snapcraft@lists.snapcraft.io >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/snapcraft >> > -- > Snapcraft mailing list > Snapcraft@lists.snapcraft.io > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/snapcraft -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: Issues creating webapps snaps with stric confinement
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 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 > 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@lists.snapcraft.io > > Modify settings or unsubscribe at: https://lists.ubuntu.com/ > > mailman/listinfo/snapcraft > > > > > > -- > XiaoGuo, Liu > -- > Snapcraft mailing list > Snapcraft@lists.snapcraft.io > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/snapcraft > -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: Issues creating webapps snaps with stric confinement
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 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@lists.snapcraft.io > Modify settings or unsubscribe at: https://lists.ubuntu.com/ > mailman/listinfo/snapcraft > -- XiaoGuo, Liu -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: Issues creating webapps snaps with stric confinement
On 31/03/2017 16:28, Vincent JOBARD 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 > ? Hard to say. Do you have some denials in the syslog when running the application? And if you run it from the console, is there any difference in the output compared to when running in devmode? Ciao, Alberto -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: Issues creating webapps snaps with stric confinement
Hi Vincent, What plugs did you use? This is a quick&dirty snap I assembled recently which I tested successfully on top of X11: https://github.com/lool/soracom-console-snap/blob/master/snapcraft.yaml Cheers, - Loïc On Fri, Mar 31, 2017 at 3:28 PM, Vincent JOBARD 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@lists.snapcraft.io > Modify settings or unsubscribe at: https://lists.ubuntu.com/ > mailman/listinfo/snapcraft > -- - Loïc -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Issues creating webapps snaps with stric confinement
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@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft