/srv/irclogs.ubuntu.com/2017/02/06/#snappy.txt

swluohelo?00:32
swluoanyone here?00:32
swluohello?00:46
okyhi swluo00:56
swluohey00:58
swluoi was wondering if you could help me out with some library issues that i've been having00:58
swluois there any ways of editing the default SNAP_LIBRARY_PATH00:59
swluoi'm getting errors when trying to load my shared libraries00:59
swluohey qengho01:09
swluohey jjohansen01:10
jjohansenhey swluo01:10
swluohey man i was wondering if you can quickly help me out01:11
swluodo you know if you can edit the default path of the SNAP_LIBRARY_PATH01:11
swluoi'm having issues loading shared libraries01:11
jjohansenswluo: sorry that is one I don't know01:12
swluomhmm thanks01:12
swluotoo bad01:12
swluothe documentation could be a lot better for snap01:13
swluois it because its soo new?01:13
jjohansenswluo: is this on trusty?01:13
swluonah 16.0401:13
swluolike i can run it from command line just fine01:13
jjohansenswluo: yeah snap is a moving target, so its hard to get good docs just yet01:14
swluobut when i use the snap command it gives me library not ffound01:14
swluoahah yeah true true fair enough.01:14
swluo"cannot open shared object file: No such file or directory."01:15
swluoand i can't even make symlink for the default path with is annoying as well01:15
jjohansenoh yes, confinement is great until it gets in the way, and then its at a minimum annoying, and usually a right pita01:16
okyswluo: it's a symlinked binary and you have the libraries (shared objects) also being packaged?01:17
swluowell ok like in the .yaml01:17
swluoi've delcared build-packages: [libsdl2-dev]01:18
swluowhich should give me the proper libraries that it needs01:18
swluoso i didn't package it together01:18
swluowill that work?01:18
okyi wouldn't know if it does or not. maybe you can look at what is in $LD_LIBRARY_PATH from inside your env01:18
swluoaha its funny cause i tried that01:19
okyif you open your snap, does it have the .so files that you'd expect?01:19
swluofrom the docs "snap run --shell <snap>.<command>"01:19
swluothis commant should let me look at the env. but it also gives me errors01:19
swluono it does not. because i'm assuming its already downloaded01:19
okyswluo: well, in most system, 'build packages' would not be included in the final output01:21
okyfor example, in debian, you have build deps which are only required for building the package (but not required for installing it), i might check if that is what is happening here01:21
okyswluo: just fyi, i am new to snap, so i am not a reliable source of ideas / debugging01:22
swluoyeah no worries01:22
swluoanything helps01:22
swluojust need to bounch ideas off someone01:22
swluolike do you think it possible to just bundle the library with the snap?01:22
swluoand somehow refer it then01:22
okyswluo: can you check if it is building a statically linked binary or a dynamic library?01:23
swluoits a dynamic library01:23
swluolike i can't run it using the snap command01:23
swluobut if i use the absolute path01:23
swluoit runs just fine01:23
swluo"concentration  /snap/concentration/x13/run: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory"01:23
swluoso if i go "/snap/concentration/x13/run" it works01:24
okyswluo: in your command wrapper, dump env using 'env' command and inspect the vars. compare your current LD PATH and see if where libSDL2 resides now is in the snap's paths01:25
okyare you running as root or regular user? and is this a snap you are running via the 'try' command or is it installed?01:25
swluoi'm regular user01:27
swluoand its being installed everytime01:27
okyswluo: i just did a search on google for 'snapcraft libsdl2' and came across your SO question, lol01:28
swluoyeah ahaha!01:28
swluoi'm at a hackathon soo time is kinda important01:28
mupPR snapcraft#1106 opened: tests: check the CLA on all the commits <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1106>01:29
swluoanyways how do you do a dump?01:29
swluofrom the command wrapper01:29
okyswluo: add the line 'env'01:29
okyswluo: ok, so: can you check to see if your stage/ has the library files? if it does (and the prime/ does not), you need to manually specify that they are copied over into the prime/01:32
swluoi don't have any stage library files01:32
okywhere do they exist at all? how is it building?01:32
swluoso i think i might need to manually copy it into prime01:33
swluoits building all from parts01:33
swluoits all building from just one make file01:33
okyyeah, at each stage, you can specify which files to copy over to the next (or something like that)01:33
swluointeresting yeah ok i'll try that thanks01:34
swluoso basically we're back to the original idea of just shipping the library file with teh snap then01:34
swluoahah01:34
okythat's how it would have to be done, though...01:34
okyunless you are creating a statically linked binary01:34
swluomhmm ok maybe i'm just understanding it inocrrectly then01:35
okyi think (and i'm not certain) that snaps are supposed to be runnable standalone (as though all necessary libraries are included with them)01:35
swluomhmm no that makes sense let me try some things out01:35
swluoyou've been great01:35
swluocheers01:35
okyswluo: plz let me know if you get it working, good luck at the hackathon!01:38
swluoyeah i'll update it here01:38
swluoare you a fulltimer or a student?01:38
okyswluo: fte01:40
swluowhere you working? i'm coop at blackberry rn ahahahah01:41
okyswluo: at one of those big companies that no one likes01:41
okythere are so many of them, now that i think about it01:42
swluoahahaha would you do something else if you could?01:42
okyswluo: why do you ask?01:43
swluoidk if this is the stuff i want to do in the future01:43
okyswluo: i'm in charge of my self, atm, so i'm fine with how things are - i would not trade it, perhaps excepting for 50 mil01:43
swluolike i'm good at it and its good money01:43
swluobut i "love it"01:44
swluodon't*01:44
okyswluo: take your computer to a relationship counselor01:44
okytell the counselor that you've fallen out of love and need to rekindle the spark01:44
swluoand like i'm just starting sooo its aiiyaaah01:44
swluomhmm rando strangers on the internet that my mom says i shouldn't talk to?01:44
okyswluo: you should read "Disciplined Minds: A Critical Look at Salaried Professionals and the Soul-battering System That Shapes Their Lives"01:45
okyor at least the wiki page on it01:46
swluodamn the first review on amazon hit me like a truck.01:46
swluothanks for the advice ahah01:46
okyactually, nvm - wiki page is terrible01:46
swluoi just brought the book01:47
swluo... see this is what happens when you have too much money and no girlfriend to spend it01:47
swluobtw oky thanks01:57
swluoi figured it out you're right01:58
swluoi included all the libraries using a stage01:58
swluohttps://developer.ubuntu.com/en/blog/2016/11/16/snapping-qt-apps/01:58
swluocheers01:58
okyhaha, awesome02:00
=== markusfluer1 is now known as markusfluer
diddledanjust updated corebird-diddledan to corebird-1.4.203:01
=== chihchun_afk is now known as chihchun
mupPR snapd#2788 closed: store,osutil: use new osutil.ExecutableExists(exe) check to only use deltas if xdelta3 is present <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2788>07:19
mupPR snapd#2780 closed: tests: increase snap-service kill-timeout <Created by fgimenez> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2780>07:31
mupPR snapd#2760 closed: merge release 2.22.1 into master <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/2760>07:36
mardypstolowski: hi! Got a minute to talk about interface hooks?08:10
pstolowskimardy, hi! sure08:12
mardypstolowski: so, I finally succeeded in getting my hook invoked :-)08:13
pstolowskimardy, great! :)08:14
mardypstolowski: now the next question is, how to get information about the client, from within the hook of the socket08:14
mardypstolowski: I tried with "snapctl get", but it failed to read the attributes set on the plug08:15
mardypstolowski: I'm running this: snapctl get --plug :online-accounts manifest08:16
mardypstolowski: where "online-accounts" is the name of the interface, and manifest is an attribute set on this interface in the plug08:17
pstolowskimardy, can you show me a complete hooks/ content?08:18
mardypstolowski: and I get this on stderr, when connecting: error: cannot add authorization: open /home/mardy/.snap/auth.json: permission denied08:18
pstolowskimardy, that should generally work in my branch (i've a spread test with similar setup)08:19
mardypstolowski: I'll push the branch in a minute, I'll ping you08:19
mardypstolowski: bzr branch lp:~mardy/webapps-core/iface-hook-test08:21
mardypstolowski: the socket is snap/amazon/snapcraft.yaml08:22
mardypstolowski: the plug is snap/facebook/snapcraft.yaml08:22
pstolowskimardy, socket == slot ;)08:23
* pstolowski was slightly confused for a moment08:23
mardypstolowski: indeed :-)08:23
pstolowskimardy, no hooks files there, did you forgot to commit them?08:31
mardypstolowski: ehm... :-)08:32
mardypstolowski: ok, please pull again08:35
mupPR snapd#2791 opened: store: use xdelta3 from core if available and not on the regular system <Created by mvo5> <https://github.com/snapcore/snapd/pull/2791>08:37
pstolowskimardy, ok08:52
pstolowskimardy, so, the problem is08:52
pstolowskimardy, you want plug and slot names there, not the interface names; so this will be 'oa', not online-accounts. that applies both to the :names you pass to snapctl, and to the names of the files under hooks/08:53
pstolowskimardy, or rename oa to online-accounts08:56
mardypstolowski: right, makes sense08:56
mardypstolowski: thanks a lot, I'll try that08:57
pstolowskimardy, np. see my test snaps under tests/lib/snaps/basic-iface-hooks-* (in my MP) if in doubt08:58
mardypstolowski: btw, would it be possible to get an implicit attribute with snapctl, which is the name of the connecting snap?08:59
mardypstolowski: I mean, suppose that that plug doesn't declare any attributes; could the slot hook still infer some info about who's trying to connect?09:00
mardypstolowski: the use-case is that we want to make sure that the client really is what it claims to be09:01
pstolowskimardy, i see what you mean. yes that's easy to do, i wonder if env variables would be good for that. i'll bring it up with niemeyer09:02
mardypstolowski: thanks09:03
mupPR snapd#2763 closed: store: retry on 502 http response as well <Created by mvo5> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2763>09:53
mupPR snapd#2761 closed: vendor: move gettext.go back to github.com/ojii/gettext.go <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2761>10:04
=== chihchun is now known as chihchun_afk
adamlovehi11:22
=== jamespag` is now known as jamespage
mupPR snapcraft#1106 closed: tests: check the CLA on all the commits <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1106>11:44
mupPR snapcraft#1105 closed: tests: rename the integration test snaps <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1105>11:47
mupPR snapcraft#1099 closed: catkin plugin: don't pass args to setup.sh <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1099>11:56
mupPR snapcraft#1107 opened: meta: correct the deprecation for `setup/gui` use <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1107>12:05
=== hikiko is now known as hikiko|ln
loologra_: heya12:33
ogra_lool, yo12:33
loologra_: what's the cleanest way to put a GRUB config snippet (override kernel cmdline) with the x86 images?12:33
ogra_create your own gadget12:34
loolis there no local way?12:34
ogra_well, you asked for the cleanest :)12:34
lool(I need it to survive upgrades)12:34
ogra_you can surely just hack up /boot/grub/grub.cfg12:34
loologra_: hehe, yes12:34
ogra_we dont update bootloader configs on gadget upgrade currently12:34
ogra_so whatever you do there should persist12:35
loologra_: would you have an upboard by any chance?12:35
ogra_nope, never heard of it12:35
loolkind of a rpi from intel12:35
loolhttp://www.up-board.org/12:35
loolv2 isn't out yet12:36
ogra_ah12:36
loolsome guys using it have trouble forcing the CPU to max freq, I'm trying to let them set cmdline options to disable it12:38
ogra_lool, wont work ... we force the ondemand governor12:41
ogra_from an ancient init.d script12:41
ogra_(see /etc/init.d/ondemand )12:42
loologra_: well unless we disable it from the kernel cmdline, no?12:42
ogra_so the CPU will always scale down .. what they could do is build their own kernel with only performance in it12:42
loolI was actually thinking of disabling the underlying implementation rather than the governor, /me digs the name12:43
ogra_the script reads /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors12:43
loolintel_pstate=disable12:43
ogra_if you can make it not appear there it should work12:43
loologra_: for some reason, they can't even set the "performance" governor on this board (it appears, but can't be selected)12:44
loolmy devices here use ACPI, but they have a more recent Intel embedded CPU which does this pstate stuff12:44
ogra_hmm, thats weird ...12:44
ogra_yeah, i'm not very familiar with pstate vs cpufreq yet ... i'd ask cking12:45
ogra_(i dont really have newer intel systems here, only ARMs :) )12:46
loolwell ARM is the new Intel!12:47
loolsoon we'll be looking at some other architecture which is more embedded and wants to displace ARM!  ;-)12:47
ogra_hehe12:47
zygalool: let's skip mips and go to risc ;-)12:50
ogra_no risc, no fun12:50
zygabut low-risk risc is fun12:51
davmor2lool: just get a reflex hammer and strike arms elbow that'll displace it12:52
loolzyga: I was thinking something lower tech like stones12:54
looltake two piles of stones together to make an addition12:54
loolremove stones to make a substraction12:54
loolthrow stones to make a function call12:54
zygaubuntu for forests and quarries?12:54
=== hikiko|ln is now known as hikiko
mupPR snapd#2792 opened: tests: add spread test for delta downloads <Created by mvo5> <https://github.com/snapcore/snapd/pull/2792>13:04
mupPR snapd#2779 closed: tests: gruntwork backend and suite; task for sync snapd with vendor <Created by fgimenez> <Closed by fgimenez> <https://github.com/snapcore/snapd/pull/2779>13:28
zioprotohello #snappy. Can I get help here in pushing packages to the Ubuntu Store ? I have this package with confinement classic that I cant push13:49
zioprotoanyone can help me with this ? :) https://myapps.developer.ubuntu.com/dev/click-apps/6815/rev/4/13:59
uijnoinompojoin14:00
popeyhttps://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1662181 is this expected behaviour? People have to enable each alias individually?14:41
mupBug #1662181: Aliases didn't enable out of the box <snapd (Ubuntu):New> <https://launchpad.net/bugs/1662181>14:41
popeyzioproto: hello, i think jdstrand is the one to ask about that - I note he already replied to one of your uploads though.14:42
morphisogra_: when did we drop ppp from the core snap?14:43
morphisogra_: we have a dependency on it from the modem-manager snap14:43
morphisthat is why we created the ppp interface14:43
zioprotopopey, do you mean 'This snap is using 'classic' confinement. At this time we have the technical implementation for how to implement classic confinement but the processes for when to grant acceptance in the store is still being worked out. This is actively being discussed and we'll get back to you once the store acceptance policies are defined.'   ????14:44
zioprotopopey, that is a bot answering14:44
popeyzioproto: no, jdstrand is a person :)14:45
popeyooh, speak of the devil14:46
popeyjdstrand: when you have a moment, zioproto is asking about https://myapps.developer.ubuntu.com/dev/click-apps/6815/rev/4/14:46
=== ara_ is now known as ara
=== ara is now known as Guest93169
jdstrandpopey: that is actually something for ev14:54
popeyah okay.14:56
popeythanks14:56
jdstrandnp14:56
zioprotowho is ev ?15:04
zygazioproto: evan, why?15:05
popeyzioproto: I'm discussing with him, I'll get back to you asap15:05
zioprotookay15:05
zygajdstrand: hey, I'm ill today; if you have some time please look at C patches, otherwise I'm semi-useless and not making much code15:06
zygajdstrand: I know that the kernel has a way to convey bind mounts to userspace now15:06
zygajdstrand: I'm coding a routine that does that15:06
mupPR snapd#2793 opened: Add Maliit input method interface <Created by Elleo> <https://github.com/snapcore/snapd/pull/2793>15:11
mupPR snapcraft#1103 closed: meta: support for the environment keyword <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1103>15:11
jdstrandzyga: hope you get better soon15:14
zygathanks15:16
mupPR snapcraft#897 closed: pluginhandler: use an alternate location to organize <Created by josepht> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/897>15:17
mupPR snapcraft#1064 closed: pluginhandler: support colliding with directories <Created by kyrofa> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/1064>15:17
jdstrandmterry: hey, working through the unity8-session store reviews. note that until the PR lands, I don't think we should issue a snap declaration for unity8 (I'm not sure of the side effects that would have on systems without unity8). I see you already are using only 'mir', and I issued a snap declaration for that15:19
mterryjdstrand: sorry, you mean allowing unity8-session snap to have those slots?15:20
jdstrandmterry: I also see that you are using top-level 'slots'. This gives all commands PermanentSlot policy for the mir server. I'm quite sure you do not want this. Please add 'slots: [ mir ]' to the command that needs it15:20
mupPR snapcraft#904 closed: cleanbuild: use pylxd instead of lxd command line <Created by kalikiana> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/904>15:20
jdstrandmterry: unity8-session is now allowed to use slot mir15:21
jdstrandmterry: I think we should wait for it to slot unity8 until the PR lands15:21
mterryjdstrand: yeah that was because I needed to talk to tedg_ about which of the commands actually need it, but noted15:21
mterryjdstrand: yah agreed -- I took out the slot15:21
jdstrandmterry: you are going to receive a few rejection emails until we hit the upload that only slots mir15:24
mterryHuh...  I was under the impression I had already built and uploaded one of those15:25
jdstrandit's going to take a few minutes15:25
* mterry rebuilds a new snap15:25
mterryI mean, I did that on Friday15:25
jdstrandmterry: you did, but the way the store works is this is a queue of uploads. I need to reject each one that is queued before it15:26
mterryoh ah15:26
* mterry doesn't build a new snap then15:26
jdstrandit'll be a few minutes before we are there (fyi, the store team will be improving this process for reviewers)15:27
ogra_kgunn, http://imgur.com/a/ddqjQ Pi2 ubuntu-core running the unity8-session snap !!!15:35
ogra_(right monitor)15:36
kgunnnice!15:36
ogra_there are font issues and the top panel is completely transparent .... tha console is also spilled with lots of failing/respawning  upstart jobs15:37
kgunnogra_: i didn't think pi2 had the right stuff for gpu...15:37
ogra_but its the first time i get something on display with that snap15:37
kgunnonly pi315:37
kgunnvery cool15:37
ogra_i made sure both do now :)15:37
ogra_after all the changes were identical15:37
kgunnand yeah, lots of spew15:37
kgunnre upstart jobs15:37
ogra_yep15:37
jdstrandnessita: fyi, bug #166221815:56
mupBug #1662218: Please email store reviewers with changes to classic confinement <Software Center Agent:New> <https://launchpad.net/bugs/1662218>15:56
jdstrandnessita: and hi!15:56
nessitajdstrand, hi! I would have thought we did that already, but let me check and/or raise the issue. Thanks!16:00
nessitaroadmr, ^16:00
jdstrandnessita (roadmr): if you look at the 'Package declaration update' email, it lists plugs, slots, auto-aliases and refresh-control, but not classic. I can't recall ever seeing and email for changes to classic confinement16:01
roadmrright nessita jdstrand maybe we did that for the other things and not classic... ugh sorry16:01
cory_fujdstrand: Thanks for the approval on the juju-crashdump snap.  I had a question re: your comment about LP builds.16:04
cory_fuI tried to have it build on LP, but it's failing except on ppc64el: https://code.launchpad.net/~johnsca/+snap/juju-crashdump16:05
jdstrandcory_fu: that seems like a question for the LP team based on, for example, https://launchpadlibrarian.net/305075153/buildlog_snap_ubuntu_xenial_arm64_juju-crashdump_BUILDING.txt.gz16:06
cjwatsonknown bug16:07
cjwatsonhttps://bugs.launchpad.net/launchpad-buildd/+bug/165094616:07
mupBug #1650946: unhelpful error when building a classic snap: classic confinement requires the core_dynamic_linker to be set <launchpad-buildd:Triaged> <Snapcraft:Fix Released by sergiusens> <https://launchpad.net/bugs/1650946>16:07
cory_fucjwatson: Ok, thanks16:08
cory_fuHow long after releasing a snap to the stable channel should I be able to see it in `snap find`?  Is there something I can run locally to force a refresh?16:09
cjwatsonPlanning to attack that later this week; just need to get an ack from Sergio on the basic approach first16:09
balloonsnessita, might you be able to transfer ownership of the juju snap between ubuntu one accounts?16:13
nessitaballoons, hello! yes, I can do that. What would be the target account?16:13
nessitaballoons, also, please send me an email with the request so I can keep track of the transfers, I'd need source account and target account, with some consent from the target account in there16:14
balloonsnessita, will do. I'll cc both accounts and yourself so you can see consent16:17
nessitaballoons, thank you!16:18
aisraelstokachu, here16:28
stokachuwhats the best way to get someone who is has ubuntu-core snap installed migrated to the latest core snap?16:28
stokachuthey're on snapd 2.2116:29
stokachuhe can't remove the ubuntu-core snap and snap refresh/install does not seem to handle upgrading from ubuntu-core to core16:29
stokachuwould a simple apt-get remove snapd and reinstall work?16:30
stokachuzyga, ^ any idea here?16:34
aisraelstokachu, I removed and reinstalled and now I can install core (previously installed snaps were gone)16:35
stokachuaisrael, ok cool16:35
stokachumay be worth trying to reinstall conjure-up now16:35
stokachubefore you do a build16:35
stokachuaisrael, ^16:36
ogra_stokachu, yes, that works but removes all already installed snaps alongside ... so handle with care ;)16:36
stokachuogra_, is there any upgrade path?16:37
aisraelstokachu, There were a few leftover symlinks in bin I had to remove. With those gone, conjure-up installed and works16:37
stokachuaisrael, \o/16:37
ogra_mvo works on that ... not sure whats the target release for it though16:37
mvostokachu: you want to transition ubuntu-core to core?16:42
stokachumvo, yea we had a user aisrael who still had ubuntu-core on his system16:42
ogra_they already did by reinstalling snapd ...16:42
stokachumvo, yea he reinstalled snapd which wasn't an issue for him but i was curious what the upgrade path is16:43
mvostokachu: please try the snapd from -proposed or run "snap refresh --candidate ubuntu-core" for re-exec magic16:43
stokachumvo, ah ok, ill make a note if anyone else runs into that16:43
mvostokachu: thank you, please do. keen to get feedback on the auto-migration :)16:43
stokachumvo, is there a way i can manually reproduce?16:43
stokachucan i snap install ubuntu-core on a fresh xenial system with 2.21?16:44
mvostokachu: so far it works well but it seems relatively few people are astill having ubuntu-core16:44
stokachumvo, yea this was the first case i ran into where someone was still on ubuntu-core16:44
mvostokachu: yes, if you have nothing installed you can snap install ubuntu-core16:44
stokachumvo, cool ill give it a shot and let you know if i run into an issue16:44
mvostokachu: then you can upgrade your snapd or install a newer ubuntu-core that contains the re-exec magic and it will auto-transition you16:44
mvostokachu: great, thank you16:44
stokachumvo, ah so his issue was he couldnt snap install ubuntu-core16:45
stokachuor snap refresh ubuntu-core16:45
mvostokachu: ohh16:45
stokachumvo, snap refresh just told him no updates available16:46
mvoaisrael: hey, if you were affected by the problem with not being able to install/refresh ubuntu-core, could you please pastebin "journalctl -u snapd" (or mail that output to me). that hopefully gives me a clue why the system behaved strangely16:46
mvostokachu: snap changes should show a transition, it may take up to 10min though to start16:47
stokachumvo, oh i learned a new command16:48
mvostokachu: please paste the snap --version output here so that I can check if the version you have supports the auto migration already16:48
stokachusnap    2.2116:48
stokachusnapd   2.2116:48
stokachuseries  1616:48
stokachuubuntu  16.0416:48
mvostokachu: snap changes is cool, you can also see the individual changes via "snap change N" (with N being the one you want to see)16:48
mvostokachu: aha, that is not recent enough, you will need 2.22.X, either from xenial-proposed or "sudo snap refresh --candidate ubuntu-core"16:49
mvostokachu: with either one of those the next snap --version output should be higher16:49
stokachumvo, ah that is it then16:49
stokachuyea we're both on 2.21 still16:49
mvostokachu: aha, ok. the journal output for snapd from the broken system should have hints what went wrong. i need to leave for dinner now but you can mail it to me at mvo (at) ubuntu.com16:50
mvoand I have a look (or I will read scrollback when I return :)16:51
stokachumvo, sure ill get another system going16:51
test__ping elopio: test from quassel-webserver snap16:53
stokachumvo, https://gist.github.com/battlemidget/e55498a759f14b865c2bfe1e410a022c thats where i ended up at17:04
mvostokachu: thanks, lets talk tomorrow but I think snapd 2.22.X will fix it automatically for you17:08
* mvo waves and leaves for dinner17:08
mupPR snapcraft#1108 opened: Add support for LTS Channels <Created by josepht> <https://github.com/snapcore/snapcraft/pull/1108>17:08
stokachuyea installing snapd 2.22 from proposed cleaned up my core snaps without an issue17:09
stokachudoh he left already17:09
cory_fuI released my snap to the stable channel a couple of hours ago, but still can't install it.  Re-released via snapcraft per the docs and it still doesn't work.  http://pastebin.ubuntu.com/23942129/  Any suggestions?17:16
ogra_cory_fu, did you check on the store page ?17:17
cory_fuogra_: I originally released it via https://myapps.developer.ubuntu.com/dev/click-apps/6876/ and it still says that it's published17:18
ogra_and it is published in the stable channel ?17:18
cory_fuogra_: Yes (see pastebin)17:18
cory_fuogra_: NB: it is a classic snap, if that makes a difference17:19
ogra_oh, it surely does ... i think classic snaps need manual approval in the sotre17:19
ogra_*store17:19
cory_fuogra_: It was approved by jdstrand17:19
mhall119jdstrand: browser-support is triggering a manual review for a daemin app, I believe I needed it for NodeJS (or somethingJS) that's used by the daemon17:20
mhall119is there a security concern about allowing that interface for daemons without review?17:20
* mhall119 thinking back, I believe it wasn't NodeJS itself, but something else couchdb does with js, so maybe there aren't that many cases where this will happen17:21
cory_fuogra_: Any other advice?  :/17:36
ogra_cory_fu, well, if the version shows a green box in the UI and you have a channel listed in the details of the version then i dont know17:36
cory_fuogra_: Oh, I figured it out!  I had only released the ppc64el version that had managed to successfully build on LP, so it wasn't showing up for me due to arch mismatch17:42
ogra_aha !17:42
ogra_yeah, i see it :)17:42
ogra_congrats !17:43
cory_fuogra_: Thanks, and thanks for your help17:43
ogra_the store UI is an adventure game at times :)17:43
cory_fu:)  It told me the info I needed, but it just wasn't very prominent17:44
ogra_yep17:44
mupPR snapcraft#1109 opened: LP #1662240 (define post-stop-command) <Created by elespike> <https://github.com/snapcore/snapcraft/pull/1109>18:02
jdstrandmhall119: note, this is a warning, not an error (no difference for human review of course). the browser-support interface is a transitional interface for full-on web browsers (eg, chrome, firefox, webbrowser-app, etc) and it would be unusual for a server to embed a complete web browser. can you remove 'browser-support' and show me the denials?18:06
mupPR snapcraft#1107 closed: meta: correct the deprecation for `setup/gui` use <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1107>18:17
jdstrandmterry: ok, all revisions with only slots: mir are approved but not released18:22
jdstrand(and the other rejected)18:22
mhall119jdstrand: = Seccomp =18:23
mhall119Time: Feb  6 13:22:1118:23
mhall119Log: auid=4294967295 uid=0 gid=0 ses=4294967295 pid=32209 comm="couchjs" exe="/snap/couchdb/x15/rel/couchdb/bin/couchjs" sig=31 arch=c000003e 141(setpriority) compat=0 ip=0x7f465ca61177 code=0x018:23
mhall119Syscall: setpriority18:23
mhall119Suggestion:18:23
mhall119* add one of 'browser-support, process-control' to 'plugs'18:23
mterryjdstrand: I don't think I have access myself to the store page -- will future auto-uploads pass through without the manual review process?18:23
mhall119fwiw, it's only happening when I try to run couchdb's builtin health check18:23
mterryjdstrand: (thanks for clearing the queue btw)18:23
jdstrandmterry: yes. if you want, I think I can press the 'release' button18:24
mterryjdstrand: sure that saves a rebuild, thanks!18:24
jdstrandmhall119: use process-control instead, not that 2.23 will have policy that may allow you to drop process-control18:25
jdstrands/not/note/18:25
mhall119thanks jdstrand18:27
linuxhikerIs there a way to see what platforms a particular snap is available for?18:28
jdstrandmterry: ok, released all to 'edge'18:29
mterrycheers18:30
linuxhikerWould that be a no?:D18:36
mupPR snapd#2784 closed: image: check kernel/gadget publisher vs model brand, warn on store disconnected snaps  <Critical> <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2784>18:41
balloonsstokachu, did you see my note about bash completion with your snap?19:05
stokachuballoons, nah19:13
stokachuballoons, you get it working?19:13
balloonsstokachu, I couldn't get what you'd check in to build, but I believe it will work with the addition I made19:13
stokachuballoons, you got a diff or PR for me?19:14
balloonsstokachu, sure. Let me find the repo19:14
stokachuballoons, if we get this working are we advertising pure snaps for the next release announcement?19:17
balloonsit has my vote stokachu19:17
stokachuyay19:17
stokachuballoons, im getting a testsuite done this week too19:17
stokachuballoons, ill take a diff to whatever is easier for you19:20
stokachuor just the entire file and ill merge it19:20
balloonsstokachu, basically you are missing the bash completion file for 'juju'. It needs to be named 'juju'19:21
balloonsas that is what it will go looking for. The 2 bins we're shipping (well, one bin for you I guess?) is juju and juju-219:21
balloonsfound the diff19:21
balloonsstokachu, https://pastebin.canonical.com/178372/. You can see I had trouble with the source dump location. But I trust the rest more or less makes sense19:22
balloonsstokachu, essentially cp etc/bash_completion.d/juju-2 $SNAPCRAFT_PART_INSTALL/usr/share/bash-completion/completions/juju19:22
balloonsI *think* that will make it work19:23
stokachuah i think i did that earlier19:24
stokachulemme double check19:24
stokachuballoons, building again but i did already do this one min19:26
stokachuballoons, make sure you're using snapcraft from master19:26
stokachujust git clone https://github.com/snapcore/snapcraft; and access snapcraft/bin/snapcraft19:26
stokachuballoons, once you do that then clone https://github.com/conjure-up/conjure-up and try to build again19:28
stokachuthat should work19:28
balloonsstokachu, ahh, the snap/snapcraft is supported now19:31
stokachuyea19:31
balloonscool, so I can play more if needed19:32
stokachuyea im building the latest now and going to test it again19:32
stokachuballoons, yea that change didnt work either :(19:45
=== kay_ is now known as Blu2
stokachuno idea what im missing19:45
Blu2ohmygiraffe update :D19:46
stokachuanyone else familiar with bash completion inside a snap?19:46
mcphailstokachu: I've been wondering how to implement that!19:47
stokachuwe copy our files here: https://github.com/conjure-up/conjure-up/blob/master/snap/snapcraft.yaml#L63-L65, and source them https://github.com/conjure-up/conjure-up/blob/master/snap/wrappers/juju#L8-L919:47
stokachumcphail, yea we're hitting some kind of issue even after we source the completion19:47
stokachumcphail, ^ should give you some kind of idea of how we're doing it if youre curious19:48
stokachujust doesn't work quite yet19:48
mcphailstokachu: cheers! I'll have a look19:48
mcphailstokachu: that way isn't going to work, though, is it? Surely that will just source the completion from the subshell, rather than the shell you're using to call the program?19:49
stokachumcphail, ah19:50
stokachuyea bash completion would need access to the binary and not the wrapper19:50
stokachuhmmmm, what if i put it in /etc/bash_completions.d/19:51
mcphailstokachu: completion is done by the shell you use to call the snap. But completion isn't loaded into that shell. You'd need access to a completions directory, as you say19:51
mcphail(and that isn't allowed, afaik)19:52
stokachumcphail, we use a classic snap so maybe we can?19:52
mcphailstokachu: aah. I haven't looked at classic snaps yet19:52
stokachudoes bash completion have a ENV variable we can alter?19:53
Blu2I noticed that snaps are not allowed to link to a website using the default browser19:53
stokachui couldnt find anything in the docs about it19:53
mcphailstokachu: you know /etc/bash_completions.d/ is deprecated for all packages anyway?19:54
stokachumcphail, ah i do now :)19:54
mcphail`pkg-config --variable=completionsdir bash-completion19:54
mcphailshould give the up-to-date one19:54
stokachuah perfect19:55
stokachuso we put those completion in that directory now19:55
stokachubut that's within the snap19:55
mcphailYes. Nothing useful is going to see that19:56
stokachuand there doesn't seem to be a way to make bash completion look in an alternative directory19:57
mcphailI think there needs to be a hook for completions19:57
balloonsstokachu, I also got the snap built, but it's not providing juju19:58
stokachuballoons, you gotta run snap alias19:58
stokachuballoons, and make sure you dont have the deb juju installed otherwise it'll make you think you got it working :)19:59
balloonsstokachu, sorry snap lied: snap list aliases error: no matching snaps installed. Trying again, I suddenly see the aliases for conjure-up and lxd19:59
stokachuballoons, ah19:59
balloonsstokachu, nothing in /usr/share/bash-completion/completions/20:01
balloonsso the hook didnt work. this is the problem I had20:01
stokachuballoons, yea they would be in $SNAP/usr/share/bash-completion/completions20:01
balloonsthey can't go there. They need to be in the right place20:01
stokachuso you could try taking out $SNAPCRAFT_PART_INSTALL20:02
stokachuit'd have to go in a different hook though not the install20:02
stokachui think mcphail is correct though there needs to be a hook for it20:03
stokachuthey have to live outside of the snap20:04
stokachuballoons, we could put it in the hooks/configure script20:04
balloonsstokachu, yes, I was trying in the configure hook20:04
balloonsI thought you were too20:05
stokachuoh lemme check20:05
stokachumaybe i did20:05
balloonsI just hit build, I've no idea :p20:05
stokachubuilding now i didnt have it in there20:06
stokachuballoons, pushed a new update to the master branch20:10
stokachuthat copies the files to the hosts system20:10
stokachuballoons, so that section where it's detecting which juju binary to use20:11
stokachuballoons, https://github.com/juju/juju/blob/staging/etc/bash_completion.d/juju-2.0#L339-L35020:12
stokachuballoons, do you need to add the /snap/bin/juju path too?20:12
stokachuballoons, yea changing the last line's path to /snap/bin/juju makes it all work20:13
balloonsfor realz?20:14
stokachuballoons, yep20:14
balloonswoot20:14
stokachuballoons, so if you could get the updated completions pushed to branch 2.1 ill rebuild with it all20:14
stokachuor i can just include it as a file in the snap20:14
stokachui can also make a new section and just pull from juju master for the completion stuff20:15
mupPR snapcraft#1101 closed: misc: consistently use a dash for copyright years <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1101>20:15
balloonsstokachu, hmm, let's have a think20:16
balloonsI need the same for the juju snap20:16
stokachuballoons, yea20:17
stokachuballoons, worse case i can do some sed magic to replace /usr/bin/juju with /snap/bin/juju20:21
balloonsstokachu, ok, so it's what I was thinking. We should just add a check for /snap/bin/juju as well20:23
balloonsIt checks $gopath as well for example20:23
stokachuballoons, yea20:25
mupPR snapd#2789 closed: overlord/devicestate: backoff between retries if the server seems to have refused the serial-request <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2789>20:26
balloonsstokachu, awesome. So we have a complete snap story then?20:28
stokachuballoons, yep just as soon as you update the bash completion in the upstream code20:28
stokachui can pull that down and install it20:28
balloonsI'll make a PR with it and the tweaked snap20:28
stokachuballoons, cool once that lands we'll be in good shape20:29
balloonsstokachu, did you push what worked for you for conjure-up?20:29
stokachuill create a seperate section to pull from master for it as well unless you think it'll make it into the beta5 branch?20:29
stokachuballoons, yea thats pushed upstream20:29
mcphailstokachu: you got it working?20:30
stokachumcphail, yea, basically what you said we had to put it in the hooks/configure in the snap build20:30
stokachuand install it to /usr/share/bash../20:30
mcphailstokachu: aah. Is tehre any way to clean it up if the snap is removed? Thinking we really do need some form of hook20:31
stokachumcphail, unfortunately there isn't a cleanup hook for snaps, it has been asked a few times to incorporate that so i think that discussion is ongoing20:33
stokachua uninstall hook would be nice20:33
stokachui think the fear is making building snaps to complicated by going down that road20:33
mcphailstokachu: shame. Would be nice to have that. I'll need to check out these classic snaps. Seems to give more freedom20:33
stokachumcphail, yea tons of freedom though at a cost like what you see here20:34
mcphailIdeally, it would be good to have a hook to deal with completions/man pages etc20:34
stokachumcphail, so i think mayb esomething like https://github.com/snapcore/snapd/wiki/Content-Interface20:35
stokachuthough i don tknow if that addresses the issue of putting it outside the $SNAP20:36
mcphailstokachu: Don't think that is a complete solution, but is certainly a start. Would be interesting to have a virtual filesystem overlaid on the completions directory which would give access to these slots20:39
stokachuthat would be cool20:40
stokachuballoons, ping me when you get a pr up so i can subscribe to it20:41
Fohlenheya there. I have an application that builds a binary folder with plenty of assets it as well needs to start the executable in the bin* folder. I didn't yet understand how am I supposed to copy the folder from my parts into the stage and the command does not ship a make install command21:02
mupPR snapd#2794 opened: tests/lib/fakestore/refresh: some more info when we fail to copy asserts <Created by pedronis> <https://github.com/snapcore/snapd/pull/2794>21:03
qenghoFohlen: Hi! Is the build system unique?21:04
Fohlenqengho: it's conan21:05
Fohlenand produces cmake in the end21:05
Fohlenhttps://www.conan.io/21:05
qenghoAh, I know cmake.21:05
Fohlenbasically what I would like snap to do is copy the bin folder and make it executable21:05
qenghoFohlen: Put your snapcraft.yaml in a pastebin so we can see. Someone, perhaps not me, might have an idea what you need to do.21:07
Fohlenhttp://pastebin.com/HEb3z1Sv21:08
mupPR snapcraft#1110 opened: Show error messages for snap processing errors <Created by josepht> <https://github.com/snapcore/snapcraft/pull/1110>21:12
robert_ancellIs ./run_checks no longer used for snapd? It's reporting bad formatting in master21:15
qenghoFohlen: Hi. First, you probably don't need your "stage-packages" as staged packages, because those are ones that go into your snap. You only need most of those for building. That's a different object, "build-packages:", I think.21:25
qenghoFohlen: Then, your filesets: object doesn't do anything. That just gives some things a name "binaries", and you don't use that name anywhere.21:26
Fohlenqengho: http://pastebin.com/Dfebej1d21:30
Fohlentrying this now.21:30
mupPR snapd#2795 opened: Only add aliases field when we have aliases <Created by robert-ancell> <https://github.com/snapcore/snapd/pull/2795>21:39
mupPR snapd#2794 closed: tests/lib/fakestore/refresh: some more info when we fail to copy asserts <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2794>21:48
okywhich org is behind snapcraft, btw?21:48
okyis it canonical? what is yocto?21:49
mupPR snapcraft#1111 opened: tests: rename the waf test snap <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1111>21:51
kyrofaoky, indeed, canonical is behind snapcraft22:21
okykyrofa: ok, interesting. is there a discussion of the potential downsides of snapcraft that i can refer to? just things to know before i use it22:27
oky(common pitfalls would be useful, too)22:27
kyrofaoky, all the docs are on snapcraft.io22:28
okyi think i've read a lot of them, curious to find things like project philosophy and motivation22:28
oky(i do see snapping philosophy doc, don't worry)22:28
kyrofaoky, perhaps its README would be helpful? https://github.com/snapcore/snapcraft22:29
okykyrofa: it is, yes - but it seems like perhaps there were a lot of design docs or internal discussion that22:30
okyis unavailable22:30
kyrofaoky, I'm not really sure what you're looking for then, I'm sorry22:31
okykyrofa: things like: "what is current support on other distributions", "what are potential downsides of using snaps", "how do pin a snap to a specific version", "who is doing the vetting"22:32
kyrofaoky, snapcraft is only a packager of snaps. It sounds like you're looking for the philosophies behind snaps themselves22:32
okyi really like what i am seeing about snaps, they appear to be recipes that create statically installable packages akin to .dmg files22:32
okykyrofa: yes, that must be it22:32
kyrofaThat's like expecting pbuilder to document the rational behind the deb format22:33
okykyrofa: so, there's a seperate site for docs on snaps?22:33
okykyrofa: i'm not blaming or accusing, just looking for more info - and yes, i am confused about the two names. i've seen snappy, snap, snapd and snapcraft. the only docs i've read are the snapcraft ones22:33
kyrofaoky, there isn't one place that answers all your questions, but I can point you in a few different directions to obtain answers22:34
okykyrofa: thanks!22:34
kyrofaoky, first of all, the current distro support matrix is here: https://github.com/snapcore/snapd/wiki/Distributions22:35
mupPR snapcraft#1112 opened: core: setup core to support classic confinement <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1112>22:36
kyrofaoky, as far as potential downsides, there are a few AskUbuntu questions about them but the answer is really opinion-based22:36
kyrofaoky, there are a few downsides I can list off: dependencies are bundled so they tend to be larger than, say, a deb would be. Developing them can be a little different because, as you noted, they are read-only images with defined writable areas and not all software is used to working that way22:37
kyrofaI'm not sure pinning is supported, but there are some features coming that will get you closer22:39
kyrofaAs far as who is doing the vetting, I'm not quite sure I understand the question22:39
okykyrofa: the concern with 'pinning' is regarding having a set of packagers with expertise vetting their work vs. anyone self publishing. with packagers, its a little more assured that new version should not break things, but self publishing leads to weirdness with deps between parts, etc22:40
kyrofaoky, there are no dependencies with snaps, at least not in that sense22:40
okypinning (or custom repos) appears to be a compromise to sticking to a specific version (and having that version available at some later data, ideally), which is why i asked about it22:40
okykyrofa: even if there are no direct deps or compile time, there inevitably will be deps or linked packages (imo)22:41
kyrofaoky, of course, but they're contained within the same snap22:41
okykyrofa: interesting, ok - so, the store would have many different versions for each package depending on the config desired22:41
okykyrofa: thanks for taking the time22:42
kyrofaoky, that depends on the package I suppose22:43
kyrofaoky, for example, there's a Nextcloud snap that bundles mysql and apache. There is _not_ a nextcloud snap that uses nginx instead22:43
kyrofaNothing is stopping that, but nextcloud only supports that one setup22:44
okykyrofa: i'm thinking of an example more like: package + data dependencies. maybe there is a package of geoip data and you can buy addon packs22:44
okyanyways, it's all tangential - not that important to my other questions22:45
kyrofaoky, that's probably a use-case for the (very limited) sharing that can happen between snaps. That's called the `content` interface22:46
okyit seems like the snaps should ideally prevent lots of bugs and make it so that security flaws in out dated libraries are still contained in what damage they can do22:46
kyrofaIndeed22:46
okyso in the end, its still an improvement in security (maybe)22:46
kyrofaThat's the idea anyway22:46
okyi was trying to imagine what happens when the next large networking bug comes along and threatens a bunch of packages22:47
kyrofaoky, well, let's walk through that using the Nextcloud example22:50
kyrofaoky, let's say the bug was so bad as to grant a shell with the Apache permissions22:51
bdmurraylsb_release crashes on Ubuntu Core 16 - where should that be reported?22:51
kyrofaWhich is pretty much as bad as it can get22:51
kyrofaWhat happens?22:51
bdmurrayhttp://pastebin.ubuntu.com/23944029/22:52
okykyrofa: how does nextcloud enforce that the user is 'apache' user?22:52
okyi'm looking through https://github.com/nextcloud/nextcloud-snap/blob/master/snapcraft.yaml to see how they manage permissions22:52
kyrofaoky, nope, it's root22:52
kyrofaoky, however, even though it's root it's still under confinement22:53
kyrofaoky, which means they can access the network and the writable areas of the snap22:53
kyrofaoky, they can't alter anything contained within the snap because it's by definition read-only22:53
okykyrofa: and the confinement is via SElinux? ima? app armor?22:53
kyrofaappamor, seccomp, and cgroups22:54
kyrofaoky, the worst they can do is mess with the data of the nextcloud snap. They can't touch the rest of the system22:54
kyrofaoky, and there's nothing they can do to prevent the next snap update from happening, which would hopefully contain a fix22:57
okykyrofa: and does app armor support integrity checks via hardware? (TPM, for example)22:57
kyrofaThat I don't know22:58
okyok, it's also tangential22:58
mupPR snapd#2796 opened: Fix checks failing on code formatting <Created by robert-ancell> <https://github.com/snapcore/snapd/pull/2796>22:58
kyrofaoky, also, to clarify terminology: snapd is the daemon behind the snap format. It's in charge of mounting snaps into place, running their services, handling updates, etc22:59
okykyrofa: thanks for all the info, i'm looking forward to seeing wider adoption on other platforms22:59
kyrofaoky, snapcraft is a packager. It allows one to create snaps22:59
kyrofaoky, "snappy" is just referring to the whole system22:59
okykyrofa: ok, i'll try to remember their distinct usages22:59
mupBug #1662357 opened: Can't use lsb_release on Ubuntu Core 16 <Snappy:New> <Snappy Ubuntu Core:New> <lsb (Ubuntu):New> <https://launchpad.net/bugs/1662357>23:18
mupPR snapcraft#1111 closed: tests: rename the waf test snap <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1111>23:30
=== wxl_ is now known as wxl
=== andyrock_ is now known as andyrock
=== DedSec_ is now known as DedSec
=== tai271828_ is now known as tai271828
=== beowulf_ is now known as beowulf
=== Dmitrii-Sh_ is now known as Dmitrii-Sh
=== dragly_ is now known as dragly
=== petevg_ is now known as petevg
=== mpontillo_ is now known as mpontillo
=== plars_ is now known as plars
=== cargonza_ is now known as cargonza
=== AndyWojo_ is now known as AndyWojo

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