/srv/irclogs.ubuntu.com/2019/08/07/#snappy.txt

mupBug #1839230 opened: duplicate login message on raspberry pi core18 image <core18> <Snappy:New> <https://launchpad.net/bugs/1839230>00:15
mborzeckimorning05:24
mupPR snapd#7186 closed: gadget: ensure filesystem labels are unique <Gadget update> <Simple 😃> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/7186>05:34
=== pstolowski|afk is now known as pstolowski
pstolowskimornings07:07
mborzeckipstolowski: hey07:32
mborzeckiwow, tmux died07:32
mborzeckias in segfauled and all07:32
zygagood morning07:36
* zyga is curing his sleep deficit by falling asleep at random times :/07:36
zygahow are you doing guys?07:36
zygasil2100: hello07:44
zygasil2100: do you think we can ship bash-completion on core18?07:44
zygasil2100: this is reported as https://bugs.launchpad.net/snappy/+bug/182525407:44
mborzeckizyga: hey07:44
mupBug #1825254: auto-complete doesn't work on ubuntu core 18 <core18> <Snappy:Confirmed> <https://launchpad.net/bugs/1825254>07:44
mborzeckizyga: tried to investigate the http2 PROTOCOL_ERROR we see randomly, but there's quite a number of places in net/http that generate an error matching the log07:45
mborzeckizyga: left a topic though https://forum.snapcraft.io/t/snap-download-failures-with-protocol-error/1267707:45
mborzeckizyga: fwiw, nothign significant in curl output, also a minial http request in tried in go did not raise anytying suspicious07:46
zygamborzecki: thank you07:47
zygamborzecki: I wonder if it could be a go thing?07:47
zygabut we didn't change anything on our end, did we?07:47
zygano now go compiler rev?07:47
mborzeckizyga: hm maybe, i can try with older version of go, 16.04 uses 1.10?07:48
zygamborzecki: I don't remember, just wonder if it's a bug in go in general and we're hitting it along with others now07:48
zygamborzecki: the alternative is that it is a bug in our web side07:48
zygamborzecki: but again, I don't have any data to sway either side07:48
zygasil2100: on the same vein, is https://mail.google.com/mail/u/1/ something we can fix?07:49
zygasil2100: seems like a pair of tweaks to core1807:49
zygaer :)07:50
zygahttps://bugs.launchpad.net/snappy/+bug/1839230 :)07:50
mupBug #1839230: duplicate login message on raspberry pi core18 image <core18> <Snappy:New> <https://launchpad.net/bugs/1839230>07:50
zygasilly copy paste07:50
mborzeckizyga: no change with 1.10, wish there was a way to dump the http request/response headers in go in a reliable way07:52
zygamborzecki: would using pcap help?07:52
zygaor are those all ssl?07:52
mborzeckizyga: uses tls07:52
mborzeckizyga: about that reddit thread: https://www.reddit.com/r/linux/comments/cmse4r/interview_why_canonical_views_the_snap_ecosystem/ the comemnts are pretty depressing07:56
zygayeah, internet is as it was07:56
zygaI think it's important to have our own voice07:56
zygaI hope that degville martin and alan can come up with the daily snap podcast or something like that07:57
zygaI think a good fraction of those comments are just misinformed07:57
mborzeckialso funny how some particular users seem to be repeat the same thing over and over again under a number of submissions07:58
mborzeckii mean, i understand how one can not like something, but tbh it seems as if some poeple have plenty of free time ;)07:59
zygakenvandine: hey, do you know about this issue where the mouse cursor changes appearance inside some snap applications? do you know how this part of the stack works?07:59
zygakenvandine: there are some bug reports about it08:00
zygaone I found just now is: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/157926808:00
mupBug #1579268: Mouse cursor is different inside graphical windows of snaps (snaps not using system theme) <Snappy:New> <snapd (Ubuntu):Triaged> <https://launchpad.net/bugs/1579268>08:00
mborzeckizyga: iirc electron was a suspect there last time08:00
zygamborzecki: yeah but electron inside snaps08:00
zygamborzecki: we could call the podcast "responding to internet trolls" ;)08:01
zygaI wish there was one click toggle for dark mode / light mode08:11
zygaterminal profile, browser profile, terminal window color, etc08:12
zygait's annoying to have to do this little by little by hand08:12
mupPR snapd#7218 opened: tests: measure behavior of the device cgroup <Created by zyga> <https://github.com/snapcore/snapd/pull/7218>08:13
zygaI'm pushing a PR with the tests that show the bug from Friday08:13
zygahttps://github.com/snapcore/snapd/pull/721808:13
mupPR #7218: tests: measure behavior of the device cgroup <Created by zyga> <https://github.com/snapcore/snapd/pull/7218>08:13
zygaworking on the fix, I gave it some thought and while the 1st part of the fix is indeed very easy08:13
zygathe second part is hard08:13
zygathe first part is when you "snap connect" the cgroup is confining08:13
zygathe hard part is when you snap disconnect the last interface affecting udev08:14
zygayou really need to switch the cgroup to unconfined08:14
zygabut that's not easy in our model08:14
zygait's also related to udev08:14
zygaso we really need a the equivalent of snap-update-ns for cgroups08:14
zygaand that's not trivial08:14
sil2100zyga: ah, yes, should be a easy fix! Let me note that down08:21
zygasil2100: thank you!08:29
mborzeckipulled https://github.com/snapcore/snapd/pull/7166 and the unit tests fail consistently, will investigate more at the airport09:00
mupPR #7166: client: add doTimeout to http.Client{Timeout} <Created by mvo5> <https://github.com/snapcore/snapd/pull/7166>09:00
* zyga works on fixing https://bugs.launchpad.net/snapd/+bug/183893709:01
mupBug #1838937: device cgroup enforcement is partially ineffective for snap services <snapd:In Progress by zyga> <https://launchpad.net/bugs/1838937>09:01
zygamborzecki: thank you!09:01
mborzeckipstolowski: https://github.com/snapcore/snapd/pull/7209#issuecomment-51900987809:03
mupPR #7209: firstboot: queue service commands before mark-seeded <Created by stolowski> <https://github.com/snapcore/snapd/pull/7209>09:03
pstolowskimborzecki: hmm, interesting, ty09:04
mborzeckiok, wrapping it up and heading to the airport in a bit and the off to Flock09:07
* zyga designs snap-update-cgroup09:10
zygait's actually good09:10
zygabecause that's the only part that needs to talk to udev09:10
* zyga thinks about getting breakfast first09:10
pstolowskiondra: ping09:24
zygathe easy half is fixed09:28
zyganow thinking about the "hard" half09:28
zygaI think I cannot avoid snap-update-ns for cgroups :/09:29
zygaI wrote https://forum.snapcraft.io/t/the-need-for-snap-update-device-cgroup/1267910:09
zygait's a bit hard to follow, I will rewrite that for clarity10:09
zygabut I think it is unavoidable10:09
zygapstolowski, ondra: ^10:11
zygaideas welcome10:11
AavarHi! I am having a problem with launching graphical snaps in ubuntu 19.04. Can you help me? https://paste.ubuntu.com/p/2RnQWq3b8Q/10:13
zygaAavar: hey, can you run "snap version" please?10:15
pstolowskizyga: ack10:15
Aavarzyga, https://paste.ubuntu.com/p/2tkZnVB3pg/10:15
zygaAavar: are you running wayland?10:16
zyganote that snap-store should not be launched as root10:16
Aavarzyga, No, x1110:16
zygaAavar: can you run "snap connections inkscape"10:16
Aavarzyga, https://paste.ubuntu.com/p/2DRKFM6qcY/10:18
Aavar(note that I am running Unity7, byt I had the exact same issue when running xfce)10:18
zygado you get any apparmor denials? those can be checked by running "dmesg | grep DENIED"10:19
zyga(it will take me 10 minutes to download inscape on my connection)10:19
Aavarzyga, yes i do. https://paste.ubuntu.com/p/mzDHfTfg5K/10:20
Aavarzyga, inkscape was just an exaple. I get similar errors on all apps with a gui.10:20
* zyga tries to open the link but struggles 10:26
zygaok, I see it now10:27
zygaconfinement rejects unix sockets10:27
zygahmm10:27
* zyga checks10:27
Aavarzyga, is it better if I paste to pastebin instead?10:28
zygaAavar: can you run "snap connections --all inkscape"10:28
zygano, it's just my network, I'm sorry about that10:29
Aavarok :)10:29
Aavarzyga, "error: cannot use --all with snap name"10:29
Aavarzyga, https://paste.ubuntu.com/p/3fQgngzpvd/10:31
zygad'oh :/10:31
kenvandinezyga: cursor themes are just icon themes.  So just more icon themes to add gtk-common-themes10:32
zygaAavar: hmmm,10:32
zygakenvandine: hey10:32
zygakenvandine: can you try to look at the behavior Aavar is reporting, graphical apps don't work, it seems they cannot talk to x1110:33
zygakenvandine: one example is inkscape10:33
zygaAavar: 5 minutes to inkscape10:33
Aavarzyga, :)10:34
zyga5 minutes till I pull the snap10:34
zygaI have very slow network this week10:34
Aavarzyga, I understand :)10:35
kenvandineConnections look fine10:36
kenvandineNot sure what's up there10:36
kenvandineunity7 gives access to x1110:37
kenvandineI think10:37
kenvandineI can't look more now, time to get my son off to school10:37
kenvandineBut when I get to work I can10:37
zygathank you!10:38
zygaAavar: installed10:38
zygastarted fine, apart from fractional scaling10:38
Aavarkenvandine, thank you. I could just reinstall ubuntu, but it would be great to figure out what I have done to cause this :P10:39
zygaAavar: I have the same connections as you did10:39
zygaAavar: when did this start to happen?10:39
Aavarzyga, I few days ago, but I didn't think much of it (just installed the app I needed via apt)10:40
zygadid any graphical snaps work for you?10:40
zygaas in before some moment when they all broke?10:40
Aavarzyga, yes, I used a few (for example inkscape) before they broke.10:41
zygacan you recall any change at the time it broke?10:41
Aavarzyga, No, thats the thing. I cant remember anything that would cause this.10:42
zygacan you look at /var/lib/snapd/apparmor/ and then at the file related to inkscape10:42
zygacan you pastebin that file (snap.inkscape.inkscape)10:42
Aavarzyga, cat /var/lib/snapd/apparmor/profiles/snap.inkscape.inkscape10:45
Aavarzyga, https://paste.ubuntu.com/p/4Zndvv5ZzX/10:45
zygayeah10:45
Aavar(ps: Is it a good idea for the purpouse of testing to stop the apparmor service?)10:47
zygano10:47
zygait's not a real service10:47
zygastopping it won't do us any good10:47
Aavarok10:47
zygagive me a moment10:47
zygaAavar: can you pastebin /etc/apparmor.d/abstractions/X10:50
Aavarzyga, yes. https://paste.ubuntu.com/p/mmMyxsz7sQ/10:51
zygain a terminal, can you echo $DISPLAY and ls /tmp/.X11-unix10:52
zygaAavar: ^10:55
Aavarzyga, echo $DISPLAY gives: :010:57
zygaok10:57
Aavarand ls /tmp/.X11-unix gives: X010:57
mupPR snapd#7219 opened: devicestate/firstboot: check for missing bases early <Needs Samuele review> <Created by stolowski> <https://github.com/snapcore/snapd/pull/7219>10:57
zygahmmm10:58
zygaso far everything looks good10:58
zygacan you run10:58
zygasudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.inkscape.inkscape10:58
zygaand then "snap run inkscape"10:58
zygabrb11:00
Aavarzyga, still the same errors: https://paste.ubuntu.com/p/F8dV2x3WHR/11:02
zygahmmm11:12
* zyga is lost11:12
zygasorry, I have no idea what might be wrong11:12
zygaI it clear it cannot talk to X but I don't see why11:12
* pstolowski lunch11:13
Aavarzyga, do you think it could help if I removed everyhing regarding X and reinstall?11:16
zygano, I don't think that would help11:16
zygaI think we need another pair of eyes to understand what is going on11:16
zygalet's check with kenvandine once he is back11:16
Aavarzyga, yes :)11:17
ondrapstolowski hi11:25
ondrapstolowski sorry I'm still in Canada this week11:25
zygaondra: hey :)11:29
ondrazyga hey11:30
* cachio afk12:00
pstolowskiondra: ah, i had no idea, sure12:03
jdstrandsergiusens (cc kyrofa): I looked into why kyrofa was getting snap USN emails for snapcraft. there are entries in the store dump for revisions for which kyrofa was the uploader. those revisions aren't published to any channel in the dump I get though12:13
jdstrandsergiusens (cc kyrofa): I'd rather not second guess why the store dumps those. would have to talk to roadmr to see (eg, 1549, 1550, 1551, 1552, 1723, 1724, 1725, 1726, 1727)12:16
jdstrandsergiusens (cc kyrofa): I could change the algorithm for detecting who to send to, but would wan't to hear from roadmr why those revisions are in the dump12:18
jdstrandwant*12:18
sergiusensjdstrand: thanks for taking a look! Will wait on what the situation is.12:20
=== ricab is now known as ricab|lunch
mupPR snapd#7220 opened: cmd/libsnap: don't leak memory in sc_die_on_error <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/7220>12:47
zyga+ snap install --dangerous /home/gopath/src/github.com/snapcore/snapd/tests/lib/snaps/test-snapd-timedate-control-consumer/test-snapd-timedate-control-consumer_1.0_all.snap12:48
zyga<kill-timeout reached>12:48
zygahmmmmm12:48
zygamaster is a sad puppy12:48
* zyga breaks12:50
=== ricab|lunch is now known as ricab
pstolowskixnox: hey13:46
kenvandinezyga Aavar: sorry, forgot i have back to back meetings all morning13:56
jdstrandroadmr: hey, can you look at https://paste.ubuntu.com/p/8m8dzfFRTz/ and get back to me whenever it is convenient?14:04
roadmrjdstrand: sure, let's see14:04
kenvandineAavar: please pastebin the output from this:14:09
kenvandinels -ltr /run/user/`id -u`/14:09
jdstrandroadmr: oh, you know what, I looked at this week's dump (where those revisions are in there with no channel), but the dump in question happened on July 3114:10
jdstrandroadmr: (if that helps)14:10
roadmrjdstrand: hmm so maybe they were published at that point in time?14:10
jdstrandroadmr: note that the USN email that went out on July 31 did not include those channel-less revisions, so I suspect they were channel-less at that time as well14:10
roadmrhm. ok, jdstrand, we're checking the logic in the dump script14:11
jdstrandroadmr: thanks. I wouldn't consider this urgent work, so, however you want to prioritize it is fine14:11
jdstrandroadmr: I thought I remembered there were some brand stores or something that might've pinned old snapcraft revisions for some internal issue that has long since been resolved...14:12
jdstrandI don't have any more details on that14:13
zygaback from a walk but I need to eat something first14:28
zygabecause not in a rush I will return in >1hour14:28
zygajdstrand: the fix works, I will give first RFC patches today14:28
zygajdstrand: it's more complex than before but also easier than I thought :)14:28
zygajdstrand: (than in our initial discussions)14:28
zygajdstrand: I think overall it's not super complex though14:29
jdstrandthat's cool14:29
zygajdstrand: more streamlined I would say :)14:29
zyganow for that lunch, I'm starving :)14:29
jdstrandI like the more deterministic aspect14:29
jdstrandzyga: note, I'm stepping away14:29
jdstrandfor a little bit14:29
zygajdstrand: that's okay14:29
zygaI'm very sleepy all day long, cannot readjust14:29
jdstrandzyga: yeah, hope you get back on track soon14:31
cachiozyga, hey, I see 2 unit tests faiing https://paste.ubuntu.com/p/Ky4pw9G38D/14:55
cachioseem to be related both fails14:55
cachiozyga, do you know if it a new thing?14:55
zygacachio: it's a thing maciej was investigating lately14:56
zygahe sent a PR to fix it14:56
cachiozyga, nice14:57
cachioI'll take a look14:57
cachiothanks14:57
zygacachio: but I don't know if that's enough, I think we have some more bugs in this area14:57
cachiozyga, ok, thanks for the info15:00
zygacachio: I his PR has landed, it was 721515:12
cachiozyga, in that case there is something wrong because the next Pr merged failed wiht the error I showed15:13
cachiothe #718615:13
mupPR #7186: gadget: ensure filesystem labels are unique <Gadget update> <Simple 😃> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/7186>15:14
zygayeah, I think it's just buggy still15:14
* cachio lunch15:34
=== pstolowski is now known as pstolowski|afk
mupPR snapd#7213 closed: cmd/snap-confine: implement snap-device-helper internally <Created by zyga> <Closed by zyga> <https://github.com/snapcore/snapd/pull/7213>16:57
* zyga takes a break17:04
* cachio afk19:09
mupPR snapd#7221 opened: tests: split the sbuild test in 2 depending on the type of build <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/7221>20:29
hellsworthkenvandine20:36
hellsworthha i ctrl+f and that doesn't work in polari apparently20:37
mupPR snapcraft#2653 closed: scriplets: run override-pull on update_pull <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2653>20:39
mupPR snapcraft#2654 closed: click: update to 7.0 <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2654>23:30
mupPR snapcraft#2656 opened: appstream: xslt support for ul nested in p <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2656>23:42
mupPR snapcraft#2657 opened: Release changelog for 3.7.2 <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2657>23:57

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