/srv/irclogs.ubuntu.com/2015/10/26/#snappy.txt

=== balloons is now known as Guest90681
=== chihchun_afk is now known as chihchun
* Guest42341 What a fine day for science! 04:46
=== bigcat_ is now known as bigcat
dholbachgood morning07:27
=== kickinz1|away is now known as kickinz1
clobranogood morning :)07:45
fgimenezgood morning08:12
zygagood morning09:38
JamesTaitGood morning all; happy Monday, and happy OK Corral Day! 😃09:46
=== _morphis is now known as morphis
Chipacawhat's /usr/lib/snappy-systemd/systemd-snappyhook ?09:56
Chipacaogra_: is that one yours? ^09:57
dholbachdpm, thanks for the emails11:42
dholbachI'll bring it up in the snappy standup later on as well11:42
dpmgreat, thanks dholbach11:43
clobranoChipaca: hi, eventually I decided to propose the simple solution for Bug #1496319 (just a symlink without filters) :)11:46
ubottubug 1496319 in Snappy "Could not create symlink to hw device with udev rules" [Undecided,New] https://launchpad.net/bugs/149631911:46
Chipacaclobrano: still needs jdstrand's and/or co's input11:50
clobranoChipaca: co?11:51
zygamvo: hey11:52
zygamvo: nice to see you again, how are you?11:52
Chipacaclobrano: "and/or his team"11:53
clobranoChipaca: aahh, get it now ;). It's fine :)11:54
mvohey zyga! thanks, I'm very well. how are you?11:55
zygamvo: I just returned from holidays, I'm settling in11:58
zygamvo: I wanted to ask about snaps for the kernel and a few other bits, if you remember our conversation from the sprint11:59
mvozyga: I'm not sure I do, but there is progress for kernel snaps since the sprint12:00
zygamvo: is there enough bits now to come up with an image for any system with just the snaps?12:00
mvozyga: http://people.canonical.com/~mvo/all-snaps/ has all thats needed. there is a example image, there is a ubuntu-device-flash, a kernel and os snap and the run to show how to drive udf in the new world. the next step is store support for the kernel/os snaps and then we can get serious about testing them12:01
zygamvo: that's a lot, thanks! I'll read that and see how to start desigining skeleton for ubuntu-image12:05
mvozyga: this is what we did for u-d-f to support all-snaps https://code.launchpad.net/~snappy-dev/goget-ubuntu-touch/all-snaps/+merge/27527312:07
mvozyga: it needs some cleanup, its just enough to get us going for better testing12:08
zygamvo: I see, thanks12:09
zygasergiusens: hey!12:37
zygasergiusens: how are you :)12:37
zygasergiusens: I'm back from holidays today12:37
zygasergiusens: would you have a moment to sync later today?12:38
shuduolool: ping12:40
loolshuduo: pong12:40
sergiusenszyga, sure, but later, not just now ;-)12:41
shuduolool: i'm working to create a webapp snap example based on tomcat-maven-webapp. i wonder how the scribpt 'wrapper' be generated?12:42
zygasergiusens: I'll setup a meeting and we'll see12:42
loolshuduo: see tomcat-maven-webapp/Makefile12:42
loolshuduo: install -D -m755 wrapper $(DESTDIR)/bin/wrapper12:42
loolbottom of snapcraft.yaml runs make12:43
shuduolool: i mean, is it composed by you or someone else for tomcat-maven-webapp? Is it necessary for tomcat-hosted webapp?12:45
loolshuduo: it's part of the example snap and helps start tomcat properly; you're free to get rid of it12:46
loolshuduo: perhaps you should mention your higher level goals; it looks like we're discussing specifics but you have a larger point to make12:46
shuduolool: sorry i just try to understand the structure and call stack. i'm not an expert of webapp. i just tried to learn it as our customer maywant my answer regarding example code12:50
shuduolool: i tried to program a tomcat-hosted spring based webapp then make it as a snap12:50
shuduolool: i'm curious why we need wrapper and who call it after it be installed12:51
shuduolool: oh, i find the part of snapcraft wrapper script explaied. it should answered my question.12:56
loolshuduo: basically snaps can either expose commands or services; in the case of this example snap, a tomcat service is exposed and is launched with this wrapper; note that snapcraft will generate intermediate wrappers (e.g. to set environment variables such as LD_LIBRARY_PATH or PATH)12:58
shuduolool: let me read application developer manual first. thanks for your explaining. :)13:06
loolshuduo: anytime; let me know if you have issues or questions with this sample13:07
=== Guest90681 is now known as balloons
shuduolool: i found my sample  project seems not packed well. after I installed on snappy on vm i can't see webapp run on specified url.13:38
loolshuduo: try sudo snappy service logs <snap-name>13:39
Guest42341nope nope nope13:46
shuduolool: my sample project is a webapp use tomcat8 as host, spring as framework, mvn build system. I verified on my laptop with localhost:8080/SpringMVC. then i build by snapcraft and installed on snappy system on vm. then i use IP:8080/SprinMVC but it return 40413:47
loolshuduo: can you connect to :8080?13:48
loolshuduo: do you get tomcat 8 running there?13:48
shuduolool: yes13:48
loolshuduo: if yes, then it's a webapp deployment issue13:48
shuduolool: then how i debug it?13:48
loolshuduo: so this is more tomcat world than snappy world, but either you dump webapps preinstalled in the tomcat runtime dir, or you put the webapp to deploy in the to-be-deployed tomcat location13:48
loolshuduo: typically in the later case you'd install a .war in the to-be-deployed dir13:49
looland that'd be installed in the runtime webapps dir13:49
loolshuduo: checkout the logs under the runtime dir13:49
=== chihchun is now known as chihchun_afk
balloonsfgimenez, so I haven't forgotten about your session for UOS :-)14:19
balloonswe'd like to get things all scheduled this week, so it would be great if you could propose the session.14:20
elopionessita: I've just gotten this TLS error: http://pastebin.ubuntu.com/12970390/14:45
nessitaelopio, checking!14:48
shuduolool: i can se the war file be placed in /var/lib/apps/spring-mvc-demo.sideload/current/webapps. I pasted the logs content at https://pastebin.canonical.com/142681/. i don't know what is clue. could you pls take a look?14:48
nessitaelopio, but is for an image not a package?14:48
fgimenezballoons, :) ok, tbh i'm not yet sure about this, anyway i'll try to find the time and contents to prepare something and let you know14:50
elopiofgimenez: sorry for throwing you here... :)14:50
elopioyou can say no, but you'll break balloons' heart.14:51
sergiusenselopio, care to look at https://code.launchpad.net/~sergiusens/snapcraft/1481122/+merge/275237 again?14:52
elopionessita: generic-amd64 is a package.14:52
elopiothat u-d-f downloads to create an image.14:52
nessitaelopio, but the error is about downloading the package icon?14:52
sergiusenselopio, but it also downloads the icon; nessita is on the right track14:53
sergiusenswhat is failing is the link in the store manifest to retrieve the icon14:53
nessitathe client should definitely retry and perhaps install without icon; on the other hand I will pursue the myapps setup about icon downloads14:53
nessitaelopio, have a bug for this?14:53
balloonsthanks elopio and fgimenez :-)14:54
elopionessita: https://bugs.launchpad.net/snappy/+bug/148818614:54
ubottuLaunchpad bug 1488186 in Snappy "Failed to update: gnutls_handshake() failed" [High,Triaged]14:54
elopiowe need to retry in many places.14:55
nessitaelopio, thanks. I was thinking on a bug report more specific to icon download error vs package download error vs system image download error, because each one is fetched from very different places14:56
elopionessita: I was thinking about marking more projects as being affected by this. But if you prefer that, I'll split it in three.14:57
nessitaelopio, well, I would like to track ocurrences of each kind, becase I'm not sure you have noticed issues downloading a package yet?14:58
nessitaelopio, so since each source is served from very different servers, I was thinking on tracking each separately (icons, packages and system images)14:58
elopionessita: yes, http://pastebin.ubuntu.com/12896071/14:58
nessitaelopio, interesting14:59
nessitaelopio, so are all these errors happening in the same place?14:59
nessitaor is reproduceable in different envs?14:59
elopiook, I'll report two more. Should I mark them as affecting a server project in addition to u-d-f?14:59
elopionessita: I have seen the system image one in canonistack, and locally. The other two just from my machine, haven't seen them yet in the cloud15:00
nessitaelopio, well, we haven't had any other reports, for example we never got reports from the phone15:00
nessitaelopio, so it may also be a low timeout in the client for TLS timeout?15:01
sergiusensnessita, icons is a must though, it is part of the package install, just delivered outside of the package15:01
sergiusenselopio, check the date on your workstation ;-)15:02
elopionessita: maybe. What I find weird is that it wasn't like this two weeks ago.15:03
elopionessita: https://bugs.launchpad.net/ubuntu/+source/goget-ubuntu-touch/+bug/1510136 and https://bugs.launchpad.net/ubuntu/+source/goget-ubuntu-touch/+bug/151013815:05
ubottuLaunchpad bug 1510136 in goget-ubuntu-touch (Ubuntu) "Failed to install the oem package: TLS handshake timeout" [Undecided,New]15:05
ubottuLaunchpad bug 1510138 in goget-ubuntu-touch (Ubuntu) "Failed to download the oem package icon: TLS handshake timeout" [Undecided,New]15:05
elopioah, I know why I haven't seen this in the cloud, we don't use u-d-f in the suite :p15:09
sergiusenselopio, those icon retries are all snappy bugs though15:10
sergiusenselopio, the icon download comes from using the snappy api15:10
elopiosergiusens: um, that's better. So we can fix it in one single place.15:11
sergiusenselopio, you do need to rebuild u-d-f so it is fine to leave the bug open for it15:11
elopiosergiusens: yes, just marking it as affecting snappy now. You guys can later mark it invalid or duplicate.15:12
elopioppisati: hello. I'm starting to learn about dtb and the board leds and was wondering why the heartbeat is not blinking in bbb.15:44
ppisatielopio: you can find which trigger that led is using, looking at the15:47
ppisatielopio: cat /sys/class/leds/$LED/trigger15:47
ppisatielopio: or something along that line15:47
ppisatielopio: kernel version?15:47
elopiopitti: it's set to none, but the dtb tries to set it to heartbeat.15:47
elopioI tried echoing heartbeat in there too, which works on debian but doesn't in snappy.15:47
ppisatielopio: do you have the heartbeat module loaded?15:48
elopioppisati: I don't know.15:48
* elopio starts the bbb again.15:48
elopioppisati: 4.2.0-16-generic15:55
elopionot sure how to load the hearbeat module. lsmod doesn't show anything with heartbeat in the name.15:55
shuduolool: ping15:55
ppisatielopio: cat /sys/class/leds/$LED/trigger15:55
ppisatielopio: and show me the output15:55
elopioppisati: http://pastebin.ubuntu.com/12970889/15:57
sergiusenselopio, Chipaca care to take a look at https://code.launchpad.net/~sergiusens/snapcraft/1510160/+merge/275736 ?15:58
ppisatielopio: sudo modprobe ledtrig-heartbeat15:58
Chipacasergiusens: trade ya https://code.launchpad.net/~chipaca/snappy/no-empty-channel-in-update/+merge/27573115:58
ppisatielopio: and then try to set it again15:58
elopioppisati: awesome.15:58
elopioppisati: so, how do we tell the bbb oem package to load that module?15:59
ppisatielopio: if the correct trigger is not built into the kernel16:00
ppisatielopio: you can't do that at boot time16:00
ppisatielopio: i'm checking one thing, hold on16:00
elopiohuh, so we need it in the kernel snap instead.16:00
ppisatielopio: we need a kernel with tha option built-in16:01
ppisatielopio: i checked vivid, and we had the same config back then16:02
ppisatielopio: so it's not a regression16:02
ppisatielopio: if you care to open an lp bug, i'll prepare a config patch and send it16:02
elopioppisati: sure. in lp:snappy? or in a project for the kernel?16:03
ppisatielopio: just a normal lp bug, we are using the same kernel (ubuntu vs snappy)16:04
elopioppisati: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/151016516:07
ubottuLaunchpad bug 1510165 in linux (Ubuntu) "heartbeat module is not loaded" [Undecided,New]16:07
elopiothank you!16:08
sergiusensChipaca, fair trade16:10
shuduolool: just let you know i found out why my web app did not run. Seems your sample code use <build><finalName> to define a short app name but I use original pom.xml has no the section then lead the web app full name contain version and SNAPSHOT postfix. I can see my webapp run well with right url with long name now. Thanks your sample as good referance. :)16:22
dholbachall rightie... I call it a day - see you all tomorrow!17:20
Chipacasergiusens: mvo: can you kick a new build of u-d-f so it picks up a new snappy?17:21
Chipacamvo: if you have a release checklist, can you add building a new u-d-f and a new webdm to it?17:21
Chipacamvo: if you don't have a release checklist, http://www.amazon.co.uk/dp/184668314917:23
elopiosergiusens: any idea what are we missing here? https://code.launchpad.net/~stephen-stewart/webdm/use-correct-version-for-post-css-bemlinter/+merge/272467/comments/696732/+download17:40
loolshuduo: awesome17:43
loolshuduo: we can adjust the sample if it's not good enough17:43
loolshuduo: the idea is to keep it simple and robust, yet do something relatively advanced17:44
Chipacaelopio: i just saw your comment wrt licensing17:44
Chipacaelopio: and i know why you're seeing what you're seeing17:44
elopioChipaca: and you have a magic solution?17:44
Chipacaelopio: yes, yes I do.17:44
Chipacaelopio: software is magic, right?17:44
elopioyes it is.17:45
Chipacaelopio: do you have an easy way, from the integration tests, to give the test an actual terminal?17:47
Chipacaelopio: if you do, do it. If you don't, do this instead: http://pastebin.ubuntu.com/12971806/17:48
elopioChipaca: I have no idea how to give it a terminal, but I can search.17:49
Chipacaelopio: probably easier to include the above diff in your branch17:50
elopioyes, probably.17:50
elopiothanks Chipaca. I'll try to write the test with that.17:51
elopioI'm also having a problem sending y to the stdin, and I'm not sure that fixes it.17:51
Chipacaelopio: echo y | your-test ?17:51
* Chipaca fights down the urge to mention yes `yes`17:52
elopioChipaca: I haven't tried that, just writing the the stdin pipe. /me tries17:52
Chipacaelopio: ah!17:53
Chipacaelopio: let me write it in go for you, gimme a bit17:53
sergiusenselopio, phantomJS fails   TypeError: 'undefined' is not an object (evaluating 'Backbone.Marionette.ItemView')17:53
elopiosergiusens: that I know. But how come it is returning undefined?17:56
sergiusenselopio, I don't know, beowulf who isn't here should know17:57
sergiusensI don't know much about JS much less supporting tools17:57
elopiosergiusens: I've pinged him.17:58
snappycgetting a 'connection to Mir server failed' error when trying to start clocks example18:01
Chipacaelopio: http://paste.ubuntu.com/12971957/18:01
Chipacasnappyc: is mir running and creating its socket?18:02
Chipacasnappyc: I think it creates it as /tmp/mir_socket or something like that18:02
Chipacasnappyc: you need to make it use that socket18:02
snappycthanks chipaca.  how do i check the log?18:07
Chipacasnappyc: mir's logs would be under "snappy service logs mir"18:07
Chipacasnappyc: is that the log you mean?18:08
snappycyeah.  how do i get to it?  /var/log/... ?18:08
snappycor is it somewhere else?18:09
Chipacasnappyc: snappy service logs mir?18:09
sergiusenssnappyc, run what Chipaca mentions18:10
Chipacayeh, that's an actual command18:10
Chipacasnappy service logs mir18:10
Chipacamvo: we should make snappy a snap18:11
snappychow to execute ur script?18:12
snappyc:{18:12
elopiosergiusens: beowulf is on parental leave.18:14
snappyc$snappy service logs mir  --returns -- unknown command "service".  Please specify one command of: booted, build, config, ...18:14
mvoChipaca: es, I think we should18:14
Chipacasnappyc: your snappy is quite old18:15
Chipacasnappyc: update that, first18:15
Chipacasnappyc: "snappy update" should do that for you18:15
snappycubuntu-personal/rolling/edge18:15
Chipacapersonal! is that supported in any way right now?18:16
* Chipaca has no idea18:16
snappyclol. :{18:16
sergiusensthe personal target is not supported18:20
sergiusensthe mir snap should not be installable on snappy personal either18:20
Chipacasnappyc: what are you trying to do?18:20
snappycmir snap installed.18:20
Chipacasergiusens: i just assumed it was from the mir snap, it might be the system mir on personal? (dunno) (because, see: dunno)18:20
* sergiusens doesn't want to discuss mir dev as he is not the right person18:21
* sergiusens uses his remaining mana to invoke kgunn 18:22
Chipacasnappyc: snappy ubuntu personal is still a way in the future, fwiw18:22
Chipacasnappyc: i don't know what you're trying to do, but you're probably better off using snappy ubuntu-core18:22
Chipacasnappyc: are there instructions out there that point at -personal, or did you do that yourself?18:22
sergiusensmvo, Chipaca elopio are you already on xenial?18:23
elopiosergiusens: nop.18:23
* sergiusens updated to wily yesterday and is considering going all in18:23
Chipacasergiusens: updating now18:23
snappycjust doing it myself18:24
mvosergiusens: not yet, but soon :-D18:24
mvosergiusens: at least on my main box18:24
Chipacasnappyc: ah. Good job on figuring out the bits :)18:24
Chipacasnappyc: but yeah, that's very much not ready for anything right now18:24
Chipacasnappyc: it only gets updated when people want to take a poke to see how things would look18:25
snappycChipaca: can i install snappy desktop on snappy core?18:28
Chipacasnappyc: there isn't a "snappy desktop"18:29
snappyc:{18:29
Chipacasnappyc: ?18:30
snappycChipaca: any way to export installed app?18:38
snappyc*snap18:38
Chipacasnappyc: you're going to have to explain that one to me, i'm afraid18:39
snappyc:{18:41
snappycum18:41
snappychow is ubuntu-core updated?18:41
snappyccan i update it manually?18:41
wigglewormI tried to change the time on my snappy system with the command "sudo date 102613392015.00" but the new date will not stick18:41
wigglewormam I doing something wrong?18:42
Chipacasnappyc: depends what you mean by "manually". "snappy update" updates the system, and you can run that command yourself18:43
Chipacasnappyc: it's also run automatically, so you don't have to18:43
snappycchipaca: snappy update doesnt work.  so i need to update manually18:44
Chipacasnappyc: on your snappy personal?18:44
snappycyeah18:44
snappychow do i download ubuntu-core.snap?18:44
snappycwiggleworm: $ sudo date --set="Sun Apr 04 17:43:26 UTC 2015"18:44
Chipacasnappyc: you can't update from personal to core, they are different things18:44
snappycpersonal has core18:44
snappycChipaca: is there a ubuntu-core.snap  i can download?18:45
Chipacasnappyc: I don't think so, no.18:47
Chipacasnappyc: the base system is not (yet) itself a snap18:47
snappyc:{18:47
* kgunn reads scrollback18:48
Chipacasnappyc: and i'm not sure in what sense "personal has core", but whatever you're trying to do, it probably won't work18:48
Chipacasnappyc: what are you running this on? a vm?18:48
snappycyep18:48
Chipacasnappyc: so why not download the ubuntu-core image?18:48
snappyci did.. but if i can update ubuntu-personal... id like to stick with it18:49
kgunnsnappyc: why do you need ubuntu-personal ?18:50
snappycno reason18:50
wigglewormsnappyc: sorry that did not work either (time change)18:52
snappycChipaca: thx for the help18:53
Chipacawiggleworm: when you say "will not stick"18:54
Chipacawiggleworm: what do you mean?18:54
wigglewormChipaca: stick as in - after I issue the change date command I check the date18:55
wigglewormtime and its not changed18:55
Chipacawiggleworm: ok, so, two things18:55
Chipacawiggleworm: if you don't say --set or -s, date will just interpret the date you give it and print it out18:56
Chipacaafaik at least18:56
Chipacawiggleworm: date --help might help18:56
wigglewormcommand that I am running "sudo date --set="Sun Apr 04 17:43:36 UTC 2015"18:58
wigglewormnot the actual date, just an example18:58
wigglewormChipaca: thanks, I tried date --help first - still no luck18:59
Chipacawiggleworm: also, note that snappy runs a time sync daemon18:59
Chipacawiggleworm: so maybe use timedatectl18:59
wigglewormChipaca: what is that? time sync daemon18:59
Chipacawiggleworm: systemd-timesyncd.service19:00
Chipacawiggleworm: on a full ubuntu system, man systemd-timesyncd19:00
Chipacawiggleworm: also man systemd-timedated19:00
wigglewormChipaca: Sorry I meant what does it do - I am guessing it syncs with some time server?19:01
Chipacawiggleworm: yes19:02
Chipacawiggleworm: although i think by default no server is configured, so it'll take them from dhcp if given19:10
Chipacawiggleworm: in any case, to set the time, timedatectl19:10
Chipacawiggleworm: thank you for asking this, btw, because i didn't know :)19:11
wigglewormChipaca: thank you - I just maned the timedatectl and I see how I should do it. I also figured out that I needed to change the time zone - :) after that my time looked right19:12
Chipacawiggleworm: hah19:12
Chipacawiggleworm: that's one you set via snappy, fwiw19:13
Chipacadefaults to etc/utc19:13
Chipacamvo: is there an easy way to get the tools ppa rebuild for x?19:55
mvoChipaca: all of it? I don't think so, may I ask for the use-case?19:59
Chipacamvo: dunno about "all of it" :)20:01
Chipacamvo: i mean, i'm moving to x20:01
Chipacamvo: should i worry about that ppa? :)20:01
mvoChipaca: do we have ppa builds for X already?20:05
Chipacamvo: no20:05
mvoChipaca: but sorry, let me reply properly20:05
mvoChipaca: I think its fine to not worry about the X ppa for now, we just push everything into X proper20:06
mvoproblem solved :)20:06
Chipacamvo: \o/20:06
tasdomasIf I deploy a snap with a service and a binary (two separate files), is the there something special I need to do to let the service run the binary?20:07
tasdomasbecause currently /apps/bin is not in the PATH of the service20:07
Chipacatasdomas: you don't want to run things from /apps/bin from inside a service20:08
Chipacatasdomas: double-confinement won't work :)20:08
Chipacatasdomas: instead, do20:08
Chipacatasdomas: $SNAP_APP_PATH/bin/whatever20:09
tasdomasChipaca, thanks!20:09
Chipacanp20:09
Chipacaaugh20:17
Chipacaogra_: looks like we messed something up :(20:18
mvoChipaca: whats broken?20:26
Chipacamvo: replied to jdstrand's mail in reply to your announcement20:26
Chipacamvo: not a regression though :)20:26
mvoChipaca: hrm, hrm, I need to look why the writable path change did not land, this is terrible20:34
Chipacamvo: no, it's not terrible20:35
Chipacamvo: it's just bad20:35
Chipacamvo: relax a little :)20:35
Chipacamvo: or maybe i just read too much panic in your "this is terrible"20:36
mvoChipaca: /me relaxes20:38
mvoChipaca: well, maybe its too stronly worded, sorry for that20:38
Chipacamvo: i mean, yes it's bad, but it's not a regression and has an easy fix20:38
jdstrandyikes20:39
jdstrandI didn't mean to stress people out20:39
* jdstrand just viewed it as a feature that didn't land20:39
jdstrandhence the email rather than ping20:39
mvojdstrand: yeah, its fine, no worries20:39
mvosorry for using too strong language20:40
mvoits just that I want things to be perfect :)20:40
jdstrandwell, if you typed it, you might be feeling it20:40
mvoif it they are not "its terrible"20:40
* jdstrand hugs mvo :)20:40
* mvo hugs jdstrand and Chipaca20:41
* Chipaca hugs everybody20:42
* jdstrand hugs Chipaca :)20:42
* mvo will backport the fix tomorrow and calls it a day20:45
NuisanceValueshould I be using snappy and possibly docker? I have a small project which I was going to use a raspberry pi to capture images from an ip camera and rsyncing them to a remote server. Or should I just go for 14.0421:23

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