/srv/irclogs.ubuntu.com/2015/12/11/#snappy.txt

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
liuxghas anyone done django on snappy ubuntu? I have a little problem in getting it to work. it seems that the urls is not working though it works well on the desktop environment. thanks03:35
liuxgdoes anyone know what "build-packages: [libssl-dev]" means in the snapcraft.yaml syntax?03:53
=== chihchun_afk is now known as chihchun
dholbachgood morning07:20
svijmorning dholbach07:22
dholbachhi svij07:22
liuxgdholbach, ping09:42
dholbachliuxg: pong09:44
liuxgdholbach, I just found the example snapcraft.yaml at the link https://github.com/ubuntu-core/snapcraft/blob/master/examples/downloader-with-wiki-parts/snapcraft.yaml, what is the use of the "build-package"?09:45
liuxgdholbach, it looks like that it installs the package for the project. However, if I remove it, the project still can be successfully compiled09:46
dholbachliuxg: it's there, so somebody who tries to use your snapcraft.yaml locally has the required packages installed for the build09:47
liuxgdholbach, oh right, it is used use to install to the host computer, right? then can we do the same for "curl" in the example?09:49
dholbachyes, it should work for everything09:50
liuxgdholbach, you are right. I previously installed the package for "libssl-dev", so now I do not need it, and I can still successfully compile it.09:50
dholbach:)09:50
liuxgdholbach, by the way, I have used your stage-packages method to install the django stuff, and I successfully compiled them into the project. However, the project does not run in the KVM. the project works well on desktop.09:52
dholbachliuxg: did you find out why?09:53
dholbachit would be really nice if you could write up your story and send it to snappy-app-devel@lists.u.c09:53
dholbachothers could start helping with your project09:53
dholbachand learn from it09:53
dholbachthere is a lot to be learnt from your experience09:53
liuxgdholbach, I do not know why it happens to be like that. the app is started, but the ulrs are not routed, so still something is wrong about it..09:53
dholbachah... do you redirect the ports when using kvm?09:54
liuxgdholbach, yes, I will do that for sure. yes, I redirect it to the port 809009:54
dholbachok09:54
liuxgdholbach, this is a little bit frustrating since the debugging on snappy is limited, and sometimes is not so easy to spot the problems09:55
liuxgdholbach, I have never received emails from snappy-app-devel@lists.u.c?10:03
dholbachliuxg: are you signed up for it? https://lists.ubuntu.com/mailman/listinfo/snappy-app-devel10:03
liuxgdholbach, where to subscribe the mailing list?I only receive emails from snappy-app-devel-request@lists.ubuntu.com, are they the same?10:04
dholbachsnappy-app-devel-request is no mailing list - it's just the email you interact with to (un)subscribe10:04
liuxgdholbach, ok. I got it. sorry for the confusion!10:05
dholbachno worries10:05
JamesTaitGood morning all; happy Friday, and happy birthday to UNICEF! 😃10:17
liuxgdholbach, I am now trying to use snappy-app-devel@lists.u.c, but it complains that it it not recognized.10:17
dholbachdid you expand u.c to ubuntu.com?10:18
dholbachsorry, I was just using a shortened version10:18
liuxgdholbach, No, I did not, sorry10:19
liuxgdholbach, I just sent one email for it.10:19
dholbachok cool10:19
liuxgdholbach, yesterday, I sent one email, but I used the wrong email address :) I sent it to snappy-app-devel-request@lists.ubuntu.com10:20
dholbachI'm glad we fixed this issue now too :-D10:21
liuxgdholbach, yeah, it is true. I am going to have my dinner. Have a great weekend!10:21
dholbachyou too! have a good one! :)10:22
liuxgdholbach, thanks! :)10:22
=== greyback__ is now known as greyback
ogra_GRRRR10:39
ogra_why has apt suddenly a system user ?10:39
xnox"security"10:42
* ogra_ goes and fixes livecd-rootfs to respect that ... 10:43
=== verterok is now known as verterok-away
=== chihchun is now known as chihchun_afk
MikeBQUESTION: How do I apply patches to pull'ed code before it is built?13:47
cyphermoxhi. is there a snap for unity? If I wanted to install snappy on my laptop but still have a graphical interface?13:47
kyrofacyphermox, not yet. We're still working on the graphical snap pieces13:48
cyphermoxkyrofa: ok, thanks13:48
=== dholbach_ is now known as dholbach
MikeBIn snapcraft, how does one apply local patches to pull'ed code before building?15:28
ogra_MikeB, i dont think there is a way yet despite pushing your while modiied tree to github or so15:29
ogra_*whole15:29
MikeBogra_, thanks. I'm surprised there's no such way to do that.15:31
ogra_i think it is planned ... sergiuens could tell, but he isnt around15:32
Chipacaogra_: yes, the don't-take-over-networking is landed16:54
Chipacaogra_: all the way to 15.04 even16:54
Chipacait's an oem snap option16:54
ogra_ah, i'll tell morphis (next week i guess)16:55
Chipacaogra_: something ridonculous like please-dont-use-networking-because-you-suck-ok: false16:55
Chipacaogra_: skip-ifup-provisioning16:56
ogra_neat16:56
Chipacaunder oem in the oem snap yaml16:57
ogra_k16:57
elopiokyrofa: I almost made it with mailpile, but got stuck on apparmor denials...17:04
elopiohttp://pastebin.ubuntu.com/13935183/17:04
kyrofaelopio, those are just the stupid .pyc ones though17:04
kyrofaelopio, I think you can ignore those17:05
elopiokyrofa: well, the server is not starting. I thought it was because of this.17:05
kyrofaelopio, I doubt it. Sure there isn't a more meaningful denial in there?17:05
kyrofaelopio, have you run it with snappy-debug?17:05
elopiothat's the only thing I see on dmesg, and on the service log it says it all went fine.17:06
elopioI haven't tried snappy-debug before. /me tries.17:06
kyrofaelopio, yeah snappy install snappy-debug, then sudo snappy-debug scanlog (IIRC)17:10
elopiokyrofa: yes, just unlink and mknod on pyc files. Lots and lots of them.17:14
kyrofaelopio, huh... I thought that wasn't a fatal python error?17:14
kyrofaelopio, I just figure it's unable to save the compiled version so it has to do it everytime. Too bad17:15
kyrofaelopio, maybe barry knows better?17:15
kyrofaI wonder if there's a way to redirect where python tries to put those17:16
elopiokyrofa: well, I'm not sure this is the cause. It's just the only output I get.17:16
kyrofaelopio, good point. It may be the thing simply malfunctioning, external to apparmor all together17:17
elopioor me doing something stupid. That's always an option :)17:18
elopioanyway, context swtich now.17:18
barrykyrofa: sorry, what's the issue?17:28
kyrofabarry, when making a python .snap, we always see denials trying to create .pyc files17:28
barrykyrofa: "denials"?  write errors?17:29
kyrofabarry, 1: Can that ever be a fatal error? 2: Is there any way to redirect where python tries to put those files? 3: Is there a big benefit to putting them somewhere else?17:29
kyrofabarry, apparmor denials, although even if apparmor didn't get it the .snap's directory is read-only17:30
barrykyrofa: technically, pyc files are just a cache of the compilation step.  they aren't *required* but they are a very good idea if you want it to be fast.  -B/PYTHONDONTWRITEBYTECODE=1 can be used to disable writing pyc files, but you can't really put the pyc files in a different place by default (you could in py3 if you wrote a custom import hook).  i don't think there's much benefit to the added complexity of putting them somewhere17:32
barryelse.  this is also somewhat different between py2 and py3 (with the latter using __pycache__ directories next to the .py files)17:32
kyrofabarry, ah, exactly the information I was looking for, thank you!17:33
kyrofaelopio, perhaps you could try the above to reduce apparmor noise and see if you have any other errors you're missing?17:33
barrynp!17:34
elopiokyrofa: I'll try that. Also it seems that the command line argument they give to just run the server doesn't work.17:34
elopioand if I don't pass it, the service is not left running either, something kills it.17:34
=== chihchun_afk is now known as chihchun
=== sarnold_ is now known as sarnold
wililupyDoes anyone know of any documentation on what all options can go in the snapcraft.yaml file?19:05
kyrofaelopio, https://github.com/ubuntu-core/snapcraft/pull/163 when you're able19:38
kyrofawililupy, sorry, I just saw your question19:38
kyrofawililupy, a PR is sitting to add just that-- you can likely learn from it if you like: https://github.com/ubuntu-core/snapcraft/pull/14619:39
wililupykyrofa: excellent thank you. I'll look it over. My snap is "partially working" now, but I keep having permission issues for packet capturing, which I'm hopeing is something I can just add to the binaries: or services: section19:59
kyrofawililupy, alright, well come back if you continue to have troubles :)19:59
kyrofajdstrand, have we made any more progress on bug #1466234 ?20:47
ubottubug 1466234 in ubuntu-snappy (Ubuntu) "Apparmor denial for access to SNAP_APP_USER_DATA_PATH as root" [Critical,Triaged] https://launchpad.net/bugs/146623420:47
kyrofaogra_, I'm looking for some documentation on port negotiation21:01
kyrofaogra_, any pointers?21:01
ogra_negotziation ? no21:01
ogra_probably Chipaca has an idea21:02
kyrofaogra_, oh... the docs say "there is no implementation for this yet" :P21:05
ogra_heh, i have never needed it21:05
kyrofaogra_, yeah, I was trying to pave the way to having multiple ROS snaps installed21:05
* ogra_ has the ports in his snaps configurble via snappy config ;)21:05
ogra_+a21:05
kyrofaogra_, how does that work?21:05
kyrofaogra_, perhaps I could make a workaround for now21:06
kyrofaogra_, https://developer.ubuntu.com/en/snappy/guides/config-command/ ?21:06
ogra_well, i'm pretty non-std and prefer to use shell for such stuff :) but have a look http://bazaar.launchpad.net/~ogra/+junk/packageproxy/files21:07
ogra_snapcraft.yaml defines config.sh ... config.sh writes a yaml file as well as the actual confi for the app/service21:07
ogra_your config tool can indeed be a python script, go or C ...21:09
kyrofaogra_, nice, okay thanks!21:11
=== chihchun is now known as chihchun_afk
=== verterok-away is now known as verterok

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