[00:14] PR snapcraft#998 closed: plugins: update gulp plugin to use get_build_properties() and get_pull_properties() === JanC is now known as Guest61812 === JanC_ is now known as JanC [02:12] has anyone got the alias working on the snapcraft 2.24? I just found that example code at https://github.com/snapcore/snapcraft/blob/master/integration_tests/snaps/alias/snapcraft.yaml. when I run it, I get the error like "/snap/my-alias/x3/command-hello.wrapper: 5: exec: /snap/my-alias/x3/hello.sh: Permission denied". I tested it on 16.04 desktop [02:12] Hi,. guys. I just installed Ubuntu Core in a QEMU/KVM, and can anyone tell me why I can't run 'sudo passwd' without getting an authentication token manipulation error? [03:35] PR snapcraft#995 closed: plugins: update kernel plugin to use get_build_properties() [04:15] Hi, guys, I'm trying to set up LXD in Ubuntu Core. It tells me lxd is not found. I'm in the lxd group (that I had to create), and it still fails when I run 'sudo lxd init'. Can anybody help me out? [04:17] PR snapcraft#1020 opened: Change hello.sh to be executable [04:18] Bug #1635584 changed: "snap interfaces" output hides some magical, essential package name [05:52] does anyone know how to enable alias for snap application? thanks === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk [08:27] liuxg: hey [08:27] liuxg: do you mean the new aliases feature? [08:28] zyga, yeah, I just figured it out. [08:28] liuxg: ah, great, I haven't used it yet [08:28] zyga, I have to enable it using commands, and I wrote a blog for it at http://blog.csdn.net/ubuntutouch/article/details/53839566 [08:29] zyga, thanks for answering :) [08:44] PR snapd#2530 opened: tests: use MATCH in install-remove-multi [09:17] PR snapd#2531 opened: tests: make debug-each succeed if DENIED doesn't match [09:22] http://termbin.com/rv2u - this curses-based app prints garbage extra characters to the terminal when run as a snap, but works fine when run from stage/usr/local/bin/sneakers . Any idea what I need to tweak or add to get a curses app to work properly? [09:22] mcphail: perhaps it cannot access terminal profiles under hardcoded path in /usr/lib or /usr/share [09:23] as they are most likely in the core snap [09:23] zyga: do you know of any workarounds? [09:24] mcphail: patch ncurses in your snap to look for those profiles elsewhere [09:25] zyga: hmm. Would be better to have a more generic solution for curses apps, dont you think? [09:25] mcphail: such as? [09:26] ideally curses upstream would understand and use the $SNAP environment variable [09:26] zyga: perhaps a "curses" snap interface which exposes the correct directories? [09:27] mcphail: exposes them from where? [09:27] zyga: from the host os [09:28] mcphail: the host os can be just snappy core, then you don't have them [09:28] mcphail: or they can be in a wrong format (different major version of curses) [09:28] mcphail: I think they have to be in the snap [09:28] zyga: surely snappt core has them as well? [09:28] mcphail: if it did you'd have no problems [09:28] mcphail: as your app works against the core snap today [09:29] mcphail: perhaps the core has some basic profiles but I bet it doesn't have all the various profiles people get with extra packages [09:29] zyga: aah. I see [09:29] mcphail: the overmount interface can be of some help [09:29] mcphail: but that's a hack IMHO [09:30] zyga: ok. Thanks. That gives me something to explore [09:30] mcphail: https://github.com/snapcore/snapd/pull/2524 [09:30] PR snapd#2524: Overmount [09:30] mcphail, https://github.com/ogra1/nethack ... (old but most likely still relevant) [09:30] mcphail: that's not merged yet [09:30] ogra_: cheers. Will have a look [09:30] :) [09:31] ogra_: I'll try adding those stage-packages. The names sound promising! [09:32] * ogra_ notes that most of his snaps need updating ... but i try to stay away from my computer during vacation [09:32] mcphail, also look at the wrapper [09:32] ogra_: moin folks, i just built a snappy edge image and only get RuntimeError: nl_get_multicast_ids failed: -2 when trying to configure - http://paste.ubuntu.com/23672389/ - known bug? [09:32] longsleep, not to me ... sounds like a missing bit in the netwrok interface [09:33] oh, sorry ... i should hav clicked the paste first ... definitely a bug ! [09:33] ogra_: ok, is there anything i can do to access the thing to get some more debug? [09:33] longsleep: report it on subiquity please [09:33] yeah [09:33] zyga: subiwhat? :) [09:34] i had to google that :P [09:34] if its an arm board with SD there should be subiquity debug logs [09:34] you could pull them off the SD [09:34] ah yeah, its on sd [09:35] in /var/log/console-conf/ [09:35] (on the writable partition obviously) [09:36] zyga: but now that zyga is there, please tell me that that the apparmor confinement changes have landed in snapd and are already released in stable channel :) [09:36] then i might be able to actually release a useful snappy image today for pine64 [09:36] candidate should surely have everything in the latest iteration ... [09:37] not sure about stable ... i think the last snapd still waits for $people_coming_back_from_vacation [09:38] ogra_: ok i will try candidate channel next then [09:38] (the deb is definitely only in -proposed atm) [09:38] ogra_: searching for logs on on this subiquity - should it be in syslog? [09:38] in /var/log/console-conf/ like i said above [09:39] oh sorry [09:39] :) [09:39] ogra_, zyga: http://paste.ubuntu.com/23672411/ full log [09:40] my guess is an ipv6 issue ... thats mwhudson territory though [09:41] file a bug with the log attached for starters [09:41] ogra_: where should i file the issue? https://github.com/CanonicalLtd/subiquity/issues [09:41] launchpad ... [09:41] ogra_: or some place launchpad? [09:41] there is a subiquity package [09:42] and the snappy project (see topic) [09:42] open tasks against both [09:42] ok [09:42] ogra_: hmm, are you sure? id just file it against subiquity [09:42] anyway [09:42] longsleep: you can now file bugs on snappy on github too AFAIK [09:43] for non snapd projects ? [09:43] i thought only snapd wernt on its own [09:43] *went [09:44] * ogra_ hasnt heard anything about foundations owned projects using GH issues [09:44] (and i highly doubt they'd move) [09:44] PR snapd#2532 opened: tests: port refresh-all-undo to MATCH [09:46] ogra_: all right, i tried my best in getting the meta data right, https://bugs.launchpad.net/snappy/+bug/1652262 [09:46] Bug #1652262: subiquitycore exception in controller.run [09:47] looks good [09:47] Bug #1652262 opened: subiquitycore exception in controller.run [09:52] * ogra_ is off [09:54] ogra_: enjoy your holidsys :) [09:54] holidays* [09:56] ogra_: yes have fun away from computers :) [09:56] zyga: issue also happens on candidate channel, so it might be either my network or the device [09:56] * longsleep removes wifi [09:58] mhm did not help :( [10:00] also when LAN is not connected ever its the same issue [10:00] means no snappy image for xmas :) [10:02] PR snapd#2533 opened: tets: improve snap connect test [10:05] longsleep: which device is that? [10:05] Bug #1652265 opened: Initialization changes are removed right after first boot [10:18] ogra_: zyga: thanks - got the curses app to work perfectly! [10:19] mcphail: woot, great [10:19] mcphail: what was the key? [10:19] mcphail: maybe we can add a section to snapcraft wiki [10:19] mcphail: and document classes of workarounds there (e.g. the curses workaround) [10:21] zyga: basically, the extra console-setup-linux, locales and libc-bin stage-packages plus a wrapper script to set up a sane locale on first launch. A bit ugly, but it works. I just copies it from ogra's repo [10:24] PR snapd#2523 closed: tests: port additional snap-confine regression tests [10:38] zyga: pine64 [11:02] longsleep: oh, interesting [11:02] longsleep: maybe the wifi driver is broken, which kernel are you using? [11:15] Bug #1652273 opened: Ubuntu Core 16.04 Docker Seg Faults 139 [11:34] PR snapd#2533 closed: tests: improve snap connect test [11:35] PR snapd#2519 closed: tests: skip packaging dir generation for non-git based autopkgtest runs [11:35] PR snapd#2532 closed: tests: port refresh-all-undo to MATCH [11:36] PR snapd#2531 closed: tests: make debug-each succeed if DENIED doesn't match [11:47] zyga: 3.10.104, its a tree i maintain at https://github.com/longsleep/linux-pine64 [11:48] zyga: some of the wifi drivers in there are broken by design yes, but wifi works generally [11:48] PR snapd#2525 closed: tests: increase wait time for service to be up [11:51] longsleep: interesting, where do you keep your gadget and kernel snaps? [11:51] longsleep: I'd like to build a public project hub (on github) for community snappy systems [11:51] a place where one can easily find all the gadges/kernels [11:51] zyga: its part of my image building gear - https://github.com/longsleep/build-pine64-image/tree/master/snappy [11:52] zyga: any chance you might be able to help me get my key registered on the store? [11:55] zyga: i have asked for help a couple of times before in this channel, never found anyone who might be able to do anything. I am always getting "Key registration failed: The account-key-request assertion is not valid." with snapcraft register-key [11:55] zyga: i would really like to upload my gadget and kernel snaps to the store :) [11:56] and be able to sign the model would be cool too [11:57] longsleep: for that I cannot help, you want sergiusens or nessita I suspect [11:57] longsleep: I'd love to have your kernel and gadget in the store too :) [11:57] longsleep: I'm interested in making it easy to find the sources of all the kernels and gadgets that are public [11:58] longsleep: another one in the list is beagleboneblack [11:58] longsleep: (maintained by ogra_) [11:58] longsleep: and I plan to maintain something for beagle c4 [11:58] zyga: yes that would be good [11:58] longsleep: I'll try to make something like this soon [11:59] zyga: having a meta data reference in the snaps to some repository, similar to docker hup would be cool imho [11:59] docker hub [11:59] longsleep: yes, that's on sergiusens's roadmap already [12:01] zyga, well, the bbb kernel is just linux-generic (effectively just an armhf build of the of the pc kernel snap) [12:01] i just didnt want to steal the name which is why i called it linux-generic-bbb [12:02] https://code.launchpad.net/~snappy-dev/+snap/linux-generic-bbb [12:02] ogra_: that's fine, what we need are the snapcraft files, the readme's and the place to file bugs [12:02] i'll set up a project on LP [12:02] ogra_: and a place for everyone to play nice in one community where they can join easily and learn from each other [12:02] ogra_: I'd really prefer github for everything (for various reasons) but I won't stop you as you know :) [12:03] need to update the stuff too [12:03] well, i do 99.99% of my bugtracking on LP ... and githubs mail handling (at least for branches) is 100% unusable i do all my bug and branch tracking through mail [12:04] unless they fix that i'll keep the projects i own on LP for bugs ... sorry [12:04] ogra_: what is the problem with github issue tracking email notifications? [12:05] dunno, i havent done issue tracking on GH yet ... but the mail tracking for branches is completely unusable ... i simply suspect the issue tracking to not be different [12:05] but i guess i'll see that soon, once i get snapd issue mails ;) [12:07] ogra_: ah, issue tracking for branches [12:07] ogra_: can you tell me more about that? [12:07] as long as i have to work with the archive, debs, builds on LP i'll not mive for the bits i dont have to move [12:07] ogra_: I misread your earlier message [12:07] **move [12:08] well, the branch tracking simply has no info in the mails (compare them to LP branch changes where you get the diff inside the mail etc) it only has very limited amounts of info in it ... i.e. the conversation [12:09] it forces me to have another 500 tabs open in my browser since i can only see the diffs via web UI [12:09] (and i already have 500 tabs ... not really suitable) [12:10] very rarely someone comments inline where you get a very small snippet of the diff that has been commented on in the mail ... and there seems to be no way to change it in the GH mail settings [12:10] ogra_: so you'd like to get diffs whenver someone pushes to a branch? [12:10] i'd like to have the same handling i get from LP [12:11] diffs inline without having to open a browser etc [12:11] also, it get a mail for every fart someone lets in a branch ... its like 5x the spam i get from LP without any benefit [12:12] as someone who has to deal with 300-600 mails per day that is simply ineffective [12:13] ogra_: would you get that traffic on from two repos that have a snapcraft.yaml inside, each? [12:13] if you make any comment or change it sends a mail [12:13] without anything inside but "zyga made a change ... here is a link to the diff" [12:14] and that link to the diff just gets me to the web UI frontend ... i still have to click through to the file changes [12:14] GH just adds a lot more steps to my workflow [12:14] ogra_: note that you'd be the only person that can make changes to those repos [12:14] where Lp is perfectly effective [12:15] ogra_: I could comment on your repos but other than that, I'd have to open pull requests [12:15] right [12:15] ogra_: but LP is pretty unsocial and people just don't like it, if I'd like to build a hub for all the open source gadgets and kernels, building thato on LP seems like a bad idea [12:15] where the above applies ... to see your changes i'D have to do another 5-10 clicks in the browser [12:16] LP is unsocial ? [12:16] heh [12:16] ogra_: well, 5-10 is a bit exaggerated IMHO [12:16] not sure how you get that impression [12:16] staring from clicking in the mail to seeing the change its at least 5 clicks ... [12:16] ogra_: really? it's usually just one [12:16] if you have changed multiple files i even need to open multiple tabs [12:17] ogra_: that's not true, if I send you a pull request you just see the diff there [12:17] the click in the mail only gets you to the PR frontpage [12:17] anyway, you really wont convince me [12:17] ogra_: with all the files combined, you can click to see individual files and commits [12:17] ogra_: too bad, I reall wish to have a place where all the code is easy to find [12:17] and as long as i do still distro work LP is my choice for my own projects [12:17] GH is just way to painful and unfrieendly [12:18] i'm fine to follow suit where i need to (snapd, snapcraft etc etc) [12:18] but not for my own work [12:20] all my image building, deb management, archive work are on LP ... snap stuff is still a very small minority of my day to day work ... splitting that off to a rather un-userfirendly tool doesnt really help [12:21] (along with my browser keeping my fans running when i have GH pages open ... tzanks to their use of flash to create zip files on demand) [12:22] ogra_: I have a few doezen github tabs open and 1% cpu use on firefox [12:22] ogra_: maybe check if that's really github that's doing this [12:22] tell my laptop :P [12:22] yes it is [12:22] ogra_: can you share link, maybe it's not happening on all pages [12:22] if you diable flash the "download tarball" button asks you to enable it [12:23] ogra_: and that keeps your CPU busy? [12:23] ogra_: I don't have flash installed [12:23] its the big green button you get on branches on the top right [12:23] hmm, probably they dropped that recently [12:23] anyway, you wont make me a GH fan ... :) [12:24] i find it as userfriendly as git itself ... [12:25] along with the fact that there is a team i have direct access to to fix any LP issues in no time for me if i hit any [12:25] (and i really like to support my colleagues by using in-house stuff too) [12:27] ogra_: that I understand and respect [12:27] ogra_: I really wish lp was nearly as popular as gh, or had similar features [12:27] haha, i'd state the same sentence the other way around :) [12:28] (minus the popular but :) ) [12:28] ogra_: review tools are way better on gh :/ [12:28] i also dont see how we will ever have any customer projects on GH [12:28] ogra_: I don't use email much so perhaps that's why our views differ [12:29] i.e. any private stuff [12:29] ogra_: sure but "use the best tool for the job" [12:29] and i work a lot with these guys every day [12:29] when building a community hub for snappy sources [12:31] ogra_: btw, distro question, how can I get this fix released into xenial-updates (for autopkgtest package): [12:31] https://github.com/zyga/spread-qemu-images/blob/master/autopkgtest-fix.patch [12:32] it's an obvious bug, the URL changed, adt-builvm-ubuntu-cloud doesn't work with zesty or yakkety releases when invoked from zenial [12:32] xenial [12:32] it was a pitti project but I don't know where to send ths to [12:33] yeah, i dont know where it moved to ... ask infinity perhaps [12:33] it used to be a branch under his account before [12:34] can I distro-patch this somehow quickly [12:34] it's super annoying that this is broken and the fix is trivial [12:34] PR snapd#2530 closed: tests: use MATCH in install-remove-multi [12:34] I'll chase infinity after xmas [12:34] i guess you'd need to SRU it ... [12:35] so not "quickly" [12:35] I cannot even upload it, what should I do? [12:35] (but perhaps the autopkgtest package isnt that strict regarding SRUs given it needs to move fast) [12:35] I'm not a core developer [12:36] can you do it somehow? [12:37] hmm, they seem to actually use backports ... looking at https://launchpad.net/ubuntu/xenial/+source/autopkgtest [12:38] there are backports too, this patch is for the package in xenial-updates [12:39] (the backport is fixed but not everyone is on it) [12:39] i could surely upload the package but i dont know the process and would not like to cause extra work (i.e. i dont know if you need to commit to bzr or git first etc) [12:39] ogra_: ah, this is a native package [12:39] darn [12:39] it doesnt look like there were any uploads to xenial-updates ever [12:40] since release day [12:40] ar, right [12:40] odd [12:40] so? [12:40] so it seems the backports are used everywhere by default [12:40] but "apt install autopkgtest" doesn't use backports, does it? [12:41] everyone that pulls in this package will get the broken version [12:41] and the distro package seems to only have been synced from debian around release day [12:41] it even has "unstable" in the changelog [12:42] yes, if you just apt install it on your xenial desktop you get the outdated one [12:42] but who does that ? [12:42] well, everyone that gets it through dependencies or apt-get installs it? [12:42] adt is part of a bitter infrastructure [12:42] ogra_: it's just broken [12:42] *bigger [12:43] ogra_: sure but whatever the infra, adt is broken and I want to fix it :) [12:43] is anyone running it locally (i assume you need a complete local archive for the dependency checking etc) [12:43] running it at home doesnt seem to make much sense (ICBW indeed) [12:44] out of the setup it needs to run in at least ... and i would expect the official setup to default to use the backport [12:45] ogra_: you can use it to get `adt-buildvm-ubuntu-image` [12:45] ogra_: and then you can use it locally in many interesting ways [12:46] ogra_: you don't need the archive at home [12:46] ah, i didnt know that ... i only know atd-run in context of proposed migration in the archive [12:46] **adt-run [12:47] (i helped pitti to set up the containers and chroots years ago, but didnt touch it further ... apart from watching the actual run for packages at times) [12:47] ogra_: for some context: https://github.com/zyga/spread-qemu-images [12:48] zyga: is there a bug tracker somewhere where i can add my failure to register a key on the store, seems the snappy channel is not sufficient to get that resolved :) [12:48] longsleep: I don't know, this is something we should be better at (FAQ somewhere) [12:48] longsleep: report a bug on snappy or snapcraft, we'll move it later when we triage it [12:48] zyga, well, as long as "install -t ${VERSION_CODENAME}-backports autopkgtest" works ... [12:49] zyga: ok - will do thanks :) [12:50] zyga, as a quick hack you could put the first few lines from the code in the readme inside a setul.sh script ... then the user isnt bothered with the apt install stuff ;) [12:50] *setup.sh [12:51] i.e: run "./setup.sh" ... then run "make -C ~/spread/qemu" [12:51] PR snapd#2534 opened: debian: open 2.21 for development [12:51] ogra_: sure but that's more magic, I wanted to make it transparent as to what is going on [12:51] ogra_: I may end up snapping this, we'll see [12:51] i assume there is a reason why adt isnt SRUed ... [12:52] so you will always have that backports bit [12:52] (SRU is a pain) [12:52] that's why [12:52] new features [12:52] nah [12:52] zyga, you need to trust your colleagues !!! [12:52] get exceptions and stuff [12:52] :P [12:52] ogra_: I trust them [12:52] but they used this hack, not me ;) [12:53] we all instinctively sidestep distro process issue [12:53] issues* [12:53] (that was an inside joke referring to mark teasing me in vancouver when i said SRUs arent really an option :P ) [12:54] hehe, I assumed it was :) [12:54] but wanted to be honest too [12:55] I got the reference instantly [12:55] hi everyone [12:55] zyga: https://bugs.launchpad.net/snapcraft/+bug/1652302 created, it would be awesome if you could asign it to someone who might actually be able to help [12:55] Bug #1652302: Key registration failed: The account-key-request assertion is not valid. [12:55] SRUs *are* a pain ... but as long as we have the package in the distro and need to use it there, there is sadly no way around them [12:56] i think weven the fast path setup we have for snapd today is awful ... but its the best we can get [12:59] yay ... my resistor pack finally arrived from the UK ... [12:59] * ogra_ will spend christmas with soldering iron and multimeter :) [13:00] lucky you, today the DHL guy did come without any change so i could not pay customs tax :/ [13:00] crap [13:00] but i guess you can still pick it up tomorrow at a store, no ? [13:00] he promised to come later again, but later has been an hour ago :) [13:01] good luck ... mine was actually supposed to arrive on tue... i didnt even expect it today [13:02] yeah, but i leave for holidays tonight - so either i leave without my personal tech presents from china or the guy stays true to his promise [13:02] oh man [13:02] in any case, i packed my soldering iron already [13:02] lol [13:02] * ogra_ woundlt be able to actually travel with the stuff he builds ... [13:02] *wouldn*t [13:03] http://imgur.com/jnoLQd5 [13:03] the output transformers alone weight ~15kg [13:03] lol what is that [13:03] a tube amp [13:03] old hobby i revived this year [13:04] for music? [13:04] yeah [13:04] ogra_: cool, what are you building? [13:04] too many low voltage boards in my life, i had to do something with 300+ volts again ;) [13:05] zyga, see above i pasted a pic [13:05] do those tubes glow when on? [13:05] its the first time i use a pre-made case though ... [13:05] usualyl i build the whole thing from a piece of sheet metal [13:05] oh, nice! [13:05] indeed they glow [13:05] awesome [13:05] and they sound awesome ... [13:06] try it with x-mas songs :P [13:06] (very expensive though ... what you see in the pic is already in the 800€ range ) [13:06] heh [13:06] i will [13:09] is it just me, or there is a problem that you cannot find some apps on a ubuntu core system? for example I was trying to search for an app on Rasberry Pi, and I can't find it, but I can find the app when I search on a non-ubuntu core system [13:09] snapper, how do you try to find it on both systems ? [13:10] snap find [13:10] also ... is the non pi system x86 ? perhaps the package only exists for x86 [13:10] it is really up to the packager if he wants to offfer his packages for arm [13:10] hum [13:11] the non-pi system I'm using a regular ubuntu [13:12] https://uappexplorer.com/apps?sort=relevance&type=snappy [13:12] you can search for it there ... [13:12] I thought that the snaps were universal [13:12] if you click on the snap there is an "architectures" field in the description [13:12] I'll take a look, thanks :) [13:13] sosorry I have no idea about this, but for the pi, then I would have to pack it differently? [13:13] snaps are uploaded as binaries ... unlike debs [13:13] so you need to build the binary for the target arch (or use LP to build it) [13:13] some uloaders only build for PC ... [13:14] x-mas is save, DHL just came with change - yay! [13:14] *uploaders [13:14] i did find it there, it is as amd64 architacture [13:14] longsleep, yay, congrats ! [13:14] snapper, yeah, then you wont find it on the pi [13:14] ogra_: thanks, DHL express is pretty awesome [13:14] ok, thanks :) [13:14] * ogra_ thinks we should make x86 binaries executable on arm [13:15] ogra_: use windows :P [13:15] :) [13:15] well, i wrote qemu-user-static originally ;) ... there is no reason that shouldnt work the other way around (with limitations for sure, but basics should work) [13:16] thogh i doubt you could make amd64 work on arm32 ... would have to be i386 [13:19] * zyga -> lunch [13:19] * ogra_ goes afk as well [13:55] PR snapd#2535 opened: tests: port more snap-confine regression tests === ben_r_ is now known as ben_r [16:17] what is the difference between stage-package and build-packages? I'm looking at documentation and snapcraft.io and it says stage-packages "support the part creation." whereas build-packages "aid in building the part.". [16:18] this sounds kind of synonymous [16:18] what is exactly "part creation"? [16:24] iliv: hey [16:25] hi zyga [16:25] iliv: the difference is that stage-packages are automatically staged (added) to your snap [16:25] iliv: while build packages are just installed on your systems [16:25] iliv: so that you can build your snap [16:25] iliv: typically you'd see various -dev packages in build-packages [16:25] iliv: the build-packages are the things which are needed to build the binaries (e.g. the -dev packages), whereas the stage packages are the things needed to run your binaries (the libs) [16:25] are stage-packages essentially runtime dependencies? [16:26] iliv: yes, I think so [16:26] iliv: it's "add this blob to my package" [16:26] it's not strictly "runtime deps" as nothing apart from unpack is done [16:28] I see [16:28] thank you [16:36] PR snapd#2536 opened: overlord/snapstate: use keyed fields on literals === devil is now known as Guest50447 [17:08] iliv, the important difference is that build-packages get installed on the system building the snap (i.e. they don't go into the snap), whereas stage-packages are unpacked directly into the snap [17:09] got it [17:09] iliv, stage-packages are unpacked before pull, however, so they can also be build-time dependencies that you also want in your snap [17:21] PR snapcraft#1020 closed: Change hello.sh to be executable [17:21] PR snapcraft#1021 opened: integration tests: add alias integration test === davmor2 is now known as davmor2_EOY [17:28] kyrofa - you around? [17:28] grapestomper, I am, how can I help? [17:28] kyrofa - I looked at the example you gave yesterday - try to run sh as a service [17:29] to copy fie at snap install === Sir_Gallantmon is now known as Son_Goku [17:29] grapestomper, run into troubles? [17:30] I tried but no dice - when I install the snap I cannot find the sh file in the common or usr dir for the service to run [17:30] grapestomper, do you have the code pushed anywhere? Let me take a look [17:30] just a sec [17:31] I will push to git and send a link [17:33] https://github.com/chadyoungdell/Snappy_Ubuntu_Core/tree/master/Snapcraft_2.x/Shell/SystemInfo [17:34] grapestomper, alright just looking at the snapcraft.yaml I see something fishy [17:34] grapestomper, the organize at the bottom: `copyreadme: $SNAP_DATA` [17:35] grapestomper, $SNAP_DATA is only available at runtime for the snap, not at build time (i.e. snapcraft can't put anything there for you) [17:37] grapestomper, so you need to put a cp $SNAP_DATA in a script that is run within the snap, when it's installed [17:37] hmmm - so thats what I am trying to figure ouy :) [17:37] out [17:38] where in the snapcraft to I tell it bout that script [17:38] grapestomper, you make it an app [17:38] grapestomper, so in the nextcloud snap, mysql is an app [17:38] grapestomper, a daemon [17:39] grapestomper, but mysql isn't run directly, a helper script is called [17:39] https://github.com/nextcloud/nextcloud-snap/blob/master/snapcraft.yaml#L20 [17:39] PR snapd#2536 closed: overlord/snapstate: use keyed fields on literals [17:39] but isnt that what is on L23 [17:39] grapestomper, a script named "start_mysql" [17:39] grapestomper, indeed, but copyreadme doesn't do anything [17:40] hmm I will take a look again - back in a few min [17:41] grapestomper, at the bottom of copyreadme you should do `cp README_systeminfo.md $SNAP_DATA/` or something [17:51] PR snapcraft#1022 opened: plugins: update copy plugin to use get_build_properties() [17:54] Kyrofa - Thank you, I will hack at it some more [17:59] in this snap.yaml, I wish a content interface named control: http://pastebin.ubuntu.com/23674170/ [17:59] what hìI have to rename, the inner or out content? I think the first one [17:59] but what about the one in the last line? that's the interface type or the plug name? [18:00] matteo, first of all, you don't technically need the `plugs` at the bottom in this case. If it has no plugs it'll get the ones declared globally [18:01] matteo, when you talk about having to rename... what do you mean? Why do you have to rename? [18:02] I have created a plug named content [18:02] Indeed [18:02] PR snapd#2534 closed: tests: debug zesty autopkgtest failures [18:02] I want to name it "control" [18:03] matteo, ah, easy [18:03] PR snapd#2516 closed: tests: cancel the scheduled reboot on ubuntu-core-upgrade-no-gc and restore state [18:03] matteo, the outer name ("content") in this case can be changed to whatever you like, and that'll be the name of the plug [18:04] matteo, however, if you change it away from "content" you need to also specify `interface: content` in the definition [18:08] ah ok [18:08] trying [18:10] kyrofa: great! [18:11] now, when I connect it I should see a bind mount somewhere? [18:12] matteo, you asked the bind mount to be on top of $SNAP_DATA. I'm not 100% sure that'll work [18:12] I'll create a subdir then [18:12] maybe sockets/ [18:13] matteo, I've only used absolute paths (e.g. /bar) that end up being relative to $SNAP [18:13] matteo, yeah, whatever you use, make sure that directory exists [18:13] so, just "/sockets" ? [18:13] or $SNAP/sockets [18:14] If you use /sockets it'll be relative to $SNAP (I think supporting $SNAP is a relatively new feature, not sure what release) [18:14] ok [18:14] so /sockets will be more backward compatible [18:14] I have to create the directory [18:15] Yeah, it's a bind mount. It needs to have a mount point [18:15] Unless it's advanced beyond that since I played with it (possible) [18:15] ok [18:16] Although if it makes its own mount points, you'll have to use a writable area [18:16] So I suspect that supported in v2.20 [18:16] ok [18:16] I'll go for the readonly one [18:19] cannot mount /var/snap/wifi-ap/x1/sockets at /snap/wifiap-consumer/x1/sockets with options bind: Permission denied [18:19] mmm [18:19] What gave you that error? [18:19] snap connect wifiap-consumer:control wifi-ap:control [18:20] matteo, and /snap/wifiap-consumer/x1/socket is an existing directory? [18:20] drwxrwxr-x 2 test test 31 Dec 23 18:15 /snap/wifiap-consumer/x1/sockets [18:20] drwxr-xr-x 2 root root 4096 Dec 23 18:18 /var/snap/wifi-ap/x1/sockets [18:21] maybe some directory permissions? [18:21] matteo, ah, are you `snap try`ing? [18:21] yes [18:21] I'm spreading [18:21] matteo, try actually installing it, I've noticed weird issues with that type of thing as well [18:22] it's installed with dangerous [18:22] But you've got it installed via `snap try`, no? [18:22] sorry, plain snap install [18:22] snap install --dangerous $snapfile [18:23] Ah, I misunderstood. Huh, I figured everything would be owned by root there [18:23] Oh oh [18:23] Did you `sudo snap connect`? === Son_Goku is now known as Conan_Kudo [18:24] snap connect wifiap-consumer:control wifi-ap:control [18:24] Try it with sudo === Conan_Kudo is now known as Son_Goku [18:24] # snap interfaces |grep :control [18:24] wifi-ap:control wifiap-consumer [18:24] I'm root [18:25] matteo, how did you create the `sockets` directory in your snap? [18:27] in the squashfs file [18:28] matteo, manually? i.e. not via snapcraft? [18:28] I use mksquahfs [18:28] it's an example snap to test an interface [18:28] the socket dir is in the FS [18:28] matteo, ah, probably not with all required parameters [18:28] located at /snap/wifiap-consumer/current/sockets/ [18:29] matteo, instead of using mksquashfs, use `snapcraft snap ` [18:29] no, I don't have snapcraft in the spread VM [18:29] Is this using the snapd codebase? [18:29] it's a spread test [18:30] Within snapd? [18:30] no, in wifi-ap [18:30] Ah, okay. Let me get you the exact instantiation you need, then [18:30] ok [18:30] Because whatever you used looks wrong [18:31] Yeah, `mksquashfs -noappend -comp xz -no-xattrs -all-root` [18:32] matteo, note that if you can install snapcraft in the spread VM you won't have to track that if it changes again [18:32] Just to it in the project-wide prepare [18:32] ok [18:32] s/to/do/ [18:36] Permission denied [18:36] kyrofa: I want to try to mount it by hand [18:36] mount --bind /var/snap/wifi-ap/x1/sockets /snap/wifiap-consumer/x1/sockets [18:36] it works [18:37] matteo, unfortunately snaps have their own private namespace for that stuff [18:37] matteo, does syslog say anything when you get permission denied? [18:37] [ 216.884517] audit: type=1400 audit(1482518231.065:41): apparmor="DENIED" operation="mount" info="failed srcname match" error=-13 profile="/usr/lib/snapd/snap-confine" name="/snap/wifiap-consumer/x1/sockets/" pid=1807 comm="snap-confine" srcname="/var/snap/wifi-ap/x1/sockets/" flags="rw, bind" [18:37] ah it's snap-confine [18:38] Huh. What version of snapd and snap-confine do you have? [18:38] snap 2.20 [18:38] snapd 2.20 [18:39] How about snap-confine? [18:39] matteo, also, can you pastebin the slot side? [18:39] yes [18:40] http://pastebin.ubuntu.com/23674393/ [18:42] matteo, just out of curiosity, what happens if you make that `read`? [18:42] I can try [18:42] but there was a discussion about sockets having to be write [18:43] matteo, oh yeah, it'll definitely break [18:43] matteo, but I'm curious if the mount succeeds [18:45] it fails [18:45] how long may it take for Launchpad project to import a github repo? I'm looking at 19 minutes already and it seems like something went down wrong somewhere... [18:46] iliv, in my experience it checks for updates once every 5 hours or so [18:46] iliv, but you can ask it to check sooner [18:46] iliv, though if it's the first time you set it up it should be more or less immediate [18:47] yeah, it has been that in my case [18:47] just not this time [18:47] matteo, huh, same error message (minus the rw)? [18:47] I see it has finally imported code [18:47] took about 20 minutes this time [18:47] iliv, perhaps there was a bit of a backlog [18:47] didn't check the syslog, just the output [18:47] cannot mount /var/snap/wifi-ap/x1/sockets at /snap/wifiap-consumer/x1/sockets with options bind: Permission denied [18:48] matteo, huh, I'm afraid you've moved beyond my experience. I suggest emailing the snapcraft list [18:48] matteo, most people are on vacation, but we still check the mailing list [18:49] thank you [18:49] I think I'll go on vacations too, starting now :) [18:50] merry christmas, and snappy new year :D [18:52] You too matteo! [18:52] PR snapd#2535 closed: tests: port more snap-confine regression tests [19:00] Bug #1652369 opened: Cannot connect to ubuntu-app-platform package on consecutive installs [19:03] hm, I have a build that works locally just fine but Launchpad shows this error message: local source (parts/pgpool/build/src/) is not a directory [19:03] complete buildlog https://launchpadlibrarian.net/299818200/buildlog_snap_ubuntu_xenial_i386_postgresql95-pgpool2-35_BUILDING.txt.gz [19:03] iliv, is your code public? May I see it? [19:03] yes [19:04] https://github.com/commandprompt/postgresql95-pgpool2_35-snap [19:04] kyrofa, specifically https://github.com/commandprompt/postgresql95-pgpool2_35-snap/tree/3.5.4 [19:06] iliv, hmm, we highly recommend keeping parts independent [19:06] iliv, using other parts as sources isn't supported [19:06] well, it works locally [19:06] iliv, it won't everywhere, and it won't always [19:07] iliv, so this pgpool part has extra bits that it doesn't build? [19:09] it's a thing with PostgreSQL projects apparently... they like to have mini sub-projects, in this case pgpool-II extensions. you build pgpool-II, the main application, then if you want/need to build extensions you cd src/sql/$EXTENSION_NAME and run the usual make && make install [19:09] iliv, no option to say "build this for me too, please?" [19:09] no, unfortunately [19:10] iliv, do the extensions require the built pgpool? [19:10] in fact, PGDG ships these extensions as individual packages in APT repo [19:10] I'm not 100% sure but they might not [19:10] iliv, yeah that's normal, but actually having completely separate build systems in the same tree seems odd [19:11] iliv, if they don't, the easiest thing to do would be to simply use the same `source` for all the parts [19:11] It'll redownload, which is annoying, but it'll work [19:11] iliv, oh wait, actually [19:11] iliv, what version of snapcraft are you on? [19:12] Launchpad kyrofa [19:12] iliv, I assume you're testing locally first, no? [19:12] correct [19:12] iliv, if only launchpad, building against xenial and updates pocket? [19:12] $ snapcraft -v [19:12] 2.22.1 [19:12] iliv, so locally, what version? [19:12] Can you update? [19:13] v2.24 introduced a new feature you can probably use here [19:13] already updating.. one momen [19:14] moment * [19:14] what is the feature? [19:14] kyrofa: well, given that snapd has gone down this bucket of insanity, why the heck not, eh? >:( [19:14] Son_Goku, what are we talking about? :P [19:14] (having multiple build systems inside of a single source tree that are not interdependent) [19:14] Son_Goku, ugh [19:14] (but yet nothing works without everything built) [19:15] all I can say is: I tried [19:15] but I was the lone voice for sanity in a sea of crazy [19:15] Son_Goku, hahaha [19:15] Son_Goku, I gave up long ago [19:16] * Son_Goku shrugs [19:16] Son_Goku, good effort, though [19:16] iliv, alright, sorry, back to you [19:16] iliv, I'm making a paste for you [19:17] plz help i lost my administrator password [19:17] $ snapcraft -v [19:17] 2.24 [19:17] screwed, on what? [19:17] how the hell do i fix this its pissing me off [19:17] iliv, alright good deal [19:18] forgot admin password [19:19] screwed, to what? [19:19] i forgot admin password to my laptop [19:20] im running ubuntu [19:20] screwed, wrong channel [19:20] screwed, try #ubuntu or better google "how to reset lost password ubuntu" [19:20] screwed, you might try in #ubuntu [19:21] i figured who ever is on here may know enough to help me. ive tried everything i can think of or have access too [19:21] did that [19:22] kyrofa, so what is the feature you mentioned? [19:22] iliv, here you go: http://pastebin.ubuntu.com/23674584/ [19:22] iliv, I'm not tested that, but it should give you the idea [19:22] iliv, v2.24 introduced three new keywords: prepare, build, and install [19:23] where can I learn more about them? [19:23] iliv, `prepare` runs before the plugin builds, `build` replaces the plugin build/install, and `install` runs after the build/install [19:23] it's a shame snapcraft still doesn't have a man page [19:23] iliv, at this point snapcraft needs a book :P [19:24] alright, thank you kyrofa [19:24] I'll try that approach next year :P [19:25] and now is the time for some vacation and winter holidays [19:25] iliv, enjoy! I'll be joining you shortly [19:26] no its time to help me [19:26] iliv, that sounded creepier than it did in my head [19:27] :) [19:27] screwed, did you ask on #ubuntu? [19:27] yes [19:27] I think he may be a troll [19:28] aren't you screwed? [19:28] iliv, that's okay :) [19:28] im not a troll [19:29] screwed, did you see https://askubuntu.com/questions/24006/how-do-i-reset-a-lost-administrative-password ? [19:29] im dead serious [19:29] screwed: you're in the wrong channel, afaict [19:29] yep i tgried the grub loader thing [19:30] screwed, if that doesn't work I'm afraid no one here is qualified to help you. We're all Windows geeks around here [19:33] There. Sorry guys [19:39] I'm sad that worked [20:02] Son_Goku, what, back in your day trolls put in more effort? ;) [20:02] sadly, yes [20:02] they were heartier trolls! [20:03] and also, they at least read the topic to realize what you said was a flat out lie [20:05] :P === petevg is now known as petevg_happyholi === petevg_happyholi is now known as petevg_holidays [20:12] PR snapcraft#1022 closed: plugins: update copy plugin to use get_build_properties() === JanC is now known as Guest57833 === JanC_ is now known as JanC [20:48] PR snapcraft#761 closed: Remove dangling symlink from JDK plugin [20:48] PR snapcraft#836 closed: Deal with 404 responses from the store's snap status endpoint [20:54] PR snapcraft#929 closed: Snap snapcraft (based on pylxd branch) [20:57] PR snapcraft#1013 closed: Cloudbuild (based on pylxd branch) [21:24] Alright, EOY for me. Merry Christmas everyone! [21:33] kyrofa: Merry Christmas :)