=== chihchun_afk is now known as chihchun
kyrofaliuxg, did you ever get those packaging problems resolved?05:16
kyrofaliuxg, I seem to be running into a 401 when trying to install my just-published .snap05:17
liuxgkyrofa, it is very late for you, right? so far, it is fine for me.05:17
kyrofaliuxg, heh, yeah we switched places :)05:17
kyrofaliuxg, and you didn't need to do anything?05:17
liuxgkyrofa, yeah, I talked to the online service team, and they helped me to configure sth at the backend. The the problem disappeared.05:17
kyrofaliuxg, bueno etc.? Nothing you could walk me through, I suppose?05:18
liuxgkyrofa, for now, for each snap app, I need to talk to matiasb to help to configure. they are trying to solve the problem.05:18
liuxgkyrofa, yeah, bueno's team is responsible for it.05:19
kyrofaliuxg, that's too bad-- it seems pretty broken05:19
liuxgkyrofa, yes, I just got my 3 snaps published. he manually fine-tuned something for me.05:20
kyrofaliuxg, alright I'll ping matiasb in the morning, then05:20
kyrofaliuxg, thanks for the advice :)05:20
liuxgkyrofa, late on, he said that it would be automatic. it is really annoying05:20
kyrofaliuxg, yeah. Growing pains I guess :)05:21
liuxgkyrofa, yes, it seems that is the only way. I think you probably need to go to bed. it is really too late for you.05:21
kyrofaliuxg, great minds think alike ;)05:21
kyrofaliuxg, have a great day!05:21
liuxgkyrofa, by the way, thanks for your help to review my slides. I really learned a lot from you!05:22
liuxgkyrofa, have a good night :)05:22
kyrofaliuxg, my pleasure :)05:22
kyrofaliuxg, night!05:22
mikenkyrofa: I can push the right button if you need it...05:22
mikenBut right, if it's that late, sleep and have it done in the morning :)05:23
fgimenezgood morning08:10
LefterisJPhey guys, how can one clean the output of `sudo snappy-debug.security scanlog`? It has irrelevant warnings that i fixed days ago and takes quite some time to reach the end :P08:42
robert_ancellmvo, what is the correct way to search for snappy packages? The REST API for snapd doesn't seem to have any search functionality, but the command line tool does (I think it goes directly to search.apps.ubuntu.com)09:28
JamesTaitGood morning all!  Happy Wednesday, and happy Penguin Awareness Day! 😃10:06
blrJamesTait: sadly, our yellow eyed penguins in Dunedin are not doing particulary well :(10:21
JamesTaitblr, how so?10:31
kyrofaGood morning12:39
kyrofaLefterisJP, truncate your syslog12:46
kyrofamvo, I'd like to get an all snaps image on my rpi2 (that's where I can use classic, right?). How do I go about that?12:56
mvokyrofa: its here http://people.canonical.com/~mvo/all-snaps/13:11
kyrofaThanks mvo :) . Booting now13:15
kyrofamvo, another question: I know that ubuntu-core itself is automatically updated, but does is _ever_ .snap automatically updated by default?13:23
kyrofamvo, I think the answer is "yes" but I want to make sure. Other .snaps aren't updated enough for me to know from experience, heh13:24
vir17hi, i am new here. I am interested to learn more about snappy for things. Any good tutorials out there?13:29
kyrofavir17, welcome! Start here: https://developer.ubuntu.com/en/snappy/ :)13:29
vir17thank you kyrofa , I have already read the information of this link,thank you, I want more of a guide/article explaining a real concept so I can follow the steps and learn in the process13:32
vir17if anyone is aware of something like this13:32
kyrofavir17, have you visited https://developer.ubuntu.com/en/snappy/build-apps/ then?13:32
LefterisJPkyrofa: how can I truncate syslog in snappy? Doing `sudo cat /dev/null > /var/log/syslog` gives me a permission denied error. Also tried to use the systemd journal way with `journalctl --vacuum-time=1m" but that had no effect.13:35
vir17thanks kyrofa i will try that13:36
kyrofaLefterisJP, try `sudo dd if=/dev/null of=/var/log/syslog`13:38
kyrofavir17, note that link was linked from the original page I shared, near the top (named "Build apps")13:39
mvokyrofa: yes :) every snap auto-udpates13:40
kyrofamvo, excellent, thank you for the verification13:40
LefterisJPkyrofa: thanks! it worked. Curious why cat did not work.13:41
kyrofaLefterisJP, redirects don't get your privileges13:42
kyrofaLefterisJP, so you could also have sudo su - and THEN done the redirect13:42
kyrofaLefterisJP, so the cat was happening with sudo, but the redirection was happening as you. Make sense?13:43
=== devil is now known as Guest77896
LefterisJPkyrofa: yeah it does, thank you - should have thought about that :)13:54
kyrofaLefterisJP, any time :)13:55
=== retrack is now known as Guest3469
=== Michaela is now known as Mikaela
=== LarreaMikel1 is now known as LarreaMikel
jdstrandLefterisJP: hey, fyi it is pulling from /var/log/syslog. the tool itself could definitely be smarter, but a log rotation would also do the trick14:06
kyrofajdstrand, question for you14:06
jdstrandkyrofa: hey14:06
kyrofajdstrand, there are some applications that host a vast amount of data (e.g. owncloud)14:07
jdstrandmvo: not sure if you saw it, but you should have gotten an email regarding mksquashfs/unsquashfs hashes. I don't need an answer now, just want to make sure you saw it14:07
kyrofajdstrand, such collections of data really shouldn't be copied upon upgrade, etc.14:08
* jdstrand is waiting for the question14:09
kyrofajdstrand, that also leads to another point: say you're running on the rpi2, but want to host owncloud's data on an external hard drive instead of in SNAP_APP_DATA_PATH or something. Is that a problem you're considering as far as hw-assign goes?14:09
kyrofajdstrand, or capabilities, I guess14:09
LefterisJPkyrofa: jdstrand: I have to go right now, be back in 1 hour or so, but I have the exact same problem with the framework I am developing. The data (the blockchain) is stored in $SNAP_APP_DATA_PATH and is copied with each upgrade, which is not a good solution (it starts to become too big). Wonder how it could be done better.14:10
jdstrandon Touch the data dirs are not versioned. I initially suggested we do the same for snappy, but it was decided that snappy should have versioned data dirs to support rollbacks (which isn't supported on Touch)14:10
kyrofajdstrand, indeed, and that's actually awesome for the database i'm hosting there14:11
kyrofajdstrand, but I feel like we're missing that other capability14:11
jdstrandwhich other capability-- the hard drive or having some sort of optional "share data between versions" or something?14:11
kyrofajdstrand, the share data bit, but in my head they're the same problem-- store data outside of the typical snappy paths14:12
jdstrandI think the sharing data between versions is a conversation point for the snappy architects. It could perhaps start as a bug14:13
jdstrandthe hard drive point actually isn't a hard drive device-- it is just an alternate directory. I don't see why that couldn't be handled by capabilities14:14
* jdstrand jots that down on the list of things to bring up with zyga14:14
kyrofaAlright, thanks jdstrand!14:16
jdstrandkyrofa: I can say that the thing with rollbacks is, aiui, you don't have infinite number of them. you get one. that isn't exactly what you'd like I know, but at least there is an upper limit14:17
kyrofajdstrand, oh interesting, actually I didn't know that. Are versions older than "the previous one" cleaned up, then?14:17
jdstrandmaybe there is an opt in behavior there. do the copy, and if you don't rollback, get rid of the old data dir14:18
jdstrandkyrofa: I'm not sure what the implementation does now, but aiui, that is the plan. perhaps mvo can shed more light on that14:18
kyrofaelopio, you may still be in the QA call, eh?14:30
mvokyrofa: sorry, in a meeting right now, I can reply in a bit but I can't read backlog currently14:30
kyrofamvo, no problem14:31
kyrofaelopio, ping me if you want to standup :)14:33
kyrofamvo when you get a minute, any idea why `make` would be segfaulting in the classic dimension?14:48
mvokyrofa: its doing what - segfaulting? huuuu14:51
kyrofamvo yeah even just make clean14:52
mvokyrofa: that sounds more like a bad sd card or something, do you have a backtrace?14:52
elopiokyrofa: sorry, my other meeting ran long.14:53
elopiokyrofa: I don't want to stand up, my throat hurts. I think I've already said today all the words I usually say in a week.14:53
kyrofamvo, http://pastebin.ubuntu.com/14582510/ with strace14:53
elopiokyrofa: do you need something from me for today?14:53
kyrofaelopio, no problem :)14:54
kyrofaelopio, and no, you're good!14:54
mvokyrofa: thats on the rpi2 I assume?14:55
kyrofamvo, indeed14:55
kyrofamvo, never seen this before14:55
mvokyrofa: I suspect some HW issue, but I will try to reproduce, just need to fiddle with the serial cable of my rpi2 to get it going again14:55
kyrofamvo, thanks for the help! Yeah the only thing I can get out of make is --help. Even -v segfaults. But I was able to setup classic and install snapcraft and everything without issue14:56
mvokyrofa: http://paste.ubuntu.com/14582659/ - works here :/15:22
kyrofamvo, what on earth15:22
mvokyrofa: let me try to upgrade everything so that I'm really on the latest everything15:23
kyrofamvo I don't see any real problem in the strace either-- it lists the entries in /dev a few times and then closes the /dev fd right before it segfaults15:24
mvokyrofa: does gdb show anything meaningful? but before that, can you try "sudo apt install --reinstall make" ?15:26
mvokyrofa: and maybe its dependencies, I still suspect some sd card issue15:26
kyrofamvo, no gdb is useless: http://pastebin.ubuntu.com/14582689/15:28
kyrofamvo, reinstalling make doesn't help15:28
kyrofamvo I might have another card here I can try15:28
kyrofamvo I hate hardware sometimes :P15:28
mvokyrofa: worth a shot to try with a different sd card I would say, we had a bunch of sd card issues when testing with the bbb, quite a few issues were faulty HW15:31
opmodoroHello, I'm building my first snap using go as in the tutorial. When I install it apparmor deny it asking for capability net_admin, if I add it in the yaml it won't install with an error. Any tought?15:35
kyrofaopmodoro, what is your snap doing?15:36
opmodoroactually a simple http server at
kyrofaopmodoro, what version of Ubuntu Core are you running?15:37
opmodorouhm, I'm on vagrant box ubuntu-core-edge-1515:38
kyrofaopmodoro, to double check, `cat /etc/lsb-release`. It's 15.04?15:39
opmodorokyrofa, yes 15.04 vivid15:40
kyrofaopmodoro, can you please pastebin the apparmor denial you're seeing, as well as your snapcraft YAML (assuming you're using snapcraft)?15:41
opmodorook, just a moment15:41
jdstrandopmodoro, kyrofa: that is a harmless denial15:42
jdstrandif you use snappy-debug.security scanlog, it will tell you that15:42
ubottuLaunchpad bug 1465724 in Snappy "net_admin apparmor denial when using Go" [High,Confirmed]15:43
opmodorojdstrand, kyofa, I found something similar on launchpad. However logs are not helping and netstat -nat doesn't show it15:43
kyrofajdstrand, oh, nice. What's being denied there? What does net-admin give you?15:43
kyrofaopmodoro, he's saying you should be able to safely ignore it-- it shouldn't be affecting your .snap15:44
jdstrandkyrofa: it is a kernel bug. its logic is wrong when trying to see if something has access to some proc file iirc15:44
opmodorojdstrand, I do not have such command15:44
jdstrandopmodoro: sudo snappy install snappy-debug15:44
kyrofaopmodoro, `sudo snappy install snappy-debug`. Very handy tool15:44
opmodorogreat thanks!15:44
kyrofaThanks for jumping in there jdstrand :)15:45
jdstrandnp :)15:45
tzununbekov_asac, jdstrand hi, have you received our message on mail?15:45
jdstrandtzununbekov_: it went through, yes. I didn't respond since we chatted on irc and was waiting for the conversation to pickup15:46
opmodorokyrofa, jdstrand thank you! It is working now. I've added the correct caps now. Best16:07
kyrofaopmodoro, excellent!16:17
kyrofamvo, alright, trying with a second SD card16:20
* kyrofa crosses his fingers16:20
Guest35435quick question, there's no way to add repositories like Deluge or anything right now yeah?16:22
ogra_Guest35435, you can use an lxc container, a docker container or the classic mode to use debs .... in plain snappy there is no deb support though16:25
ogra_you would rather use snapcraft with the copy plugin to create a snap of your project instead16:25
Guest35435okkkk thanks! I'll look into all that16:27
kyrofamvo, segfault again16:36
kyrofasergiusens, did you try the classic dimension on the rpi2?16:37
elopiomvo: are you still working? I wanted to ask you about this https://github.com/ubuntu-core/snappy/blob/master/integration-tests/tests/update_os_test.go#L4516:42
elopiobut if it's too late for you, I can do it earlier tomorrow.16:42
mvoelopio: sure, still here16:48
kyrofaelopio, can you take another quick look at https://github.com/ubuntu-core/snapcraft/pull/241 when you're able?16:48
mvoelopio: just addressed your pull request comments (thanks for those!)16:48
elopiomvo: so, when I run snappy update, where are the bootloader files that will be used after the reboot?16:48
mvoelopio: what do you want to know in particular? the new syle boot dir is simple on grub: its empty (except for the UEFI stuff that is mandatory)16:48
mvoelopio: in uboot its /boot/uboot/snap-blob-name/{vmlinuz,initrd.img}16:49
elopiomvo: yes, uboot case.16:49
elopiomvo: so, after the new snaps are installed, they overwrite the system boot. That's all I needed to know.16:49
mvoelopio: http://paste.ubuntu.com/14583211/16:50
elopioI'll make the test pass on rpi.16:50
elopiokyrofa: ack16:51
kyrofaelopio, make sure the code style is what you were going for16:52
mvoelopio: here are the vars used: http://paste.ubuntu.com/14583223/16:52
mvoelopio: \o/16:52
mvoelopio: let me know if there is anything else you need to know16:52
=== tasdomas` is now known as tasdomas
elopiomvo: I got that workaround with the env vars covered on my pull request from monday.16:56
elopiomvo: maybe you can look at it tomorrow. It's simple, and m-o is happy: https://github.com/ubuntu-core/snappy/pull/34316:57
LefterisJPguys is there any way to add another editor instead of VI inside snappy? For debugging purposes I need to be editing different files and then rerun snap services, but my VI editing skills are a bit ... well ..17:00
LefterisJP(I am an emacs user)17:00
ogra_just create an emacs snap then ?17:00
ogra_(or use the classic mode)17:01
elopioLefterisJP: +1 to the emacs snap. I would like your snap very much.17:01
elopioI'm wondering how do we allow a snap to read all files, and write all the writable files, like an emacs snap would need.17:02
ogra_(we might end up to even drop vi from the core OS at some point)17:02
ogra_elopio, probably simply via sideloading :)17:02
* ogra_ has a htop snap, a debootstrap and a wget snap he uses like that17:03
mvoelopio: sure17:03
ogra_i.e. http://bazaar.launchpad.net/~ogra/+junk/htop-unconfined/files ...17:03
mvoogra_: aha, did you see all my messages about all-snaps & arm64 from the other day ?17:03
ogra_mvo, hmm, perhaps not ... IRC ? mail ?17:04
mvoogra_: irc17:04
elopioogra_: why do you need the wget snap sideloaded? It seems it could be a good citizen touching only its dirs.17:04
mvoogra_: I created an arm64 alls-snap image but can't test it because i have no board17:04
=== rickspencer3_ is now known as rickspencer3
ogra_elopio, because it is annoying to fish your files out of SNAP_APP_USER_DATA_PATH17:05
ogra_mvo, damn and i didnt bring mine to the UbuCon17:05
mvoogra_: if you have the HW maybe we can talk about this tomorrow?17:05
mvoogra_: oh, you are at ubucon, ok17:05
mvoogra_: no worries then, its not urgent17:05
elopioogra_: maybe a link to ~/Downloads.17:05
ogra_yeah, sorry .... i was pondering to bring it with me but found it to risky to lose it17:05
mvoogra_: I guess all my irc message will show up on your other client when you are back home ;)17:06
ogra_hmm, let me kill that17:06
ogra_(and yes, you might be right)17:06
fgimenezelopio, about https://travis-ci.org/ubuntu-core/snapcraft/jobs/103540103, it seems that it's trying to send the info stored under /home/ubuntu, the path where the tests were executed inside the container17:09
fgimenezelopio, but outside the container that route doesn't seem to exist, maybe you should execute coveralls inside the container? or change the path in the report?17:09
elopiofgimenez: I mount the path, so it's the same dir in the container and in the host.17:09
elopio*should be. At some point it worked.17:09
elopioI tried executing coveralls inside the container, and it complained about many things. I can retry that.17:10
elopioahh, maybe there's something new here. It didn't seem to link the coverage with the absolute path before.17:11
fgimenezelopio, now when it sends the report it looks for paths like /home/ubuntu/snapcraft/__init__.py, as in "No source for /home/ubuntu/snapcraft/__init__.py"17:12
elopioyeah, that's a good clue.17:13
fgimenezleaving, have a nice day o/17:18
kyrofamvo, FYI, installing regular old Ubuntu on the rpi2, make works fine17:20
sergiusenskyrofa, yes, I did try the classic dimension, it is how I built the face stuff17:38
sergiusens ogra_, mvo I think that olli is bringing one for me here, I can lend it while here17:38
Lefteris`elopio: ogra_: yeah an emacs sideloaded snapp would be perfect for debuging and dev purposes. Should not be that hard to make.17:38
kyrofasergiusens, yeah that's what I thought. It's odd-- I tried it twice, on two different SD cards, and make was segfaulting17:38
kyrofasergiusens, I finally just installed Ubuntu on one of the SD cards and now it works fine17:38
kyrofasergiusens, no clue what's happening17:39
kyrofasergiusens, it works for both you and mvo17:39
elopioLefteris`: it would be fun to explore the integration with elpa.17:39
elopiohow a snap can install "plugins".17:39
sergiusenskyrofa, is your clock bonkers?17:45
kyrofasergiusens, currently it's UTC. I didn't check in ubuntu core though-- you think that would cause `make -v` to segfault?17:46
sergiusenskyrofa, no, not really17:48
kyrofasergiusens, yeah... a head scratcher for sure. I didn't see anything odd here-- you? http://pastebin.ubuntu.com/14582510/17:50
sergiusenskyrofa, try make on something simpler. Why does it stat all the dev nodes?17:53
kyrofasergiusens, that was only a make clean-- a single rm -rf call17:53
kyrofasergiusens, I got the same thing from `make -v`17:53
kyrofasergiusens, which obviously does _nothing_17:54
kyrofasergiusens, great question regarding the stat. No clue17:54
sergiusensah, weird; do you have anything strange hooked up to your device which would cause the stat call to die?17:54
kyrofasergiusens, no, and they aren't dying-- they're returning 0 (no error)17:54
kyrofasergiusens, hmm... actually I wonder now if the piglow might have something to do with it17:55
kyrofasergiusens, that's the only thing hooked up. Do you have one hooked up?17:55
sergiusenskyrofa, classic is a container iirc, so accessing things that are denied might cause unexpected behavior on old software17:55
sergiusenskyrofa, no, I have  a barebones pi2; from before the merch was avail17:55
kyrofaHmmmmm.... mvo how about you?17:56
kyrofasergiusens, after I finish building here I'll try taking it off and trying again17:56
sergiusenskyrofa, he has a regular one as well iirc17:56
kyrofasergiusens, but yeah... make does more than I thought, apparently :P17:56
sergiusensogra_, can you sponsor an upload for me?18:08
kyrofaelopio, can you verify that I can set bug #1534802 to Fix Committed?18:10
ubottubug 1534802 in Snapcraft "gopaste example fails because sqlite tries to chown" [Undecided,New] https://launchpad.net/bugs/153480218:10
enoch85kyrofa, hey, now I'm online18:12
kyrofaHey enoch85 :)18:12
elopiokyrofa: nop, the bug is still there. What I made was a workaround to get the example running.18:12
kyrofaelopio, ah, okay18:12
elopiomaybe a better name for the bug would be good.18:13
=== xnox_ is now known as xnox
=== dasjoe_ is now known as dasjoe
=== benoitc_ is now known as benoitc
blrJamesTait: they're endangered, and their numbers are declining... predation from introduced species (stoats) and apparently climate change is affecting fish stocks.18:36
JamesTaitblr :(18:59
vir17can I use python to create snaps?19:18
kyrofavir17, you mean can python be used within a .snap?19:30
kyrofavir17, certainly19:30
kyrofaThere are py2 and py3 examples here: https://github.com/ubuntu-core/snapcraft/tree/1.x/examples19:31
vir17thanks kyrofa very useful :)19:32
fazercan someone look at this please: https://github.com/ubuntu-core/snapcraft/pull/24519:41
kyrofafazer, I've gotcha19:42
kyrofaSorry for the delay19:42
fazerno problem19:42
kyrofafazer, looks like you got the squash, though?19:42
fazerkyrofa, yup, it was pretty painful the first time. But the second was better. I understood what exactly I was doing, better.19:43
kyrofafazer, excellent! Yeah this looks great19:44
fazerkyrofa thanks. much appreciated19:49
kyrofafazer, no problem, you're getting pretty good at jumping through the hoops!19:52
kyrofaelopio, I learned the downside of specifying multiple build threads all the time19:54
kyrofaGaaah.... come on rpi2... you can do it...20:02
=== chihchun is now known as chihchun_afk
kyrofaelopio, I need a cluster of rpis just to build stuff20:36
elopiokyrofa: hah, but with a single thread isn't it just as slow?20:52
kyrofaelopio, well I'd bump it back up, duh :P20:53
kyrofaelopio, this has been running since this morning20:53
elopioI have a cluster of two rpis here :)20:53
kyrofaelopio, got a sec for a python question?20:54
elopiokyrofa: sure.20:54
kyrofaelopio, if your code is built using setuptools, is easy-install.pth required to run it?20:55
elopioja, no idea. Maybe barry is around.20:57
kyrofaAh, barry was my backup plan20:57
kyrofaHey barry!20:57
barrykyrofa: hi!20:57
kyrofabarry, I don't know anything about setuptools20:57
barrykyrofa: ok20:58
kyrofabarry, but I'm curious if easy-install.pth plays a role at runtime, or if it's more of a version manager. What happens if it's not there?20:58
barrykyrofa: where do you see easy-install.pth?  pth files are kind of an abomination ;)20:59
barrythey hack the path in non-evident ways21:00
kyrofabarry, bug #153157021:00
ubottubug 1531570 in Snapcraft "Can't have two python3 parts using setuptools" [Undecided,New] https://launchpad.net/bugs/153157021:00
kyrofabarry, yeah, and I'm wondering if it buys you anything in a .snap21:00
barrykyrofa: can you pastebin what's in that .pth file?  you should be able to delete it since it shouldn't be doing anything that isn't already set up (e.g. modifying sys.path, but .pth files can do other evil things).21:03
kyrofabarry, here's one of them: http://pastebin.ubuntu.com/14585410/21:05
kyrofabarry, and the other: http://pastebin.ubuntu.com/14585415/21:05
barrykyrofa: okay, i think i see what these are doing.  i don't think you strictly need the .pth files if you have control over the command line and can e.g. export PYTHONPATH=foo.egg:bar.egg21:09
kyrofabarry, alright, I'm experimenting now21:10
kyrofabarry, thank you for your help!21:10
barryessentially i think that's what this .pth file is doing-  putting some eggs on sys.path.  eggs essentially fancy zips that python can import from21:10
barrykyrofa: k, good luck!21:10
kyrofaSo as long as they're in the path, it should work regardless21:11
elopioI'm going to finish earlier today to attend a workshop about mqtt.23:17
=== Guest77896 is now known as devil_

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