/srv/irclogs.ubuntu.com/2018/05/21/#snappy.txt

mborzeckimorning05:01
pstolowski|afkHey mborzecki05:34
pstolowski|afkzyga: hey, noted, i'll investigate reconnect issue in a bit05:35
mborzeckipstolowski|afk: hey05:36
mborzeckipstolowski|afk: something happened? you're earlier than usual :)05:37
pstolowski|afkmborzecki: im not working yet, need to go to school etc and will start as usual. just responded to zyga's issue from the weekend05:39
zygaHey05:45
zygapstolowski|afk: I can still reproduce it. I can get a coffee and try to help05:45
mborzeckizyga: hey05:45
pstolowski|afkzyga: thanks, ill be on it in ~1h. my early suspicion is something with conflict checking and retry05:47
zygaOk05:47
zygaPing me please05:48
pstolowski|afkzyga: in the meantime can you send me your stat.json?06:00
zygaSure, I saved a copy06:01
zygawoah06:04
zygathat state file is 34MB long06:05
zygano wonder it takes forever to do anything06:05
zygahow big are your state.json files?06:05
pstolowski|afkNot at my PC right now.. but a few MBs at most afair06:08
mborzeckiweren't we supposed to garbage collect entries in the state file?06:15
zygamborzecki: I think we do but not frequently enough for this06:21
kjackalHi everyone. I would like a manual review for this: https://dashboard.snapcraft.io/snaps/microk8s/revisions/45/06:34
kjackalHi, is there anyone from the snapstore online ?06:38
kjackaljdstrand , anyone the review is urgent, we need it for ODS06:53
mupPR snapd#5179 opened: daemon: fix unit tests on arch <Simple> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5179>06:55
mborzeckitrivial PR ^^06:55
=== pstolowski|afk is now known as pstolowski
pstolowskire07:02
Jack_Is there any way to snap a jar file. I searched lot, but I don't get anything to create snapcraft.yaml. please give me some examples.07:08
mborzeckizyga: are you back from vacation?07:17
zygaJack_: https://forum.snapcraft.io/t/how-can-i-snap-a-jar/330607:17
zygamborzecki: nope07:17
zygamborzecki: just not feeling very well today, it's pretty cold in spain07:17
zygamborzecki: my son is no longer sick but now I feel affected :/07:18
mborzeckizyga: well, nice & sunny here :) if my phone was less of a potato i'd snap a nice picture07:18
zygamborzecki: 14C so far07:18
pstolowskioh, my, i think this huge state file is going to kill my emacs :>07:18
mborzeckipstolowski: disable font-lock-mode or use fundamental-mode07:19
pstolowskimborzecki: thanks i'll try if I regain control ;)07:19
mborzeckipstolowski: ^G^G^G07:19
zygatry sublime :)07:20
zygathat file has 36M of bytes on one line07:20
zygamost editors die on that07:20
zyga(become unusably inefficient)07:20
pstolowskieven json_pp is struggling ;)07:24
Jack_@Zyga : I already tried this, but did not work for me, it shows unable to read jarfile. I also checked my path.07:24
zygacan you respond on the thread there?07:25
zygamany more people participate on the forum than are present on IRC07:25
Jack_I will do that...07:26
pstolowskiallright, emacs survived and loded the file, although gave up on formatting, so i've a big blob07:30
mborzeckipstolowski: have you tried passing it through jq first?07:37
pstolowskimborzecki: great idea! it actually works07:39
pstolowskiand I was too optimistic about emacs. it's unusable ;/07:40
mborzeckipstolowski: well, hard to admit but there's always vim07:49
pstolowski:D07:50
pstolowskimborzecki: jq to a txt file, then emacs worked07:50
kjackalpopey: hello are you there?07:53
pstolowskizyga: how many snaps do you have?08:04
zygaabout a dozen08:04
pstolowskizyga: on the problematic box08:04
zyga3908:05
zygawoops :)08:05
zygamore than a dozen08:05
zygaI keep snapd off because otherwise it would drain my battery08:05
pstolowskizyga: right08:05
pstolowskizyga: so, first observations base on the state file08:06
* zyga is curious08:09
pstolowskizyga: there was a core refresh, and this triggered reconnect for all existing connections. the state is full of hook tasks - 77608 of them - and the core  "reconnect" task is in "Doing" state (but it's not obvious if they are all related to this refresh; lots (all?) of them are still in default state = not started)08:11
zygawoooah08:11
zyga77K hook tasks08:11
pstolowskithe number 77608 looks insane08:11
pstolowskinot sure what happened, trying to make sense out of it08:12
zygathis is my normal development box08:12
zygaI just noticed it burns battery very quickly and fan is crazy08:12
zygapstolowski: one thing to consider is if this is in the stable release08:19
zygaor just in edge08:19
zygato asses how servere this is08:19
pstolowskizyga: reconnect changes landed a few days ago08:19
zygapstolowski: refresh to edge and see if you are affected08:27
zygahey Chipaca08:27
Chipacazyga: hi08:27
pstolowskizyga: yep, i'll, just trying to draw some more conclusions from your state08:29
zygaanyone else running edge that is affected?08:31
Chipacazyga: affected by what?08:38
zygaChipaca: 77608 hook tasks when refreshing core08:39
Chipacazyga: that's more than 308:39
zygayes, must be inflation08:39
* zyga is ill today, sucks to spend a week off in bed :/08:40
pstolowskizyga: ok, i think i found a bug, not sure if it fully explains the issue but is definately a problem; the hooks on reconnect (and autoconnect) has change=nil08:40
pstolowski*have08:41
* zyga wonders how to fix affected systems08:41
pstolowskizyga: I just refreshed to edge and this didn't happen. 2.32.9+git733.7f74160~ubuntu16.04.108:46
pstolowskii've 19 snaps08:46
pstolowskizyga: when you first noticed it did you stop/start snapd multiple times?08:51
zygapstolowski: I stop it every time it starts08:51
zygapstolowski: I aborted the change08:51
zygabut subsequent refresh does the same thing08:52
pstolowskizyga: ok. i wonder if this explains the inflation of hook tasks08:55
zygapstolowski: how many tasks would you expect?08:55
zygaI didn't restart snapd 70K time08:55
pstolowskizyga: sure. 4 hooks for every connection08:56
pstolowskiso yeah, still doesn't add up i suppose08:57
pstolowskiwould probably be a few hundreds total08:57
pstolowskidamn, i cannot trigger it.. edge -> stable -> edge worked09:00
zygapstolowski: my core is at 470609:02
zygamaybe start from there09:02
pstolowskihmm. how do i do that? --revision is reject for core apparently09:03
pstolowski*rejected09:03
zygais it?09:03
zygawhy?09:03
pstolowski$ sudo snap refresh core --edge --revision=470609:04
pstolowskierror: cannot refresh "core": Access by specifying a revision is not allowed for this Snap.09:04
zygayou need to be a developer09:04
zygaof core :/09:04
pstolowskiuh oh09:05
pstolowskizyga: is this a big no-no or can I get added to a list somewhere?09:06
zygaI think mvo can add you09:06
Chipacahe's off today09:07
Chipacasupposedly09:07
pstolowskiaha09:13
mborzeckiinteresting: https://paste.ubuntu.com/p/8HQHfqQ9SW/09:16
Chipacawat09:20
eraserpencilwhat happens if i accidentally remove /snap/current? how could I get it back?09:20
pstolowskieraserpencil: you could carefully recreate it i suppose, it's a symlink09:31
Chipacaeraserpencil: or you can disable/enable the snap09:39
eraserpencilthanks, symlink works09:45
eraserpencilCould I ask about instructions kyrofa posted in his blog? I always miss kyrofa because of timezones10:12
BlueSharkI installed Slack using snap, but it does not auto-start on startup. How to make this happen?10:13
mupPR snapd#5180 opened: tests/main/snap-service-timer: account for service timer being in the 'running' state <Simple> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5180>10:13
mborzeckitrivial PR ^^10:13
mborzeckiany suggestions where to start looking into erorrs in #5134?10:24
mupPR #5134: Shrink image generated with snap prepare <Created by kubiko> <https://github.com/snapcore/snapd/pull/5134>10:24
mupPR snapd#4600 closed: configstate: validate known core.* options <Created by mvo5> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/4600>10:51
mborzeckireview board needs a refresh10:52
mupPR snapcraft#2142 closed: Release changelog for 2.42.1 <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2142>11:15
mupPR snapd#4369 closed: interfaces/bulitin: add write permission to optical-drive <Created by diddledan> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/4369>11:18
mborzeckicachio: hi, #4416 fails in spread shellchecks11:23
mupPR #4416: tests: performance measurements for basic snapd commands <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/4416>11:23
mborzeckicachio: i can fix those and push the changes11:23
cachiomborzecki, ok11:28
cachionp11:28
mborzeckicachio: pushed shellchecks & merged master there11:33
cachiomborzecki, great, thanks a  lot11:34
* cachio afk11:53
=== pstolowski is now known as pstolowski|lunch
mborzeckioff to pick up the kids, bb for standup12:00
kjackalpopey: jdstrand: or anyone from the store, I need help!12:10
popeysup?12:10
kjackalpopey: there is a review request which is  urgent on microk8s12:11
* jdstrand is looking12:11
jdstrandkjackal: I'm going to approve it, but you need to use 'organize' or similar to remove the symlink12:12
jdstrandpackage contains external symlinks: bin/iptables-xml lint-snap-v2_external_symlinks12:12
kjackalthank you jdstrand, I am not sure if this can be removed. We need to use the file from the host for now.12:14
kjackalWe have to do a proper packaging of docker. I do not know what else are we going to find in the fiture if we do not12:14
jdstrandkjackal: r45 is approved. there are a bunch after that are not. r45 still needs to be published to a channel12:14
kjackaljdstrand: will we go through this review process on every build that has external links?12:15
jdstrandkjackal: if you want a later version to be approved, please request a manual remove12:15
kjackalthank you12:16
jdstrandkjackal: re each time> yes. but your snap is classic, just use /usr/bin/iptables-xml and don't ship the symlink12:18
jdstrandremember, with classic snap there is no mount namespace12:18
jdstrandkjackal: re docker> that shouldn't be too difficult> just grab the existing packaging, merge into yours and adjust as necessary12:21
jdstrandkjackal: please ping me if you need another revision reviewed12:23
kjackalI will thanks jdstrand12:24
=== pstolowski|lunch is now known as pstolowski
mborzeckire12:56
diddledanerror: cannot refresh "snapcraft": cannot query the store for updates: got unexpected HTTP status code 503 via POST to "https://api.snapcraft.io/v2/snaps/refresh"13:02
diddledanjust this moment13:02
diddledandid someone trip over the power cable? :-p13:03
pstolowskihttps://status.snapcraft.io/13:03
pstolowskilooks good in theory13:03
pstolowskicould be momentary hiccup13:03
diddledanstill broken for me13:04
mborzeckicachio: standup?13:04
kjackaljdstrand: hopefully last favour https://dashboard.snapcraft.io/snaps/microk8s/revisions/55/13:11
jdstrandkjackal: done13:21
jdstrandkjackal: you still need to publish it13:21
kjackalthank you jdstrand, marcoceppi will appreciate your help. Testing this now13:22
mupPR snapd#5174 closed: interfaces/default,process-control: miscellaneous signal policy fixes <Created by jdstrand> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/5174>13:23
diddledan\13:25
eraserpencilwithout using Launchpad, what are some ways I could build snaps for other architectures?13:44
popeyeraserpencil: build.snapcraft.io ?13:51
popey(which uses launchpad under the covers)13:51
popeyOr maybe travis or circleci?13:51
eraserpencilI didnt go with launchpad cause it's not opensource nor do i want it distributed13:55
popeyah okay13:57
Pharaoh_Atemat this time, there are no options13:57
Pharaoh_Atemyou can build with snapcraft on a box somewhere, though13:57
Pharaoh_Atemthat's basically what b.sc.io does13:57
popeywell, you can host private repos on launchpad.13:57
Pharaoh_Atempopey: eraserpencil said "without using Launchpad"13:58
popeyyeah, he said why13:58
popeyI'm saying he may be wrong about his reasons why13:58
Pharaoh_Atemah13:58
Pharaoh_Atembut he may not have the privilege to upload code to LP at all13:58
popeyhttps://launchpad.net/+tour/join-launchpad#commercial13:58
Pharaoh_Atemeven in a "private repo"13:58
popeyYeah, just offering optinos13:58
eraserpencilPharaoh_Atem, what box are you talking about13:58
popeyalso *options13:58
Pharaoh_Atemeraserpencil: a computer you set up somewhere13:59
Pharaoh_Atemif you use internally something like Jenkins, you can just set up runners that can run snapcraft13:59
eraserpenciloh13:59
popeythe other option is to use lxd locally14:00
Pharaoh_Atemlxd doesn't give foreign arches easily, does it?14:00
popeyyou can build i386 from amd6414:00
popeyeraserpencil: which architectures do you need?14:00
eraserpencilI was looking at lxd.. but the guys at #lxcontainers says lxd uses the host's arch14:00
eraserpencilarm6414:00
popeyyeah, arm64 is tricky14:01
eraserpencilis qemu + kvm a solution?14:01
popeythat could work, albeit slow14:01
eraserpencilunless arm64 vps...14:04
popeyyeah, i think we had some success with an arm64 vps.14:04
popeykyle has played with that, but he's not here right now.14:04
eraserpencilbtw, when i run snapcraft, i often notice it runs on one core only, how could I make it run across all cores?14:05
eraserpencilwhat do you mean some success? isnt it no success or possible?14:06
popeysnapcraft itself runs on one core, but if it spawns make, it usually uses the number of processors/cores14:06
popeyi don't know what level of success Kyle had, he'll be online soon.14:07
popeywe can ask him14:07
eraserpencilis kyle kyrofa?14:07
popeyya14:07
eraserpencilahh, i need a chat with him. I always miss him because of timezones14:07
eraserpencilcould you elaborate on spawning make14:08
popeyso if your application uses "make" to build, then snapcraft will spawn it with multiple cores14:08
eraserpencillike plugin: make?14:09
popeyya14:09
eraserpencilokay. Thanks alot14:11
popeynp14:13
* ogra_ wonders what eraserpencil means by "not opensource" ... LP surely is opensource since 9 years ... http://blog.launchpad.net/general/launchpad-is-now-open-source15:00
eraserpencilogra_: to use launchpad non-private, the code has to be open-source..which mine isnt15:03
ogra_ah *your* code is not opensource ... now i get it15:03
zygare15:08
zygapstolowski: hey, any updates?15:08
pstolowskizyga: i've found one unrelated non-critical bug. all the problematic tasks have nil change id, i looked at the changes in this code  from last few days but couldn't find the cause. with current edge I couldn't reproduce it (and I've expected number of hooks and they have correct change ids). i hope to be able to repro when mvo adds me to the core devs15:14
pstolowskizyga: in the meantime i'm still looking at the code15:14
zygapstolowski: ack, thank you15:18
zygaI will keep my snapd offline then, I will be back on Thursday to debug in case we don't find the smoking gun15:19
kyrofaeraserpencil, any chance you're around?15:49
eraserpencilkyrofa: hey!15:51
kyrofaeraserpencil, we seem to have very little i.e. zero timezone overlap :D15:51
eraserpencilif you see a post about ROS on the snapcraft forum by me, please ignore it. I think I JUST figure out the mistake15:52
kyrofaeraserpencil, the gstreamer one, or another one?15:52
eraserpencilaye, GMT+8 does not agree with you.15:52
kyrofaeraserpencil, yeah glad you know about the forum, that works very well for this type of thing15:53
eraserpencilhow's your experience on arm64 VPS?15:56
kyrofaeraserpencil, packet.net works well15:57
niemeyerzyga: ping15:58
zyganiemeyer: yes?15:59
kyrofaeraserpencil, I'm curious though: how do you host your code? Private github? Gitlab?15:59
niemeyerzyga: Heya.. do you know anything about this message:15:59
niemeyer- Setup snap "core" (4571) security profiles (cannot setup apparmor for snap "core": cannot load apparmor profile "snap-update-ns.core": cannot load apparmor profile: exit status 115:59
niemeyerzyga: That's on opensuse 42.3.. are we missing some dep there?15:59
zygahmmm, it looks like we cannot either compile the profile or load it into the kernel16:00
zygais this on your machine?16:00
zygacan you save the profile somewhere16:00
niemeyerzyga: Also, are you on holiday still? Haven't seen any notes in the forum or list16:00
zygayes, I'm still off, will be back on Thursday16:00
niemeyerzyga: That's opensuse, not my machine16:01
niemeyerzyga: This is a plain installation from the ground up16:01
niemeyerzyga: Brand new machine16:01
zygaon 42.316:01
* zyga thinks16:01
zygaon opensuse apparmor is still disabled16:01
zygaso if we try to compile this it is surprising16:01
zygaand we definitely don't have the deps16:01
zyga(apparmor-profiles, apparmor-parser)16:01
zygaI was working on enabling those but there are still some issues (those with init scripts)16:02
niemeyerYeah, surprising indeed16:02
zygawhich kernel was that running on16:02
zygais this a VM or something else?16:02
niemeyer4.4.104-39-default16:03
niemeyerzyga: It's a vm on gce16:03
zygawell, this checks out: https://en.opensuse.org/Features_42.3#Linux_kernel -- 42.3 is on long-term 4.4 kernel16:04
niemeyerzyga: I've installed it by hand, but we probably have something to fix on the packaging there16:04
zygaoh? did you not use our packages?16:04
niemeyerzyga: I did exactly what our instructions say16:04
niemeyerzyga: Anyway, thanks for the info16:05
zygaI see, that's odd, I haven't seen that before16:05
niemeyerzyga: Go enjoy your holidays.. we can talk more when you're back and relaxed :)16:05
zyga:-)16:05
zygathanks16:05
zygabtw, did you hear about the issue that affected my sytem?16:05
eraserpencilprivate github16:09
eraserpencilkyrofa: ^^16:09
kyrofaeraserpencil, have you experimented with build.snapcraft.io? If it worked with private github (as a commercial offering), would it solve your problem?16:16
mupPR snapd#5179 closed: daemon: fix unit tests on arch <Simple> <Created by bboozzoo> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/5179>16:22
pstolowskizyga: yes, i explained to issue in the standup16:22
eraserpencilkyrofa, I have not, but if it worked then yes16:23
kyrofaeraserpencil, we've been mulling that idea over, I'll pass your interest up the chain16:27
=== pstolowski is now known as pstolowski|afk
mupPR snapd#5181 opened: userd: add the "snap" scheme to the whitelist <Created by oSoMoN> <https://github.com/snapcore/snapd/pull/5181>16:40
cachiomborzecki, hey18:15
cachiokyrofa, hey, do you know if snapcraft already supports the timer for the daemons?18:29
cachiokyrofa, I am using version 2.4218:29
kyrofacachio, the timer? What is the keyword?18:32
kyrofacachio, worst case you can use passthrough if it's new18:33
cachioIssues while validating None: The 'apps/runner' property does not match the required schema: Additional properties are not allowed ('timer' was unexpected)18:33
cachiokyrofa, I see this error18:33
kyrofacachio, indeed, I'm unfamiliar with a "timer" property. Was this discussed in the forum somewhere?18:34
cachiokyrofa, https://forum.snapcraft.io/t/add-support-for-service-timers/1068/1018:34
kyrofacachio, indeed, we weren't part of that discussion. You'll need to use passthrough18:36
cachiokyrofa, ok, thanks18:38
mborzeckicachio: what's up?18:54
cachiomborzecki, nothing, problem solved18:58
cachiomborzecki, it was about how to use the timer from snapcraft.yaml18:59
mborzeckiaah ok19:07
sm0ruxI use Swedish in my Xubuntu 18.04. As soon as I install a snap package I get directories in English. I have ~/Dokument (in Swedish) but when installing a snap package I also get ~/Documents (in English). How can I avoid this?19:27
* cachio afk19:41
mcphailsm0rux: I think it is a known bug, sadly20:37
sm0ruxmcphail: Thanks for coming back. Sad news, I thought it was a config issue.20:41
mcphailhttps://forum.snapcraft.io/t/snap-does-not-respect-directory-settings/3274 - looks as if a fix is emerging...20:42
yee_hi guys, Should be very easy question for you guys. What are the main differences between Ubuntu server 18.04 “live” and “alternative”? Do they have different purposes?20:51
sm0ruxmcphail: Thanks a zillion for the link! I thought I was stupid who couldn't fix the locale...21:02
yee_what is the cloud-init?21:05

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