/srv/irclogs.ubuntu.com/2016/12/02/#snappy.txt

mikenbitpushr: Hi there. I was just investigating a question you had earlier about ssh access.00:25
mikenbitpushr: afaict, once the first-boot script completes successfully, it's not possible to re-trigger the ssh import.00:25
mikenbitpushr: Re-flashing so you can re-run the first-boot process is the only option I'm aware of, sorry :/ ( mwhudson may know more, but he's on leave atm).00:26
mupBug #1572038 opened: snap find doesn't find partial names <Snappy:New> <https://launchpad.net/bugs/1572038>00:39
mupBug #1606539 opened: handler errors from `snap create-user` gracefully <Snappy:New> <https://launchpad.net/bugs/1606539>00:39
mupBug #1572038 changed: snap find doesn't find partial names <Snappy:Fix Released> <https://launchpad.net/bugs/1572038>00:42
mupBug #1593989 opened: snap installed .desktops collide with .deb installed .desktops in unity7 <Snappy:New> <https://launchpad.net/bugs/1593989>00:42
lutostaghey all, ran into an issue installing lxd on core-16. I can't create the lxd group that it needs00:48
lutostagany way to do that?00:48
mupPR snapcraft#941 opened: Support symlinks within deb sources <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/941>00:51
mupPR snapcraft#930 closed: parser: support remote dependencies <Created by 3v1n0> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/930>01:51
mupPR snapcraft#932 closed: cli: implement `enable-ci travis --refresh` command <Created by cprov> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/932>02:06
mupPR snapcraft#939 closed: Replace coveralls with codecov <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/939>02:15
mupPR snapcraft#942 opened: store: return specific error when already owned <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/942>03:03
mupPR snapd#2397 opened: interfaces: add iio <Created by lpotter> <https://github.com/snapcore/snapd/pull/2397>03:54
foxmaskbonjello07:05
dholbachhey hey07:37
seb128hey dholbach!07:39
dholbachhey seb12807:39
seb128dholbach, happy friday!07:39
dholbachand the same to you :)07:40
didrockshappy Friday dholbach :)07:40
dholbachhey guys :)07:40
zygatvoss: hey08:03
zygatvoss: just finishing something on the arg parsing side and then going back to feedback from reviews08:03
tvosszyga: good morning :) sounds good to me08:03
jibelfgimenez, morning, did you look into the autopkgtest failure of snapd on zesty/ppc64el? http://people.canonical.com/~ubuntu-archive/proposed-migration/update_excuses.html#snapd08:08
fgimenezhi jibel, nope, i think that mvo has been tackling it08:10
jibelfgimenez, and is he looking into the failures in xenial too?08:12
jibelfgimenez, we'd need 2.18 in proposed if there is a release of 2.19 next week08:13
fgimenezjibel, not sure but i think so, he can confirm08:13
mupPR snapcraft#943 opened: Replace subTests with TestScenarios <Created by elopio> <https://github.com/snapcore/snapcraft/pull/943>08:39
gerry_hello, My app is in gnome software but today I log on there and there are two versions of my app on there is it something I have done wrong?09:33
zygagerry_: can you look at /var/lib/snapd/desktop/applications/09:34
zygagerry_: are there multiple desktop files for your app there?09:34
gerry_zyga: no just one but it has the icon of the one that appeared in gnome-software today09:37
zygagerry_: I suspect that what you see then is a glitch in the gnome-software then09:38
zygagerry_: can you report that and attach some screenshots perhaps09:38
zygagerry_: maybe you see your app in the store and your app locally installed09:38
zygagerry_: and those are separate for some reason (no idea really, not my area of expertise)09:38
zygamorphis__: hey09:39
zygamorphis__: how's projects?09:39
* zyga fixed some tests and runs spread to verify09:39
zygagerry_: for gnome-software you want to find robert ancel AFAIK09:40
morphis__zyga: hey!09:42
morphis__zyga: you mean any specific ones :-)09:42
gerry_zyga: ok thank you very much for your help09:42
zygamorphis__: in general, are things going OK?09:43
zygagerry_: his IRC nickname is robert_ancell09:43
zyga(double l, sorry for getting that wrong earlier)09:44
zygagerry_: you may have better luck finding him earlier though as he is from new zeland09:44
morphis__zyga: yeah, so far everything is fine :-)09:45
morphis__zyga: you got the problem with the content itnerface fixed already?09:45
zygamorphis__: do you mean the multiple entries or something else?09:46
zygamorphis__: the content interface is not broken AFAIK but needs new features to support some interesting use cases09:46
zygamorphis__: that bug you spoke about at a call a while ago is fixed09:47
zygamorphis__: (and the other one as well, I updated LP bugs)09:47
gerry_zyga: just one thing the one that has appeared today has "*3rd party" on it where as the my entry does not have that?09:47
morphis__zyga: ah good, yeah especially the use case to share a local socket was of interest for us09:48
morphis__zyga: which snapd/snap-confine do we need to get that working?09:48
zygagerry_: that's a gnome-software tag, I would recommend that you file bugs on snappy / gnome-software for each of those that feels wrong to you; some are missing features, some are OK but need to be explained (bugs can be converted to questions that can show up in a FAQ on launchpad)09:48
zygamorphis__: that should work, I didn't try it myself but the code looks fine09:49
zygamorphis__: I think .4409:49
zygamorphis__: maybe earlier but I'd have to check tags09:49
morphis__zyga: ok, so nothing which is in stable yet, right?09:50
zygamorphis__: actually09:50
zygamorphis__: it's a snapd fix and it might be out now09:51
* zyga looks09:51
zygabecause that side was in snapd09:51
zygamorphis__: can you just try, use $SNAP_DATA as described there: https://github.com/snapcore/snapd/wiki/Content-Interface09:53
morphis__zyga: ah ok, let me try that then09:53
zygamorphis__: and feel free to edit that wiki09:57
zygamorphis__: really, it is very useful if you do09:58
morphis__zyga: oh I see, I can do that09:58
morphis__zyga: can everyone?09:58
zygamorphis__: yes10:00
zyga:)10:00
zygait's a wiki!10:00
morphis__good :-)10:00
zygamorphis__: I should link it to the interfaces page10:00
zygamorphis__: I'll do that shortly10:00
morphis__ok10:00
morphis__zyga: btw. you saw my replies on https://bugs.launchpad.net/snappy/+bug/1646415 ?10:00
mupBug #1646415: cannot run configure hook <Snappy:Invalid> <https://launchpad.net/bugs/1646415>10:00
* zyga looks10:02
zygano, not yet10:02
zygahmm, odd10:02
zygaI looked at the code and we parse hooks in meta/snap.yaml10:02
zygaI bet you really need that hook to be defined there10:02
zygamaybe something is out of sync10:02
zygaI'll check with gustavo10:03
zygaor maybe10:03
zygapstolowski: ^^ do you know?]10:03
zygathe person who is on the hook about hooks :)10:03
pstolowski:)10:04
pstolowskilooking10:04
seb128hum10:07
seb128are launchpad snap builds on yakkety know to be buggy?10:07
seb128"W:GPG error: http://ppa.launchpad.net/snappy-dev/tools/ubuntu yakkety InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F1831DDAFC42E99D, E:The repository 'http://ppa.launchpad.net/snappy-dev/tools/ubuntu yakkety InRelease' is not signed."10:07
seb128cjwatson, ^  you might know?10:08
ogra_seb128, at the start of the build ? thats normal iirc10:08
ogra_(the build finishes properly, right ? )10:09
seb128ogra_, no, the build errors out on that after trying to install the build-packages10:09
seb128https://launchpadlibrarian.net/295822697/buildlog_snap_ubuntu_yakkety_amd64_ghex-udt_BUILDING.txt.gz10:09
seb128ogra_, ^10:09
ogra_well, if you look at the top of the log you see the exact same which passes10:11
seb128that same branch was building fine on xenial10:11
pstolowskimorphis, zyga the hook-example looks good. having meta/hooks/configure is enough. we have similar spread tests10:11
seb128I just tried to change to yakkety and now got that10:11
seb128ogra_, do you know if I'm doing something wrong there and what?10:12
ogra_i guess because not all packages are in the PPA for yakkety10:12
seb128but I'm not building using a ppa10:12
seb128I selected to build from the archive10:12
seb128so I guess it's a launchpad setup issue?10:12
ogra_yeah, i wonder what it tries to pull from there10:14
pstolowskimorphis, zyga I can look at this later today10:24
zygapstolowski: thank you, if you are right then snap.Info may lie sometimes :/10:26
pstolowskizyga, i think we would see these spread tests fail. so not sure what's wrong10:27
zygapstolowski: spread test may not fail even if what I said is true10:36
pstolowskizyga, hmm why not?10:38
mupPR snapcraft#942 closed: store: return specific error when already owned <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/942>10:39
zygapstolowski: if the hook manager is not using hook info from snap info, for example10:40
Trevinhoralsina: hey, when do you think this commit https://github.com/snapcore/snapcraft/commit/6c012194bde will hit the snapcraft server (or, can it backported now ;-))?10:43
ralsinaTrevinho: I don't work on snapcraft :-)10:44
ralsinaTrevinho: so, I hope soon, if you need it!10:44
Trevinhoralsina: yeah, but.... Didn't you manage that server or what (IIRC some days ago you got pinged to restart the job)?10:45
Trevinhoand I don't know how the server-side is managed (if it's just using zeisty or a snapcraft ppa)10:45
* zyga hugs dholbach 10:58
ralsinaTrevinho: not really11:05
Trevinhooh, ok... so sorry.11:06
ralsinaTrevinho: but I can ping the right people. What's the change server side? That link points to snapcraft code11:06
Trevinhoralsina: that commit should be included11:06
ralsinaTrevinho: you showed a link to a PR in snapcraft, that's client-side code, not server-side11:07
Trevinhoralsina: no, it's not...11:07
Trevinhoralsina: it's all shared code11:07
ralsinaTrevinho: the store is lp:software-center-agent, it's a whole different project11:08
* ralsina -> school run bbl11:09
Trevinhoralsina: oh, wait... I meant a different thing then... this: https://parts.snapcraft.io/v1/parts.yaml11:10
Trevinho(the generator of that)11:10
cjwatsonseb128: https://bugs.launchpad.net/launchpad/+bug/162673911:19
mupBug #1626739: Snapcraft build failing in Yakkety for unauthenticated stage-packages <launchpad> <snap> <Launchpad itself:New> <https://launchpad.net/bugs/1626739>11:19
* dholbach hugs zyga back11:21
zygadholbach: visit spain sometimes, great places to see, great food, great weather, sun and no snow :)11:24
dholbach:-)11:25
mupPR snapcraft#938 closed: store: return specific error when already owned <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/938>11:27
ralsinaTrevinho: ahhhhh parts, no idea about that, never touched it11:29
Trevinhoralsina: sorry for bothering you then... :-)11:30
ralsinaTrevinho: np11:30
sergiusensTrevinho that was roadmr11:37
Trevinhosergiusens: yeah, I figured just two seconds after... :-D11:39
ralsinahahaha11:39
TrevinhoI remembered the nickanme started with "r"... :-P11:40
Trevinhoand since I know ralsina does serverside stuff.... :-P11:40
* Trevinho is terrible with names... Sorry :-)11:40
ralsinaTrevinho: it happens :-)11:41
zygamv roadmr r-server-side-stuff11:41
zygamv ralsina r-server-side-stuff11:41
zygaaww, clash11:41
Trevinholol11:41
Trevinhono, we're in a snappy world... That can't happen!11:41
ralsinaHell, I do touch some server-side-stuff so I just assumed I had forgotten about it11:41
zygamaybe you want a round-robin queue?11:41
nottrobinI get pinged every time someone mentions round-robin11:42
nottrobinI didn't even know what it was to start with11:42
nottrobin:D11:42
nottrobinas you were11:42
Elleosnapcraft's failing for me with an error about held broken packages when it tries to fetch the stage packages; is there any way to get it be more verbose and tell me which packages are causing the issue? running with -d didn't help12:50
zygaElleo: while this is totally different from what you may expect try opening a second terminal and run forkstat there12:50
zygathe output should tell you what apt is doing and may give you a hint of what is going wrong12:51
seb128cjwatson, thanks, am I reading correctly that there is no workaround suggestion atm?12:51
Elleozyga: okay, thanks12:51
cjwatsonseb128: I don't think I have anything at the moment, unfortunately, short of not using stage-packages12:54
cjwatson(which is not really a workaround!)12:55
seb128cjwatson, right, I was going to say that I kind of need those...12:55
mupPR snapd#2398 opened: cmd/snap: change terms accept URL following UX review <Created by pete-woods> <https://github.com/snapcore/snapd/pull/2398>12:55
seb128well, back on using xenial for now I guess, I might try to backport things to a ppa on top to workaround12:55
cjwatsonI forget quite why it only affected yakkety12:56
cjwatsonor post-xenial I guess12:56
Elleozyga: nothing obvious there, it does a bunch of stuff with apt-key presumably checking signatures when updating, starts a few apt/method/http threads and then stops12:56
zygawell, it was a long shot12:57
Elleozyga: I don't get any errors installing other packages on the host system normally, but it looks like oxide is being held for some reason12:57
=== hikiko is now known as hikiko|ln
cjwatsonseb128: it's definitely fixable, just a bit complicated because we need to bite the bullet and finally start sending public key material to builders; chances of me getting to it this year are low :-/12:58
seb128cjwatson, don't worry, it would be nice if it worked but it's not really blocking anything that needs to land from our side, we just wanted to try to provide gtk apps based on the yakkety gtk version to xenial users, but we can backport the new gtk to xenial in a ppa for that12:59
ogra_cjwatson, why is that PPA enabled at all ? there is nothing relevant in it13:01
ogra_(neither for xenial nor for yakkety)13:01
ogra_imho we could just completely drop it and be done13:02
cjwatsonogra_: until the next time we need it13:05
ogra_hmm13:05
cjwatsonit was definitely needed pre-xenial13:05
ogra_seems the last time was in 201513:05
ogra_(looking at the packages in there)13:06
cjwatsonand it's very useful to have that kind of facility available13:06
ogra_true indeed13:06
cjwatsonright, it was absolutely necessary pre-xenial because the archive didn't have snapcraft13:06
cjwatsonin the future y'all might well decide that you want a newer version of snapcraft used by LP regardless of what's in the distribution13:06
cjwatsonthis is how we do that kind of thing13:06
ogra_yeah, understood13:07
mupPR snapd#2399 opened: Add /dev/uhid to bluetooth-control interface <Created by bergotorino> <https://github.com/snapcore/snapd/pull/2399>13:19
zygamorphis__: hey, remember that configure bug, can you tell me whicih version of snap-exec you have in you core13:28
zygawhich*13:28
zygamorphis__: is that in a core or classic system?13:28
zygamorphis__: gustavo just made me realise that without sufficiently up-to-date core snap and snap-exec you won't get it to work13:29
renato__jdstrand, could you approve camera-app package? https://myapps.developer.ubuntu.com/dev/click-apps/5990 vr 7 and 813:33
mupPR snapcraft#926 closed: sources: add current dir to ignore list if we're iterating on parent <Created by 3v1n0> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/926>13:36
zygajdstrand: hey13:38
zygajdstrand: we will deny --jailmode or --devmode when --classic is passed13:38
zygajdstrand: I'll make the patch after lunch13:38
zygajdstrand: classic confinement seems to work for me locally :)13:38
zygajdstrand: I could use a few reviews, I think it can all land toda13:39
=== DanielLlewellyn[ is now known as diddledan__
=== hikiko|ln is now known as hikiko
morphis__zyga: I am using 2.18 here from the core snap from candidate14:01
morphis__its a classic system with SNAP_REEXEC14:01
zygamorphis__: in a core system or on classic?14:01
morphis__zyga: however lorn was trying it with 2.17.1 from the ubuntu image ppa on classic14:01
zygamorphis__: ah, snap-exec doesn't use reexec14:01
zygathat's one of the things we'll fix later14:02
morphis__zyga: but for me with SNAP_REEXEC and 2.18 the configure hook is working well14:02
morphis__zyga: just for lorn it is 2.17.1 from the ppa without SNAP_REXEC and there it isn't working14:03
jdstrandroadmr: hi! fyi, r807 supports classic. I've got another unrelated bug I'd like to fix, but feel free to pull 807 if that works for you timing-wise14:12
zygajdstrand: we have a streak of holidays and release next week, could you have a look at one essential part of snap-confine that's there for classic quickly14:13
jdstrandtedg, renato__: fyi, that ^ also has the unity8 workaround you asked for14:13
tedgjdstrand: Great!14:14
zygajdstrand: essentially this: https://github.com/snapcore/snap-confine/commit/43f5041deb8ed061f8a38f4342a5c3065b8ec3cf14:14
jdstrandzyga: are those what you asked for earlier today?14:14
tedgIs anyone else able to build snaps on LP?14:14
tedgSeems I'm getting parts update errors.14:14
zygajdstrand: it's piled up there, I didn't open PRs since github makes those uber long when stacking branches14:14
renato__tedg, I built camera some minutes ago14:14
zygajdstrand: but this is the essence, regardless of argument parsing changes (if we do the cheap way or if we do the full way)14:14
renato__tedg, try again. I got that in one of the builds but worked nice on the second try14:15
jdstrandzyga: can you give me a prioritized list of what must be reviewed today?14:15
renato__jdstrand, thanks. I am happy to not disturb you with reviews :D14:15
zygajdstrand: this is the essential patch, everything else is optional14:15
jdstrandok14:15
renato__jdstrand, btw. My eds/unity8-pim is ready for review :D14:16
zygajdstrand: if you +1 I'll land it without the intermediate argument parsing and error improvements14:16
jdstrandrenato__: ack (I have it on my list already, might be today but maybe early next week)14:16
renato__jdstrand, thanks,14:16
jdstrandrenato__: approved14:16
jdstrandzyga: fyi, the commit message is not quite right. I think you mean "to essentially switch the sandbox off entirely"14:19
zygajdstrand: yes, good catch14:20
zygajdstrand: I'll correct that before it lands14:20
roadmrjdstrand: oh awesome! sure, I'll put that in the pipeline (but not smoke it) (pretty sure I've used this joke before)14:23
jdstrandroadmr: hehe14:25
jdstrandzyga: this is totally unimportant and unrelated to this PR, but in snap-confine.c you have14:26
jdstrand#ifdef HAVE_SECCOMP14:26
jdstrand  sc_load_seccomp_context(seccomp_ctx);14:26
jdstrand#endif14:26
jdstrandzyga: but for apparmor you have:14:26
jdstrand  sc_maybe_aa_change_onexec(&apparmor, security_tag);14:26
jdstrandzyga: and the ifdef for HAVE_APPARMOR is in sc_maybe_aa_change_onexec()14:27
jdstrandzyga: why not just:14:27
jdstrandzyga: why not just in snap-confine.c:14:27
jdstrand#ifdef HAVE_APPARMOR14:27
jdstrand  sc_aa_change_onexec(...)14:27
jdstrand#endif14:27
jdstrand?14:27
jdstrandzyga: basically, the 'maybe' caught me eye while doing the review :)14:28
jdstrandmy*14:28
mupPR snapd#2400 opened: snap: support for parsing and exposing on snap.Info aliases <Critical> <Created by pedronis> <https://github.com/snapcore/snapd/pull/2400>14:30
mupPR snapcraft#943 closed: Replace subTests with TestScenarios <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/943>14:33
zygajdstrand: because that gets rid of the extra ifdef14:37
zygajdstrand: and maybe apparmor is not enabled on boot14:38
jdstrandzyga: I'm not saying get rid of the ifdef. I'm asking why it isn't in hte same place as the seccomp one14:38
jdstrandzyga: or, why not put the seccomp one in sc_maybe_load_seccomp_context(...)14:39
jdstrand?14:39
zygajdstrand: because seccomp leaks the types around, I may return to it and to the same though14:40
zygajdstrand: I wasn't touching seccomp lately :)14:40
zygajdstrand: I plan to unify the code when we have more review time14:40
jdstrandzyga: it isn't important. I just thought it odd that the ifdef was in one place for seccomp and in another for apparmor14:40
* zyga -> quick break for lunch 14:40
* zyga nods14:40
jdstrandzyga: what is important is I reviewed the patch you asked me to :)14:40
jdstrandzyga: just a request for a comment. also thanks for the --devmode/--jailmode update :)14:41
mupPR snapd#2401 opened: snap: abort install with ctrl+c <Created by stolowski> <https://github.com/snapcore/snapd/pull/2401>14:48
tedgcjwatson: sergiusens: Seeing some build errors that looks like snapcraft can't update its parts. Happening on other snaps too, but here's an example: https://code.launchpad.net/~ted/+snap/unity8-session-xmir-preload14:49
tedgI can update parts locally, so I don't think that's an issue.14:50
tedgNot sure what else to try to debug it.14:50
cjwatsonHm, I wonder why that would have changed.14:54
cjwatsonActually, I'm not sure that has anything to do with parts.14:55
cjwatsontedg: The actual error is from apt.  I think it's just that a parts update happened to be right before it.14:55
cjwatsonMy guess would be that the set of packages pulled by the unity8 part is in fact not coinstallable when pulled from that PPA.14:56
cjwatsonIt's a little hard to tell, but hopefully cleanbuild would reproduce the same thing if you gave it an appropriate set of apt sources.14:57
tedgOh, I figured it was a generic error message left over from converting things over to snap building :-)14:57
tedgHmm, okay. I'm not sure what could have happened there, but a lot of people pushing into that PPA.14:58
tedgThanks cjwatson !14:58
zygajdstrand: thank you, checking now14:58
zygajdstrand: wooooot14:58
zygajdstrand: thanks :)14:58
bartbesquick question, are the XDG_* environment variables already set based upon SNAP_USER_DATA, or do I have to make sure I do that myself?14:58
ogra_easy answer: .... it depends14:59
ogra_:)14:59
bartbesI'll just set it myself, then :P14:59
ogra_there are desktop launcher parts you can use ...14:59
ogra_if you use them, they set these vars14:59
ogra_if you dont, you need to set them yourself ...15:00
ogra_you can check whats set by installing hello-world15:00
ogra_and then running hello-world.env15:00
ogra_it will print the default environment the hello-world binary sees15:00
ogra_your snap would see something similar15:01
bartbesright15:01
zygabartbes: you don't have to do anything, we set $HOME and software correctly derives the rest15:04
bartbeswell, if XDG_DATA_HOME is unset, yes15:04
ogra_zyga, well, we dont explicitly set XDG_ vars, do we ?15:05
jdstrandzyga: fyi, all the 'pc' gadget uploads you did are approved and just need you to press the publish button15:05
ogra_only the desktop launchers do15:05
jdstrandzyga: I also fixed the issue in the review tools that made it get hung up (requested a store pull, but that probably won't happen til next week)15:05
bartbesogra_: the spec says it's derived from HOME if it isn't set15:06
ogra_well, all i know is that the launchers set it based on $HOME, i wasnt aware it is set by something else now15:07
ogra_(if it actually is)15:07
jdstrandbartbes: that's right. as such you don't need to set them. HOME is set to ~/snap/$SNAP_NAME/$REVISION and so your snap will use ~/snap/$SNAP_NAME/$REVISION/.config, ~/snap/$SNAP_NAME/$REVISION/.cache, etc15:07
bartbesogra_: no, applications need to default to $HOME/.local/share themselves if $XDG_DATA_HOME isn't set15:08
ogra_jdstrand, how  if the XDG_ vards arent filled at all and the app looks for them15:08
jdstrandwe will start setting XDG_RUNTIME_DIR in snapd15:08
ogra_ah15:08
jdstrandogra_: because the toolkits follow the spec15:08
bartbesjdstrand: you know, if they weren't set to begin with, anyway, I want it to be $SNAP_DATA_COMMON, since the information isn't version-specific15:08
bartbesso it doesn't matter, I need to write a wrapper anyway15:09
jdstrandbartbes: well, perhaps, but we wouldn't want to diverge from the spec I don't think (that was a conscious decision). we could arguably set HOME to SNAP_USER_COMMON, but that feels a little weird. you are always free to set XDG_... to SNAP_USER_COMMON if that is appropriate for your snap15:11
bartbesthat's perfectly sensible15:11
bartbesI'm doing something weird anyway15:12
zygaogra_: we don't but software should not set it either as libraries typically do that15:20
zygajdstrand: the store issue that affected the pc gadget snap?15:20
ogra_aha15:21
ogra_(and i thought desktop envs usually set it on startup :) )15:21
attenteelopio: hey, could you take a look at why the clone is failing on this integration test on github c-i? https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-zesty-snappy-dev-snapcraft-daily/zesty/amd64/s/snapcraft/20161201_214708_59c43@/log.gz15:22
barryhi all.  is there documentation on snap recipes in launchpad?  i'm having a hard time finding it on help.launchpad.net or snapcraft.io15:22
zygajdstrand: this is something I mentioned before a few times; the CE team would love if this landed for their devmode testing snaps. Can you eyeball it quickly (the function has like five syscalls inside) and give me some feedback. I didn't tweak the apparmor profile yet. https://github.com/snapcore/snap-confine/commit/b36fe6c334ca70166a7def06ba4418a764af492e15:26
zygacwayne: ^^15:27
cwaynezyga: <315:27
cwaynezyga: jdstrand: this is actually pretty critical to testing our projects15:28
zygacwayne: sorry for starving it for so long15:28
cwaynezyga: no worries, totally understand how swamped you guys are :)15:29
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
jdstrandzyga: I don't know what store issue you are referring to. I saw that the pc gadget snap was stuck in manual review. I approved it and fixed the review tools trunk so that won't happen again, but that hasn't landed in the store just yet15:32
zygajdstrand: yes, that's what I was thinking about with the pc gadget snap15:33
zygajdstrand: thank you for fixing that!15:33
zygajdstrand: (those are auto built now as you probably know :)15:33
zygajdstrand: the store issue was that the gadget snap required to have i386 elf binaries for i386 and I believe this is what you fixed15:38
mupPR snapd#2402 opened: debian: disable autopkgtests on ppc64el <Created by mvo5> <https://github.com/snapcore/snapd/pull/2402>15:38
barrythe question i am trying to find documentation on is whether we can target zesty as the primary archive for automatic launchpad builds.  i am building ubuntu-image, but i remember reading somewhere (that i can't find now) that only xenial is supported, but that won't work for us because we need e2fsprogs from >=yakkety15:40
renato__sergiusens, would be nice if the "apps" section of the snapcraft file we could set environment variables to each app. Something like environment:"OXIDE_NO_SANDBOX=1;MY_APP_VAR=True"15:41
renato__this will avoid create a wrapper file just to export vars15:41
zygarenato__: I believe you already can15:42
zygarenato__: we spent lots of time connecting the docs to make that owrk15:42
zygarenato__: may be disabled but we technically can now15:42
zygaI don't remember, sorry15:42
renato__zyga, \o/ this is great, just need to figure out which syntax I should try15:44
zygarenato__: disclaimer, it may not be enabled at some layer yet but we definitely planned this for a long time so ask sergiusens15:47
renato__zyga, thanks15:48
zygajdstrand: hmmm, snap confine oopses the kernel15:48
zygajdstrand: I guess we're pushing the boundaries15:48
zygajdstrand: https://pastebin.canonical.com/172640/15:48
zygajjohansen: ^15:49
tyhickszyga: that's a bad strlen call so just a plain ol' bug (not pushing any limits)15:51
tyhickszyga: can you file a bug with reproducer instructions?15:51
zygatyhicks: against the kernel package?15:52
tyhickszyga: yes, the linux source package15:52
zygaay, will do15:52
pmcgowanshould there be a direct mapping between implicitClassicSlots and what is marked transitional on the interfaces page? as there is not and I cannot grok the criteria15:53
* zyga doesn't kow15:54
zygaknow*15:54
jdstrandtyhicks: hey, is that something that is known? ^15:55
tyhicksjdstrand: I've not seen it before - does it look familiar to you?15:55
jdstrandno15:55
pmcgowanjamiebennett, any idea on my interfaces query above15:59
mupBug #1646881 opened: Enable pre-caching of snaps in a classic chroot <cpc> <Snappy:New> <https://launchpad.net/bugs/1646881>16:00
zygajdstrand: how can I discard any profile I may currently have?16:00
pmcgowanperhaps its that the interfaces will be provided by other snaps in all snaps world so its not transitional16:00
zygajdstrand: I think that oops above is related to the fact that snap-confine is invoked from snap-confine16:00
zygaDec 02 16:51:13 xenial-server audit[78188]: AVC apparmor="ALLOWED" operation="capable" profile="snap.snapd-hacker-toolbelt.busybox//null-/usr/bin/snap//null-/usr/lib/snapd/snap-confine//null-mount-namespace-capture-helper" pid=78188 comm="snap-confine" capability=19  capname="sys_ptrace"16:00
zygathis shows up just before the oops16:01
zygathe "null"s there seem wrong16:01
gerry_hi all, I uploaded a screenshot to " my apps" but it does not appear in gnome software ?16:01
zygagerry_: I believe there's a bug about that already16:02
bartbesI installed a snap in devmode, but it still can't connect to either my x session or to opengl, do I need to do anything special, except list the plugs?16:02
zygabartbes: no, you should be fine, what is the error you are seeing and how are you launching your app?16:03
gerry_zyga: oh ok sorry to bother you all16:03
bartbesit's an error by the application itself, from sdl: "No available video device"16:04
zygagerry_: no worries16:04
bartbesand it happens both when using snap run, or launching it using the /snap/bin file16:04
bartbesthough it doesn't without any sandboxing, because if I run it directly it does work16:05
bartbesit doesn't need to contain a libGL does it?16:05
zygabartbes: are you using nvidia propietary drivers?16:06
bartbescan I attach a debugger, or get a shell, maybe?16:06
bartbesyes16:06
zygabartbes: interesting16:06
zygabartbes: can  you look at: snap run --shell snap.app (replace with the right stuff)16:06
bartbeson arch, I should probably mention16:06
zygabartbes: and look at /var/lib/snapd/lib/gl16:06
zygabartbes: do you see libGL there?16:06
zygaah16:06
zygaon arch... hmm hmm16:06
zygaI think that's a known issue for arch and certain version of the driver16:07
zygacan you look at that directory16:07
zygaand report which driver version you have16:07
bartbesyeah, it's empty16:07
zygain any case, report a bug on snap-confine on launchpad16:07
bartbesand the shell is kind of hard to use if I don't even have ls :P16:07
bartbesit's version 375.20-316:08
zygabartbes: exit that shell and look at /sys/module/nvidia/version16:08
zygabartbes: is it there? what does it contain?16:08
bartbesthat contains 375.20, unsurprisingly16:08
zygabartbes: when it runs outside of a snap, where is libGL.so16:09
zygabartbes: unfortunately distros differ on how they package nvidia drivers and there's some code that has to be maintained for each distro16:09
zygabartbes: the arch code is different from ubuntu entirely16:10
zygabartbes: perhaps something changed since and it needs updating16:10
zygabartbes: if oyu want to hack I can help you get started, maybe it's better now and something has been unified16:10
zygabartbes: maybe it's just a path that needs updating16:10
zygabartbes: nvidia support code is not under CI16:10
bartbes/usr/lib/libGL.so is a symlink to /usr/lib/libGL.so.1 is a symlink to /usr/lib/nvidia/libGL.so.1 is a symlink to libGL.so.1.0.016:10
zygabartbes: (on any distro)16:10
zygaah16:11
zygainteresting16:11
zygathat's different and indeed that would explain why it fails16:11
zygacan you grab snap-confine source16:11
zygaand patch one line16:11
bartbessure16:11
zygago to mount-support-nvidia.c16:11
zygaand jump to line 4916:11
zygaoh,16:11
zygaand mabe as a second idea, compile snap-confine with --enable-nvidia-ubuntu16:12
zygajust as a quick test16:12
zygaas for recompiling with the same options as in current arch packaging please look at adding some globs there on line 4916:12
zyga:/16:12
zygaI'm sorry for this, my nvidia box is not usable lately and I don't test this actively on arch as a side effect16:13
ZenHarbingerQuick question: I know that work is/was done for xdg-open on yakkety. I've installed the snapd-xdg-open deb, but how do I call xdg-open from my snap? I get that it is not found (in the PATH).16:13
bartbesdoesn't it follow the symlink?16:13
zygaZenHarbinger: you should just call xdg-open, I believe the shim xdg-open is in the core snap16:13
bartbesor does it copy the symlink but not its target?16:14
zygaah, it seems not to be the case16:14
sborovkovwhat's going on with ubuntu store? anyone knows? last few days it's super unresponsive. I constanly get 504 timouts when trying to publish new revision16:14
zygabartbes: can you report a bug on snapd for this please16:14
* zyga needs a break or a beer16:16
zygalong day16:16
bartbesoh, so it isn't snap-confine?16:16
jdstrandzyga: discard a profile you already have? you don't want to do that16:18
jdstrandzyga: I'm going to refer you to tyhicks on why the nulls are in that ALLOWED log entry. iirc, there were some bugs jj was looking at in this area, but I'm not up on the issue16:19
tyhickszyga: and I'm going to refer you to jjohansen - I'm not sure why they'd be there16:20
tyhicksjjohansen: if you are too swamped to triage it today, let me know and I can dig through the code16:21
tyhickszyga: I think the most important thing we need from you is a reproducer16:21
bartbeszyga: so what should I mention in my report, that I'm running arch with nvidia and /var/lib/snapd/lib/gl/ is empty?16:23
zygatyhicks: this is not urgent for today16:27
zygatyhicks: we can have a call to discuss this next week, perhaps faster than irc16:27
zygabartbes: yes, and the driver version and the location of the GL files in the tree16:27
zygabartbes: sorry I meant to reply to ZenHarbinger earlier16:28
bartbesalright16:28
zygaZenHarbinger: can you report a bug on missing xdg-open in the core snap please16:28
zygatyhicks: the reproducer will take some time to create, I don't quite know what I did to make this happen (yet)16:28
zygaI see two different versions of s-c being invoked (one from my tree, one from the core snap)16:29
tyhickszyga: ok, the stacktrace might be sufficient since I suspect that it is most likely strlen() being called on a bad address or an unterminated string16:30
tyhickszyga: in other words, don't spend personal time working on it16:31
zygaok :)16:31
zygatyhicks: looking there everything seems to be testing for non-NULL values but maybe it's just garbage, not null16:34
bartbeszyga: oh, I just noticed /usr/lib/nvidia/libGL* is in libglvnd, which the snap-confine source claims is unsupported, so this is a known issue?16:34
zygabartbes: yes :-(16:34
zygabartbes: I failed to find a way to support that16:34
zygabartbes: if you can spend some cycles on this then this would be really appreciated16:34
bartbeswhy doesn't it work?16:35
bartbesisn't the libGL.so.1 that's pointed to just a valid libGL?16:35
zygabartbes: the lib-gl-vendor library is a shim that does dlopen on the real library based on some condition16:36
zygabartbes: you'd have to see what it does internally and what it takes to make the sandbox work with this16:36
zygabartbes: the glvendor thing feels like a good idea but just is more complicated to support16:38
bartbesI hadn't heard of it before today16:38
bartbesso I don't know how it got installed :P16:38
zygawelcome to linux plumbing :)16:38
zygabartbes: it's a part of the nvidia driver stack now16:38
zygabartbes: and thank you for using snappy ::)16:41
bartbescan't you just.. copy the entire thing?16:42
zygabartbes: you can do a few things but you have to make libglvndr find what it expects in the right spot16:42
zygabartbes: TBH nvidia support is one of the more hairy part of snap-confine16:42
zygatyhicks: yeah, looks like it explodes because of strlen16:44
zygatyhicks: but that implies the non-null pointer is garbage somehow16:44
* zyga is tempted to build a kernel with an extra printk16:44
zygait's friday and I could have my first kernel patch;16:45
bartbesit looks like it just dlopens libGLX_<vendor>.so16:45
zygabartbes: the key question is -- where from16:45
zygabartbes: look at what the symlinks do16:45
zygabartbes: maybe what we need is to symlink the right /usr/lib/nvidia content, not sure16:46
bartbesfrom the standard path, I managed to get it to load from somewhere else using LD_LIBRARY_PATH16:46
zygabartbes: remember that snaps don't run in the typical environment16:46
zygabartbes: snap-confine does lots of magic16:46
bartbesoh, the "normal" one is in /usr/lib/libGLX_nvidia.so.016:46
zygabartbes: one of thoe is pivot_root16:46
zygathose*16:46
zygaand / is different (it is the core snap or the ubuntu-core snap)16:46
bartbeswell, technically what it points to, which is the versioned one, but it loads the .0 using dlopen16:47
zygaand your old / is in /var/lib/snapd/hostfs16:47
zygaso the nvidia support code for arch puts a tmpfs in /var/lib/snapd/lib/gl16:47
zygaand drops a bag of symlinks from there to /var/lib/snapd/hosfs/usr/lib/nvidia*16:47
zygathe globs control those16:47
zygadoes that make sense?16:47
zygaat runtime snapcraft-made wrapper file adds SNAP_LIBRARY_PATH to LD_LIBRARY_PATH16:48
zygaand SNAP_LIBRARY_PATH contains /var/lib/snapd/lib/gl16:48
zyga(and that's end of the magic)16:48
bartbesI see16:50
bartbesI've been poking about some more and I'm even more confused now16:51
zygabartbes: I'll gladly help if you have a question16:51
bartbesso it turns out "both" "vendors" point to the same libGLX in the end16:51
* bartbes sighs16:52
bartbesthat said, it does look like it uses dlopen without a fixed path16:52
zygayeah, there's hope16:52
zygaits just requires someone to follow the trail of calls to the end16:52
zygastrace helps16:52
bartbesaha, I figured out why it doesn't load16:53
bartbesI tried to force it with LD_PRELOAD:16:53
bartbes/bin/sh: error while loading shared libraries: libnvidia-tls.so.375.20: cannot open shared object file: No such file or directory16:53
zygaah16:53
bartbesno wait, that may be because the preload is before library path16:53
zyga    "/usr/lib/libnvidia-tls.so*",16:53
zygathat's probably handled16:53
bartbesanyway, it's time to eat dinner, I'll look into it some more afterwards16:53
zygathanks! stay in touch please16:54
=== JanC is now known as Guest2425
=== JanC_ is now known as JanC
kalikianazyga: Still there?17:20
kalikianaI added rules for my fake /usr/bin as we talked about earlier this week, and it's mounted - but I can't execute anything from it17:21
kalikianaWas wondering if you'd have some hint, I feel like I'm missing something17:21
kalikiana/etc/apparmor.d/usr.lib.snapd.snap-confine: mount options=(ro bind exec) /snap/*/** -> /usr/**, /usr/bin/** ixr,17:22
kalikiana/var/lib/snapd/mount/snap.ubuntu-sdk-ide.ubuntu-sdk-ide.fstab: /snap/ubuntu-sdk-ide/x14/bin /usr/bin none bind,ro,exec 0 017:22
zygakalikiana: yes17:23
zygakalikiana: when you say you cannot execute anything, can you be more specific please17:24
kalikianaIn "snap run --shell" I can see my fake /usr/bin, but I get "bash: /usr/bin/pkexec: Permission denied"17:24
zygakalikiana: ah, right, that would be the base confinement not letting you run that specific executable17:24
zygakalikiana: some are allowed, some are not17:24
kalikianals /usr/bin confirms that the files are there17:24
zygakalikiana: you won't get out of the sandbox with pkexec btw17:24
zygakalikiana: if you tell me more what you need to do I may be able to help you better17:25
zygakalikiana: yes but the process is confined and the confinement doesn't allow to run that particular binary17:25
zygakalikiana: you can look at dmesg | grep DENIED to confirm this17:25
kalikianazyga: That is fine, I just need to deal with the app "expecting" /usr/bin/pkexec but I don't actually need the functionality to be equivalent17:25
zygakalikiana: unfortunately you won't be able to do it this way but maybe there's a way17:25
zygakalikiana: put a symlink over /usr/bin/pkexec17:26
zygaand make that symlink point to something benine that is allowed by the policy, e.g. /bin/true or maybe /snap/yoursnapname/current/fake-pkexec17:26
zygasymlinks are "transparent" to apparmor, apparmor really only cares about the final path17:26
zygagive that a try17:26
kalikianazyga: I don't get DENIED for pkexec17:27
zygakalikiana: maybe it's silent then, interesting17:27
zygakalikiana: give that a try though17:27
kalikianaHmmm not sure if I follow17:27
* zyga should rest a littlet17:27
zygalittle17:27
kalikianazyga: The pkexec is a shell script in my snap17:27
zygaI'll be back in a few hours to check if my kernel built, if you leave me a message I'll respond17:27
zygakalikiana: right, the point is that your overlaid /usr/bin/pkexec _must_ be a symlink to something in $SNAP17:28
=== devil is now known as Guest90793
zygakalikiana: or something that is already allowed to execute17:28
kalikianazyga: How could I create that? I can't snap a symlink before I know the real path with its version..17:29
zygakalikiana: you can use current17:30
zygakalikiana: the symlink can be  "/snap/$SNAP_NAME/current/fake-usr-bin/fake-pkexec"17:30
zygakalikiana: just put the snap name for real17:30
mupBug #1642581 opened: Livepatch checkState: check-failed <Snappy:New> <snapd (Ubuntu):Confirmed> <https://launchpad.net/bugs/1642581>17:31
zygakalikiana: then adjust the fstab file to bind mount fake-usr-bin over /usr/bin17:31
kalikianaOkay, that makes sense. Will try that17:33
kalikianaThanks17:33
bartbesso that was fun, I figured out I was missing some X libraries17:39
bartbescopied them over.. "*** stack smashing detected ***"17:39
zygabartbes: interesting, might be incompatiblity between libc in arch and the one in the core snap17:40
zygabartbes: would be good to check if the version are compatible and if there are any funny patches17:40
bartbesand the system I built the binaries on, debian oldstable17:40
zygathe way the userspace library that that is the "driver" sharing works is always at risk that this would happen17:41
zygaideally libc is stable and compatible but ... well17:41
zygait's all FOSS and patches17:41
bartbesright, I presume this would be the arch nvidia driver, linked against the arch libc, and the libc available in the snap, which is the ubuntu core one17:41
bartbesI wonder.. if I copy the new libc in..17:41
zygano but ... you can bind mount the arch libc17:42
zygaas a quick test17:42
zygasudo mount --bind /lib/glibc-something-something /snap/ubuntu-core/current/lib/glibc-something-something17:42
zygareplace ubuntu-core with core if you have that, or do both to be safe17:42
=== Guest90793 is now known as devil_
bartbessame result17:44
bartbesoh well, at least I tried17:44
* zyga hugs bartbes 17:45
zygathank you!17:45
bartbesit's good to see you took the hard problem of portable binaries17:49
bartbesand added confinement to it :P17:49
mupBug #1646912 opened: Snaps after an update disappear from the launcher <Snappy:New> <https://launchpad.net/bugs/1646912>17:52
zygabartbes: well, confinement is actually not a factor in this prolem17:56
bartbesnot in this particular problem17:56
zygabartbes: (of only nvidia didn't need a proprietary driver)17:56
zygabartbes: you were joking perhaps but I just wanted to clarify that17:56
zygabartbes: it's perectly possible to make this work but we'd have to put the driver into a snap17:56
zygabartbes: and assuming the kernel is OK, id all work17:57
zygabartbes: I was thinking about prototyping this but didn't have the time17:57
bartbesI don't think you can put the driver in a snap, since they are tied to the kernel module versions17:57
zygabartbes: are they?17:57
zygabartbes: AFAIK the module is but not the userspace lib17:57
zygabartbes: the userspace lib is not something we rebuild and that's the problematic part17:58
bartbesnot sure, but when I update the drivers (both sides) and try to run something using gl after I tend to get version mismatch errors17:58
zygabartbes: interesting, maybe they share some cookie17:58
zygabartbes: it'd be good to have someone from nvidia to work with us on this17:58
* zyga gets back to resting, not looking at irc 17:59
cjwatsonelopio: did you ever get a chance to check whether the firewall fix from https://portal.admin.canonical.com/97657 improved matters for you?18:26
kalikianaHrm. I guess the symlink isn't possible, absolute or relative (../usr/bin): './parts/stubs/build/pkexec' is a broken symlink pointing outside the snap18:33
mupPR snapd#2402 closed: debian: disable autopkgtests on ppc64el <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2402>18:48
larrypricei'm attempting to use X from the lxd snap, but doing so generally requires bind-mounting /tmp/.X11-unix from the host to the container19:07
larrypricehowever there is no /tmp/.X11-unix in my snap's fs19:07
larryprice is something mounting over /tmp so an unconfined snap can't access? is there any way around this?19:08
bartbesto the former: yes19:26
jjohansenzyga: have you opened a bug for your strlen oops yet?19:38
larrypricebartbes, thanks for the confirmation. so there's no way to access anything in /tmp on the system from a snap?19:43
bartbesI'm not sure, I only found this out during debugging earlier19:43
ali1234i have a question19:58
ali1234if you make a snap containing a web app, how do you use it on a vhost?19:59
ali1234for example wordpress20:01
ssweenyyou'd probably want something like nginx in front of it acting as a proxy20:03
ali1234so that is not automated?20:03
ssweenyit depends on the packager what they include20:04
ssweenyyou could include a copy of nginx or use the distro version20:04
ssweenyor a separate snap of nginx that points to your wp snap :)20:05
ali1234including a copy of nginx doesn't help20:05
ali1234suppose i have bought three domain names, foo.com, bar.com, baz.com20:05
ali1234i want to run separate wordpress instances on foo.com and bar.com, and rocket chat on baz.com20:05
ali1234and i only have one dedicated server20:05
ali1234how do i do that, using snaps?20:06
ssweenysee for example how nextcloud does it: https://github.com/nextcloud/nextcloud-snap/blob/master/snapcraft.yaml20:06
ssweenythey include apache and everything needed to run nc on its own20:07
naccali1234: snaps are very different in this regard, IMO20:07
ssweenyyou could on top of that have something like nginx proxying requests to that apache instance20:07
naccand you'd probably need something like that, to handle the port issues you run into with having multiple webservers running (potentially)20:08
nacc*that being what ssweeny is describing20:08
ali1234yes20:08
ali1234so i would end up needing multiple apache installs20:08
naccwell, each app would have its own20:08
ali1234then i would have to manually configure nginx to proxy them all?20:08
ssweenythat's one way to do it20:08
ssweenyeasy enough if not terribly efficient20:09
ali1234is there a way to do it where all i have to do is install things and then it just works?20:09
ssweenyyou could also roll your own snap with wp, rocket.chat, and apache with the apache config set20:09
ali1234that doesn't seem like it would have any benefit over just installing it the old way20:10
ssweenyconfined apache alone seems worth it :)20:10
ali1234not really, not if it is the only thing running on the server20:10
naccali1234: i think you misunderstand what confinement gets you, potentially20:10
naccali1234: it doesn't matter that there are or aren't other things running on the server, really20:11
ali1234confinement isn't the problem i am trying to solve though20:12
ali1234the problem i am trying to solve is that every web app has different weird requirements that conflict with each other20:12
naccwhich snaps help solve :)20:12
ali1234but only if you put each thing into a different snap20:12
ssweenyright20:12
naccali1234: not sure what you're arguing is the alternative?20:13
ali1234it's not the alternative. what i do now is instal things from source in /usr/local20:13
ali1234it ends up a huge mess20:13
ssweenyright so snaps will still help there since you only have to build each piece once and they won't interfere with each other20:14
ali1234yeah20:15
ssweenythere's just a bit of configuration on top to get them to cooperate, which can't be harder than what you're doing now20:15
ali1234so what i would like to do is install web app snaps and then use "snap connect" to connect them all to my web proxy snap (which might be nginx, or might be something else)20:15
ali1234through a standard interface20:16
ali1234rather than manually writing an nginx config file20:16
ali1234this kind of crosses over with juju at this point20:17
ali1234but this is something juju never really seemed to be able to do either20:17
naccali1234: well, your web proxy snap would then have that config file, basically, or understand how to handle `snap connects` to it sslots?20:17
ali1234yes20:17
ali1234the web proxy snap would have a config file which lists all the domains/vhosts20:17
ali1234then from that it would auto generate a list of interfaces20:18
ssweenya "web-proxy" slot would be interesting I think but I don't know if there's anything close to that implemented now20:18
ali1234and i'd connect the web apps to them20:18
ssweenyclose to that conceptually I mean20:18
ali1234yeah that's it20:18
ssweenymostly what interfaces do now is mediate access to files and dbus communication20:18
naccyou'd also have to give that connection more information20:19
nacclike what port  to proxy to what port, etc20:19
ali1234no20:19
ali1234it would proxy whatever you connect it to20:19
naccok, that could be the plug you defined20:19
ali1234the only information you would give it on the nginx side is what domain name and port to listen on20:19
ali1234yes20:19
naccali1234: i think you took me too literally, i mean you'd have to define that as part of the connect-interface20:20
ali1234the port that the web app internally runs on should be dynamically chosen to avoid conflicts20:20
ali1234i see, yes20:20
naccali1234: aiui, everything you're saying doesn't exist yet, but I've not tried recently20:20
ali1234can you connect multiple snaps to the same mysql snap?20:23
ali1234that seems like a similar problem, if the mysql snap has a configurable port20:23
naccali1234: again, i don't think that's how connect works currently20:24
naccali1234: e.g., nextcloud bundles its own mysql in the snap20:25
naccali1234: also, putting those connections between snaps, i wonder, if it runs a bit contrary to avoiding dependency hell. What happens when the mysql snap gets updated? How do you know your app is compatible?20:25
nacc(just thinking out loud020:26
ali1234um... because its mysql20:26
ali1234can you install two copies of the same snap at the same time, with different configuration?20:26
ssweenyright, currently if your app is tightly coupled to another piece of software you're better off including it20:26
ali1234mysql has a well defined interface, it is not tightly coupled20:27
naccali1234: you can't install 'two copies' of a snap on the same system20:27
naccafaik20:27
ssweenythere is some effort going on now with "framework" snaps like Qt, but it's still early days20:27
naccssweeny: cmiiw, please!20:27
ssweenyright, one snap one version20:28
naccali1234: so it feels like maybe you thought snaps were solving a different problem than they are?20:28
ali1234i thought they were solving all problems :)20:29
ssweenyeventually :)20:29
ali1234but this is one problem i have now20:30
ali1234and it's really annoying20:30
ali1234i'd like to try out rocket chat20:30
ssweenyright, so for now you can get some benefit from snapping but there is still some manual config needed20:30
ali1234but i can't install it on my server20:30
ssweenythe rocket chat snap works pretty well20:30
ali1234and many other web apps20:30
ali1234but my server already has a horrible mess of vhost configs20:31
ali1234also it is running 14.0420:31
naccali1234: yes, sorry -- i should have 'had solved a different problem than they have' :)20:33
ali1234at the moment it is running about 6 wordpress instances, some wiki software, a bug reporting app, a couple of joomlas20:33
ali1234i think there's a gitlab install as well20:33
ssweenymultiple wordpress instances is going to be the big hurdle20:34
ali1234they are the easiest to deal with currently because they don't need any funny dependencies like ruby on rails or node20:34
ssweenymaybe leaving them alone is the way to go then20:34
ali1234just unzip it in the htdocs and that is it20:34
ssweenysince you still need a central nginx then you could still install the rocket snap20:35
ali1234but i don't need a central nginx currently?20:35
ali1234i just use apache vhosts20:35
ssweenysame difference :)20:36
ssweenyapache has a mod_proxy that'll let you do the same thing20:36
ali1234hmmmmm20:36
ssweenyI just thought all the kids were using nginx these days20:36
ali1234only because they are using five separate virtual machines to run one copy of wordpress20:37
ssweenysays the guy who set up a webserver like 6 years ago and is afraid to change it20:37
ssweenyrunning lighttpd no less because at the time the VPS had very limited RAM20:38
ali1234this server moved off a VPS because of stupid ram limits20:38
ali1234the provider placed a limit of like 8MB of non-swappable kernel memory20:39
ali1234so we had like 1GB of RAM, but things were getting OOM killed because they opened too many files20:39
ali1234took us ages to figure it out as well20:40
larrypricebartbes, fyi after installing in devmode i found some of my /tmp folders in `source=/var/lib/snapd/hostfs/tmp/` in the container20:41
bartbeswhen I tried to open that it was empty20:42
bartbesand that's in devmode20:42
larrypricehmm weird... mine only show up when i ask for the specific directory i'm looking for20:50
jdstrandrenato__: if you click 'manual review' I'll approve https://myapps.developer.ubuntu.com/dev/click-apps/4632/rev/17/21:09
=== ahoneybun_ is now known as ahoneybun
mupBug #1644058 changed: Different behaviour in MPRIS interface with local install vs store install <Snappy:Invalid> <https://launchpad.net/bugs/1644058>21:29
mupBug #1646415 opened: cannot run configure hook <Snappy:New> <https://launchpad.net/bugs/1646415>21:56
mupPR snapcraft#937 closed: Incorporate all part properties into state tracking <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/937>23:24
mupPR snapcraft#944 opened: Release changelog for 2.23 <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/944>23:51

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!