[00:05] PR snapcraft#3781 opened: extensions: refactor === mwhudson_ is now known as mwhudson [05:24] morning [05:51] mborzecki: hi! [05:57] hey [07:54] jamesh: hi! I'm trying to build a Gtk test app in Go (on Focal), but it looks like I'm not passing the build tags in the right way: [07:54] $ go build -tags "glib_2_66" -o /tmp/test ./cmd/cerberus-ui-prompt/ [07:54] # github.com/gotk3/gotk3/glib [07:54] ../../gotk3/gotk3/glib/gbinding_since_2_68.go:14:9: could not determine kind of name for C.g_binding_dup_source [07:54] ../../gotk3/gotk3/glib/gbinding_since_2_68.go:23:9: could not determine kind of name for C.g_binding_dup_target [07:55] reference: https://github.com/gotk3/gotk3/issues/838 [07:55] jamesh: do you know what I'm doing wrong? [07:57] mardy: there's no mention of glib_2_66 in https://github.com/gotk3/gotk3/blob/master/glib/gbinding_since_2_68.go [07:57] what if you use "-tags glib_deprecated"? [08:00] mardy: it looks like that change happened after the last tagged revision: https://github.com/gotk3/gotk3/commit/4339d2baed7e8f86e2c34b7ffc3e86747da70c90 [08:00] so you could also specify v0.6.1 in your go.mod file [08:11] mardy: for what it is worth, Go seemed kind of terrible for doing GUIs last time I tried. [08:44] jamesh: thanks, using the tag "glib_deprecated" brings me a bit further :-) This is just a quick PoC, for me to verify and demo a few things [08:50] mardy: that's the apparmor prompting code from zyga? [09:09] mardy: did the idea of using the xdg-desktop-portal backend not work out? [09:37] I, for one, would welcome our flutter overlords now [09:37] flutter is so nice [09:37] hey everyone :) [09:46] PR snapd#11780 closed: overlord/hookstate/ctlcmd: add 'snapctl model' command (3/3) [11:21] jamesh: it works, but the D-Bus API of the Access dialog backend is a bit limited. We'd like to have things like separators, frames and maybe more text fields [11:22] mardy: are you still going to be asking questions a user could realistically be expected to answer then? [11:23] jamesh: that's the goal [11:42] PR snapd#11853 opened: daemon,systemd: support for journal namespaces when retrieving snap logs (6/n) [11:52] PR snapd#11854 opened: interfaces/builtin: add more permissions for steam-support [13:35] any thoughts on my post from yesterday about the 65MB storage device showing up in nautilus which seems like it's for one of the previous version core20 snaps installed on my machine? [13:39] leftyfb: I've seen this countless times when snaps refrehs, seems to be a race around loopback devices, I would advise you to see which loopback devices are in the system and cross-check that to snap revisions - it's possible there's a device that has no (more) matching snap [13:44] zyga[m]: yeah, I see loop5 as being the culprit. Should I just deregister that loopback device? [13:45] perhaps look at logs with that device as the key [13:45] maybe someone will finally grok the problem [13:45] we had several ideas but they all went nowhere [13:45] systemd version is also useful [13:45] systemd is 249.11-0ubuntu3.1 [13:45] someone should change freenode link to libera, on the status page :) https://status.snapcraft.io/ [13:47] leftyfb: perhaps collect this and the logs, it's still mostly unlikely anyone has the focus to fix that now [13:47] zyga[m]: this is all I have in my journal logs the past week https://pastebin.ubuntu.com/p/gpzwt4JdDb/ [13:48] I think that was just me messing with the mount [13:49] leftyfb: I would suggest at looking at the log to see when the loopback device (the specific number) is first mounted and anything related around that [13:49] still, I don't know - something is racy, but what? [13:50] zyga[m]: I just went back 21 days (my uptime) nothing else in the journal logs containing "loop5" [13:50] then it's still a mystery [13:50] for me it happened when my system was particularly bogged down [13:51] on a more idle system it never happened [13:52] any problem with me just removing the loopback? [13:52] with: sudo losetup -d /dev/loop5 [13:54] I would have done it already, but not sure if it's helpful to keep a reproduction of the issue for you to help troubleshoot. But it sounds like it's low priority and nobody has the time at the moment anyway [13:55] I don't have time to trouble-shoot the issue now, [13:55] I think it's okay to remove iff it's not mounted anywhere and it's not really a snap revision that's listed anywhere [13:56] I would leave it as is unless you are very bothered by it [13:57] it's annoying but I'm mostly curious. Also maybe confirming a temporary "workaround" if a bug gets filed [13:58] zyga[m]: is there a bug already? If not, is it worth it for me to file one? [13:58] I think there is, it was first reported years ago [13:58] I spent a lot of time chasing this [13:58] But I don't have a reference handy [13:59] I'm not involved in snapd on a daily basis [14:06] PR snapcraft#3782 opened: Feat/sigint [14:26] PR snapcraft#3778 closed: extensions: Add environment variables for runtime [14:56] PR snapcraft#3773 closed: extensions: Add paths for Gtk3 modules [14:56] PR snapcraft#3781 closed: extensions: refactor [15:47] zyga[m]: losetup didn't remove the loopback device. Rebooting removed it of course [16:36] leftyfb: interesting, what was the name of the snap that ws attached there again? [16:37] core20 [16:37] /var/lib/snapd/snaps/core20_1434.snap (deleted) on /media/leftyfb/disk type squashfs (ro,nosuid,nodev,relatime,errors=continue,uhelper=udisks2) [16:42] HA [16:42] I think I know what happens then [16:42] I had a hunch - it had to be a base snap leaking [16:42] and indeed it was [16:42] thanks [16:44] zyga[m]: sweet, so I was able to provide some info to help with fixing the overall issue? [16:44] yes but I won't have time to look at it [16:44] but perhaps someone from the snapd team (disclaimer: I left almost two years ago) might? [16:45] ogra: ? [16:45] perhaps bboozzoo can think of something [16:46] ogra is not touching that part AFAIK and it's a bit tricky on first contact [16:46] or mardy ? [18:19] hey there, we've recently been seeing "cannot refresh "lxd": snap "lxd" has running apps (lxc), pids: XYZ". What's the way to disable this particular check to get the "old" behavior back? [18:20] For LXD, the service handles being restarted just fine and for the CLI client, it's not a problem at all if it remains running during a refresh. LXD has logic to then internally wait up to 5min for all clients to be done with what they're doing, send notifications and then process with the daemon restart anyway. [18:21] this change of behavior from snapd now allows an unpriv user on a system to prevent a lxd refresh which is a security issue [18:21] (as even users that aren't part of the "lxd" group can effectively hold a refresh) [19:23] stgraber: I don't remember if there's a check you can opt into, the stack was using systemd scope to keep track of living pids that belong to an app [19:23] stgraber: perhaps discuss with pedroinis for ideas on how to make exceptions [19:24] stgraber: non-daemon apps were in the holding set, perhaps there's a CLI tool that is not a daemon but is long-enough-lived? [19:24] yeah, looking at the snapd code, I see it skipping daemons but I don't see any logic to skip non-daemon [19:24] I'll file a security issue against snapd and see what folks say [19:29] it's by design [19:30] there's an upper limit after which the refresh continues [19:30] it's on the order of a week or two (last time I worked on this was in 2020 so ... it may have changed) [19:30] right but that limit appears to be days, not minutes [19:30] after that time the refresh is carried out no matter what [19:30] yes [19:30] it was aimed as "I'm not restarting my browser" [19:30] for us, this new behavior can hold an entire cluster, preventing all API interactions for days [19:30] *at [19:30] indeed [19:30] do you know which process is the holdout? [19:31] right, I wrote that in the security bug, it's fine for firefox, makes sense :) [19:31] in our case, it was a random long-running "lxc exec' or "lxc monitor" [19:31] I see [19:31] perhaps snap run --no-track might be something like on the right track [19:31] those can run for days/weeks but are expected to be terminated by LXD when it handles an upgrade [19:31] with a flag to excempt an app from tracking [19:32] per app [19:32] or an API, hard to say what is right [19:32] btw, I think lxd CI would benefit from testing snapd experimental features [19:32] this was around for literally years [19:32] not blaming anyone (my participation is small) but I think it's surprising this came out this late [19:37] https://bugs.launchpad.net/snapd/+bug/1978005 [19:37] Bug #1978005: Snap application prevents daemon refresh [19:38] I've heard of the feature being developed for a while (the whole desktop refresh notification) but apparently wrongly assumed that it would be opt-in [19:38] and not forced on everyone without even a way to opt-out of it [19:39] I see, I think there was a missing comms link then [19:41] * zyga[m] clones snapd [19:42] I see a function being passed that's called to determine if a given application will hold refresh or not but it's currently only used to let daemons through [19:43] looks like plumbing that to a new field in app YAML shouldn't be particularly difficult [19:43] yes, I think this is simple to patch, apart from design on what the right thing is [19:43] yes [19:43] I will do that in a moment [19:43] I wish I could see people's faces when they see a PR from me :P [19:43] snapd has a lot of history... [19:45] stgraber: I must say I'm happy to see this discussion here, where I can casually notice it, instead of happening on mattermost [19:46] yeah, not sure why people use MM for what should be public discussions [19:46] but then we have the problem of not having mvo or pedronis online on here after work hours [19:47] I think they may be a bit overworked, also not that much is happening on irc anymore :/ [19:48] (though with matrix, it's a silly excuse not to have a client connected) [19:48] (still cloning) [20:05] * zyga[m] pokes snapd a little [20:20] stgraber: running regression test now [20:22] cool! [20:31] I think CI is not in a happy place [20:31] quiet: eatmydata apt-get install --no-install-recommends -y python3 autoconf automake autotools-dev build-essential ca-certificates clang curl devscripts expect gdb gdebi-core git indent jq apparmor-utils libapparmor-dev libglib2.0-dev libseccomp-dev libudev-dev man mtools netcat-openbsd pkg-config python3-docutils udev... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/e3bc4b738917f0e38ae4c0fc3fbfa1e8b985de3f) [20:32] let me try a draft PR perhaps? [20:41] https://github.com/snapcore/snapd/pull/11855 [20:41] PR #11855: Do not track apps that wish to stay outside of the life-cycle system [20:44] PR snapd#11855 opened: Do not track apps that wish to stay outside of the life-cycle system [21:00] CI is in a happier spot, I will know if my patch works soon [21:06] stgraber: the fix seems to work [21:06] zyga[m]: nice! [21:06] I will extend the regression test to make sure it's not a fluke, to test both ways [21:18] stgraber: force-pushed with both scenarios tested [23:32] PR snapcraft#3779 closed: meta: handle version git [23:52] PR snapcraft#3783 opened: pack: display snap filename