[02:27] So if I'm suppose to put binaries inside this snappy package, does that mean I need multiple packages to be able to support multiple arches? === erkules_ is now known as erkules [07:25] Good morning [07:48] tgm4883, you can put all arches into one (in subdirs) at the cost of size ... and have a wrapper script select the right binaries [08:26] Thinking out loud here; on Desktop with Snappy, once all the apps are moved out of the image and in to Snaps, lets assume that there is a security update required in a particular "thing" in the image. [08:26] you will get an image upgrade [08:26] At the moment we can update individual libraries, within reason [08:27] and so we could be pushing out an update a week on U7/.deb [08:27] and that might be a few hundred K [08:27] In the Snappy world, does this mean we would push out a whole new image? [08:27] on snappy it will be less [08:27] And if so, it's likely to be large [08:27] since we provide deltas ... [08:27] ahh, nice [08:27] yes [08:27] deltas FTW [08:28] thanks ogra_ [08:28] so you only recieve the changes, not a full new package [08:28] they will be bundled in an image upgarde though, that is indeed right [08:28] but that upgrade could be tiny [08:29] it is likely big because we'll collect a bunch of issues in an upgrade ... but the single fix is smaller overall [08:29] (and for security issues there might be hotfix images with only that one change perhaps) [08:29] So are you saying it would be upgraded less frequently? [08:29] on the phone we currently manage 4-6 week cycles [08:30] oki [08:30] that's impressive :) [08:30] but that is with all QA resources used already [08:30] i suspect we need to get better here as we spread the spectrum of images [08:31] +1 [08:31] * willcooke speaks to QA [08:31] seb128, fyi (but I expect you already knew all this) ^^ [08:31] * willcooke -> meeting [08:31] cheers ogra_ [08:31] always a pleasure [08:31] :) [08:32] willcooke, yeah, but thanks for the ping anyway ;-) [08:33] Good morning all; happy I Need A Patch For That Day! 😃 [09:49] mvo: you around? [10:19] mvo: ullo? [10:19] Chipaca: hey [10:19] mvo: hiya [10:19] mvo: was looking at https://code.launchpad.net/~mvo/snappy/selftest-docker-robustness/+merge/259734 and wondering why you don't use systemctl's pattern instead of passing it through grep? [10:20] Chipaca: I don't know, I guess using systemctl makes way more sense :) [10:20] mvo: it's a glob, not a regex, but other than that [10:21] Chipaca: cool, I will update, thanks a bunch [10:21] mvo: on the other hand [10:21] mvo: systemctl does not fail on no matches [10:22] mvo: so you either still need to grep (in which case, meh), or do something like [10:22] systemctl show whatever*.service --property 'Id' [10:22] and check for empty string [10:22] mvo: and at this point i think i'm bikeshedding :) [10:23] mvo: sorry. will +1 as is. [10:24] there [10:24] Chipaca: :) [10:24] Chipaca: all good, thank you very much [10:25] mvo: sergiusens: did you guys see my email wrt tmpreaper? [10:27] Chipaca: yes, I think its a good idea I need to reply properly [10:27] ah, ok [10:27] Chipaca: had a bit of a single-minded-hacking morning with the upgrade tests [10:27] i'm not impatient about the response, it's that i so rarely shoot off emails like that i wondered if it was still an effective means of communication :) [10:37] Chipaca: it is effective at getting to people, not sure about getting back a proper response :P [10:41] :) [11:21] anyone understands the "Can we make renames work? [11:21] " [11:21] thread? [11:21] is that an issue at all for snappy? [11:22] or just phone? [11:22] mvo: ? [11:23] asac, it is an issue with processes trying to create a backup file or some such when you have no writable dir (but only made the file writable via a bind mount) [11:24] i suppose it affects snappy too if bind mounts are used for wriability [11:24] *writability [11:25] well, we generally know what wants to write [11:25] well, for creating a new file we have no concepts with the bind mounts [11:27] imagine my daemon creates /etc/foo.conf-bak every time it writes to /etc/foo ... if /etc/foo.conf-bak doesnt exist as a bind mounted empty file and /etc isnt writable the daemon will fail to make the backup file [11:27] * Laney was summoned [11:28] so you either need to know in advance how that backup file (or worse, temp file) is called and have an existing bind mount ... or /etc is writable [11:28] renaming a mount point doesn't work [11:28] right [11:28] that's why we have to have the directory [11:28] I think xnox'es “conig-less” efforts line up with this quite nicely, me [11:28] the directory Laney refers to is /etc/writable ... [11:28] config-less* [11:29] so the hack we currently use is to put /etc files into that dir and add an additional bind mount on top [11:29] kind of, but you still want to have atomic renaming work [11:29] that way the process finds a writable dir to do its atomic changes and temp file creation etc [11:31] ogra_: mvo asac it shouldn't affect snappy core, we have mostly nothing in there [11:31] asac, effectively it boils down to "we should use overlayfs, but if we cant it would be nice to find something more elegant than bind mounts to allow atomic writes" [11:31] sergiusens, my mount command disagrees [11:31] (and my fstab too) [11:32] ogra_: your daemon can't create /etc/foo.conf-bak though, that would never be accepted [11:32] heh, someone tries IRC on his phone :) [11:32] well, I think the end goal is what pitti wrote, move stuff out of etc. and like sergiusens said, not a biggie for us on core yet [11:32] sergiusens, it can ... if we use the /etc/writable hack [11:33] that is why we have it :) [11:33] (amd64)ubuntu@localhost:~$ ls /etc/writable/ [11:33] hostname localtime timezone [11:33] and we even use it on snappy [11:35] ogra_: I don't like /etc/writable though [11:36] sergiusens, nobody does, that is what the discussion is about :) [11:37] ogra_: I thought it was more general though, random libraries wanting to do things on read only locations [11:37] i'd keep /etc writable and put an apparmor profile on top making everything readonly with a whitelist of exceptions ... done [11:38] ogra_: the problem of making global locations writable is that you would need to maintain compat, we also need to be able to rollback (for the a/b model) [11:38] sergiusens, it surely is a wider thing long term ... currently the only big wart we have is /etc/writable ... in the future we would probably end up with /usr/lib/writable, /var/writable and so on [11:38] before we have to do the latter we should have found a better mechanism ;) [11:41] Laney: thanks. i was confused what this rename thing means for snappy [11:41] but i think others understand it so i will have them explain it to my small brain :) [11:42] oh yes I think it's a well known problem [11:42] just came up once again so I thought we better think about it systematically :) === rickspencer3_ is now known as rickspencer3 [12:58] question, why the xz format for snappy images? [12:59] size [12:59] jgdx: my guess is best compression ratio, do you see a issue with that or are you just curious? [13:00] (it comes originally from the size limitation the /cache partition puts upon us on phones) [13:00] mvo, just curious, but a friend of a friend has an issue with image downloads not being consistent in format [13:00] device tarballs, ubuntu desktop isos, snappy xz :p [13:03] heh :) fair point [13:08] jgdx: well snappy is a deb though ;-) [13:09] sergiusens, mvo, hey, is there any documentation somewhere on installing snappy on a amd64 laptop config (if that's even possible, or if it's not is anyone working on that)? [13:12] seb128: you can just dd the image to a usb stick or hdd and boot from that [13:12] seb128: we have nothing yet that can lay it out on your internal disk in an easy way and no docs specifically mentioning laptops but running from a usb drive is possible [13:12] mvo, does that support secure boot/uefi? [13:13] it should support uefi (the published images don't yet) [13:13] my test laptop doesn't boot from unsigned device I think [13:13] aha, nice, so u-d-f images can now do uefi? thats cool [13:13] I once tried to boot a i386 desktop iso and the system was not even seeing the key as a boot device [13:14] sergiusens, so I need to use an "unpublished image"? where do I find those? [13:14] mvo: yes, slangasek added support for uefi to u-d-f [13:14] seb128: you need to create one [13:15] good morning. [13:15] sergiusens, any documentation on how to do that? ;-) [13:15] mvo: want to talk about the tests now? Should we just chat here? [13:15] sergiusens, i think there is currently a bug with UEFI ... i saw slangasek and tbr discuss it recently [13:16] oh [13:16] bug 1425370 [13:16] bug 1425370 in goget-ubuntu-touch (Ubuntu) ""ubuntu-device-flash core" images can't boot with UEFI" [Undecided,Fix released] https://launchpad.net/bugs/1425370 [13:16] seb128: in theory just running 'u-d-f core 15.04 --output amd64.img' should do the trick [13:16] sergiusens, thanks (let's see if practice matches theory ;-) [13:17] seb128: there is documentation but I don't recall where it is, but the bug ogra_ mentions might impact you [13:17] ogra_, that's fix released [13:17] elopio: yes please! we can use whatever medium works best for you, irc, hangouts, mumble [13:17] ogra_: yeah, slangasek wrote code to fix that bug ;-) [13:17] seb128, yeah, 13h ago ... i'm a little behind :P [13:18] ogra_, :-) [13:18] sergiusens, it was re-opened after that ... but turned out to be the qemu UEFI firmware [13:18] ogra_: I wonder who marked it as u-d-f fails to build (snappy changed) [13:18] lets just start here, because I might have to leave for a meeting. Not sure what's the schedule for the sprint today. [13:18] so it was closed last night again [13:19] * sergiusens needs to catch up on the snappy changes for webdm and u-d-f [13:19] I'll just list some things I would like to see. We should probably choose only the ones that allow us to go faster and safer. [13:19] sergiusens, lool, I just set up my rpi2 with sergiusens's latest image, seems to be working perfectly [13:19] the tests should be independent. You should be able to run them in any order, or select only one and get a good result. [13:20] rickspencer3: cool [13:20] sergiusens: what had you changed? you just included webdm? did you also add fixrtc? [13:20] sadly, it does not respond to ssh ubuntu@webdb.local, but perhaps that is a user error ;) [13:21] lool: your image was created a day before release, that same day, mvo made oem package types non forkable removing the .origin from them [13:21] we need a better framework for setups, assertions, and test case definition. Moving to go would solve this, of course. There are also some bash frameworks, but (...) [13:21] sergiusens: ah yes, I have to push the renamed oem snap too [13:21] lool: webdm was built out of the latest snappy so it rejected that package completely (if the layout is wrong I call it a broken system) [13:21] we need a better report of the results. subunit would be awesome, but junit or anything like that would do. [13:22] the tests should define their own environment as much as possible. Asserting for regular expressions because we don't fully control the versions we are installing or the messages we are getting back is not so good. [13:24] and I would like the tests to be more readable, at least the ones that are end-to-end from the point of view to the user. [13:25] like have every statement in the test be an action, and that would make the test look more like what you get with behaviour-dd. [13:26] @reviewlist [13:26] https://code.launchpad.net/~chipaca/ubuntu-core-launcher/unshare/+merge/258367 | Approve: 2 (14 days old) [13:26] finally (for now), we need to start thinking about tests that need actions both from the host and the testbed, like making sure that you can open webdm from your PC. [13:26] https://code.launchpad.net/~sergiusens/webdm/queryPackageNames/+merge/258640 | No reviews (12 days old) [13:26] https://code.launchpad.net/~sergiusens/snappy/ubootNoUnnecessaryRewrites/+merge/259739 | Approve: 1 (less than a day old) [13:26] https://code.launchpad.net/~mvo/snappy/snappy-merge-integration-tests/+merge/259592 | Needs Information: 1, Approve: 1 (less than a day old) [13:26] https://code.launchpad.net/~mvo/snappy/snappy-fix-ftbfs-sbuild/+merge/259479 | Approve: 1 (1 day old) [13:26] rsalveti: ^ [13:26] nothal: help me help you [13:26] yeah, that's cool [13:26] * Chipaca hugs nothal [13:26] * nothal hugs Chipaca [13:27] was it @help, or was it @list? [13:27] @help [13:27] "list" To see the available commands ; "help cmd" for specific command help [13:27] @list [13:27] The available commands are: ['bug', 'critical', 'help', 'last', 'list', 'more', 'ping', 'reviewlist', 'seen'] [13:27] maybe it's enough to make sure that it works in localhost, and that you can access the board's ip from outside. Or maybe we need an end-to-end test also for that. [13:27] @help critical [13:27] show the crtical bugs for self.project (could be a meta project) [13:27] @critical [13:27] @seen mvo [13:27] Chipaca: [05/21/15 13:17:29] elopio: yes please! we can use whatever medium works best for you, irc, hangouts, mumble [13:27] mvo: do you have any items you would like to see in the tests? [13:27] @help last [13:27] Muestra que fue lo Ășltimo que dijo un usuario. [13:28] lol [13:28] @last sergiusens [13:28] Chipaca: [05/21/15 13:28:02] lol [13:28] translations :-) [13:28] hal, dance for us [13:28] nothal, dance for us [13:28] duurn [13:28] not all plugins are there :) [13:28] anyway, things like bug #1449032 work [13:28] Bug #1449032: delay when upgrading [13:28] bug 1449032 in Snappy "delay when upgrading" [High,Triaged] https://launchpad.net/bugs/1449032 [13:29] now now bots, no fighting [13:30] mvo: http://paste.ubuntu.com/11264293/ so you don't have to dig on the backlog. [13:30] mvo: do we have any sort of brain dump somewhere that describes our goal for self-tests and so on? [13:30] but it seems you're working with elopio already, which is great [13:31] just trying to understand the missing pieces :-) [13:31] elopio: thanks a lot, that helps indeed :) [13:31] elopio: and sorry for the delay, was just reading some exciting code from sergiusens and forgot the world around me [13:32] rsalveti: >< thats my brain right now :P but seriously, I don't think we do have something written down, let me add that to the README and I point you it once thats done(?) [13:32] mvo: :) no problem. And feel free to disagree. [13:32] * elopio goes to find the exciting code. [13:34] elopio: http://snappy.asac.ws:9001/p/snappy-better-test and I do not disagree at all [13:37] mvo: thanks for the review, will fix when i get back [13:38] sergiusens: yeah, no worries, nice to see this branch really [13:56] mvo: yeah, nothing formal, most important now would be the stuff we don't yet have for it, so we keep track while elopio gets up to speed [13:56] but love what you got already [14:01] has anyone seen "May 21 13:42:07 localhost.localdomain kernel: FAT-fs (mmcblk0p1): IO charset iso8859-1 not found " before? [14:01] looks like my BBB is broken [14:01] thats a vfat complaint [14:02] ppisati, ^^^ do we have the right nls codepages builtin ? [14:13] ogra_, ppisati: I created https://bugs.launchpad.net/snappy/+bug/1457491 to track this [14:13] Ubuntu bug 1457491 in Snappy "Upgrade from r41 to r55 on BBB failed to boot and also to failover" [Undecided,New] [14:22] mvo, well, your bootloader partition seems to be unreadable now ... how would it recover from that ? [14:23] (givcen the logic for the roll back is actually inside the file it cant read) [14:23] ogra_: it did recover, i.e. it booted back into r41 after I power-cycled [14:24] well, one vfat is corrupt here [14:24] i thought jodh added fsck's all over the place for this in initrd [14:24] right, it seems like it fixed it correctly though [14:24] it == fsck [14:25] I can access /boot/uboot/snappy-system.txt and it looks valid [14:25] and it booted [14:25] yeah, but that it cant rollback seems pretty normal to me if it cant read the file ... we perhaps need to add hardcoded logic that forces a reboot when that happens [14:26] elopio, rsalveti: http://snappy.asac.ws:9001/p/snappy-better-test is a draft to get some background for why and what for the selftest. I (of course) agree that its not ideal and we want to make it better [14:27] if that looks good I will move it into the snappy-selftest branch [14:27] mvo: do you hve the modules installed? [14:27] ppisati: I don't know, let me look. this is on snappy [14:28] mvo: what you wrote about running on each MP is gooood. [14:28] elopio: its partly done in https://code.launchpad.net/~mvo/snappy/snappy-merge-integration-tests but probably a bit clumsy, I need to wrap my head around adt harder :) [14:29] elopio: but yeah, I absolutely want this, we had regression before the release that the selftest would have caught if it was run more often (daily is not enough for us, we are a quick bunch :) [14:29] ppisati: eh, I think I have not because the modules are on /boot/uboot and that is the vfat partition that it tries to mount to find the modules 
 [14:30] I think I would split the suite in two. One for cli conformance, just making sure that the commands can be called and return a sensible message. (now I understand why the regexes are there) [14:30] and one that's end-to-end testing stories, or journeys, or however you want to call them. [14:31] making a note of this. [14:31] mvo: I saw your branch, and loved it. [14:31] Still trying to find some time here to focus and give it a try. [14:31] elopio: I like the idea of splitting this up, thats cool [14:39] mvo: ??? [14:39] mvo: how can the kernel modules be located on the vfat partition? === vrruiz is now known as rvr [14:39] mvo: they are in /lib/modules/$(uname -m)/kernel/... [14:40] ppisati: meh, nervermind, I am talking nosense [14:40] no, they should be in the initrd [14:40] but i think this is rather filesystem corruption, the codepage complaint is just fallout [14:42] ppisati: its availalbe on both partitions AFAICT (the nls_iso8859-1.ko module), let me dig deeper [17:18] Is there a snappy core build for this? http://www.nasa.gov/image-feature/ten-engine-electric-plane-prototype-takes-off [17:19] OerHeks, just send the hardware over to me, i'll port it :) [17:20] just asking before i buy one ogra_ [17:20] But it looks like doable [17:21] it doesnt really talk about what kind of HW is inside [18:32] is there an easy way I can ssh into two snappy images running at the same time on my laptop? [18:32] I want to develop the client and server bits simultaneously, and test them interacting, etc... [18:50] rickspencer3: sure [18:50] hi asac [18:50] rickspencer3: you start kvm? [18:50] how? [18:50] yes it is running [18:50] I used the command on the web site [18:50] right [18:50] so [18:50] kvm -m 512 -redir :8090::80 -redir :8022::22 ubuntu-15.04-snappy-amd64-generic.img [18:50] start the second one [18:50] I built the go web server example and snappy remoted to it [18:50] with -redir :8091::80 -redir :8023::22 [18:50] but I don't know how to find it [18:51] then they will listen on different ports [18:51] in my browser, I mean [18:51] so your ssh on the second one will be on 8023 [18:51] ok, that's cool [18:51] and the webser of the second one on 8091 [18:51] rickspencer3: see how you map those ports to the ports in the VM :) [18:51] to :80 [18:51] and :22 [18:51] :P [18:51] 80 is http [18:51] and 22 ssh [18:51] right [18:52] but I don't understand what hte url would be [18:52] rickspencer3: what is your current url? [18:52] I woudl have expected that I get the ip address and then just go there [18:52] the ip address of the instance, I mean [18:52] ohhhh [18:52] you want the client to call the server? [18:52] thats trickier [18:53] let me check something [18:53] asac, first, I want to call the server from a browser on my desktop so I can confirm my web server is working in teh snappy instance [18:53] then I want to write a program in the second instance that uploads data to the web server in the first instance [18:53] so I can write the code for the device and cloud at the same time :) [18:54] should still work [18:54] on the first instance you can just then access the second instance through the IP of your host [18:54] with the port of the second instance [18:55] ok, for the browser part to confirm the web server is working, I call local host at the mapped port? [18:55] localhost:8090? [18:55] yep[... just http://localhost:8091/ [18:55] right [18:55] or your local ip [18:55] try witjh your local ip too ... in case the kvm only maps to localhost [18:56] then you would have a problem calling from first to second instance like above [18:57] hmmm [18:57] asac, according to snappy list, the web server is installed, do I need to do somehting to start it running? [18:57] I assumed snappy install started it [18:58] it should [18:58] which one did you install? [18:58] the go-example one? [18:58] yes [18:58] I just built it and installed it [18:58] rickspencer3: that thing is not listening on :80 [18:58] let me check [18:58] oh fudge [18:58] it says 8081 [18:58] rickspencer3: yeah just change the kvm cli [18:58] and it will work [18:59] so :80 -> :8081 [18:59] ok [19:00] asac, sorry, do you mean I should just delete the -redir stanza? [19:00] i.e. not redirect it [19:00] rickspencer3: you need to redirect... just to a different port [19:00] currently you redirecting to port 80 [19:00] e.g. :8091::80 -> :8091::8081 [19:01] but why redirect at all [19:01] rickspencer3: because kvm doesnt export ports at all [19:01] couldn't I just delete it and do localhost:8081 ? [19:01] to your host [19:01] ok [19:01] good reason [19:01] rickspencer3: you would need to setup bridge networking [19:01] then your kvm would get its own ip etc. [19:01] dont ask me how :) [19:02] so this should make localhost:8091 work if the web server is working? [19:02] kvm -m 512 -redir :8091::8081 -redir :8022::22 ubuntu-15.04-snappy-amd64-generic.img [19:03] rickspencer3: if the webserver listens on port 8081 then yes [19:03] * asac installs [19:05] rickspencer3: for me it listens to 8081 [19:05] asac, not sure what you mean [19:06] are you saying that it jsut works for you? [19:06] kvm -m 768 -redir :8080::8081 -redir :8022::22 snappy-amd64.img [19:06] browser: http://localhost:8080 [19:06] -> "Hello World" [19:08] you installed it from the store? [19:08] yeah [19:08] sudo snappy install go-example-webserver [19:08] let me start with a fresh image :) [19:08] ok, I built it and installed it with snappy-remote [19:09] rickspencer3: ok lets first check that your system is sane [19:09] rickspencer3: stop all KVMs [19:09] done [19:09] rickspencer3: netstat -an | grep 8090 [19:09] should give you zero hits [19:09] same for [19:09] rickspencer3: netstat -an | grep 8091 [19:10] then start KVM [19:10] and check that [19:10] wqhoops [19:10] rick@rick-dell-11:~/snappy-images$ netstat -an | grep 8091 [19:10] unix 2 [ ] DGRAM 18091 /var/run/wpa_supplicant/wlan0 [19:10] right [19:10] hmm [19:10] thats fine [19:10] thats a bad hit :) [19:10] but doesnt hurt [19:10] right [19:10] so start kvm [19:10] the one with 8090 [19:10] ima start it with kvm -m 768 -redir :8080::8081 -redir :8022::22 [19:10] after up check that you see netstat -an | grep 8090 [19:10] having a LISTEN [19:11] rickspencer3: ok then you should check that 8080 isnt used [19:11] before starting [19:11] like above [19:11] could be something on it and kvm wont complain [19:11] netstat -an | grep 8080 [19:11] shucks [19:11] ok, I'll start with with kvm -m 768 -redir :8090::8081 -redir :8022::22 [19:12] :) [19:12] ok [19:12] check that its listening after its up [19:12] netstat -an | grep 8090 [19:12] looks right [19:12] rick@rick-dell-11:~/Projects/snappy-examples/go-example-webserver$ netstat -an | grep 8090 [19:12] tcp 0 0 0.0.0.0:8090 0.0.0.0:* LISTEN [19:13] good [19:13] now ssh into it [19:13] check that webserver is running at all :) [19:13] or first check that its listening same way there [19:13] just with 8081 [19:13] but pretty sure its not running :/ [19:14] k, in [19:14] oh, I did shh -p8022 ubuntu@localhost [19:14] yeah thats fine [19:14] if you started with :8022::22 [19:15] netstat -an | grep 8081 [19:15] if you are in [19:15] nada [19:15] yeah [19:16] so, something went wrong somewhere between when I built it and when I snappy-remote installed it, I guess [19:16] not sure [19:16] rickspencer3: ps -eaf | grep go-ex [19:16] let me uninstall it, install ist from the store, and see what happens [19:16] no hit? [19:16] yeah you can try that first [19:16] just grep ;) [19:17] i think i know what is the problem for ou though [19:17] but lets finish [19:17] i guess from store it will work [19:18] asac, nope [19:18] http://localhost:8080/ should work? [19:18] rickspencer3: how did you start kvm? [19:19] oh fudge [19:19] :8090::8081 ? then its :8090 :) [19:19] right, forgot [19:19] works now [19:19] right [19:19] ok lets check quickly if i am righht :) [19:19] cool [19:19] I am ready [19:19] rickspencer3: on yhour host you ahve the go-example-... binary [19:19] right? [19:19] I do because I built it, yes [19:19] right [19:20] run ldd go-exampl* [19:20] on it [19:20] I did not bother building the arm one, though [19:20] and post [19:20] yeah thats fine [19:20] rick@rick-dell-11:~/Projects/snappy-examples/go-example-webserver$ ldd go-exampl* [19:20] go-example-webserver: [19:20] linux-vdso.so.1 => (0x00007ffdbd3dc000) [19:20] libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3265651000) [19:20] libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3265287000) [19:20] /lib64/ld-linux-x86-64.so.2 (0x00007f326589c000) [19:20] go-example-webserver_1.0.7_multi.snap: [19:20] not a dynamic executable [19:21] hmm [19:21] rickspencer3: did you put it into the magic-bin/... directory? [19:21] nope [19:21] # change to the x86_64 directory and build the binary... [19:21] 1. cd magic-bin/x86_64-linux-gnu [19:21] 2. go build ../../ [19:21] thats in README :) [19:21] I followed the readme [19:21] let me delete the executable and try again [19:22] rickspencer3: check that its in that magic-bin directory [19:22] I am going to folow the directions again [19:22] hmm, I think I didnt quite follow the directions [19:23] ack [19:23] magic-bin/go-example-webserver [19:23] magic-bin/x86_64-linux-gnu [19:23] magic-bin/x86_64-linux-gnu/go-example-webserver [19:23] thats what you need [19:23] the first one is a script [19:23] the second one is the real binary [19:23] asac, I do snappy build in the go-example-web-server dir, right? [19:23] the first one is just figuring what architecture you are on and starts the right one [19:23] rickspencer3: yeah... thats step 3 in the README [19:23] oh [19:23] last step is at top level dir [19:24] let me rebranch and start from scratch :) [19:25] rickspencer3: the last step is wrong i think ... cd ../.. it should be [19:26] right [19:26] I'm just rereading, trying to grock [19:26] asac, I don't get what go build ../../ does [19:27] how does that put the binary into magic-bin/x86_64-linux-gnu/go-example-webserver [19:27] ? [19:27] it puts the binary in the current directory [19:27] oh [19:27] and it uses the name of the directory of the main.go file [19:27] its kind of magic :) [19:27] so it's just a feature of go build [19:28] but its also very basic [19:28] yeah [19:28] i think so :) [19:28] ok, let me try snappy-remote again [19:28] for anything more complex you would do it different [19:28] we need to makea goo dtutorial for that [19:29] asac, this should work? [19:29] well, there are multiple new concepts that I need to learn [19:29] some are well known to linux engineers [19:29] some are go [19:29] and a few are snappy [19:29] :) [19:29] asac, like this? [19:29] snappy-remote --url:ubuntu@localhost:8022 go-example-webserver_1.0.7_multi.snap [19:29] no [19:30] d'oh, forgot a command [19:30] --url ssh://localhost:8022 [19:30] truy that [19:30] $ snappy-remote --url=ssh://localhost:8022 install ./hello-world_1.0.5_all.snap [19:30] is the one the main tutorial [19:30] snappy-remote --url=ssh://localhost:8022 install go-example-webserver_1.0.7_multi.snap [19:30] https://developer.ubuntu.com/en/snappy/tutorials/build-snaps/ [19:30] yeah, I get it [19:30] right [19:31] if you are lucky it starts afterwards [19:31] was just a bunch of cruft I built up :) [19:31] :) [19:31] it says it is installing [19:31] right [19:31] you can be brave and just try the browser [19:31] or first check that on the KVM you see now something listening on 8081 [19:31] I'll wait until it is done [19:31] with the well known netstat grep from above :) [19:31] well, I didn't take down the image [19:31] thats fine [19:31] I just uninstalled and then sideloaded [19:32] right [19:32] should work [19:32] but you can check INSIDE the VM [19:32] taking a while to install, thoguh [19:32] if something is listening on 8081 [19:32] well, it worked before :) [19:32] hehe [19:32] yeah [19:33] so if you want to do a bit more sophisticaed stuff then just having a main.go (like including external go dependencies) [19:33] i highly recommend to read https://golang.org/doc/code.html [19:34] yeah, it's not running :,( [19:35] I'll have to try following the instructions again, though I can't think what I did wrong [19:35] :((( [19:36] rickspencer3: are you on the system? [19:36] yeah [19:36] I checked netstat, and it's nothing is on port 8081 [19:36] snappy list shows it is there, though [19:36] rickspencer3: can you directly run: [19:37] /apps/go-exampl*/current/magic-bin/x86*/go-example-webserver ? [19:37] sure [19:37] what happens? [19:37] works! [19:38] asac, hmmm, I see that there is still a dir for the store version that I installed [19:38] even though I removed it [19:38] thats ok [19:38] rickspencer3: is your sideloadewd one there? [19:38] too? [19:38] yes, and that is what I ran [19:39] and what happens? [19:39] it worked [19:39] oha [19:39] rickspencer3: please see what you get with sudo systemctl status go-example-webserver_webserver_1.0.7.service [19:39] asac, while the server is running? [19:40] this looks not promising [19:40] Process: 1080 ExecStart=/usr/bin/ubuntu-core-launcher go-example-webserver.sideload go-example-webserver.sideload_webserver_1.0.7 /apps/go-example-webserver.sideload/1.0.7/magic-bin/go-example-webserver (code=exited, status=1/FAILURE) [19:40] Main PID: 1080 (code=exited, status=1/FAILURE) [19:41] here's the whole thing [19:41] http://pastebin.ubuntu.com/11269852/ [19:43] rickspencer3: can you make your terminal wider? the last lines are super short [19:44] here ya go [19:44] http://pastebin.ubuntu.com/11269898/ [19:45] rickspencer3: please add the -l after status [19:45] then we get the full lines [19:45] i tjhink [19:45] http://pastebin.ubuntu.com/11269916/ [19:45] looks the same, but *shrug* [19:47] * asac tries himself [19:47] /apps/go-example-webserver.sideload/1.0.7/magic-bin/go-example-webserver: line 47: cannot create temp file for here-document: Permission denied [19:47] rickspencer3: asac ^ [19:48] yeah i see that [19:48] whast that? [19:48] let me look at the code [19:48] ok [19:48] i have it [19:48] is this the regular go-example-wbserver? [19:48] mvo broke our example :( [19:49] rickspencer3: bzr pull please [19:49] leave it to me make every mistake, hit every bug [19:49] and then sanppy build [19:49] and then its done [19:49] I really need to be in QA [19:49] kk [19:49] asac, do I need to snappy remove it first? [19:49] on the target, I mean? [19:50] * rickspencer3 removes to be sage [19:50] saf [19:50] e [19:51] lol [19:51] why is that here document being done at all? [19:51] I removed it, but it is still running [19:51] * rickspencer3 reboots [19:51] rickspencer3: still running? it wasn't running before [19:52] or was it? [19:52] Chipaca, it was running because asac had me start it by running hte binary directly [19:52] * Chipaca might be misunderstanding the nature of the problem [19:52] ahhh [19:52] it did not start on install [19:52] right [19:52] Chipaca: look at latest commit i did in examples [19:53] asac: how "directly"? [19:53] asac: i mean, running it without confinement would not have hit that issue [19:53] Chipaca: mvo added code that tells users not to start the magic-bin script through CLI directly [19:53] that code just exploded [19:53] in real case [19:53] right [19:54] guess testing code before committing is good :) [19:54] hehe [19:54] that makes no sense though [19:54] guess EOF isnt working that nicely with confinement [19:54] if it's directly, it's not confined, tho [19:54] Chipaca: EOF seems to create a tmp doc [19:54] if it's confined, it should have that env var [19:55] asac, whatever you did fixed it [19:55] yeah [19:55] and now I have been through the dev work flow like 10 times :) [19:55] the code was wrong also [19:55] and got a lesson in port forwarding [19:55] with kvm at least [19:56] rickspencer3: good to see the good side of this. sorry and thanks [19:56] so, now I am too tired to figure out how to communicate from one running kvm instance to another [19:56] will chip at it this weekend [19:56] i can imagine [19:56] * asac too [19:56] cu around [19:56] thanks a lot asac [19:56] it's all good, it takes dopes like me trying this stuff out to make it bullet proof :) [19:56] * asac should have tried himself earlier [19:56] I appreciate your patience [19:57] i guess you hopefully remember now how to use netstat :) [19:57] hehe [19:58] Chipaca: so to wrap up ... mvo commited code that wanted to prevent it from running directly, but it was buggy in that it prevented it from running in confinement [19:58] and that hit the bail bug [19:58] so guess we could bring it back with -n [19:58] but not today [19:59] netstat ftw :) [22:28] sergiusens: https://code.launchpad.net/~chipaca/webdm/m1777/+merge/259864 [22:28] because it's truly a single line [22:28] and now yes, to bed for me