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

mupBug #1633289 changed: network-observe plug is not working for dracnmap snap <Snappy:Fix Released> <https://launchpad.net/bugs/1633289>00:09
mupBug #1636657 opened: spread not able to run the snapd test suite <Snappy:New> <https://launchpad.net/bugs/1636657>00:24
liuxgwhen I run a shell command like "sudo snap run --shell hello-xiaoguo.env", it gives me the error like "sudo: no tty present and no askpass program specified". Does anyone know why?01:28
=== chihchun_afk is now known as chihchun
=== hikiko is now known as hikiko|off
vigomorning snappy06:45
vigoniemeyer, ping06:52
dholbachgood morning06:55
mwhudsongood morning07:35
mupPR snapd#2216 closed: snap: skip all ram disks when auto-importing assertions <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/2216>07:41
Chipacaogra_, o/08:28
vigofgimenez, ubuntu-core-reboot failed again with core 279 on dragonboard09:00
vigofgimenez, https://pastebin.canonical.com/168964/09:02
fgimenezvigo, when the suite has finished you can open a shell for inspection after the failing test with "spread -v -reuse -debug external:ubuntu-core-16-arm-64:tests/main/ubuntu-core-reboot"09:07
akeyneed advice, what snap should i choose - postgresql96 or postgresql-9-609:17
akeyfirst have "cmd" in field developer and second - "stub"09:18
stubakey: cmd are apparently command prompt, so I'd go with that if it works. I haven't had a chance to look at it yet09:19
stubakey: I'll be deprecating mine in favour of cmd if it works as intended, so I'd love to hear how you go.09:19
akeywill try09:20
akeythanks09:20
=== chihchun is now known as chihchun_afk
vigofgimenez, sure give me some minutes(meeting) ;)09:28
ogra_Chipaca, yo !09:31
Chipacaogra_, oh hi09:31
Chipacaogra_, since pinging you we decided to rewrite the thing i was struggling with in C09:32
ogra_Chipaca, console-conf ?09:32
ogra_:D09:32
Chipacaogra_, sadly, no09:32
Chipacaogra_, the shutdown script thingie09:32
ogra_ah09:32
Chipacaogra_, basically the busybox in initrd isn't enough, and it's dynamically linked so it'd be a pain to set up09:33
ogra_we have a busybox-static package for this09:33
Chipacaogra_, yes, which would add over a meg to the initrd09:33
ogra_2M actually09:34
ogra_yeah, do it in C :)09:34
Chipaca$ ls -lh bin/busybox /bin/busybox09:34
Chipaca-rwxr-xr-x  1 root root 1.9M Aug 19  2015 /bin/busybox09:34
Chipaca-rwxr-xr-x 91 john john 325K Oct 25 22:50 bin/busybox09:34
ogra_yep09:34
Chipacathat's just over 1.5M09:34
Chipacaanyway! yeah09:34
ogra_Installed-Size: 2.058 kB09:35
Chipacamost of the hard work has already been done by zyga in snap-confine09:35
ogra_from apt show09:35
Chipacahah, if you're looking at apt show i probably win09:35
* Chipaca looks09:35
ChipacaInstalled-Size: 376 kB09:35
ogra_well, apt show means i dont neeed to install it :) and it lists all package files09:35
Chipacadammit09:36
* Chipaca concedes09:36
ogra_s/lists/counts/09:36
ogra_anyway C sounds good09:36
Chipacaogra_, anyway, every time i look at initrd i want to get my chainsaw out09:36
Chipacaogra_, e.g. it ships two libcs09:36
ogra_that is currently being fixed09:37
Chipacaogra_, https://www.youtube.com/watch?v=A52p9jc-gOo09:37
ogra_for zesty though ... but i guess we can backport some bits09:37
vigofgimenez, running it I'll paste it here09:37
hiseniHi, guys! I want to package an app, but it uses Maven Build System: https://github.com/mesonbuild/meson and I can't find any info about using this one w/ spapcraft09:37
ogra_heh09:38
hiseniAnyone can help me desidehow to do it better?09:38
mupBug #1636762 opened: [snapd] Failures in the spread test suite <Snappy:New> <https://launchpad.net/bugs/1636762>10:01
mupBug #1636764 opened: Snapd is not correctly initialized with UBUNTU_IMAGE_SKIP_COPY_UNVERIFIED_MODEL=1 and model assertion is invalid <Snappy:New> <https://launchpad.net/bugs/1636764>10:07
MikeBIs this channel archived anywhere?  I looked on snapcraft.io but couldn't find a reference.10:10
ogra_MikeB, https://irclogs.ubuntu.com/2016/10/26/%23snappy.txt10:12
ogra_or https://irclogs.ubuntu.com/2016/10/26/%23snappy.html10:12
ogra_:)10:12
MikeBogra_ Thanks!10:23
=== chihchun_afk is now known as chihchun
chihchunhiggins: check out this project, which use maven. https://github.com/ubuntu/snappy-playpen/tree/master/wallpaperdownloader10:30
=== Guest59736 is now known as ahasenack
=== ahasenack is now known as Guest33774
ogra_mwhudson, dragonboard seems all fine again, thanks a lot !11:30
vigoogra_, this bug https://bugs.launchpad.net/snappy/+bug/163676211:37
mupBug #1636762: [snapd] Failures in the spread test suite <Snappy:New> <https://launchpad.net/bugs/1636762>11:37
vigoI tried to debug it but no way to do it it fails all the time11:37
vigohttps://pastebin.canonical.com/168977/11:38
vigofgimenez, have you any idea why it stucks when "Starting shell to debug"?11:39
fgimenezvigo, nope, haven't tried it myself, will let you know how it goes11:40
ogra_vigo, i havent much clue about spread ... but i can imagine the dragonboard kernel lacks fuse support which could cause the fuse interface issue in that list11:40
vigoogra_, is there a bug for that already?11:42
ogra_a bug about my imagination ? not yet, no :)11:43
ogra_(i havent checked if thats true ... just a guess )11:43
fgimenezvigo, ogra_ updated info about bug #1636762, now trying to debug tests/main/ubuntu-core-reboot but doesn't seem worrying11:45
mupBug #1636762: [snapd] Failures in the spread test suite <Snappy:New> <https://launchpad.net/bugs/1636762>11:45
ogra_fgimenez, isnt that what Chipaca currently works on (the reboot fixes) ?11:45
vigoogra_, fgimenez thanks11:46
fgimenezogra_, not sure, we have issues with this test before, it checks for a snap service to be up after a reboot and we weren't waiting long enough, now it works fine on other platforms and only fails on dragonboard11:47
=== petevg is now known as petevg_afk
ogra_fgimenez, ah ... weird though ...12:05
mvoogra_: hey, I shared a gdoc with you, curious to  know if I understand the dtb problem correctly12:07
ogra_yeah, just got the mail12:07
* ogra_ goes reading12:07
mvoogra_: great, thank you! feel free to correct my assumptions in there if I got something wrong12:08
ogra_mvo, updated12:10
mvoogra_: thanks12:11
mvoogra_: iirc you also mentioned the binary bootloader added stuff to the dtb in memory, so we really need to use the version in memory, do I remember correctly?12:11
ogra_right12:11
ogra_board serial and MAC12:11
ogra_you need to serial in /proc/cpuinfo because if you purchase a codec for the board it uses this to validate the codecs12:12
mvoogra_: great, added that as well12:12
ogra_and only the first stage loader can read it from ROM12:12
mvoogra_: this really sounds like there is no way out of it, i.e. we can not revert to a previous kenrel without rewrting the dtb and reloading it. maybe via some scripting in uboot.env?12:13
mvoogra_: anyway, thanks a bunch, I think the problem is much clearer now, the solution is still tricky, will discuss in todays standup12:15
ogra_mvo, well, there might be ways with a newer uboot ... the main issue here is the overlay handling ... i could cheat a lot from uboot (loading from disk and overwrite parts of the dtb in ram etc)  but uboot cant load the overlays12:17
ogra_there was work in newer uboot to start supporting overlays generically but i dont know where that stands12:17
ilivwhat is revision really? i just installed a package with the same name but different version number without removing a previous version. I noticed that revision number incresed, even though it's a newer version that is installed now. this kinda doesn't make any sense. if it's a new version, just installed, revision should be x1, not x2.12:18
=== Guest33774 is now known as ahasenack
ogra_just overwriting the basic dtb from disk and keeping the info from ROM still around is possible afaik12:18
=== ahasenack is now known as Guest66764
mvoogra_: oh, so we could always keep the one that was used on install and load a kernel specific one into memory and ship that as part of the kernel snap?12:20
ogra_mvo, well, you would need to merge them ... since you need what the binary loader artificially writes to the ram one when reading the rom12:21
ogra_i.e. serial and MAC12:21
ogra_mvo, but to use any addon board on the Pi you need an overlay DTB ... and for that only the binary loader works ... you could only get the overlay loaded for the original DTB, not for the current one12:22
mvoogra_: I add to the gdoc: stuff gets even more complicated with overlay dtbs ;)12:23
ogra_heh, yeah, i also added a description at the top paragraph about that12:23
fgimenezvigo, ogra_ confirmed that for tests/main/ubuntu-core-reboot we need to wait a little bit more on dragonboard http://paste.ubuntu.com/23383345/12:29
ogra_hmm, i wonder why ... it isnt like the dragonboard boots particulary slower than a pi2 or 312:30
vigoogra_, with latest image I  noticed it takes more time than before12:32
vigobut at least, I can now use wifi :)12:33
vigofgimenez, ack thank you12:34
mupBug #1636847 opened: unexpectedly large memory usage of mounted snaps <Snappy:New> <https://launchpad.net/bugs/1636847>13:02
niemeyervigo: Hi13:15
niemeyermorphis: On the standup call, but will be with you in a few mins13:15
liuxgkyrofa, good morning what was your finding yesterday regarding the configure hook?13:24
mupBug #1636864 opened: ubuntu-image 0.10+real1 is broken <Snappy:New> <https://launchpad.net/bugs/1636864>13:56
dobeyhow can i boot the snappy core image without logging in to u1?14:38
zygadobey: you can create a different brand (e.g. by forking the gadget and model assertion) and then using the system-user assertion to create an user on first boot14:43
zygadobey: AFAIK14:43
dobeyzyga: no idea how to do that. on first boot i get the initial setup thing and it's requiring me to log in, and i can't actually type the e-mail address in the field14:44
zygadobey: what happens when you try?14:45
dobeyzyga: "nothing" i guess. i can type an e-mail, but i can't type a + character for some reason, so i can't type the test e-mail to log in with14:46
zygadobey: keyboard setup is not done beffore this is finished, I suspect you can type + if you use a US / international keyboard14:46
ogra_we switched to only support chinese keyboards and utf16 :P14:46
dobeyzyga: i AM using a US keyboard14:47
zygadobey: then I don't know14:47
ogra_(kidding indeed, it defaults to US only kbd though)14:47
dobeytrying to boot the image in a kvm14:48
* ogra_ does that ten times a week ... 14:48
dobeyhttps://developer.ubuntu.com/en/snappy/guides/mir-snaps/14:48
ogra_but i never had a + sign in my mail address14:48
dobeytrying to follow the instructions there to get it booted; but can't type + and can't log in14:49
dobeyerr and can't skip the login14:49
ogra_well, no, there is no local way to log in anymore14:49
ogra_the user creation pulls your ssh key from your LP account and puts it in place14:50
dobey:-/14:50
ogra_you can then ssh in and use "sudo passwd $USER" in case you need a console login14:50
ogra_but by default the local logins are locked14:50
ogra_kvm -m 1500 -redir tcp:8022::22 amd.img14:51
ogra_thats what i use here to set it up ... keystrokes work fine14:51
dobeyyou can type a + char in the login field in the initial setup?14:52
ogra_well, i can type a + when i'm logged in on console14:53
rharperdobey: it's a bug14:53
ogra_which should be the same14:53
rharperit's not14:53
rharperthere's an input box with a regex filter14:53
rharperdobey: I can reproduce14:53
ogra_oh, really ?14:53
ogra_ah14:54
rharperin console-conf14:54
ogra_right, input wise it shopuld be the same ... i wasnt aware there is a regex14:54
ogra_rharper, does mwhudson know already ?14:54
zygadobey: can you please report this?14:54
zygadobey: just in case14:54
zygadobey: you an also try this14:54
zygadobey: boot your VM with -display curses14:54
zygadobey: log in this way14:55
zygadobey: and then shut down and boot with SDL14:55
ogra_zyga, how does that help if the + is filtered out in the user creation input field14:55
ogra_it is console-conf itself filtering that14:55
ogra_no frontend switch will fix that14:55
dobeywell there's no information in the setup stuff either, so i guess even if i can log in it doesn't help me much14:56
zygaogra_: I don't know, maybe it helps, maybe it doesn't14:56
zygaogra_: I see14:56
ogra_unlikely ... being an app bug14:56
rharperogra_: probably not;14:58
ogra_well, it would help if someone filed a bug against subiquity :)14:59
rharperconsole-conf/ subiquity, whatever14:59
dobeyso where?15:04
ogra_https://bugs.launchpad.net/ubuntu/+source/subiquity/+filebug15:05
ogra_and open a task against the snappy project too please15:05
zygaogra_: is this it? https://github.com/CanonicalLtd/subiquity15:06
ogra_i guess so15:06
dobeyhttps://bugs.launchpad.net/snappy/+bug/163689115:08
mupBug #1636891: Unable to log in using email with + character <Snappy:New> <subiquity (Ubuntu):New> <https://launchpad.net/bugs/1636891>15:08
mupBug #1636891 opened: Unable to log in using email with + character <Snappy:New> <subiquity (Ubuntu):New> <https://launchpad.net/bugs/1636891>15:09
rharperdobey: thanks15:13
mupBug #1636894 opened: [raspberry pi3]pi3 snap is removable  <Snappy:New> <https://launchpad.net/bugs/1636894>15:18
mupPR snapd#2217 opened: tests: increase wait time for service to be up <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2217>15:18
mupPR snapcraft#861 closed: python plugin: install from wheel for local setup.py <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/861>15:22
kyrofaliuxg, ping15:26
mupBug #1634803 opened: snapcraft register-key doesn't use U1 SSO login credentials <Snapcraft:New> <Snappy:New> <https://launchpad.net/bugs/1634803>15:27
ppisatiogra_: the wifi card on your rpi3 board is broken, i tried several different combinations15:30
ppisatiogra_: but with none of them it shows up15:30
ppisatiogra_: i even tried raspbian, but nothing15:30
ogra_ppisati, it shows up after reboot15:30
ppisatiogra_: no no, i mean your board15:30
ogra_just on on first boot15:31
ppisatiogra_: do you remeber that we exchanged board at the sprint?15:31
ogra_oh, yeah!15:31
ppisatiogra_: i can't get the wifi to show up _at_all_15:31
ogra_thats what you mean15:31
ogra_wow15:31
ogra_that used to work15:31
ppisatiogra_: classic, snappy, raspbian, etc15:31
ppisatiogra_: i expensed a new rpi3 board15:31
ogra_creap15:31
ogra_i guess i owe you a beer then, i bet it was the "plug HDMI whiloe on power"15:32
ppisatiogra_: probably, the spi/i2c expansion bus is busted too, so...15:32
kgunnkyrofa: hey, if i have a branch i'm building in a snap, and i just wanna cheat & save time...a-la snap clean thing --step=build15:32
ogra_(i always forget that there is no proper grounding)15:32
kgunnwhere do i modify the source?.... in the part folder?15:32
kyrofakgunn, you want to modify the pulled source?15:33
kyrofakgunn, yeah, it's in parts/<partname>/src15:33
ogra_ppisati, i still cant imagine why it would be PM though ...15:34
kyrofakgunn, though note that if the source is local, they're hard links. That might help a little15:34
ogra_ppisati, i.e. why does it only happen on the very first boot15:34
ogra_i would expect it to have similar issues after reboot15:34
kgunnkyrofa: right, just the pulled src15:34
kgunnyeah, it's not local...15:35
kyrofaThen yeah, that's what you want15:35
kgunnavoiding the separate change+push15:35
kyrofaCareful not to kill your changes by cleaning completely, though!15:35
kgunnwill push later when i figure it out :)15:35
kgunn@complete clean...right!15:35
nothalkgunn: No such command!15:35
ogra_defiant bot ... doesnt want to clean15:36
mhall119sergiusens: do we have a method yet to copy a .desktop file produced by a part's build step into ./setup/gui/ ?15:46
=== chihchun is now known as chihchun_afk
sergiusensmhall119 that was only discussed last week during a session16:03
* mhall119 wishes we had videos of those sessions16:04
ogra_mvo, bug 1636894 smells a bit critical16:17
mupBug #1636894: [raspberry pi3]pi3 snap is removable  <Snappy:Confirmed> <https://launchpad.net/bugs/1636894>16:17
kgunnkyrofa: got a minute? wanna describe something and see if you've got an idea i can try...16:20
kyrofakgunn, yeah, what's up?16:21
kgunnkyrofa: ok, so, i've got 2 snaps (it's a form of mir-server and mir-client, but not exactly)....16:22
kgunni can build these in classic on the core, and it works without a flaw...16:22
kgunnhowever, when i run the exact same sceario on snaps...here's how it goes down16:22
kgunnthe mir-server comes up fine, nothing strange in logs....but the minute i launch the client the server crashes immediately16:23
kgunnand again, nothing really showing up in logs16:23
kgunnso...wondering, can i include gdb inside my mir-server snap and run it ?16:23
kgunnor some trick like that you might recomment16:23
kgunnrecommend even16:23
ogra_snap run --shell $command_inside_your_snap16:24
ogra_then use gdb from that shell16:24
kyrofaogra_, that's still under the same confinement though, no?16:24
kgunnogra_: well, i can run unconfined, the trouble occurs no matter waht16:24
ogra_also, the classic snap (that i demoed at the sprint) allows attaching to PIDs16:24
ogra_so just apt install gdb and debug away i guess16:25
kyrofakgunn, as ogra_ mentions, could you run gdb as normal and attach to the PID of the app?16:25
ogra_kyrofa, yeah, inside the confinement ... but your gdb runs inside the same sandbox at least16:25
kyrofakgunn, I've also included strace in my snaps before, I can't imagine why gdb wouldn't also work16:25
kgunnogra_: kyrofa cool...i'll try that, thanks guys16:26
kyrofaogra_, I mean it doesn't have access to gdb16:26
* kgunn already has classic setup on the image16:26
ogra_not to one you dont ship indeed16:26
kgunnoh while i'm here... ogra_ flexiondotorg do either of you have a recommended power supply to use with pi316:26
ogra_as many amps as you can get :P16:26
ogra_current is key .... beyond that ... not really16:27
kgunni got one...but it came with w a charger that has a micro usb...and i don't think its strong enough to drive the display16:27
ogra_ah, attached usb display powered from the onboard usb hub ?16:27
kgunnogra_: right16:27
ogra_s/usb/hdmi/16:28
kgunnogra_: i guess i could try an externally powerd display first...16:28
ogra_i'd go with something like 4A16:28
kgunncool16:28
ogra_that should be able to even drive a rotary usb disk16:28
kgunn:)16:28
kgunnuh, i guess i should also include dbg syms into my snap16:31
ogra_heh, yeah, that helps16:31
mvoogra_: right, super important, not quite critical as you need to do manually disable it first, will work on a fix now16:40
ogra_heh, i didnt mean to cause work for you, i just wanted to set the severity :)16:41
mvoogra_: thats fine, I think its also high++ priority :)16:46
ogra_true :)16:46
mupPR snapcraft#867 closed: Handle 'broken' validations that don't match refresh-control <Created by ralsina> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/867>16:52
liuxgkyrofa, ping16:55
kyrofaliuxg, pong16:55
CroephaSo, if I wanted ubuntu core to have grub that had serial console enabled, I would have to make a new pc snap, ( i think thats the gadget snap) is that right?17:00
ogra_Croepha, we do have serial enabled by default i think17:03
ogra_(if not, we probably should)17:03
CroephaIt looks like its enabled for the kernel, but not grub17:04
Croephaalthough, with pretty much everything snappy related, im pretty sure its not working right, because I probably did something to mess it up17:04
mupPR snapcraft#873 opened: Release changelog for 2.20 <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/873>17:04
ogra_ah, yeah, not sure about serial support in grub itself17:05
ogra_we definitely have a console= arg for serial on all images17:05
Croephanice17:05
mupPR snapd#2218 opened: snapstate: ensure gadget/core/kernel can not be disabled <Created by mvo5> <https://github.com/snapcore/snapd/pull/2218>17:08
Croephabtw, hypothetically, is core setup for PXE booting? seems like there is a lot of really cool potential to have the snaps mounted on a RO nfs mount and have writable portion be on a RW nfs mount or using aufs or something? is this an explored subject? or unexplored? or determined to be out of scope? just curious?17:17
mupBug #1636931 opened: Configure hook not running <Snappy:New> <https://launchpad.net/bugs/1636931>17:31
=== Guest66764 is now known as ahasenack
mupPR snapd#2219 opened: asserts: limit to 1y only if len(models) == 0 <Created by mvo5> <https://github.com/snapcore/snapd/pull/2219>17:36
=== ahasenack is now known as Guest21645
pmcgowanogra_, two questions if you have a min17:49
pmcgowan$ snappy config core17:49
pmcgowanqemu-system-x86_64: could not set up host forwarding rule ':4200::4200'17:49
pmcgowanqemu-system-x86_64: Device 'user' could not be initialized17:49
pmcgowanoh thats an old command, bad docs17:49
pmcgowaner17:50
flexiondotorgkgunn, Pi3 power requires minimum of 2.4amp17:50
kgunnack17:51
kyrofamvo, I seem to remember discussions about more `snap run` options, like --gdb and --strace, is that right?18:13
ogra_pmcgowan, heh, happy i could be of help :)18:13
pmcgowanogra_, but my real question18:16
pmcgowanmy refresh service isnt running, seems it should be?18:16
pmcgowanhow do I check the autoupdate config?18:16
ogra_uh, i dont know ... i know it is a timer18:17
ogra_systemctl | grep timer18:17
ogra_?18:17
pmcgowanogra_,  systemctl status -l snapd.refresh.service18:21
pmcgowansays its inactive18:21
pmcgowanand systemctl list-timers snapd.refresh.timer18:22
ogra_well, not sure the service contains the timer, i think that is what the timer calls actually18:22
pmcgowansays 0 timers18:22
pmcgowanno snap timers18:22
pmcgowanogra_, there is a refresh timer on dragonbaord18:23
ogra_i think Chipaca is our specialist for that bit ... bt he doesnt seem to be around18:23
pmcgowannot on pc18:23
ogra_weird18:24
ogra_same image ?18:24
pmcgowanimage?18:24
ogra_(i mean ... installed from the same image ... i.e. around the same time)18:24
ogra_yeah18:24
pmcgowancore versions are the sam18:24
pmcgowane18:24
ogra_that doesnt matter, the timers are part of the firstboot setup18:25
pmcgowanthis is on my laptop though18:25
ogra_and that might have improved between different image builds (or core versions if you want it like that)18:25
ogra_oh18:25
ogra_i thought you talk kvm vs dragonboard all-snap images18:26
pmcgowanno sorry18:26
pmcgowanapple orange18:26
ogra_  snapd.refresh.timer                                                                                loaded active waiting   Timer to automatically refresh installed snaps18:26
ogra_that is whyt i get on my laptop18:26
ogra_*what18:26
pmcgowanhmm18:26
pmcgowanthats what I see on db18:27
ogra_not sure why yours is disabled ... i think there was a bug once18:27
pmcgowanhow do I enable it now18:27
ogra_bug 158897718:27
mupBug #1588977: [2.0.6] snapd.refresh.timer fails <regression-proposed> <verification-done> <xenial> <snapd (Ubuntu):Fix Released by carrol1> <snapd (Ubuntu Xenial):Fix Released> <https://launchpad.net/bugs/1588977>18:27
pmcgowanogra_, let me try t enable it18:29
mupPR snapd#2218 closed: snapstate: ensure gadget/core/kernel can not be disabled <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2218>18:29
mupPR snapd#2219 closed: asserts: limit to 1y only if len(models) == 0 <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2219>18:29
pmcgowanogra_, its working now and I got the update I expected18:30
ogra_yay18:30
mupBug #1610001 changed: Regression: snap run no longer runs hooks <Snappy:Fix Released by kyrofa> <https://launchpad.net/bugs/1610001>19:01
mupPR snapd#2220 opened: overlord/snapstate: fix missing argument to Noticef <Created by zyga> <https://github.com/snapcore/snapd/pull/2220>19:05
mvokyrofa: yes, we talked about this19:16
kyrofamvo, still planned, then?19:16
kyrofaJust wanted to make kgunn aware, but wanted to make sure I remembered correctly first :)19:17
mvokyrofa: yes but no dates or priority attached to it19:17
kyrofaSure19:17
kyrofaThanks mvo :)19:17
mvoyw19:17
kgunnack19:17
kyrofaSo kgunn as ogra_ mentioned we have `snap run --shell <app>`. That enables you to debug if you include strace/gdb/etc. in your snap, but eventually we'll have `snap run --gdb <app>` and `snap run --strace <app>` and the like19:18
kgunncool19:18
kgunnfwiw, i just tried from classic snap...i attached to the pid ok, but then nothing...at least when i crashed the process...no output (altho could be user idiocy)19:19
ogra_check syslog19:19
ogra_if there is any seccomp blocking or anything19:20
kgunnwhen doing snap run --shell <app> ....is <app> really the service name ?19:27
kgunne.g. is snap run going to launch my service?19:28
kyrofakgunn, it won't run anything if you use --shell, but yeah, it can be a service19:32
kyrofaAt least... I assume (not tried myself)19:32
kyrofaogra_, are you still around?19:52
ogra_semi :)19:52
kyrofaogra_, dumb question: if the kernel snap updates, does the device reboot?19:52
ogra_hmm, i would expect so ...19:53
ogra_but mvo knows the code ...19:53
mvokyrofa: it does - after a delay of some minutes19:53
ogra_(i definitely had a reboot today after the new kernels landed)19:54
kyrofamvo, ogra_ good deal, thanks. I figured that was the case, I just realized that hasn't happened to me yet on a core-based image, so wanted to double-check19:54
ogra_kyrofa, use dailies if you like reboots ;)19:55
kyrofaogra_, :P19:55
ogra_edge gets a new core every day19:55
kyrofaogra_, a core update doesn't cause a reboot, right?19:55
ogra_it does19:55
kyrofaHuh, I didn't know that19:55
ogra_you can intercept with shutdown -c19:56
ogra_(it warns you)19:56
kyrofaWhy? Just because we figure running services are using libs from it?19:56
mwhudsonrharper, dobey: oops (re email addresses)20:25
mwhudsonrharper, dobey: are any other characters missing?20:25
rharpermwhudson: I went searching (briefly) for reasonable email regex and I couldn't find anything definitive20:25
mwhudsonhttps://github.com/CanonicalLtd/subiquity/pull/17820:25
mupPR CanonicalLtd/subiquity#178: allow + in email addresses <Created by mwhudson> <https://github.com/CanonicalLtd/subiquity/pull/178>20:25
mwhudsonrharper: i guess i could look at what lp itself allows...20:25
rharperyeah20:25
rharperor see if any of the security folks have a good best practices20:26
dobeymwhudson: almost definitely. + is what broke for me though. but i'm a boring USian20:27
mwhudsonapparently = is allowed too20:27
kyrofamwhudson, tons of things are allowed-- the common advice I find is "beyond checking for @, don't bother validating. Just email to confirm."20:32
kyrofamwhudson, https://davidcel.is/posts/stop-validating-email-addresses-with-regex/20:38
kyrofamwhudson, best quote: "Look at all these spaces!"@example.com is a valid email address20:39
mwhudsonkyrofa: well you couldn't create an account on lp with such an address20:39
mwhudsonand i assume sso is the same but i haven't checked there20:39
kyrofamwhudson, yeah just trying to save you some googling for definitive regex, because there isn't one :)20:40
mwhudsoni am aware of that :)20:41
mwhudsonrharper, dobey, ogra_: is this worth doing a new release / upload for?20:47
mwhudsoni guess so, it blocks some people and is low risk20:48
ogra_mwhudson, only if you want dobey as a uaer i guess :P20:48
ogra_**user20:48
dobeywell i'm sure i'll find more bugs after i get past that ;)20:48
ogra_word20:49
Croephais this the right way to use a ubuntu flavour in a snap kernel snapcraft.yaml: kdefconfig: kdefconfig: ['flavour=my_flavour', 'config']21:21
mwhudsonhm i guess mvo is asleep21:44
SnappinHi. Can anyone provide ANY info on backing up data created from a snappy app? Nextcloud for ex?21:58
kyrofaSnappin, there are a limited number of places snaps can write. Nextcloud for example will always dump its data into /var/snap/nextcloud/common (unless you change it in the config)22:00
kyrofadata = nextcloud raw data. The config, apps, etc. go elsewhere22:01
kyrofa(/var/snap/nextcloud/current to be exact)22:01
Snappinkyrofa: so let's say I dump that directory and want in case i have a server failure. So I rebuild my server, do the snap install nextcloud. So I just dump the backup there and call it a day?22:01
* Snappin is baffled backup & restore isn't covered ANYWHERE in the docs....22:01
kyrofaSnappin, well, ignoring the snap, how does one backup a nextcloud install?22:01
kyrofaSnappin, it's because it's always going to be application-specific, not snap-specific22:01
Snappinit's a multi-step process and is documented.22:02
Snappinkyrofa: ok I understand that. so is it safe to assume there isn't or never will be a common procedure to backup/recover of snappy install critical data?22:02
* Snappin is trying to decide if diving further into snappy tech is worth it...not trying to be rude or critical.22:03
kyrofaSnappin, you can always copy it off and paste it back, but the application may not pick it up like that22:03
Snappinok. that's sounds too risky for me. I see the appeal of snaps but not if there is going to be an unpredictable outcome of data recovery.22:03
SnappinDo you know if future roadwork with snappy will involve my concerns regarding backup/recovery?22:04
kyrofaSo in order to migrate a Nextcloud install, what do you do? You dump the database, copy the raw data and the config, and then apply in reverse order22:04
Snappini only know how to backup/restore nextcloud by hand if i install it by hand.. this is well documented on the web.22:05
SnappinThanks though, i think i've found my answers.22:05
jdstrandsergiusens: hey, would you mind approving https://myapps.developer.ubuntu.com/dev/click-apps/5063/rev/3/ ?22:41
jdstrandsergiusens: I made some changes to the review tools so that will pass, but that needs a store sync22:42
hindleI'm trying to package with snappy (confinement: strict) a application (not service) that opens unix sockets at say /tmp/socket1 - Currently I get access dennied errors. I see that for services I can use "caps:" property but I can't find any documentation on how it can be done for apps.23:13
qenghohindle: You don't get access to /tmp . You can get a personal, ephemeral tmpdir. If you're trying to do something that has some system-wide known name, you want a service.23:17
hindleqengho: thanks - I'm trying to do IPC via unix sockets - between different apps in the same snappy packge.23:21
hindleqengho: but I still can't seem to open a unix socket at a writtable path for the snappy application.23:23
hindleqengho: so I assumed I need to add some privilage to the app.23:23
jdstrandhindle: you can do that fine if you create it in one of the writable areas for the snap23:24
jdstrand(other than /tmp)23:32
hindlejdstrand: thanks23:45

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