/srv/irclogs.ubuntu.com/2016/03/24/#snappy.txt

=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
zygagood morning06:52
zygahttps://github.com/ubuntu-core/snappy/pull/73407:19
dholbachgood morning07:54
zygadholbach: morning :)07:54
dholbachcześć zyga07:57
dholbachdavidcalle, dpm, popey: https://bugs.launchpad.net/snapcraft/+bug/1537786 :)07:57
ubottuLaunchpad bug 1537786 in Snapcraft "lifecycle: allow do clean rebuild of all/parts without having to pull all again" [Wishlist,Fix released]07:57
zygatschus :-)07:57
zyga(if I recall correctly)07:57
dholbachtschüss :)07:58
dholbachbut that's goodbye07:58
dpmmorning dholbach, nice!07:58
dholbach'hallo' should work though :)07:58
zygaoohhh07:58
zygathen I remember poorly :)07:58
zygathanks for correcting me07:58
zyga(that was over a decade ago when I last learned german)07:58
popeydholbach: ooh07:59
dpmdholbach, do you happen to know which are the clean steps you can use? It seems the info is missing from 'snapcraft clean --help'08:02
dholbachdpm, I don't - but I assumed that the bug fix would allow snapcraft to figure out itself what needs updating and what doesn't08:04
dholbachdpm, ah now...08:06
dholbach    - pull08:06
dholbach    - build08:06
dholbach    - stage08:06
dholbach    - strip08:06
dholbach    - snap08:06
dholbach^ that's the steps (from: snapcraft help plugins)08:06
dpmdholbach, thanks. https://github.com/ubuntu-core/snapcraft/pull/40308:21
dholbachnice one08:34
davidcalledholbach: excellent!08:48
Ram_hi09:41
Ram_have anyone here ported snappy for an arm device?09:41
ogra_hey Ram_, yes, i have (multiple times)09:42
Ram_i'm facing a lot of trouble to do so09:42
ogra_well, lets go through them and fix them one by one then :)09:43
Ram_hi ogra! it's ur blog i'm following to achieve that ;)09:43
ogra_oh, thats very old09:43
ogra_i will write an up to date entry for 16.04 once it is out09:43
Ram_that is nice!09:44
ogra_(there have been very massive changes and 15.04 will be EOL soon)09:44
Ram_first of all I'm a beginner..09:46
ogra_we all were once ;)09:46
Ram_i do things by following the blog to port ubuntu core09:46
ogra_right, the new setup is not very well documented yet09:46
ogra_but i would actually recommend to go for 16.04, despite that09:47
Ram_okay!09:48
Ram_now i'm using an arm based device, which is having support for kernel v3.1409:49
ogra_in the new setup everything is a snap package (no more tarballs, even rootfs, kernel and the bootloader some as a snap)09:49
ogra_to do a port you need a gadget snap (bootloader) and a kernel snap for your device09:49
ogra_for an arm board you need a working uboot bootloader09:50
ogra_(we are preparing for boards that use grub too, but are not there yet)09:50
Ram_i got the u-boot.bin, and uImage09:50
ogra_did you build the uboot from source ? you will need some patches09:51
ogra_here is an example of a gadget snap (for the raspberry pi2 in this case) http://bazaar.launchpad.net/~snappy-dev/snappy-hub/snappy-systems/files/head:/pi209:52
ogra_here is the patch that we use (it is just a few config options) http://paste.ubuntu.com/15472180/09:53
ogra_so first of all, build your uboot with these options enabled09:53
asacis there a best practice how to add a user needed for a snap on install?10:09
ogra_i doubt you can10:09
ogra_(and it would be nonsense, your services run as root and all files are chowned to root when building the snap)10:10
ogra_(we use the --all-root option to mksquashfs)10:10
asachmm. so now i am wondering if this is a prob with my vm setup10:12
asaci am binding 8021 to 2110:12
asacand ftp into it then causes stuff like10:12
asachttp://paste.ubuntu.com/15486216/10:12
* asac tries running on same port as the bound port on host10:13
ogra_"Remote system type is UNIX."10:13
ogra_just use Linux then it will work10:13
ogra_*g*10:14
ogra_how are the file permissions of the dirs you access there ?10:14
asacthose should be fine10:14
asaci think its because ftp opens new ports10:14
asacthat then have no forward to the vm10:14
asacbut thought passive on would fix that10:14
ogra_(seems also a bit odd that you end up in the toplevel dir of your snap ....)10:14
asacseems passive also creates new ports?10:14
asac!ls10:15
ubottuThe linux terminal or command-line interface is very powerful. Open a terminal via Applications -> Accessories -> Terminal (Gnome), K-menu -> System -> Konsole (KDE), or Menu -> Accessories -> LXTerminal (LXDE). Guide: https://help.ubuntu.com/community/UsingTheTerminal10:15
ogra_hmm, no idea10:15
asac !ls shows the local host dir10:15
ubottuasac: I am only a bot, please don't think I'm intelligent :)10:15
asacso thats fine10:15
asacok guess i should go for the pi2 then next :)10:15
asacwhere i have proper network10:15
asacand see10:15
ogra_In passive mode FTP the client initiates both connections to the server, solving the problem of firewalls filtering the incoming data port connection to the client from the server. When opening an FTP connection, the client opens two random unprivileged ports locally (N > 1023 and N+1).10:15
ogra_http://www.slacksite.com/other/ftp.html10:16
ogra_    FTP server's port 21 from anywhere (Client initiates connection)10:16
ogra_    FTP server's port 21 to ports > 1023 (Server responds to client's control port)10:16
ogra_    FTP server's ports > 1023 from anywhere (Client initiates data connection to random port specified by server)10:16
ogra_    FTP server's ports > 1023 to remote ports > 1023 (Server sends ACKs (and data) to client's data port)10:16
ogra_so you need more ports :)10:17
asacok i could force fix this by specifying max abnd min pasv port10:17
asacsaw those entries10:17
asacwell... guess iits time to go beagle or pi2 now anyway10:17
asacjust would love to not use ubuntu user for anonymous :)10:17
asacbut cant create one automatically on install10:17
ogra_you cant see the ubuntu user from your snap10:17
asacmaybe we should have one user per snap that you can then use for services etc.10:17
ogra_(i think)10:17
asacit can10:17
asacwell it cant see the home10:18
asacbuut it can see that that user exists in /etc/passwd10:18
asacit seems10:18
asacand tahts all that is needed for this10:18
ogra_i think jdstrand has a plan for system users in snaps ... but thats likely not 16.04 material10:18
asacalso i ended up unconfined now :)10:18
ogra_you cant see the user in /etc/passwd, bhecause the user isnt in /etc/passwd ;)10:19
ogra_nss-extrausers ...10:19
ogra_i'm not sure how well getent() works ... might be possibel to use that10:19
asacodd10:19
asacbut it works :)10:19
asacthink its using libc10:19
ogra_*possible10:19
asacand that figures it10:19
asaci cant use a user that isnt avail10:20
asacbut i can use ubuntu :)10:20
asacas my anon user10:20
ogra_yeah, then getent likely works10:20
asacwhich is good news... just would love to have my own user for that snap as i am using a dir somewhere in /var/lib anyway for the anon uploads10:20
asacnobody didnt work10:21
asacbecause /nonexistent doesnt exist10:21
asacwodner if i should just hack vsftpd more so it doesnt refuse to use nobody10:21
asacbut *shrug*10:21
* asac goes and turns the pi2 into a box that will go to living room10:22
asacthe orange box one10:22
ogra_http://paste.ubuntu.com/15486252/10:22
ogra_thast my old server setup script ... there is also user creation in it10:22
ogra_(ignore the chfn messages btw)10:23
asaci must be that folks are stealing usb cables from me at events10:27
asaci never forsaw that i had troulbes finding one10:27
asacbought like 20 2-3 years back in a bundle ...10:27
ogra_heh, thats SD cards for me :)10:27
asacnow i had to use a 20cm long one and the pi2 is hanging in the air10:27
asacyeah sd cards i accept10:28
asacbut usb cables? wtf10:28
* asac goes to amazon and orders more :)10:28
asachmm. my pi2 doesnt see new updates10:30
asacguess i have to reflash10:30
asacubuntu-core         2016-02-03 16.04.0-7.armhf10:30
asacubuntu@localhost:~$10:30
asacthat one10:30
asacgetting https://people.canonical.com/~mvo/all-snaps/rpi2-all-snap.img.xz10:30
asacand a coffee10:31
popeyogra_: downloaded your pi3 image and put on card, Booted up and the last thing I see on the console is "Started OpenBSD Secure Shell server" and if I ssh in, it asks for my password then hangs10:39
popey(I had raspbian on this before, so I know the pi itself is fine)10:39
ogra_popey, hmm, you should get a login prompt10:40
ogra_i definitely do here10:40
popeywhen does it do the partition resize?10:40
popeyit's a 32GB card10:40
ogra_(i dont if i use the same image on a pi2 ... but thats a different issue)10:40
ogra_from the initrd10:40
popeyok10:40
popeyso earlier than this10:40
ogra_takes about 15sec here for a 128G card10:41
ogra_so i'd imagine 32G to be really fast10:41
popeyyeah, not that10:41
ogra_there is definitely a shell on HDMI10:41
popeyyup10:41
ogra_if you ahve a cable around10:41
popeyi am looking at the output from hdmi10:42
ogra_oh, i thought you look at serial, sorry :)10:42
ysionneauany idea on how to "debug" this? http://paste.ubuntu.com/15486342/10:43
ysionneauhow can I understand what's going wrong?10:43
popeyhttp://i.imgur.com/g5a63oZ.jpg ogra_10:43
ogra_and ssh with ubuntu:ubuntu doesnt work ?10:43
popeyalan@homeserver:~$ ssh ubuntu@192.168.1.6910:44
popeyubuntu@192.168.1.69's password:10:44
popeybeen sat there for minutes10:44
ogra_yery weird10:44
* popey reboots10:45
* ogra_ does a fresh flash of his image10:45
popeyi just grabbed the pi xz image you linked to in your mail10:45
ogra_ysionneau, where is your gadget source tree ?10:46
ogra_popey, yeah, thats what i'm flashing now10:46
popeyhah, worked this time 😖10:47
popeyi see a login prompt now, but didn't on first boot10:47
* ogra_ will check that 10:47
ysionneauogra_: it's not published but here is the content : http://paste.ubuntu.com/15486365/10:47
ogra_note that cloud-init can take quite long on first boot10:47
ogra_ysionneau, i guess it looks for a uboot binary somewhere10:48
ogra_or for a uEnv.txt ...10:48
asacmvo: is ubuntu-core         2016-02-03 16.04.0-7.armhf canonical10:49
asacreally the latest?10:49
popeyhm. trying to install a snap fails - just did "snap find owncloud" and it sees two results (one from kyrofa) and then if I "snap install owncloud" it just returns immediately and doesn't say anything10:49
* asac apparently cleaned his previous SD for no reason10:49
asacmvo: nevermind... found and update10:50
asacmvo: are we doing diff downloads yet?10:50
mvoasac: if you use rolling/edge you get something newer, its been a while since we did a stable promotion10:50
asacmvo: so one thing i noticed: http://paste.ubuntu.com/15486382/10:51
mvoasac: no deltas yet will probably take a couple of weeks still10:51
asacyou guys spit out "reboot" before stuff is synced to disk10:51
asacwould have caused troubles i guess if i hard rebooted at that point10:51
asachad to wait in sync for 20 secs10:51
mvoasac: oh, that is interessting. it did not occour to me that people would do hard reboots10:51
asaccould be its fixed in latest of course... thats the feb image in your peopl10:51
mvoasac: but of course this is a different world10:51
asacpeople do everything :)10:52
mvoit is not fixed, thanks for bringing it up10:52
popeyno power switch on a pi :)10:52
asacalso who knows if they get impatient if reboot command hags for a bit10:52
asacwould be interesting to see how our tx update behaves10:52
asacif its not fully synched10:52
asacmight try it sometimes when i want to have fun :)10:52
ogra_popey, so first boot works fine here ... it properly clears the screen and offers me a ligon prompt10:53
ogra_*login10:53
asacmvo: i need to update classic by myself right?10:54
popeyhm, odd10:54
asacor is that now done in backgrounrd?10:54
popeyogra_: now I can't install any snaps on it10:54
ogra_ogra@anubis:~/datengrab/rpi3$ md5sum rpi3-all-snap.img.xz10:54
ogra_07abd31a72f54cfa0c1ae8241073e3d0  rpi3-all-snap.img.xz10:54
ogra_popey, yeah, thats normal :P10:54
popeyhah, ooookay10:54
popeywhy?10:54
ogra_snaps are only installable until the next security model renaming :P10:54
popey07abd31a72f54cfa0c1ae8241073e3d0  rpi3-all-snap.img.xz10:54
* popey blinks10:55
ogra_read: kyrofa neesd to update his owncloud snap again10:55
ogra_interfaces landed yesterday10:55
ogra_(the new security model)10:55
ogra_also the rootfs snap is from yesterday morning ... i shoudl probably re-build it with todays rootfs (there might again be more changes)10:56
popeyahhh11:01
=== chihchun is now known as chihchun_afk
dholbachdavidcalle, I created a branch with the examples for the doc11:15
dholbachdavidcalle, that might make it easier to keep them up to date and allow readers to get them all at once11:16
=== chihchun_afk is now known as chihchun
kyrofaGood morning11:20
kyrofaogra_, ah, thanks for the heads up11:20
kyrofaogra_, is that in edge? Or has it gone to stable?11:21
ogra_not yet in stable11:22
ogra_stable is weeks old11:22
davidcalledholbach: yes of course, thanks :)11:26
davidcalledholbach: how do I run a command on a source before starting eg. a cmake building?11:28
dholbachdavidcalle, can you elaborate?11:28
dholbachor explain what you're trying to do?11:28
davidcalledholbach: the source I'm trying should apparently use the autotools plugin, but before it runs ./configure (which is the first thing the autotools plugin does after getting the source), I need to run another command.11:29
dholbachmh... no idea11:32
dholbachkyrofa, ^ do you have a solution for such a case?11:33
kyrofadavidcalle, dholbach perhaps the simplest thing to do would be to ship a custom in-tree plugin that inherits from autotools and does what you want?11:34
dholbachof course... :)11:35
dholbachhttps://developer.ubuntu.com/en/snappy/build-apps/plugins/11:35
dholbachdavidcalle, ^11:35
davidcallekyrofa, dholbach: alright, looking into this, thanks :)11:35
kyrofadavidcalle, are you hitting this? https://bugs.launchpad.net/snapcraft/+bug/155171611:37
ubottuLaunchpad bug 1551716 in Snapcraft "snapcraft does not allow vendor/platform patching of upstream sources (aka: add patch phase to lifecycle)" [Undecided,New]11:37
davidcallekyrofa: nope, it's just an extra build command that is required by the source11:39
kyrofadavidcalle, ah, okay interesting. Yeah, the custom plugin is probably the way to go, but that doc sorely needs to be updated. Maybe I'll do that this morning11:39
davidcallekyrofa: alright, nothing urgent, I can move on to snapping something else for now, thanks!11:41
davidcalle(unless I manage to find my way with the doc of course ;) )11:41
kyrofadavidcalle, just don't worry about the `handle_source_options()` call11:43
kyrofadavidcalle, and the x-crafty.yaml is now done via the schema function11:43
kyrofadavidcalle, honestly you can mostly rip this off: https://github.com/ubuntu-core/snapcraft/blob/master/snapcraft/plugins/autotools.py11:45
davidcallekyrofa: that's what I'm doing and adding the command I need11:45
kyrofadavidcalle, perfect11:45
davidcallekyrofa: I'll probably look later into doing proper inheritance, though, but I want the build part out of the way for now11:46
ogra_mvo, should "snappy install --allow-unauthenticated ..." work for os and kernel snaps (doesnt here, i got exclamation marks in snappy list after a reboot)11:48
mvoogra_: hm, that should work, what does grub-editenv list output?11:50
davidcallekyrofa: how do I define the name of my plugin, with the schema function? Do I still need to keep the plugin yaml file?11:50
ogra_mvo, no grub on my rpi3 :P11:50
kyrofadavidcalle, it's determined from the file name11:50
ogra_looking at serial i see it loading the right kernel on reboot though11:50
davidcallekyrofa: alright :)11:51
ogra_mvo, aha, after a second reboot it is fine11:51
ogra_so there seems to be something wrong with the sequence11:52
mvoogra_: fw_printenv iirc it is then :)11:55
mvoogra_: but ok, if you rebooted the output will no longer be interessting11:55
=== chihchun is now known as chihchun_afk
ogra_http://paste.ubuntu.com/15486754/11:55
ogra_right ... i'll try tomorrow again :P11:56
ogra_oh, webdm works again (didnt yesterday)12:07
ogra_hmm, the store UI changed12:08
kyrofaDoes ubuntu core use ntp?12:18
ogra_timedated iirc12:23
kyrofaAh, I'm not familiar with that12:25
zygakyrofa: part of systemd AFAIR12:28
kyrofazyga, yeah seems so. Thanks guys!12:29
kyrofazyga, ogra_ verified, and network time is on. Perfect12:35
dholbachdpm, if you rebuild the clock app snap, can you still launch it?12:51
dholbachI get: aa_change_onexec failed with -1. errmsg: Permission denied12:51
davidcallekyrofa: one more question, pulling stage-packages is failing because of a silly "E:Unable to correct problems, you have held broken packages.", is there a container somewhere I can log into to fix this?12:51
kyrofadavidcalle, huh, no that stuff is way simpler than a container-- the packages are simply downloaded and unpacked. So there must be a dependency issue in the debs you're pulling?12:52
dpmdholbach, I don't know, I'll have to try next week. Preparing to leave now12:52
dholbachdpm, ok, sounds good12:52
dholbachdpm, have a great time!12:52
davidcallekyrofa: oh ok, I was assuming it was somehwere special, sounds good12:53
dholbachdavidcalle, is it libubuntutoolkit5 vs libubuntutoolkit5-gles or something?12:53
davidcalledholbach: nope, the list being awfully long, I haven't found which one exactly yet :)12:54
jdstrandogra_, asac: "i think jdstrand has a plan for system users in snaps" - I don't. the only thought I had was that if we did optional uids for a snap, we'd need seccomp arg filtering12:54
dholbachdavidcalle, ok12:55
ogra_jdstrand, ah, i thought you wanted to add them inside the snap somehow12:55
jdstrandI might've mentioned I could imagine yaml to opt-in12:56
kyrofadavidcalle, maybe fire up an lxc and try to install them all?12:56
jdstrandbut I'm not driving it and there is no design12:56
jdstrandI did suggest it would be a nice feature12:56
ogra_i surely dont think snap users should be added to the system passwd db though ... it would have to be some pre-snap overlay thing12:56
ogra_*per-snap12:56
ogra_thanks for clearifying though12:57
kyrofaSo jdstrand sounds like interfaces finally landed in edge? If I'm using old-interface's network-listener, what does that become?13:13
jdstrandplugs: [network]13:16
kyrofajdstrand, ah that simplifies things. And network-bind is the service side of it?13:20
jdstrandindeed13:20
jdstrandkyrofa: note, those are the only two right now. there are MPs for the other 1213:29
jdstranderr, PRs13:29
kyrofajdstrand, awesome13:30
kyrofaogra_, say I want to ship a Snappy-powered device that will be on the open internet. Obviously I don't want to ship with the default ubuntu/ubuntu creds. What is the recommended way of dealing with this?15:55
qenghokyrofa: There shouldn't be a network listener, right?15:57
ogra_kyrofa,  we dont have any recommended way yet ...15:57
kyrofaqengho, well that's a little in flux right now. If running 16.04 edge, it's just the listener interface. If 16.04 stable, it's the network-listener thing15:57
ogra_technically you shouldnt have ssh running ... practically all 16.04 images currently have it15:58
ogra_so for now, change the password15:58
kyrofaogra_, what if I actually DO want SSH running, but want to lock it down a little more?15:58
qenghokyrofa: I mean there should be no way for someone to use the default password One Day.15:59
kyrofaqengho, oh man I totally misunderstood you :P15:59
ogra_kyrofa, copy a key in place and disable password auth completely in /etc/ssh/ssh_config16:00
kyrofaogra_, is that something I can do in the image?16:00
ogra_manually, yeah16:00
kyrofaogra_, kpartx, modify, dd again?16:01
ogra_nah, after first boot16:01
ogra_i mean you could kapratx/dd it and all, but it would be the same key everywehere ... so thats a rather useless attempt16:02
ogra_*kpartx16:02
kyrofaogra_, right, duh. Hmm...16:02
dholbachdavidcalle, we should talk on tuesday and figure out how we finish this guide16:13
dholbachfirst thing :)16:13
davidcalledholbach: +1, I'm interested into reshaping - at least - the intended layout for examples, taking into account evan's email.16:14
dholbachyep16:15
davidcalledholbach: first thing coming to mind is a list of "I want to ... " bullet points and one example for each need we recognize.16:16
dholbach+116:17
renatHi guys! It's Renat from Screenly=)16:36
renatI'm trying to run our programs on the new built image and getting "seccomp_load failed with -22" error16:39
beunojdstrand, ^16:39
qenghorenat: do your programs uses seccomp filters, inside?16:40
jdstrandI know the problem16:40
jdstrandrenat: does it work if you uninstall the snap and then reinstall?16:41
renatbeuno, qengho, jdstrand, hello=)16:41
jdstrandhi :)16:41
renatlet me try to reinstall it16:41
renatjdstrand, no. didn't help16:43
rajenHi, Is there any 16.04 Snappy documentation available. All the documentation on https://developer.ubuntu.com/en/snappy/guides/ points to 15.04 model16:43
jdstrandrenat: can you paste the output of 'cat /var/lib/snappy/seccomp/profiles/<snapname>...' into paste.ubuntu.com?16:43
renatqengho, yes. I set up it for other app using plugs system16:43
renatjdstrand, sure. 3 min16:44
renatjdstrand, https://paste.ubuntu.com/15488307/16:45
jdstrandinteresting, that isn't what I expected to see16:46
jdstrandrenat: can you paste the output of 'grep audit /var/log/syslog'16:46
renatIt used to work with older image I built16:46
renatjdstrand, https://paste.ubuntu.com/15488327/16:48
qenghorenat: those parts are stirred often, in development.16:48
qengho"brk" is a dangerous syscall? So, malloc doesn't work?16:50
jdstrandqengho: I think you misread that16:50
jdstrand# end dangerous syscalls16:51
jdstrand...16:51
jdstrandbrk16:51
jdstrandwe allow brk16:51
renatYes, brk is allowed.16:51
jdstrandrenat: if you do 'cat /var/lib/snappy/seccomp/profiles/<snapname>...' is there a final newline?16:52
renatjdstrand, 2 newlines=)16:52
jdstrandok16:52
jdstrandlet me try to reproduce locally16:52
jdstrandrenat: can you paste the output of 'snappy info'16:53
qenghoOh!16:54
renatjdstrand ubuntu@localhost:~$ sudo snappy info16:54
renatrelease: core/rolling16:54
renatarchitecture: armhf16:54
renatframeworks:16:54
renatapps: screenly-client.sideload16:54
renatubuntu@localhost:~$ sudo snappy info16:54
renatrelease: core/rolling16:54
renatarchitecture: armhf16:54
renatframeworks:16:54
renatapps: screenly-client.sideload16:54
renathttps://paste.ubuntu.com/15488370/16:54
renatOh.... Sorry16:54
jdstrandno worries16:54
jdstrandwhat about snappy list?16:54
renathttps://paste.ubuntu.com/15488375/16:55
ogra_i think i saw such an error from the core launcher these days ... havent seen it again with newer images though16:55
renatscreenly-oem-pi2 is an image bult from canonical-pi2.canonical version 3.216:55
renatHello, ogra_!16:56
ogra_hey16:56
ysionneauI added the uboot.env but it's still failing :x16:56
ysionneauI tried to read the strace results ... I could not get the reason clearly16:56
renatI'm trying with older image. 10 min.16:56
ogra_renat, canonical-pi2.canonical is a gadget snap ... i was talking about later ubuntu-core16:57
jdstrandrenat: what is the output of sha256sum /usr/bin/ubuntu-core-launcher16:57
renatogra_, understood. I use ubuntu-core snap automatically downloaded during the build process.16:58
ogra_right, thats a rather old one16:59
ogra_(somewhere around feb.)17:00
jdstrandogra_: hey, I have a core/rolling image, but it is using the os snap from monday. is there a newer os snap somewhere? how would I generate an image to use it?17:01
jdstrandrenat: 11:57 < jdstrand> renat: what is the output of sha256sum /usr/bin/ubuntu-core-launcher17:01
jdstrandrenat: (on the broken image)17:02
jdstrandogra_: this is for qemu amd6417:02
renatjdstrand, 5 min please. I'm re-flashing an image=(17:02
ogra_jdstrand, http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/ :)17:03
ogra_(indeed onyl for sideloading ... )17:03
jdstrandogra_: is xenial-preinstalled-core-amd64.tar.gz a qemu raw image?17:06
ogra_jdstrand, no, http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/xenial-preinstalled-core-amd64.os.snap is an ubuntu-core os snap :)17:06
jdstrandogra_: I'm able to sideload that in a running image?17:07
ogra_not sure if that works on one where it was initially not sideloaded ...17:07
ogra_it works on my locally built one with a simple "sudo snappy install --allow-unatuthenticated ..."17:07
jdstrandok17:08
jdstrandand same with the kernel?17:08
ogra_yep17:08
jdstrandok, let me try that17:08
jdstrandshoot it does't work17:09
jdstrand/tmp/xenial-preinstalled-core-amd64.os.snap failed to install: package "ubuntu-core" is already installed with developer "canonical" your developer is "sideload"17:09
jdstrandogra_: how do I generate an image from those snaps?17:10
jdstrandsorry, I've not had to do this before17:10
ogra_use mvo's u-d-f17:10
renatjdstrand, aa74d0040f626c2d090ae99d1534924cf6d4e905f5939fbadf179eff3950f12a  /usr/bin/ubuntu-core-launcher17:10
jdstrandrenat: this is on an image that is busted?17:11
ogra_with --gadget pointing to canonical-pc ... --os ponting to the os snap and --kernel pointing to canonical-pc-linux or a downloaded kernel snap17:11
renatjdstrand, yes. That image doesn't work17:11
jdstrandrenat: ok, I'm going to try to reproduce locally17:11
renatI tried with older image, and it worked successfully. So it's not related to screenly-client snap.17:11
jdstrandogra_: thanks, where is canonical-pc?17:12
ogra_in the store17:12
renatjdstrand, thanks. I built that image today. Less than 4 hours ago.17:12
ogra_just use --gadget canonical-pc17:12
jdstrandoh and it'll fetch it17:12
jdstrandok17:12
ogra_it shoudl download it17:12
jdstrandogra_: http://people.canonical.com/~mvo/all-snaps/ubuntu-device-flash ?17:12
ogra_yep17:13
ogra_ysionneau, could be that u-d-f checks for an existing boot-assets dir in the gadget snap ... try moving your uboot.env file in such a subdir (and adjust the snap.yaml)17:17
ysionneauah ok, will try thanks17:18
ysionneauthose stuff really should be documented (but I know it's in the pipe :p)17:18
ogra_itsd not onyl in the pipe, it is also supposed to change (again)17:19
ogra_EEEK !17:19
ogra_CPP     xbmc/ApplicationPlayer.o17:19
ogra_g++: internal compiler error: Killed (program cc1plus)17:19
ogra_Please submit a full bug report,17:19
ogra_with preprocessed source if appropriate.17:19
ogra_*sniff*17:19
ogra_that was after 4h compiling kodi on the rpi3 :(17:19
ysionneau18:17 < ogra_> ysionneau, could be that u-d-f checks for an existing boot-assets dir in the gadget snap ... try moving your uboot.env file in such a subdir  < I've just tried, same error17:19
jdstrandhrmm17:20
jdstrandogra_: --gadget canonical-pc17:20
jdstrandDetermining gadget configuration17:20
jdstrandexpected 1 gadget snaps, found 017:20
ogra_jdstrand, try appending .canonical17:20
ogra_i thought that was aliased17:20
ysionneauogra_: that's where cross compilation is convenient :p17:20
ogra_ysionneau, nah17:20
jdstrandthat did it17:21
jdstrandthanks!17:21
ogra_it would be the same toolchain ... wouldnt help17:21
ogra_(not with an ICE at least)17:21
ysionneauit would help for the "after 4h compiling" :p17:21
ogra_yeah, its not like i am in a hurry :)17:21
renatGuys, could you tell, please, where can I find snap download uris for os and kernel snaps?17:21
ogra_the build just runs on the side on an unused pi3 ;)17:22
renatI found couple by "guessing". https://public.apps.ubuntu.com/anon/download/canonical/ubuntu-core.canonical/ubuntu-core.canonical_16.04+20160321.17-37_armhf.snap17:22
ogra_renat, http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/ has the dailies17:22
ogra_for an rpi you want xenial-preinstalled-core-armhf.raspi2.kernel.snap  and xenial-preinstalled-core-armhf.os.snap17:22
renatAhh... Really? They used to work before=)17:23
renatogra_, let me try. Thanks!17:23
ogra_the others you posted work too17:24
ogra_(they are the same, just uploaded to the store by hand ... so they are usually a few days older )17:24
jdstrandrenat: ok, using the kernel and os snaps in http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/ I cannot reproduce on amd6417:32
renatjdstrand, thanks. I will try re-create snaps. Let me see if that snaps will fix the issue.17:34
jdstrandrenat: I think what happened is you grabbed a new kernel snap and an old os snap. the ubuntu-core-launcher needs to be 1.0.20 to work with the latest Ubuntu kernels. we'll see what your snaps say17:35
jdstrands/snaps/new flash/17:35
renatjdstrand, how can I know ubuntu-core-launcher version?18:07
renatUnfortunately - it still doesn't work with the same error.18:08
jdstrandrenat: that is why I asked for the sha256sum18:09
jdstrandrenat: actually, there is a manifest file18:09
jdstrandrenat: is this what you used: http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/xenial-preinstalled-core-armhf.manifest18:09
jdstrandhttp://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/xenial-preinstalled-core-armhf.os.snap18:10
renatYes. This is the file I used to build image.18:10
renatThe 2nd one.18:10
jdstrandcan you do sha256sum /usr/bin/ubuntu-core-launcher again?18:11
renathttps://paste.ubuntu.com/15489051/18:11
renat837ab5d35b9d2f757ef85ce51a10bd6084c5b122af829e3fe12ebef35af7cee3  /usr/bin/ubuntu-core-launcher18:12
jdstrandok, that is what is in 1.0.2018:13
jdstrandrenat: since this is a whole new image, can you paste the output of 'cat /var/lib/snappy/seccomp/<snap>...18:13
renatSire18:15
renatSure18:15
renatjdstrand, https://paste.ubuntu.com/15489090/18:17
jdstrandok18:17
jdstrandrenat: can you paste the output of 'grep audit /var/log/syslog'?18:18
renatjdstrand, which kernel version should I use to work with previous versions of ubuntu-device-flash tool?18:18
renathttps://paste.ubuntu.com/15489095/18:19
jdstrandhttp://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/xenial-preinstalled-core-armhf.raspi2.kernel.snap should be fine18:19
jdstrandrenat: can you file a bug?18:21
renatjdstrand, yes. I will investigate the issue a little first.18:21
renatThanks for help.18:21
renatDisconnecting.18:21
jdstrandrenat: one other thing18:21
jdstrandrenat: can you install the hello-world app, then run hello-world.env?18:22
renatDoing18:22
renatThe same error, jdstrand18:23
jdstrandok, then it isn't your app18:23
jdstrandrenat: actually, I can lead you through a rather complicated process to see if it is the launcher18:24
jdstrandrenat: do you have time?18:24
rootx_hello18:50
=== davmor2 is now known as davmor2_HOLS

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