=== chihchun_afk is now known as chihchun [05:59] morning [06:16] Bug #1743301 opened: cannot install apps using snap on Korora [08:04] mvo: morning [08:04] mvo: something for snap-advise https://bugs.launchpad.net/snapd/+bug/1742677 [08:04] Bug #1742677: snap run should error nicely when snap isn't installed [08:07] good morning [08:08] mborzecki: thanks, checking [08:08] kalikiana: good morning [08:08] mborzecki: and good morning to you! [08:10] mornings! [08:12] kalikiana: pstolowski: morning [08:12] o/ [08:12] mvo: good morning [08:12] \o [08:13] mvo: I have a question to you as a apt maintainer, [08:13] mvo: when a hdd is corrupted and dpkg database is partially blown away, is it sensible to try to reinstall some packages [08:13] mvo: or should I just backup home and reinstall the whole thing [08:17] zyga: well, thats a tough one :) most of the time liberal use of "apt install --reinstall $stuff" makes things work again [08:17] zyga: hey [08:18] zyga: *but* the trouble with corruption is that you never know what is affected, so reinstalling packages is fine but your user data might be corrupted as well [08:18] zyga: if there is no/little user data or if you can easily restore this in isolation the reinstall of packages is worth a shot [08:18] and good morning pstolowski [08:23] I tried a small reinstall but apt dpkg complained about some packages have empty list of files, [08:23] I'll do full reinstall :/ [08:26] zyga: well, empty list of files should not be a hard error [08:26] zyga: can you pastebin the error ? [08:26] zyga: *if* you want to resovle this tihs way [08:26] dpkg: unrecoverable fatal error, aborting [08:27] zyga: there were some more before that I'm sure [08:27] (then localized), list of files in package "libc6-dbg:amd64" contains empty file name [08:27] hey there [08:27] is bug #1742687 likely a regression in snapd? [08:27] Bug #1742687: Launching URLs in snapped applications no longer works in 18.04 [08:27] the title might be misleading, he's using 2.30 which is not in other ubuntu series [08:28] seb128: perhaps, I think the url opening moved to snapctl (but I may be mistaken) [08:29] zyga, could somebody familiar with that part of the codebase check if there is an issue? [08:29] 09:29:05 up 12:42, 7 users, load average: 14.75, 13.00, 11.22 :/ building snapd yocto image on x220 [08:30] zyga: you could try "dpkg --purge libc6-dbg" but probably not worth it [08:30] seb128: yes, for sure [08:30] thx [08:30] mvo: that doesn't work [08:30] same error [08:31] zyga: hm, mv /var/lib/dpkg/info/libc6-dbg:amd64.list /tmp/backup and ty again? (double check that I got the path of the .list file right please) [08:31] k [08:31] zyga: and then re-try the --reinstall ? [08:32] mvo: that file doesn't exist at all [08:32] ah, no sorry [08:32] zyga: no "/var/lib/dpkg/info/libc6-dbg\:amd64.list " ? [08:32] shell has issues with : in filenames :/ [08:32] heh [08:32] mvo: I'll ski [08:32] mvo: inside I see a DBUS XML profile [08:32] zyga: haha [08:32] mvo: my disk is a messed up soup [08:33] zyga: there you go [08:33] mvo: I'm making a bootable usb now [08:33] :/ [08:33] zyga: well, you could try to repair this one [08:33] zyga: of course if that is all over the place> FAIL [08:33] mvo: fsck printed a huge list of changes [08:33] mvo: I think that's not a happy disk [08:34] ok [08:35] zyga: smart did't raise a warning or anything? [08:35] zyga: good luck - do you happen to have an 18.04 vm? or sebs bug? [08:35] mborzecki: not a single one [08:35] mborzecki: I'm running small test [08:35] mvo: I don't have 18.04 vm yet, no [08:35] ok [08:37] zyga: at least tell us the band of the disk, and why it ahppens to be a seagate? :) [08:37] mborzecki: wd [08:37] mborzecki: they all eventually fail :/ [08:37] it's a 1TB blue [08:37] 832 start/stop cycles [08:38] 3 months and 1 day of uptime total [08:38] so... [08:38] :/ [08:38] * mborzecki goes to check smart log on his nas disks [08:40] * zyga tarballs home and DDs 17.10 installer to usb [08:41] mvo: do you think I could reinstall 18.04 instead [08:41] I wonder if that could help with the bug in a meaningful way [08:42] seb128: http://cdimage.ubuntu.com/releases/17.10.1/release/ - is the 17.10.1 release due to meltdown? [08:43] zyga: sure, can't hurt to install 18.04 [08:43] zyga, no [08:43] zyga: 17.10.1 might also be because of the bios issue with lenovo [08:43] what mvo said [08:43] ah, I see [08:43] I'll do 18.04 [08:43] let's see what's coming === jdstrand_ is now known as jdstrand [09:35] hey there Chipaca [09:35] zyga: o/! [09:35] zyga: how's things? [09:37] would appreciate if someone could take a look at https://github.com/snapcore/snapd/pull/4480 the only controversial thing may be stopping and cleaning up *.services files for services that came from snaps, eg. lxd [09:37] PR #4480: snap-mgmt: extend spread tests, stop, disable and cleanup snap services [09:38] mborzecki: is this for stopping and removing those things on purge? [09:38] Chipaca: yes [09:39] Chipaca: so so :) doing a reinstall now, hoping that my HDD isn't totally crazy :) [09:39] Chipaca: just picking up some PRs to review while I wait [09:40] mborzecki: I don't think that's controversial; that's what the deb package was supposed to do in its postrm [09:40] zyga: FYI, today's supposed to be blue https://en.wikipedia.org/wiki/Blue_Monday_%28date%29 maybe your hdd just had a breakdown (sorry for dad joke) [09:42] Chipaca: s/supposed to do/doing/ - no ? [09:42] mvo: I assume it is also what it does, if that's your question :-) [09:42] Chipaca: deb postrm is still is still a separate script under packaging/, don't have that must experience with debs as to move it to preprm and invoke snap-mgmt --purge [09:42] mvo: I'd have to look at the current postrm to say for sure :-D [09:42] Chipaca: yes, it does that [09:42] Chipaca: aha, thats fine. I was wondering if there is a bug in the postrm [09:43] mvo: there's an expression in Spanish, 'no meto las manos en el fuego por nadie' :-) [09:43] Chipaca: there is an expression in german: "Ich verstehe kein Spanisch" [09:43] Chipaca: ;) anyway, thanks! [09:44] mborzecki: it does that also for mount units btw [09:44] (the deb postrm) [09:44] mvo: there's an expression in French, "ils sont fous ces allemands" [09:45] mborzecki: fwiw, unifying postrm and snap-mgmt is tricky because in the dpkg world you can do a "dpkg --remove" and everything from the regular deb is gone just the "post{inst,rm}" etc is left. so any purge would have to be "sourced" (copied) into the postrm [09:46] mborzecki: I mean, any code sharing would have to be done via some magic that copies things into postrm [09:46] mvo: sound ugly [09:46] Chipaca: heh :) I think I know enough french for this one ;) [09:46] mborzecki: yeah, britle and terrible [09:47] it could be done in the Makefile / rules [09:48] * mvo hugs Chipaca and apologizes for trolling him on a monday morning [09:48] pedronis: yeah, I think its doable, we just need to be careful and it will be a little bit ugly [09:49] (of course it is, SMOP and all that :) [09:50] mborzecki: haha [09:50] mborzecki: nice ;) [09:50] PR snapd#4486 opened: snap: make `snap run not-install` output advise for not installed commands [09:52] mborzecki: just curl mgmg.snapcraft.io [09:52] mborzecki: just curl mgmg.snapcraft.io | sudo sh [09:52] mborzecki: ;-) [09:52] mborzecki: no need to worry about postrm [09:52] ;-) [09:52] man, my typing sucks on this laptop [09:53] hmm ok, seems like there's a bug in #4480 [09:53] PR #4480: snap-mgmt: extend spread tests, stop, disable and cleanup snap services [09:53] mborzecki: is bug #1741474 something to set to "fix commited" ? [09:53] Bug #1741474: Migrating from snapd to snapd-git results in 'broken' snaps [09:55] mvo: yeah, think it's ok to switch the status [09:56] mborzecki: thank you! and thanks for the fix [09:57] mvo: oh, it's not me, it's philm from manjaro who updated the packages [09:57] anyways, they are in sync with ones from AUR now [09:59] mborzecki: ta [10:10] mvo: can 4424 land? [10:11] zyga: let me look at this one more, maybe we don't need to honor this limit if pam is already doing the right thing internally [10:12] pstolowski: is landing new interfaces problematic for you? [10:12] pstolowski: can I land 4365? (do a qucik review maybe) [10:13] * zyga requests review for 4329 [10:13] 4329 is from nov 2017 and fixes a bug [10:13] zyga, by all means we should land new interfaces, i'll update my branch if needed [10:14] zyga, let's just avoid any unnecessary refactorings around interfaces at this point and it will be fine [10:15] so yes please land 4365 [10:16] pstolowski: kk [10:17] zyga: yes, I looked at the new package I'm using, what's the procedure for new deps ? [10:17] pedronis: I don't think we have any really, I just wanted to double check someone from the team read that package [10:17] jamesh: hey [10:17] zyga: hi [10:18] zyga: yes, I read the package, it doesn't do networking, has good coverage [10:18] seems to do the job [10:18] jamesh: so, how are we doing for per-user mount ns; with my mind busy on my box being broken I forgot the detailed agreements from last week [10:18] there are much more complicated packages for this, but seems overkill for these case [10:18] jamesh: can I help you some way? [10:19] *this case [10:19] pedronis: that sounds good to me [10:21] zyga: pedronis: pushed a fix to #4480 can you take a look? [10:21] PR #4480: snap-mgmt: extend spread tests, stop, disable and cleanup snap services [10:21] mborzecki: aha [10:21] PR snapd#4365 closed: interfaces/mir: allow Wayland socket and non-root sockets [10:23] mborzecki: commentd [10:26] zyga: thanks, the reload doesn't happen in postrm either, i'd say it's up to the caller to do a systemctl daemon-reload [10:27] Chipaca: zyga: I see for boltdb we added something like to the spec BuildRequires: golang(github.com/boltdb/bolt) but I see for other/older package there are other bits as well by grepping about Requires and Provides [10:27] pedronis: oh? [10:28] for example I see: BuildRequires: golang(github.com/ojii/gettext.go) Requires: golang(github.com/ojii/gettext.go) Provides: bundled(golang(github.com/ojii/gettext.go)) [10:28] the bundled bit I'm not sure what is about [10:29] Chipaca: ^ [10:29] ah, me neither [10:29] I added the BuildRequires because without it it wouldn't work :-) [10:30] I don't know the significance of the rest [10:30] Chipaca: well I didn't even add that, because fedora is off :/ [10:30] zyga: just testing out the change for making /media shared again. I think that was the only thing we decided was needed before merging it [10:31] pedronis: you can still run it by hand :-D [10:31] Chipaca: and see it fail for other reasons anyway? [10:31] pedronis: running a test by hand has high chances of working [10:31] I mean, we turned off fedora for reasons [10:31] zyga: #4329, the code there is called with cgroup frozen? [10:31] PR #4329: cmd/snap-confine: discard stale mount namespaces (v2) [10:32] pedronis: running all the tests has high chances of failing [10:32] pedronis: ¯\_(ツ)_/¯ [10:32] Chipaca: anyway, should we cargo cult the rest for boltdb? [10:32] pedronis: I'd rather ask somebody that knows [10:32] I suppose all deps should be the same [10:33] that's a good supposition, and we can go with it if neil doesn't show today [10:33] ok? [10:33] re [10:33] yea [10:33] jamesh: cool [10:34] jamesh: I don't know if *just* making it shared will be enough tho [10:34] Chipaca: could you look at #4481 [10:34] PR #4481: image: let consume snapcraft export-login files from tooling [10:34] jamesh: otherwise the code that makes /media shared would be much much easier to write originally [10:34] pedronis: on it [10:34] thank you [10:34] jamesh: do a practical test please (ideally patch the /media spread test to also have a dummy per-user mount profile to see) [10:35] mborzecki: no [10:36] mborzecki: just with the per-ns lock held [10:36] jamesh: when you make / rslave it is a one-way ticket, you cannot make it shared again (AFAIR), subsequent share will just make it a master for other slaves [10:37] jamesh: I might be wrong but I think this is why the /media setup that we have now ended up so convoluted [10:37] jamesh: (I stash away /media to recover it later) [10:38] Chipaca: I think Gustavo wants us to look into converging more login stuff between snapd and snapcraft and also we really need to teach download to use the creds inside snapd when it make sense [10:39] Chipaca: that's why I'm holding off adding command line options [10:39] pedronis: i agree we want that, but we also want snap download to work in the absence of a running snapd (and we want to specify the arch anyway) i think [10:40] nothing urgent and i didn't mean it needed doing right now [10:40] the arch yes [10:40] * zyga is grumpy because the good green tea has run out [10:40] snapshots also run in the absence of snapd :-D [10:40] just explaining why I didn't add command line options so far [10:40] and the store carrying it is on the other side of the city [10:40] zyga: send your snappy-enabled drones [10:41] Chipaca: arduino with a sign "will write model assertions for tea" [10:42] zyga: hey now, no unlawfully competing with ogra_ [10:42] Chipaca: I think ogra would write beer, that's a different market segment [10:42] we can coexist peacefully [10:46] augh! i should've gone to physio [10:51] zyga: I think you're right. I thought I had something working, but it doesn't seem to be propagating. [10:52] zyga: I do wonder if anything using the desktop interface would ever be affected by this though [10:52] jamesh: I think it's not the point though, you can just rslave all top-level elements or rslave / and bind /media over from another place if you keep one handy [10:52] e.g. display security in current Ubuntu doesn't let root connect to the user's display [10:53] zyga: so I need to track down what all the top level mounts are then [10:53] jamesh: no, no need [10:53] jamesh: just opendir and iterate over top level elements [10:54] and skip media [10:55] zyga: but the top level directories aren't all going to be mount points [10:55] not a problem [10:55] ah [10:55] actually, you are right [10:55] that is a problem [10:55] rshare doesn't handle non-mount entries [10:55] bummer :/ [10:56] zyga: as I mentioned on the hangout, I think the long term solution is to construct separate mount namespaces for each user from scratch, working out some way to get the right parts shared [10:59] pedronis: We've had so many issues with the differences in download that by now I'm seriously wondering if doing the opposite of what we do now wouldn't be a better approach. That is, [10:59] jamesh: I honesntly don't even see how that can work [10:59] jamesh: it's far more complex than what we have now [10:59] jamesh: I'll dismiss that without any poc code [11:00] ..., make download go through snapd by default, and only fallback if snapd is not available, in which case we warn that we're doing it locally and that differences may emerge [11:01] zyga, correct .... and also ... i dont touch systems without MMU ;) [11:01] jamesh: (even back of the envelope pseudocode) === chihchun is now known as chihchun_afk [11:05] zyga: well, one option is to have snap-confine save one copy of the mount namespace before calling snap-update-ns, and reuse that if it is found [11:06] zyga: went through #4329, left some comments [11:06] PR #4329: cmd/snap-confine: discard stale mount namespaces (v2) [11:06] zyga: then the per-user mount namespace would be cloned off that, and all mounts (both global and per-user) would be performed on top of that [11:06] mborzecki: thank you [11:09] mborzecki: looking now [11:09] jamesh: maybe it's easier than I assume by I really would like to see some pseudocode written (e.g. forum thread) [11:09] jamesh: I suspect the devil is in the details here, it's very delicate piece of code [11:12] niemeyer: I know we discussed this, we still haven't really prioritized the changes involved, in practice we need both path as you said, it's a matter of what is the default [11:13] zyga: anyway. As the code currently stands, it won't do anything until an interface is modified to use it. And the desktop interface isn't really appropriate for processes running as root. So is this a big enough deal to block the initial landing? [11:14] jamesh: I'd like to see how we could fix that, give me one day to come up with a plan and if not let's land it [11:14] okay [11:15] hey cachio ! welcome back [11:15] mvo, hey, thanks [11:15] cachio: wow, hey [11:15] mvo, glad to be here again [11:16] zyga, hey, long time [11:17] cachio: I hope you had great time :) [11:17] zyga, yes it was, thanks [11:20] mvo, any plan for beta validation? [11:20] cachio: yeah, probably tomorrow, we had a bit of a setback because of spectre/meldown, no edge builds for a couple of days [11:21] mvo, ok [11:22] cachio: welcome back, the internet has melted and is chased by some spectres [11:23] zyga, hehehe, yes [11:23] Are you still blocked on the remaining ppa:snappy-dev/ubuntu/edge builds? [11:24] zyga, no way to scape from that [11:24] E: Type 'curity' is not known on line 50 in source list /etc/apt/sources.list [11:25] zyga, is there any change in snapd for deal with those issues? [11:25] quoth the raven, WAT [11:25] cjwatson: well, sort of, for a new release we would need a core for all our supported arches. i understand the other arches are still disabled until we have new kernels fixes there too(?) [11:26] cachio: no, just extra delays around [11:27] cachio: probably new toolchains soon [11:27] cachio: maybe a rebuild required, not sure [11:27] zyga, ok [11:27] mvo: What's the process for getting code into this PPA? I see it goes via some snapd-vendor git repository - can you tell me how code gets there? [11:28] cjwatson: its a sync from github.com/snapcore/snapd [11:28] mvo: (we can whitelist builds, but we have to treat the builders as if they have no effective virtualisation at the moment) [11:28] PR snapd#4487 opened: cmd/snap: snap refresh --timer, hide --time [11:28] mvo: hmm, any reason it's not a Launchpad git-to-git import? Is it gated in some way? [11:28] cjwatson: and we only allow code in that we reviewed and that passed our test suite (and CLA) [11:30] cjwatson: there is one complication - we do sync in the "vendor" tree into this git repo. i.e. all our vendored dependencies. nothing gets updated that we don't explicitly update via vendor/vendor.json but there is code that we did not control in there so it probably does not qualify as "ok" in this day-and-age [11:30] cjwatson: (this is why the git tree is called snapd-vendor, i.e. snapd+vendor-code) [11:30] ah, ok [11:31] mvo: does your process for updating vendor/vendor.json at least involve eyeballing the upstream diff? [11:31] (uncomfortable moment) [11:32] ;-) [11:32] cjwatson: yes, however we have no strict policy around this and have been not careful about this in the past. on the plus (or minus) side, we only update rarely [11:33] cjwatson: anyway, I understand the current situation, I'm ok with waiting for more kernel/isolation fixes [11:34] cjwatson, the nplan build in https://launchpad.net/~snappy-dev/+archive/ubuntu/image/+packages?field.name_filter=&field.status_filter=published&field.series_filter=xenial would also be needed for the next core (at least on armhf) [11:34] cjwatson: obviously it depends on how long it will take if fixes are weeks away we need to consider what to do [11:35] would be nice if that could get an exception [11:45] mvo,ogra_: I think at least these current ones are OK. Scheduled [11:45] thx!! [11:46] cjwatson: thank you! [11:50] * kalikiana going for lunch in ~10 === ogra_ is now known as ogra [12:03] PR snapd#4488 opened: snap: make `snap find --section` show all sections [12:06] is tehre a way to tell if --argument was passed in command line? [12:07] mborzecki: hmm? [12:07] where? [12:08] zyga, did you notice https://forum.snapcraft.io/t/how-to-get-snapd-to-work-with-external-mounts/3481 ? (that guy seems to slowly become grumpy) [12:09] (and the subject is mis-leading ... its about the debian 9 kernel and apparmor) [12:10] yeah, I see [12:10] * pstolowski lunch [12:12] zyga: i want to have something like this: `snap find --section`, i.e. have the parser allow `--section` without value even though it's defined as string [12:13] mborzecki: I don't know, there may be a way to do that with go-flags (optional argument) [12:14] * zyga coffee [12:14] time to reinstall next, backup done [12:22] came up with some workaround: https://paste.ubuntu.com/26391469/ this is for https://bugs.launchpad.net/snapd/+bug/1742960 [12:22] Bug #1742960: snap find --section does not list sections [12:23] haha, see that mvo has opened a PR already :) [12:28] * zyga keeps fingers crossed that bionic reinstall will work for this week and that hdd is not totally busted [12:28] especially that smart was OK [12:28] not sure what caused this [12:28] at least I will have a fresh filesystem there [12:39] kernel crashed on reboot [12:39] well [12:39] that's a good sign [12:39] ... [12:39] not [12:40] hmm [12:40] it's still doing something [12:41] just spews ... [12:49] ok [12:49] ok [12:49] this disk is gone [12:49] just broke after install [12:49] SMART my ass [12:49] * zyga is grumpy now [12:52] * Chipaca hugs zyga [12:52] salvage what you can, drill it through, throw it in the dumpster :/ [12:52] mborzecki: I have a full backup, so that's not a problem [12:52] i was going to suggest opening it and peeing on it, but i decided against it [12:53] mborzecki: and it "works" a little, just fails writes often [12:53] every now and then [12:53] Chipaca: I need some of that alien pee [12:53] zyga: that's your call [12:55] zyga: so now you can play with running linux on the chip that's inside the drive [12:55] zyga: http://spritesmods.com/?art=hddhack&page=1 [12:56] mborzecki: or buy those discounted fireworks [13:14] re [13:41] Hi! I have a doubt regarding the "base" system used to build the snaps in launchpad: when will it be changed to 18.04 (from 16.04)? Is there any established date? [13:41] pachulo: not yet no [13:45] Chipaca: is there any rough guess? like: before the end of 2018? [13:45] pachulo: I'd expect it to be done before 18.10 [13:45] pachulo: but after 18.04 [13:47] pachulo: JamieBennett might be in a better position to offer a firmer answer, if one exists [13:48] niemeyer, one of my PRs that needs your re-review: https://github.com/snapcore/snapd/pull/4440 [13:48] PR #4440: state: unknown tasks handler [13:50] niemeyer: https://github.com/snapcore/snapd/pull/4487 and https://github.com/snapcore/snapd/pull/4476 [13:50] PR #4487: cmd/snap: snap refresh --timer, hide --time [13:50] PR #4476: overlord/{snapstate,configstate}, daemon: introduce refresh.timer, fallback to refresh.schedule [13:59] PR snapd#4481 closed: image: let consume snapcraft export-login files from tooling [13:59] zyga: fwiw, I can reproduce the dbus error on bionic, it does not make sense to me our rule looks good [14:00] mvo: interesting, I can "try" on my current broken system [14:00] pedronis: re 4481> we used to use https://packages.debian.org/sid/golang-github-mvo5-goconfigparser-dev in the past for ini parsing, this is packaged for debian and afaict also for fedora [14:01] zyga: do you have any hints how to debug this? [14:02] ok, thanks Chipaca [14:03] mvo: hold on, let me reproduce locally [14:03] are there go build flags that can be used to build something only on 14.04? [14:03] zyga: hm,hm, apparmor_parser -r /path/to/apparmor/profile seems to fix it :( [14:03] ouch :/ [14:03] that's not good [14:03] which profile did you reload, that of the app, right? [14:03] zyga: correct [14:04] zyga: its in a VM so copy/paste is a bit harder but essentially "apparmor_parser -r /var/lib/snapd/appamror/profiles/snap.gimp.gimp" [14:05] mvo: we can switch I suppose, the package I picked has a even simpler interface (but more code) [14:07] pedronis: I am sitting on the fence, less code we need to maintain is good so I'm hesitant advocating for moving back to this code. otoh it will probably make life for the packagers easier [14:08] mvo: I need to go have my daily walk, I let you think a bit more [14:08] pedronis: I can to a POV port if you want (lets talk after your walk) [14:09] hm we don't seem to clean up udev rules in postrm and snap-mgmt [14:09] mvo: family calls for lunch now, I'll be back; the apparmor relead feels bad, I will see if I can reproduce (on clean bionic install) [14:13] off to get the kids [14:14] zyga: sure, lets talk in a bit [14:16] zyga: so, it seems to be related to "peer=(label=unconfined)" when I rmeove this and reload things work. when I add it back things work still [14:19] popey: Hey! mind taking a look at https://github.com/snapcrafters/android-studio/pull/13 ? [14:19] PR snapcrafters/android-studio#13: Export missing library paths [14:20] The change only affects the emulator. [14:26] mvo: hmmm [14:26] mvo: that's odd [14:26] zyga: yes [14:26] mvo: but the peer is an unconifned snap userd, right? [14:27] zyga: I assume so - also its strange that I can change/add back and things keep working [14:27] zyga: how can I find out if it is unconfined? [14:27] mvo: add that "peer" constraint? [14:27] mvo: and reload? [14:27] or not [14:28] zyga: thats what I did: first remove the peer constrain, reload -> works [14:28] zyga: then re-add the exact same constrain as before, reload -> works [14:28] which snap did you use for testing? [14:30] zyga: gimp [14:30] zyga: and reboot (with peer=(unconfined)) that worked before the reboot now fails again it seems. [14:30] and reboot the OS? [14:31] zyga: now I just rebooted the vm [14:35] mvo: reproduced, I didn't change anything though, just installed gimp and attempted to open the developer website [14:35] zyga: yeah, that fails for me as well [14:36] zyga: to make it work I had to remove the peer=un constrain [14:37] hmm, offtopic, installing snaps from gnome software shows the progress as stufk at 99% (after it completes in reality) [14:40] mvo: so [14:40] without touching the profiles or rebooting [14:41] I ran "snap userd" from the shell [14:41] and that made it work [14:43] mvo: [14:44] so this seems reproducible: activation doesn't work but after it is activated (in any way) it works correctly [14:44] mvo: activation from either running snap userd manually or activating via d-feet [14:44] mvo: I think we want to look at how that activation happens [14:44] mvo: perhaps (somehow, no idea) when activation is processed by apparmor is goes to a confined helper [14:44] mvo: (maybe that's the new thing in 18.04) [14:45] mvo: that just transitions to our service [14:45] mvo: note that the mechanism is just a speculation at this point [14:46] Hello! [14:48] * Chipaca -> physio [14:49] peer=(unconfined) is not correct syntax [14:49] * jdstrand looks [14:50] zyga: aha, nice [14:50] zyga: thanks, that explains why it works for me [14:50] zyga: thanks for figuring this out [14:50] zyga: will you update the bugreport or shall I? [14:50] peer=(label=unconfined) is correct and what is in the desktop interface [14:50] mvo: I'm still digging [14:50] mvo: yes, gladly [14:50] jdstrand: it doesn't work for activation (apparently) [14:51] jdstrand: I'm trying to understand how that happens in bionic [14:51] jdstrand: it works once activated [14:51] jdstrand: just tested on pristine install [14:51] zyga: it should work [14:52] userd is unconfined. dbus daemon may have a bug [14:52] on non-bionic, is userd already running? [14:52] ie, check if activation is working everywhere [14:53] * jdstrand tries on artful [14:53] jdstrand: I dind't check on pre-bionic yet [14:53] jdstrand: on bionic I get an apparmor denial [14:53] zyga: can you paste it? [14:54] what is the binary in ps that I can check foruserd? [14:54] s/userd/ userd/ [14:54] mvo: I'm back [14:54] jdstrand: it's "snap userd" [14:54] jdstrand: one sec, separate box [14:55] zyga: activation wrks on artful. browser opened just fine [14:55] sty 15 15:34:45 kaedwen dbus-daemon[1242]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/io/snapcraft/Launcher" interface="io.snapcraft.Launcher" member="OpenURL" mask="send" name="io.snapcraft.Launcher" pid=5773 label="snap.gimp.gimp" [14:56] jdstrand: activation works on bionc if the requester is unconfined [14:56] jdstrand: and doesn't work with this activation if the requester is confined (I used gimp, same as mvo above) [14:56] huh, there is no peer label [14:57] is that the complete line? [14:57] * jdstrand used gimp snap on artful [14:57] jdstrand: yes [14:58] jdstrand: something must have changed in bionic [14:58] zyga: hard to say if that is a libapparmor bug or a dbus daemon issue [14:59] but dbus-daemon is not logging the peer_label, so that seems possibly to lean towards dbus-daemon [14:59] I'll update the bug with more details and look at how that works [14:59] zyga: what is the bug number? [14:59] is that filtering done in userspace by dbus or in kernel space on the socket? [14:59] jdstrand: my thought exactly, one sec [14:59] zyga: the kernel mediates access to the unix socket. dbus-daemon mediates the messages and signals [15:00] jdstrand: is dbusd using libapparmor? [15:00] zyga: yes [15:00] https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1742687 [15:00] Bug #1742687: Launching URLs in snapped applications no longer works in 18.04 [15:01] zyga: for dbus policy, think of the kernel as the database of rules that dbus-daemon can ask if an access is allowed or denied [15:01] zyga: it does that via libapparmor [15:01] I see [15:02] I'll have look, thankyou [15:02] zyga: then dbus-daemon allows/blocks the access [15:08] jdstrand: btw, I know you are sprinting but could you look at this apparmor profile change: 24 lines of diff , https://github.com/snapcore/snapd/pull/4472/files [15:08] PR #4472: cmd/snap-confine: allow snap-update-ns to poke writable holes in $SNAP [15:09] cachio: FYI: 2018-01-15 13:03:14 Cannot allocate linode:ubuntu-16.04-32: cannot perform Linode request: Post https://api.linode.com: net/http: TLS handshake timeout [15:09] cachio: 2018-01-15 13:03:14 Aborted tasks: 1165 [15:09] zyga, ups [15:10] zyga, which PR? [15:10] 4472 [15:10] I'll restart [15:10] maybe just a fluke [15:11] zyga, [15:11] zyga, when you have time could you please take a look to #4472 [15:11] PR #4472: cmd/snap-confine: allow snap-update-ns to poke writable holes in $SNAP [15:12] zyga, #4307 [15:12] PR #4307: tests: fix "job canceled" issue and improve cleanup for snaps [15:12] sorry [15:18] cachio: no https://github.com/snapcore/snapd/pull/4472 [15:18] PR #4472: cmd/snap-confine: allow snap-update-ns to poke writable holes in $SNAP [15:21] mvo: there's a new patch for apparmor in bionic version of dbus [15:21] I'll check that out [15:21] and it talks about the connection security credentials [15:21] ie. exactly what broke [15:23] diddledan: https://dashboard.snapcraft.io/snaps/opentyrian/ needs some screenshots :) [15:23] zyga: cool, thanks for investigating - do you have link? [15:24] mvo: for the patch? [15:24] mvo: it's in the bionic source package, I don't have a link [15:24] zyga: ok, what is the name of the patch? I get the package [15:24] aa-get-connection-apparmor-security-context.patch [15:24] ta [15:24] mvo: the idea is that ubuntu can use one of two ways to get security context [15:24] the old way (apaprmor label) [15:25] or the new way (generic dbus container via a mediator that introduces a new socket to dbus) [15:25] there's pently of logging there, I just want to see it somehow [15:25] zyga: aha, ok [15:27] mvo: the dbus-tests package has dbus that has verbose debugging activate [15:27] mvo: I think I don't need to build another copy, just make that active [15:27] * zyga tries [15:29] 33 [15:31] wow [15:31] I can cp a library over and my desktop explodes [15:31] interesting :) [15:32] diddledan: also, micropolis [15:33] dang, you mean I need to start playing some games?! oh the horror! [15:33] diddledan: i have taken some if you want them, I'll put them in dropbox [15:33] cool [15:34] you da king of screenies [15:34] zyga: *cough* mv is your friend [15:35] mvo: I used cp because I didn't want to remove a file belonging to the package [15:35] but anyway, I'm looking for the logs [15:43] hmm, where is the systemd unit that describes the session bus? [15:43] dbus deamon on session bus [15:44] in Xorg it used to be part of the Xsession startup [15:44] not sure where it moved in wayland [15:45] I think I'm on xorg still actually [15:45] well, dig in /etc/X11/Xsession.d/ [15:45] zyga, what are you trying to figure out? [15:45] zyga, DBUS_SESSION_BUS_ADDRESS env variable? [15:45] seb128, how the session dbus is started [15:46] seb128: how to inject DBUS_VERBOSE=1 at the right spot [15:46] seb128: I want to enable dbus_verbose calls [15:47] popey: done [15:47] thanks! [15:47] accidentally added the tyrian ones to micropolis for a second. [15:47] lulz [15:48] zyga, you need to rebuild dbus for that I think [15:49] " DBUS_VERBOSE=1 will have NO EFFECT unless your copy of D-Bus was [15:49] compiled with verbose mode enabled. This is not recommended in [15:49] production builds due to performance impact" [15:49] how developer friendly :P [15:49] wow, opentyrian is popular: 2,992 total downloads [15:49] seb128: yes I thought the same but I replaced my bianries with those from dbus-tests package [15:50] seb128: it contains a second build with that option set [15:50] ah [15:50] seb128: I think I just need to get the environment right now [15:50] zyga, what the dbus-manapage recommends to do is [15:50] DBUS_VERBOSE=1 dbus-daemon --session --print-address [15:51] then set DBUS_SESSION_BUS_ADDRESS= [15:51] ok, let's try [15:51] seb128, but will that replace the already running dbus ? [15:51] no [15:51] that creates another bus [15:51] right [15:51] but if you set the env it just makes your prog uses the new one [15:51] ah, indeed [15:52] that might be good enough to debug the snapd issue [15:52] yeah, zyga will have to restart snapd wth the var set though [15:52] yes, trying now [15:52] right [15:52] yeesh, gimp: 80,279 total downloads [15:52] ogra: hmmm, that's curious [15:52] I just need that in snap run gim [15:52] not in snapd proper [15:53] well, you want your userd to be connected to that bus [15:53] not sure if thats coming from snapd or from something else [15:53] ogra: userd is spawned by the session [15:53] that's where the bug is [15:53] (snapd-xdg-open was so much easier :P ) [15:53] zyga, right [15:54] so you need the var in the userd startup script and need to restart userd [15:54] is this the 18.04 url problem you're working on? [15:54] oh yeah [15:54] the glory of logging [15:54] all the way up to 11 [15:54] zyga, my usual hack for those type of situation otherwise "sudo mv binary binary.real" and make "binary" a shell script that export the env and call binary.real :p [15:54] thank you seb128 [15:54] yw :) [15:54] ogra: it's all temporary until that new IPC takes over ;) [15:54] kdbus :P [15:55] no, that newer one [15:55] remote var something [15:55] zyga, don't forget to make the script +x if you do that [15:56] mvo: so it seems that Debian is the weird one for the GCC arm triple [15:57] I just checked Fedora, Mageia, and SUSE, and the arm triple is the same for all three [15:57] there's nothing that specifies an override or anything [15:57] hrm [15:57] no new logs when I xdg-open with all the right bits inside [15:57] probably dbus client code in the core snap is the problem [15:57] Pharaoh_Atem: thanks for checking! sad that the triplet is so loosely defined [15:58] jdstrand: I confirmed that dbus-daemon didn't respond in any way (in a super verbose build) to an incoming activation request, I suspect it gets filtered in the kernel before we se [15:59] jdstrand: I ran "DBUS_VERBOSE=1 dbus-daemon --session --print-address" in one terminal [15:59] jdstrand: then ran "snap run --shell gimp" in another one [15:59] zyga, did you set DBUS_SESSION_BUS_ADDRESS= to the value from the one you started with verbose? [16:00] mvo: in fact, hilariously, there's a patch for Fedora python to fix armhfp detection because it has hardcoded the debian triple in its build process :/ [16:00] exported DBUS_SESSION_ADDRESS= in another one [16:00] seb128: yes [16:00] I also set DBUS_VERBOSE=1 on the client side but since it's the core snap, I suspect that is futile [16:01] mvo: I suspect that if you were to build gcc as a snap from vanilla sources, it would produce the triple used on Fedora, Mageia, and openSUSE [16:01] gcc as a snap would be great [16:01] especially with instances and tracks [16:01] zyga: don't get any ideas [16:01] :) [16:01] Pharaoh_Atem: my idea for today is to get drunk [16:02] approved [16:02] I just don't have alcohol [16:02] so I'll make tea instead [16:02] and read a book [16:02] just as good [16:02] denied :) [16:04] hrm [16:15] hmm [16:15] dbus doesn't build for me on bionic [16:15] one of the tests fails [16:15] ignore the test if it's for local testing? [16:16] yeah, I guess I have to [16:18] zyga, also, did you add DBUS_SESSION_BUS_ADDRESS= to the userd startup ? [16:18] else it will simply connect to the default session but [16:18] *bus [16:19] i doubt a simple export in a shell will apply to a systemd user session start script [16:19] ogra: userd is supposed to be started by the session [16:19] ogra: this is what the bug is about [16:20] ogra: it doens't run at all :) [16:20] zyga, userd will likely be started by a systemd user session unit [16:20] doesnt* [16:20] no, it didn't start with the session [16:20] if you dont do the export in the unit it wont have the var set [16:20] and doesn't autostart (because of the bug) anyway [16:20] it will have the var set [16:20] because it's ... started by the session [16:20] which I started [16:20] oh, its a dbus service ? [16:20] and to which I'm talking from snap run --shell gimp [16:20] yes :) [16:21] ah [16:21] I don't have a fix yet, something is still fishy [16:21] ogra: if I start it myself everything works (no bug) [16:21] it's just activation that breaks [16:21] right [16:21] something is messing up the peer credentials [16:21] I'm building without unit tests now [16:26] hello all [16:27] hello steph250 [16:28] steph250: what's up [16:29] Trying to setup my 1st snap, on raspberry, but ... === Guest69214 is now known as jero-- [16:42] Hey guys, I'm buying another dev board to deploy ubuntu snappy core but I noticed that DragonBoard 410C was discontinued on seedstudio... Does anyone has any other dev board in mind except Raspberry Pi family? [16:42] ogra: ^ [16:42] steph250: but...? [16:43] brunosfer: depends on what your goal is [16:43] brunosfer: to make software for core devices or to make core devices [16:45] brunosfer, to my knowledge we dont have any plans on later dragonboards etc ... [16:45] facing some issue with libraries, like "not found". [16:45] steph250: those libraries must be in your snap, your snap needs to contain machinery (environment variables) to find them [16:46] steph250: also mvo is exploring making some of those requirements obsolete eventually (snapcraft works around those today) [16:46] brunosfer, there are some "community images" at http://people.canonical.com/~ogra/snappy/all-snaps/daily/current/ that you could use ... but only pi2/3 and dragonboard 410c are officially supported [16:47] Not so sure, zyga. Just found some topics on the forum, for the same. Looking into that, at the moment. [16:49] ah [16:49] so the plot thickens [16:50] the snap userd binary is not started by the dbus session bus now (obviously now that I think about it) [16:50] but by systemd [16:50] so I never hit my debug builds [16:50] so now I really want to know where those generated units are [16:50] or how do I edit my systemd-stared session bus to contain information about my verbose build [16:51] mvo: ^ ideas welocme [16:51] *welcome [16:51] Trying to see the tutorials... So, starting from "snapcraft init" and ... it fails :-) [16:51] steph250: what's your environment? [16:51] where do you run snapcraft? [16:52] zyga: It's to make software for core devices. [16:52] ideally that would be ubuntu 16.04 [16:52] zyga: snapd userd is auto-started via /usr/share/dbus-1/services [16:52] zyga: once it is used [16:52] brunosfer: then don't bother, get another pi (e.g. pi3 if you had a pi2 before) [16:52] ogra: but if the DragonBoard 410C is already discontinued, doesn't make much sense to buy it... [16:52] mvo: thanks let me look at that [16:52] zyga: so maybe that is something that in bionic system took over (is that what you are saying)? [16:53] freshly installed Raspberry with Jessie [16:53] brunosfer, well, we dont have any other board like this in the supported set atm [16:53] mvo: I'm saying that systemd now starts that [16:53] i.e. arm64 based [16:53] mvo: it doesn't let the session auto start anymore [16:53] zyga: my idea is to get a new architecture for testing. I already have the whole Pi family. But I would have to make sure the board I buy supports ubuntu core to deploy the snap I'm building [16:53] it's not handled by systemd directly (AFAIR, I read about that a while ago) [16:53] (though arm64 for embedded is the worst idea anyway... you really want to run armhf on these) [16:53] brunosfer: I see, then getting a dragon is probably the "best" way because it's supported [16:54] ogra: Yeah, maybe I'll check the Artik [16:54] brunosfer: I have one but it's not a fantastic board IMO [16:54] mvo: now I wonder how to coerce systemd to talk to my session bus [16:54] zyga, ! [16:54] zyga: Yeah, I ordered one some time ago, however, never got it due to be discontinued... [16:54] mvo: I may switch to that workaround session bus [16:54] script that seb128 suggested [16:54] the dragonboard is a fantastic arm64 board :) [16:55] zyga: But I was looking to DragonBoard 410C exactly because canonical has an official image. [16:55] zyga: systemd starts a user process afaik when you login [16:55] ogra: no etherhet, no sata (with hrw voice), hardcoded ram split for gpu [16:55] zyga: so systemd --user iirc [16:55] ogra: I'd rather have 4GB RAM and ethernet [16:55] zyga: and its per user, not per session [16:55] oh? per user [16:55] mvo: I'll copy the debug shell hack and [16:55] mvo: and reboot [16:55] zyga: I thnk so, iirc there is no systemd login session support [16:56] mvo: I wanted to just redirect how snap userd is activated [16:56] mvo: I feel I don't get how that really works now [16:57] if you want to change things that are defined in the service then surely you can `systemctl edit snap-userd` or whatever the unit is called? [16:59] the usual place for system-level definitions for services is at /lib/systemd/system [17:03] diddledan: even for user session services? [17:03] diddledan: and this seems to be a generated unit from the regular dbus unit generator [17:04] * Chipaca wanders off to poke at broken things some more [17:06] looks like user-level services are at /usr/lib/systemd/user [17:06] e.g. zeitgeist [17:08] back ;-) [17:11] ah [17:11] silly me [17:14] systemct --user [17:20] hmm, I don't think systemctl --user really does what I think it does, I don't see any user session things [17:23] zyga: whatever I try with "snapcraft init" on RASPBIAN, I get "OSError: Could not locate nacl lib, searched for libsodium.so, libsodium.so.13, libsodium.so.10, libsodium.so.5, libsodium.so.4, and tweetnacl.so" [17:23] zyga: Any idea ? [17:23] steph250: raspbian? [17:23] isn't that arm6? [17:24] PI-2, yes [17:24] * kalikiana wrapping up for today [17:24] I don't think we support raspbian [17:24] Chipaca, arm6 != ARMv6 :) [17:24] (we dont support either though) [17:25] ogra: should I have said "isn't that ARMv6"? [17:25] yeh [17:25] *yeah [17:25] ogra: i mean, it's armel [17:25] we don't support armel, we support armhf [17:25] so we support the pi 2, but not with raspbian because all the binaries are icky or something [17:25] :-) [17:25] steph250: that's not supported [17:26] * Chipaca tries again to wander off to fix things [17:26] arm6 is actually ARMv3 [17:26] I guessed, yes ... [17:26] from around 1991 :) [17:26] * zyga shakes fist at dbus [17:26] I'll get to the bottom of this bug [17:26] nobody supports that anymore ... not even armel [17:26] so, no way to use SNAPS on raspberry PI2 ? [17:26] steph250, ?? [17:27] http://cdimage.ubuntu.com/ubuntu-core/xenial/daily-preinstalled/current/ [17:27] there are pi2 ubuntu-core images [17:27] steph250: note that raspberry pi 2 can run more modern software just fine, but you cannot use raspbian [17:27] http://cdimage.ubuntu.com/ubuntu-server/xenial/daily-preinstalled/current/ [17:28] and here are classic ubuntu-server images that should be able to run snaps [17:29] oh boy, my dbus logs a lot [17:29] gdm doesn't start yet tho [17:30] not good news :-( [17:31] steph250: sorry, we cannot do anything about that [17:32] no issue. any idea why it's not supported ? I mean, would it be possible ? [17:32] steph250: because raspbian uses a different ABI that is compatible with older processors [17:32] steph250: everyone else uses the newer ABI, snapd can be added to raspbian but snaps wound't work on some machines (pi zero) [17:33] steph250: so there's no real support for raspbian yet [17:33] this, I saw :-) [17:33] ogra: oh, awesome, I didn't know there were classic variants of ubuntu available for the pi [17:34] diddledan, only pi2 afaik [17:34] hmm [17:34] so [17:34] the debug build logs but doesn't start gdm [17:35] * zyga inspects why [17:37] sty 15 18:36:41 kaedwen dbus-daemon[1833]: [system] Activating service name='org.freedesktop.login1' requested by ':1.22' (uid=0 pid=3317 comm="/usr/sbin/gdm3 " label="unconfined") (using servicehelper) [17:37] why the space?! [17:38] probably there are args it chops off before [17:38] (and does that badly) [17:38] sty 15 18:38:13 kaedwen dbus-daemon[1833]: [system] Activating service name='org.freedesktop.systemd1' requested by ':1.26' (uid=0 pid=3404 comm="/lib/systemd/systemd-logind " label="unconfined") (using servicehelper) [17:39] (or there are args it shoudl be adding but doesnt and you have an empty var with a space) [17:39] i doubt that would make it fail though [17:40] hmm mhmmm [17:40] it's my hack with a shell script that execs the real thing [17:40] but I don't see how [17:40] this is what it does: [17:40] exec /usr/lib/dbus-1.0/debug-build/bin/dbus-daemon "$@" [17:41] if $@ is empty then it'll send a string as the first argument with no content [17:41] yeah [17:41] ie. empty string, not "no argument" [17:41] oooh? [17:41] shit [17:41] shoud I use "$*" instead? [17:42] I thought "$@" what the "right" way to do things [17:44] when $@ has nothing inside it, then "$@" will evaluate to "" which in bash will evaluate to an argument of zero length [17:44] that is it WILL be an argument [17:44] man [17:44] bash sucks [17:44] shell sucks [17:44] thank you for teaching me [17:45] so if you did `foo ""` then $1 in foo will exist, but be empty. it isn't the same as `foo` where $1 will not exist [17:46] sure [17:46] this is why it failed [17:46] bit silly really, you're right [17:47] it's a legacy thing I guess [17:47] "why does it do this thing?" .. "because it always did the thing" .. "should we change it to make sense?" .. "no, because that's how it is done" [17:48] diddledan: yes, that's true :) [17:48] I guess sometimes legacy can bite :-p [17:51] 2251 "aliens to humans: why is $@ expaning to an empty string" [17:51] ... [17:51] * zyga wishes for FCKSH [17:52] fricking sensible shell [17:52] lol [17:52] the "sh" is silent, and the "fck" is said like the popular swear [17:53] "I'm having trouble will my bash script" .. "just fck it, instead" [17:53] hahaha [17:57] PR snapcraft#1872 closed: adding option to decompress tar.lzma cleanly [17:58] diddledan: no, that's wrong - "$@" has magic behaviour and does not expand to a single empty argument in the case of zero arguments [17:58] ok, my hack boots now [17:59] cjwatson: ah, so maybe my memory wasn't broken [17:59] still, my ssystem is trying to start gdm, failing [17:59] zyga: maybe the problem is at the next layer up [17:59] cjwatson: it's speed, dbus is so slow now that things time out :-( [18:00] chapter and verse from bash(1): [18:00] When there are no positional parameters, "$@" and $@ expand to [18:00] nothing (i.e., they are removed). [18:00] well that's even more weird legacy then :-p [18:00] so I _was_ right to use "$@" [18:00] at least I wasn't crazy that I thought it is special somehow [18:00] yes, it is the right thing in that sort of wrapper [18:01] hmm [18:01] "if a variable is empty, does it leave a string?" .. "yes. except when it doesn't" [18:01] "$@" is the single exception [18:02] ok [18:02] so I have a hack workaround :) [18:02] I booted gdm without debug [18:02] now I can switch on debugging for the session where I log in [18:02] woot [18:02] \o/ [18:03] and I'm logged in [18:03] woooot [18:03] ok, let's reproduce the bug now [18:03] now to actually do the debug [18:03] "my debug didn't work." .. "did you debug your debug?" [18:03] kyrofa: fyi, just landed https://docs.snapcraft.io/build-snaps/syntax [18:05] mm [18:05] sty 15 19:04:56 kaedwen systemd-journald[273]: Forwarding to syslog missed 817 messages. [18:05] how can I make journal not do that and instead give me the real thing [18:06] davidcalle: for the `version` docs you need to point out that a numeric-only value is incorrect UNLESS it is wrapped in quotes [18:06] zyga: the kernel should only be mediating the unix socket. it won't get in the way of dbus rules because it isn't looking at them. if activation isn't sorking, it must be in dbus-daemon [18:06] i.e. `version: 1.0` is illegal [18:07] jdstrand: yes, I think it's the new dbus + the ubuntu-only patch that broke it [18:07] `version: '1.0'` is correct [18:08] zyga: journald also shouldn't be missing messages, it is the messages going to syslog that it may be dropping (aiui). I suggest journalctl --follow | grep DEN on newer release [18:08] I see too much getting dropped in /var/log/syslog :\ [18:08] jdstrand: http://paste.ubuntu.com/26393153/ [18:08] this is the full-so-far log from when I try to use xdg-open [18:09] davidcalle: `assumes` says that it takes a list but doesn't tell where to find the valid values for that list. [18:09] * zyga tries to get a better log [18:09] zyga: I suspect the lack of peer_label in the log is a clue [18:10] zyga: note that dbus is the thing logging [18:11] https://paste.ubuntu.com/26393163/ [18:11] this is a better one [18:11] if I were looking at this, I would take a look at those entries in the log [18:11] thanks, I'll look now [18:11] I can build and iterate on this now [18:12] sty 15 19:10:15 kaedwen dbus-daemon[2413]: 2413: 0x7f86619c78c0: 1516039815.743271 [bus/activation.c(1803):bus_activation_activate_service] activation not authorized: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.74" (uid=1000 pid=4280 comm="dbus-send --print-reply --session --dest=io.snapcr" label="snap.gimp.gimp (enforce)") interface="io. [18:14] I don't *know* that the null is meaningful. I do know that the lack of peer_label is definitely wrong [18:14] since the rule specifies a peer label, if dbus-daemon doesn't find it correctly, that would suggest why it might not match [18:14] zyga ^ [18:18] jdstrand: yes [18:18] jdstrand: this also matches mvo's experiments where removing peer label requirement "fixed it" [18:18] * jdstrand nods [18:18] removing it would mean match any peer [18:19] jdstrand: yep [18:19] next up, dive into dbus [18:19] but first [18:19] does anyone know Jeremy Bicha [18:20] he made the last upload with the new apparmor patch [18:20] zyga: he participates on the desktop. see #ubuntu-desktop [18:21] zyga: while Tyler is quite busy with sprint and kernel updates, he did a bunch of the dbus work (he upstreamed it), so he could be a resource (perhaps next week?) [18:22] jdstrand: thank you! that's a nice idea [18:23] jdstrand: hmm :) [18:23] From: Tyler Hicks [18:23] the patch is from tyler [18:23] I should have spotted that a long time ago [18:23] my bet is that that patch doesn't work [18:23] or isn't applied (I'll check but I'd be suprirsed) [18:23] so maybe getly ask tyler if it works on his bionic :) [18:23] I'll get something to drink and get back to digging [18:24] possible. also possible is libapparmor change. I'm just guessing at this point since I haven't looked at any of this [18:24] diddledan: thanks for the feedback, it's mostly a layout update, content fixes on their way [18:24] jdstrand: I'll look at changelogs [18:24] iirc, the patch doesn't have to do with peer labeling, but closing a hole wrt dbus snooping [18:25] I guess I could pull down the package... [18:25] hmm, are you sure? [18:25] Allows the AppArmor label that is attached to a D-Bus connection to be [18:25] queried using the unique connection name. [18:25] that's the patch description ^ [18:25] I also added it to the forum [18:25] oh, well, that certainly seems on point. maybe it doesn't need to be applied or needs to be applied differently [18:26] jdstrand: no worries, I'm just broadcasting my progress [18:26] jdstrand: I'll look at what's going on there, I never touched dbus guts before [18:26] but first, something to drink [18:28] zyga: I'm betting something changed with how it determines the label of a non-activated service [18:28] (since it isn't running yet) [18:28] anyhoo [18:28] zyga: good luck! :) [18:28] mmm, good idea [18:29] thanks, just looking at call graph [18:51] ok, back [18:51] shower should help to attack this problem :) [19:11] so I see where the peer label is set [19:11] I'll debug there [19:11] seems like the only place that can go wrong [19:11] (or that this code is now unused due to other changes0 [19:46] zyga, there? [19:47] zyga, in file cmd/snap-mgmt/snap-mgmt-sh-in, "@SNAP_MOUNT_DIR@" is /snap for fedora [19:48] zyga, sorry, for opensuse [19:48] zyga, is it ok, right? [19:49] Hello Snappers! I'm a KDE developer working on Discover, our softwar center, and I'm trying to improve Snap support. I'm hoping someone can help me debug an issue on my test system [19:49] When I try to install a snap, I get an error on the console: [19:49] (process:1984): Snapd-CRITICAL **: snapd_client_install_stream_finish: assertion 'request->request_type == SNAPD_REQUEST_INSTALL_STREAM' failed [19:49] the distro is KDE Neon, which is based on Ubuntu 16.04 [19:53] @Riddell! Do you know if Snap is expected to work in KDE Neon? [19:53] NateGraham: well yes but it gets precious little testing so thanks for looking at it [19:53] NateGraham: do you have snapd installed and kde-frameworks snap installed? [19:56] let me see [19:58] I definitely have snapd installed; what's the package name for the framework though? [19:59] cachio: yes [19:59] cachio: yes, it's /snap for opensuse [19:59] NateGraham: hello! [20:00] zyga, tx [20:00] Hello [20:00] NateGraham: do you know what happens under the hood there? what kind of request flies to snapd? [20:00] I [20:00] I haven't a clue; I'm new to Snap [20:00] I'm a snapd developer though you probably want to talk to Chipaca about that particular problem [20:00] NateGraham: which API are you using to talk to snapd? [20:01] if you'd like, I can try to focus on a CLI test case so we can nail it down [20:01] NateGraham: that's okay, eventually all APIs talk to snapd over a socket, there's one real API internally [20:01] NateGraham: though for gnome-software there's extra work on authentication [20:02] NateGraham: and there's some polkit around that as well, but I think transparently and internally in snapd [20:02] we're using snapd-glib [20:02] NateGraham: that's great [20:02] it talks to the socket under the hood so you should be good [20:03] NateGraham: kde-frameworks-5 snap needs to be installed before any Neon snaps will work [20:03] Riddell: snapd doesn't yet handle that AFAIK but this functionality is coming via the default provider work that mvo is doing [20:04] zyga: right, that's why it needs to be installed first [20:04] (so eventually this fact will be handled internally) [20:04] which should be the case with a KDE neon install [20:04] right [20:04] RIddell: are you sure that's the package name? [20:04] NateGraham: you can manually try if it works "snap install kde-frameworks-5" [20:04] NateGraham: yep, I have.. [20:04] Name Version Rev Developer Notes [20:04] core 3748 canonical broken [20:04] kde-frameworks-5 13 kde broken [20:04] broken? [20:05] that looks bad [20:05] hmm [20:05] oh oh course, this is a snap package, not an apt package, pardon my ignorance [20:05] it is indeed already installed [20:05] NateGraham: I'm worried by those broken notes [20:06] that's on Riddell's system, not mine :) [20:06] though of course mine may be broken, too [20:06] NateGraham: can you pastebin logs from snapd.service please? [20:06] I was fiddling around with them earlier to fix my plasma screenshots which I guess broke them [20:06] ah [20:07] so they are not generally broken [20:07] having broken core is definitely a problem for installing snaps [20:07] so if you can get that in order you may have more luck [20:07] I mounted the snaps manually and I guess it didn't like that [20:07] https://pastebin.com/a9X5kjBC [20:07] unmounted rather [20:07] otherwise I'm happy to help but I was on my way out already, maybe Chipaca is still up (though also past EOD today) [20:08] Riddell: if you mount it does snap list show it as non-broken? [20:08] zyga: I don't know how to mount them again [20:08] I am destroyer of snapd [20:08] Riddell: just start the systemd mount unit [20:09] (for that particular snap and revision) [20:23] zyga: well a reboot started my issue, but I still can't get my snaps to work [20:25] oh hoorah found one which does run, falkon [20:25] but mm plasma-discover integration not happy [20:25] NateGraham: so aye maybe snaps not in a great shape just now I'm afraid :( [20:25] NateGraham: at least in kde neon dev unstable that I have plasma discover just loads forever when I search for say falkon and doesn't list the snaps [20:26] * Riddell out [20:26] do you have the snap backend installed? [20:26] compiled from git master, that part works for me, at least [20:32] zyga, thanks for the work on debugging that dbus issue, let me know if we can help [20:45] seb128: I took a break to spend time with family but I think I have a clue to follow now, just need to try a few extra prints [20:46] zyga, that commit seems new in the updated version, https://cgit.freedesktop.org/dbus/dbus/commit/?h=dbus-1.12&id=dc25979eb [20:46] from the description might have to do with the topic? [20:46] "If the .service file contains AssumedAppArmorLabel=/foo/bar then we will do the AppArmor query on the assumption that the recipient AppArmor label will be as stated. Otherwise, we will do a query with an unspecified label, which means that AppArmor rules that do specify a peer label will never match it." [20:46] yes, looks new and interestingly contains [20:46] + if (dst_con != NULL) [20:46] + { [20:46] + dst_label = dst_con->label; [20:46] so ... maybe :) [20:46] jdstrand, ^ [20:47] I will definitely try that (but watching new startrek with wife now :) [20:47] bbl :) [20:47] zyga, enjoy! [20:48] cleanbuild with snapcraft tip or near tip is failing for me [20:48] error: open /var/lib/snapd/hostfs/home/mwhudson/snap/lxd/common/snapcraft2c0cyxw6/core_3748.assert: no such file or directory [20:48] (building a classic snap, if that matters) [21:06] I wasn't here, but I am here now. Can I still help? [21:07] if no reply in a minute, I shall take the dog for a walk. [21:07] ok two minutes === apw_ is now known as apw [21:59] cleanbuild with snapcraft tip *built as a snap* is failing for me [22:17] mwhudson: hey [22:18] mwhudson: do you think you would have some time to update snapd in debian? [22:18] mwhudson: it seems people still have issues with apparmor there [22:27] zyga: there is a new one in sid [22:27] zyga: would be interesting to know if it works at all :-) [22:39] mwhudson: thank you for letting me know, I will try it and reply to the people on the forum [22:39] hmm why can i not install the new snapd in this vm [22:41] * zyga pulls in 200MB of sid updates [22:42] uh no really why [22:42] what's wrong? [22:42] 2.30-3 is in the pool but not the indices [22:42] that's ... odd [22:43] oh wait [22:43] some migration script didn't publish it? [22:43] no only the dsc is in the pool, the debs are not [22:43] maybe i'm about to learn something about debian [22:43] ah yeah look https://buildd.debian.org/status/package.php?p=snapd <- uploaded, not installed [22:44] mips -- build attempted [22:44] yea but they've never built [22:44] mwhudson: do we have more arch blacklisting to do? [22:45] and i didn't think failed builds prevented publication to unstable [22:52] mwhudson: so is it just pending publishing or do you need to do another upload with some arches disabled? [22:59] curious, I updated apt and then apt found way more updates [23:00] meh, time to sleep [23:00] ttyl [23:03] zyga: i don't know