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

qenghohindle: If it's between the same system user's running apps, just use $SNAP_USER_DATA/socket100:01
josharensonDoes anyone know anything about a snapcraft.yaml for unity8?01:26
josharensonI know it doesn't really work yet, but I'm trying not to reinvent the wheel.01:26
ahoneybunmhall119: that RocketChat snap is really bad on mainline kernels02:12
ahoneybunapparmor complains all over02:12
ahoneybunsomeone in here told me I have to recompile the kernel with the patches but that is just too much work02:13
mupBug #1637046 opened: requesting "quiet" mode <canonical-is> <Snappy:New> <https://launchpad.net/bugs/1637046>02:52
=== hikiko|off is now known as hikiko
=== chihchun_afk is now known as chihchun
dholbachgood morning06:46
didrockshey dholbach06:56
dholbachsalut didrocks06:56
mupBug #1637093 opened: docs/config.md needs an update <snap-docs> <Snappy:New> <https://launchpad.net/bugs/1637093>07:21
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
vigoogra_,  morning, I got "Can't find valid F2FS filesystem" in pi3 after runnning spread08:35
ogra_vigo, hmm, i thought mvo fixed that yesterday, thats an old warning08:45
mvoogra_: not quite fixed, the branch was up but tests need some serious rethinking (we use the ramdisks in the tests to simulate block devices)08:46
vigomvo,  morning, have you a bug for it?08:47
vigomvo, I watched the rc2 images, the one for pi3 is building right?08:49
mvovigo: http://people.canonical.com/~mvo/all-snaps/rc2/ is the current place for them08:51
vigomvo, great :) flashing dragonboard08:52
bzoltanhi folks. Is there a way to trigger an action in the snapcraft after the stage to tar.gz up a part of the stage?08:58
didrocksbzoltan: I would go for a custom plugin, which will be set "after: <other-parts>". This plugin can then access to the stage/ directory (and so tar.gz it)08:59
didrocksdoes this make sense to you?09:00
bzoltandidrocks: not really :)09:01
didrocksok, so you have multiple parts…09:01
bzoltandidrocks:  Ok, so you mean that i should create a snapcraft plugin for this feature?09:02
didrocksyep09:02
didrocksyou create on part which is "tarring-stage", which is using your custom snapcraft plugin "tarring-stage"09:02
didrocksthis plugin, in the install phase for instance, do only one thing: take the stage/ directory and tar it up09:02
didrocksto ensure this is ran after all other parts have done their jobs09:03
didrocksyou will need to specifying in tarring-stage:09:03
didrocks  after: [list-of-other-parts]09:03
didrocksto ensure all other parts have run the "install" step first (you may want rather to try "stage" btw)09:04
bzoltandidrocks: is there a plugin template or a reasonable simple plugin I could use as pattern?09:04
didrocksbzoltan: sure, look at the dump plugin for instance09:05
bzoltandidrocks:  okey, I will look at that and others too. Thanks :) i kind of hoped for a ready feature for hooking up scripts09:06
didrocksbzoltan: yeah, I know that was discussed, but not scheduled AFAIK09:06
didrocksthe plugin should be straightforward, do not hesitate to ask if you need any help09:06
bzoltandidrocks:  no probs... it is doable09:06
didrocksbzoltan: yeah, should be a couple of hours at max (with the example) :)09:07
bzoltandidrocks: :)09:07
didrocksbzoltan: again, do not hesitate if you need help with this, I'm happy to have a look09:07
bzoltandidrocks:  I am fairly new to snapcraft internals... i was reading the scripts this week. There are few strange things there... but i will figure out09:08
ogra_mvo, why is the dragonboard built from edge ?09:18
rvrogra_: Not correct?09:18
ogra_rvr, well, after all we want to release candidate/beta09:19
=== robertliu is now known as robertliu_
rvrogra_: Ok, I will create an image with beta channel09:21
=== robertliu_ is now known as robertliu__
=== chihchun is now known as chihchun_afk
=== robertliu__ is now known as robertliu
ogra_rvr, no, that wont help if the snaps have not been updated09:21
rvrogra_: Oh09:22
ogra_(i would have expected they move to candidate, then we get an image from there, test it and move them to beta )09:22
ogra_(and do a final smoke test with a beta built image)09:22
mvoogra_: because I want to test it first before I promote it to candidate, once its promoted that snap goes out to all the candidate people09:28
ogra_uuuh09:28
mvoogra_: we will have to do a final run after the image is in candidate09:29
mvoogra_: eh, build from candidate09:29
* ogra_ just hit crtl-alt-delete in console-conf09:29
ogra_bad stuff ...09:29
ogra_mvo, ah, we're not that far yet, ok09:29
mvoogra_: yeah, just dragonboard is missing, the other arches got promoted to candidate but I have no positive report from the dragon sofar09:30
ogra_so my rpi3 hops from service to service on reboot ... 2x it sat there "waiting for job to stop" with a 2min timeout09:30
ogra_one of them said "Snappy services" (whatever that is)09:31
ogra_the other was something with "Sync from Network"09:31
=== chihchun_afk is now known as chihchun
ogra_mvo, oh, btw ... if the gadget doesnt update files in /boot is that also true for all possible extra files it ships /the ones that get copied to /writable/system-data at image build time)09:32
ogra_i envision we want to be able to update firmware files or binary blobs from the gadget09:33
mvoogra_: correct, this is currently not possible09:33
ogra_ouch09:33
mvoogra_: we want this, its also very dangerous because if it goes wrong -> brick09:34
ogra_well, i meant more extra files in /lib/frimware and graphics drivers we can not ship with the kernel snap09:34
ogra_(that first sentence sounded wrong)09:35
mvoogra_: oh, ok. yeah, well, we need to add code for this, its not supported yet.09:35
ogra_i.e. nothing bootloader related that could hard-brick anything09:35
mvoyeah, thats fine, thats something we can easily add09:36
mvoogra_: if you want, plesae create a trello card09:36
ogra_grrr ... wlan on pi3 still times out even on second boot ...09:37
ogra_it is funny, i can configure eth0, ssh in and *then* run sudo console-conf and reconfiguring the network works just fine ... i get wlan and all09:38
bzoltandidrocks: kind of starting with this - http://pastebin.ubuntu.com/23387537/ i wonder how I can know wherethe stage is?09:38
ogra_just not when i do it on the first console-conf run09:38
ogra_thats a joke !09:43
ogra_so third attempt of configuring wlan on the pi3 the system boots and console-conf shows me the IP for wlan0 ...09:43
ogra_yet ... configuring the network still times out09:43
* ogra_ wonders if we should have a skip button in the network settings of console-conf09:45
ogra_i can actually ping the system until i hit "Done" in console-conf09:46
ogra_mwhudson, ^^^ any idea ? seems a configured wlan gets messed up on second boot if i have not set up a user yet09:47
mupPR snapd#2221 opened: tests: skip tests that use /dev/ptmx on ppc64el - it does not work here <Created by mvo5> <https://github.com/snapcore/snapd/pull/2221>09:50
cellashHello everyone, I have an issue with Snap that is frustrating me. I am trying to snapcraft the Telegram app (we have a repo on LaunchPad where we've added all the required files etc.) which snaps up perfectly fine on 16.04 Unity 7 however I'm currently on 16.10 and I keep getting this error and cannot resolve the problem and wondered if anyone on here would know what this error means or shed some light to how to resolve this? Heres what the console returns:09:51
cellashhttp://pastebin.ubuntu.com/23387557/ Appreciate your time.09:51
ogra_mwhudson, bah, i still see my wlan password in the console-conf logs ... right before the netplan yaml gets printed09:53
ogra_hmm, actually multiple times09:54
ogra_the actual yaml output says "REDACTED"09:55
joc_cellash: is it the error on line 443 of your pastebin? missing intltool build-package possibly?10:02
ogra_mwhudson, bug 1637145 for you ... (logs attached)10:06
mupBug #1637145: console-conf breaks working wifi when rebooting before user is created <Snappy:New> <subiquity (Ubuntu):New> <https://launchpad.net/bugs/1637145>10:06
mupBug #1637145 opened: console-conf breaks working wifi when rebooting before user is created <Snappy:New> <subiquity (Ubuntu):New> <https://launchpad.net/bugs/1637145>10:07
cellashjoc_: Installing intltool fixed the error! Thank you so much joc_!!10:10
joc_yw :)10:11
mvoogra_: I think morphis found the bug10:22
ogra_"the bug" ?10:22
vigoogra_, just confirmed that bug, it happened to me with db first and now with the pi3 :\10:27
ogra_well, the pi3 still has other wifi probs10:27
ogra_but yeah it is annoying10:28
bzoltandidrocks: got it working http://paste.ubuntu.com/23387713/10:29
dhirajHello guys!10:33
dhirajI would like to know if it is possible to use DDS middleware for communication between various snaps10:34
dhirajhas anybody tried something similar? if not DDS then any other data sharing middlewares  like zeromq, rabbitmq of sorts?10:36
ogra_mwhudson, and Bug #1637153 for you ...10:36
mupBug #1637153: plugging in a network cable when wifi config failed causes a traceback when restarting console-conf <Snappy:New> <subiquity (Ubuntu):New> <https://launchpad.net/bugs/1637153>10:36
=== hikiko is now known as hikiko|ln
rvrogra_: mvo: Image is not resized again in the dragonboard :(10:37
ogra_rvr, works fine here again :)10:37
rvr/dev/mmcblk1p9  488M  477M     0 100% /writable10:37
mupBug #1637153 opened: plugging in a network cable when wifi config failed causes a traceback when restarting console-conf <Snappy:New> <subiquity (Ubuntu):New> <https://launchpad.net/bugs/1637153>10:37
ogra_rvr, yeah ... but unless anyone can reproduce it ....10:38
ogra_rvr, i switched to godd recetly, try the same so we can rule out any dd options or weirdness10:40
ogra_(snap install godd ...)10:40
rvrogra_: Ack10:40
ogra_xzcat ./ubuntu-core-16-pi3.img.xz | sudo godd - /dev/sdc10:40
ogra_thats what i do with it10:40
mupPR snapd#2222 opened: tests: do not hardcode the size of /dev/ram0 <Created by mvo5> <https://github.com/snapcore/snapd/pull/2222>10:50
didrocksbzoltan: nice! :)10:53
bzoltandidrocks:  i am hacking it forward to add the exludes and stuff... the idea is to provide a generic way to produce API packages.10:53
didrocksbzoltan: yeah, I got what you wanted to do regarding SDK from your questions :)10:54
bzoltandidrocks: :)10:54
mvoogra_: hi, sorry for not getting back earlire. what was the status of the dragonboard with networking? is it possible to generate a wlan config now? (that works)?11:06
ogra_mvo, yeah11:08
ogra_pi3 is still broked ... dragon works11:08
rvrmwhudson: Hi. Does console-conf has any test suite?11:08
mvoogra_: pi3 is broken in what way? wireless not working at all, but wired works?11:08
ogra_mvo, yep11:09
ogra_mvo, no wlan0 on first boot ... and on every subsequent boot console-conf falls over when trying to configure the device ... funnily once you attempted to set it up it will be online just fine on reboot before console-conf touches it ... if it does thouh, the worlld falls apart (tracebacks, timeouts etc)11:10
rvrlol11:13
rvrIf I configure incorrectly the network, I have no way to log in the machine11:13
rvr127.0.0.1 after reboot. Nice.11:15
ogra_what board ?11:16
rvrDragonboard11:16
ogra_is it just not showing the right IP or is it really not up ?11:16
rvrI was re-running console-conf via ssh11:16
ogra_ah11:16
ogra_i have only done that on pi3 yet (because then wlan works just fine)11:17
rvrogra_: And pressed Done to re-apply the same settings11:17
ogra_check /etc/netplan/, i think that doesnt store your wireless key anymore then11:17
ogra_i have seen that11:17
rvrI can't check anything :P11:18
ogra_you cant yank out the SD ?11:18
rvrOh, that way11:18
ogra_ogra@localhost:~$ uname -a11:18
ogra_Linux localhost.localdomain 4.4.0-1032-snapdragon #36-Ubuntu SMP Wed Oct 19 14:37:43 UTC 2016 aarch64 aarch64 aarch64 GNU/Linux11:18
ogra_ogra@localhost:~$ df -h /writable/11:18
ogra_Filesystem      Size  Used Avail Use% Mounted on11:18
rvrReflashing now, will reproduce later11:19
ogra_/dev/mmcblk1p9   57G  341M   54G   1% /writable11:19
ogra_all fine here11:19
ogra_(regarding resize11:19
ogra_)11:19
rvrogra_: Weird :-/11:19
ogra_yes, and nobody at the sprint could repro it11:19
sitterhey. I am trying to upload the kde-frameworks-5 content share, it's being auto rejected based on 2 fails https://paste.kde.org/pty2tu57i the first I sounds like content interface is being rejected and the second I have no clue about. any help would be appreciated :/11:19
ogra_i really dont get what your write process does to make this break11:19
=== hikiko|ln is now known as hikiko
mvositter: when jdstrand is around he can probably help you. the content interface seems to need adding11:32
mvositter: the other one is about a bunch of files with "sticky" bit, a bit strange, if you click on "request manual review" we can investigate more11:32
=== chihchun is now known as chihchun_afk
sittermh, I think the +s comes from the docker volume we build on. not that I'd know why it would be +s to begin with ^^11:38
* sitter investigates11:38
mardypstolowski: hi! Do you have a minute for a question on interface hooks?11:38
rvrogra_: Well, not it is resized (used godd)11:39
didrockssitter: for the first one, jdstrand is already aware about it (he had to approve mine manually)11:42
didrocksnot sure about the second one as well, you have quite some sticky bits, and I guess in doesn't like it11:42
=== chihchun_afk is now known as chihchun
ogra_ppisati, bah11:44
ogra_ppisati, did the beaglebone fix get reverted when the CVE fix landed ?11:44
ogra_the oops is back11:44
sitterdidrocks: right, I'll try to get the stickies sorted and request a manual review then. cheers11:45
ogra_ppisati, http://paste.ubuntu.com/23387924/11:45
ogra_(not sure it is the same one)11:45
ogra_ppisati, yeah, seems to be the same oops, the system moves on and i dont have any network device in console-conf11:46
ogra_ppisati, oh sigh, i think the same issue like on rpi did hit us here, the proposed kernel was wiped for the CVE and only re-uploaded to proposed on friday, so the fix for the OOPS didnt make it to the archive11:51
* ogra_ hacks the bbb kernel snap to default to proposed11:59
pstolowskimardy, hey! sure, what is it?12:00
mardypstolowski: AFAIU, the builtin interfaces are interfaces were the slot is implemented by snapd itself (correct me if I'm wrong). Will it be possible to have hooks for these slots too (in snapd)?12:01
=== Guest21645 is now known as ahasenack
mardys/were/where/ :-)12:02
=== ahasenack is now known as Guest91977
ogra_mvo, mind approving https://myapps.developer.ubuntu.com/dev/click-apps/5912/rev/6/ ?12:09
ogra_( jdstrand did add it to the exception list but seems that did still not land yet)12:09
mvoogra_: sure12:09
ogra_thx12:09
mvoogra_: if you have a usb network card, could you please check if the dragonboard tgets an dhcp from that on firstboot12:10
ogra_will do12:10
mvoogra_: thanks12:10
rvrDragonboard boots and sets up the wifi with rc212:11
pstolowskimardy, what you're referring to are slots "provided" by the os. i haven't thought about it yet and it wasn't raised in any of the discussions we had internally. I think it may make sense if we have use cases.12:12
rvrogra_: and filesystem is correctly resized12:12
ogra_rvr, oho !!12:12
rvrogra_: Cool dd be the culprit?12:12
rvrCould12:12
ogra_rvr, thats the first time since last week ?12:12
rvrogra_: I think yesterday it worked for me sometimes12:13
rvrI could run the spread test suite12:13
ogra_and this time you used godd ?12:14
rvrogra_: Yes12:15
ogra_well, yeah, then this could be the issue12:15
ogra_(if it keeps working now :) )12:15
ogra_mvo, all fine with USB nic on the dragonboard for me (configuring wired only)12:19
mvoogra_: cool - it also got an IP on firstboot?12:19
ogra_yes, before console-conf12:20
* ogra_ runs sudo console-conf to see if he can switch over to wlan now12:21
mardypstolowski: I was thinking that bug 1633520 could be solved by interface hooks, see comments 2 & 312:22
mupBug #1633520: Support dbus runtime relocation <patch> <D-Bus:Unknown> <dbus (Ubuntu):New> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1633520>12:22
=== chihchun is now known as chihchun_afk
ogra_yeah, works but needs a reboot, else the new config doesnt get applied12:23
mvoogra_: \o/12:25
ogra_hmm, beagle doesnt though :(12:27
ogra_interface is not pre-confoigured from first boot and times out trying to apply console-conf settings12:27
faenilhey guys12:32
faenilisn't "snap find" supposed to show the snaps in the store?12:32
faenil(or at least that's what some guides report)12:33
ogra_nope, it is supposed to find them12:33
ogra_i.e. a blind "snap find" wont show anything12:33
faenilalthough it used to12:33
ogra_you need to give some search info12:33
ogra_i dont think "snap" did12:33
ogra_snappy did though12:33
faenilI see12:33
ogra_it also only searches the stable channel12:34
faenilsuer12:34
=== chihchun_afk is now known as chihchun
faenilso, how do you list apps in the stable channel nowadays?12:35
ogra_you dont12:35
faenilI see....ok12:36
ogra_not sure if uappexplorer can filter by channel12:36
faenilalright, thanks ogra_12:36
faenilis that intentional?12:36
ogra_well, the prob is once the stable channel has 87234582 packages, what do you do ?12:36
faenilis it because it doesn't scale?12:36
faenilyeah12:37
ogra_right12:37
pstolowskimardy, yes, this sounds sensible to me. but this needs discussing. what i'm working on right now is to allow hooks on plug/slot sides of regular snaps; special handling for OS will come next12:39
faenilogra_: is there a plan to make it possible to search the other channels, that you know of?12:40
ogra_nope, not that i know of12:41
faenilok12:41
faenilcheers12:41
mardypstolowski: OK; how can I make sure that this is not forgotten? Should I file a bug?12:43
* ogra_ really loves to see the beaglebone only using 42MB ram in htop ... 12:43
ogra_(of which 6.5MB is actually used by htop alone :) )12:44
ogra_i wonder if we could boot with less than 50MB RAM12:44
ppisatiogra_: i see all the patches are queued in x/master-next, yes, it appears that CVE hit the BBB too12:46
ogra_ppisati, well, with the snap built from proposed everything is fine12:47
ogra_http://people.canonical.com/~ogra/snappy/all-snaps/daily/current/ubuntu-core-16-beaglebone.img.xz works pretty well12:47
ppisatiogra_: oh good12:47
ogra_luckily the bbb isnt supported so i can do such stuff there ;)12:47
ogra_(and just re-bump the kernel once it went to updates)12:48
pstolowskimardy, don't worry, it won't be forgotten ;)12:49
mardypstolowski: OK, thanks :-)12:49
ogra_mvo, so apart from the pi3 wlan issues, all arm images look fine to me12:50
ogra_(apart from the known slowness of console-conf and such)12:50
* ogra_ takes a break12:50
mhall119ahoneybun: that's not the rocket.chat snap, that's snapd/snap-confine itself12:56
mhall119since mainline doesn't yet have all the apparmor patches merged in12:57
mvoogra_: great, thank you12:59
jdstrandogra_: I see linux-generic-bbb was approved. yes, the fix is in the tools, no it isn't sync'd yet13:06
jdstrandogra_: speaking of bbb, is there a model assertion for it? I created one using linux-generic-bbb and bbb and it seemed to work, but not sure if I should be using something else13:07
ogra_jdstrand, no official one (since we dont officially support it) ... i'm using a self created one for the daily images13:08
jdstrandogra_: ah, where are those daily images?13:08
ogra_http://people.canonical.com/~ogra/snappy/all-snaps/daily/current/ubuntu-core-16-beaglebone.img.xz should be golden though ... in case you want to try13:08
jdstrandcool13:09
jdstrandogra_: I guess soon they will be moved to stable? I forget if it was the gadget or kernel (or both) that wasn't(/weren't) in stable13:10
ogra_yeah, with the release13:10
ogra_i could move them to beta already i guess ... will do that later today13:10
jdstrandmvo: hey at some time that is convenient, would you mind approving https://myapps.developer.ubuntu.com/dev/click-apps/5063/review/rev/3/? I've made a change to the review tools so that will pass13:10
jdstrandmvo: but that isn't in the store yet13:10
jdstrandogra_: no need on my account-- just curious13:11
mvojdstrand: sure13:11
jdstrandogra_: where will pi2, pi3 and dragonboard official images end up? http://cdimage.ubuntu.com/ubuntu-core/xenial/daily-preinstalled/current/ with i386 and amd64?13:12
jdstrandogra_: (I'm updating my images and also updating the security team's documentation)13:13
=== chihchun is now known as chihchun_afk
jdstrandmvo: thanks! :)13:15
ogra_jdstrand, good question ... perhaps mvo has an idea13:17
* mvo is in a meeting13:18
popeyPi3 disappeared from network *again* on update13:18
ogra_we used to release under ubuntu-snappy in 15.04 ... but now we own the ubuntu-core name so i guess it will be somewhere under ubuntu-core13:18
ogra_popey, wireless ?13:18
popeywired only13:18
ogra_very weird, doesnt happen to me with wlan13:19
popeyand I have no way of logging in on serial cable because no user ID13:19
popeyso I cannot debug this13:19
jdstrandI need to look up how to setup wireless on series 1613:19
sitterjdstrand: hey kde-frameworks-5 content snap filed for manual review as it fails lint due to content interface13:19
popeyethernet light is on, on the switch13:19
popeyogra_: should I file a bug, this has happened multiple times13:20
ogra_jdstrand, doesnt work on pi3 ... so set up wired, make sure to reboot, ssh in, run sudo console-conf again and disable wired and configure wireless ... another reboot and you rshould be good13:20
jdstrandsitter: approved, but you need to press the publish button. fyi, there is a fix for that in trunk, it just isn't sync'd with the store yet13:20
jdstrandogra_: oh, console-conf can do wireless too?13:21
jdstrandafter initial bringup?13:21
sitterjdstrand: thanks13:21
ogra_popey, definitely ... i suspect it doesnt shut down properly ... but that would need a serial console permanently attached to see13:21
ogra_jdstrand, yeah, it should theoretically even work on first boot but there is some bug on the pi ... dragonboard works OOTB with wifi13:22
ogra_still trying to hunt that down before release next week13:22
jdstrandan interesting side-effect of the whole user from LP stuff is that there is no way to set a password for the user (not so much for ssh logins, but for serial console logins). I guess the default is reasonable cause it is easy enough to do 'sudo passwd <id>', but perhaps it is interesting in console-conf...13:23
ogra_sudo passwd $USER13:24
jdstrandof course, then you'd want to tweak sshd_config and likely /etc/sudoers.d/create-user-<id>...13:24
ogra_(indeed you need to ssh in once for this)13:24
jdstrandogra_: yeah, I mentioned that :)13:24
popeyogra_: no, it's rebooted fine i think, but comes back without network13:25
ogra_ah, didnt see it :)13:25
jdstrandanyway, I don't feel strongly enough to advocate for a change to console-conf13:25
ogra_popey, smells like some race then13:25
ogra_i never see it with wlan13:25
popeyok filed 163719613:30
mupBug #1637196 opened: Pi 3 drops off network on update <Snappy:New> <https://launchpad.net/bugs/1637196>13:32
sitterjdstrand: I also requested the reserved name 'kblocks' in case you can have a look at that ^^13:33
jdstrandsitter: you'll need a store admin for that (I am a store reviewer)13:34
jdstrandnessita: can you help sitter? ^13:34
jdstrandhmm, /etc/rsyslog.d is still read-only and no way to setup log forwarding yet13:34
jdstrandsame with /etc/systemd/timesyncd.conf13:35
popeyjdstrand: i thought you had rights to allow names too?13:39
popey(I just approved it) sitter13:40
popeysitter: feel free to ping me also next time you want a reservation approved13:40
sitterthanks13:42
popeynp13:42
jdstrandpopey: if I do, I don't know how or the processes surrounding allowing it13:46
popeyok13:47
faenillooking at http://bazaar.launchpad.net/~ubuntu-calendar-dev/ubuntu-calendar-app/trunk/view/head:/snapcraft.yaml#L913:48
faenilI should be able to run the app just by running "ubuntu-calenda-app" from terminal, after installing the snap, right?13:48
faenilI updated a laptop (not mine) to Zesty, and I can't get snaps to run13:49
popeythat should work, yes.13:52
faenilit says command not found13:54
faenilcan anyone confirm if snaps are running ok on zesty?13:54
faenildesktop-launch also does not exist13:55
faenil(maybe that's expected though?)13:56
faenilif anyone has an idea on how to debug this, please let me know ;)13:59
pmcgowanfaenil, I saw similar behavior when my snapd was out of date14:01
pmcgowanor was it my core snap, forget14:01
=== petevg_afk is now known as petevg
faenil2.16+16.10ubuntu114:01
faenilcore 16.04.114:01
faenilrev42314:02
faenilpmcgowan: ubuntu-calendar-app.ubuntu-calendar-app says command not found (same if I just run ubuntu-calendar-app). While "snap run ubuntu-calendar-app" works! (thanks dobey) but trying to run it from the apps scope results in an endless spinner14:06
Son_Gokuzyga: I fixed it!14:06
dobeyfaenil: i think the problem there is that command:14:07
pmcgowanfaenil, seems broken for sure, just running u-c-a should work14:07
faenilI guess I should report a bug :P14:09
faeniltentatively snapd14:09
dobeyso, the .desktop file is broken, which is why it doesn't start from the dash i guess14:13
Son_Gokuzyga: https://github.com/zyga/snapcore-fedora/pull/914:13
mupPR zyga/snapcore-fedora#9: Update SELinux subpackage packaging <Created by Conan-Kudo> <https://github.com/zyga/snapcore-fedora/pull/9>14:13
faenildobey: or is it not that the dash fails because the command is not found?14:13
faenilor does it go through snap run?14:13
faenilhttps://bugs.launchpad.net/ubuntu/+source/snapd/+bug/163722014:13
mupBug #1637220: Command not found when launching snaps via terminal on Zesty <snapd (Ubuntu):New> <https://launchpad.net/bugs/1637220>14:13
faenilwho should I ping? zyga ?14:14
dobeyfaenil: no, the dash does the same as running "ubuntu-app-launch $APP_ID"14:14
faenilok14:14
dobeybut the .desktop file doesn't have $SNAP/bin/ in the Exec= line, or at least, doesn't have bin/. i don't know why the window stays around and you can't close it though.14:15
dobeythe .desktop file has full paths to icons too, which seems wrong14:15
faenildobey: should desktop-launch be availble from cmd? or is it just something that is preprocessed?14:17
dobeyfaenil: no idea. but it's not used for launching from the dash anyway since the .desktop file doesn't mention it14:17
dobeyfaenil: for all i know that could be some magic thing in snapcraft itself14:18
faenilsure14:18
faenilyeah14:18
dobeyfaenil: maybe in your ~/.cache/upstart/unity8-dash.log there is some error about calendar app, when you tried to start it from dash14:19
faenildobey: nope14:20
alex-abreufaenil, you are trying in the unity8 session?14:24
faenilyep14:24
mupPR snapd#2223 opened: image: init "snap_mode" on image creation time to avoid ugly messages <Created by mvo5> <https://github.com/snapcore/snapd/pull/2223>14:24
sitterjdstrand, popey: I think #2 of kblocks is marked for manual review. if you could kick that please. I think it's holding up autoreview of #314:40
jdstrandsitter: I rejected r2. r3 was auto-approved (perhaps just now) and you need only press the publish button14:50
sitterjdstrand: thanks14:51
=== ondra_ is now known as ondra
mupPR snapd#2224 opened: overlord/snapstate: update ux around explicit refresh of reverted, an… <Created by chipaca> <https://github.com/snapcore/snapd/pull/2224>15:07
mupPR snapd#2221 closed: tests: skip tests that use /dev/ptmx on ppc64el - it does not work here <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2221>15:09
mupPR snapd#2225 opened: Implement lxd-client interface exposing the lxd snap <Created by kalikiana> <https://github.com/snapcore/snapd/pull/2225>15:19
mupPR snapd#2226 opened: Eds <Created by renatofilho> <https://github.com/snapcore/snapd/pull/2226>15:24
alex-abreunessita, trying to use the staging store to reach the new endpoints (sections, featured snaps, etc.) but I get a 404, are they in place ?15:25
mupPR snapcraft#873 closed: Release changelog for 2.20 <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/873>15:25
sergiusensalex-abreu in the snapcraft we have a tools/staging_env.sh which we source to avoid the confusion of all the endpoints15:26
sergiusenstry and use that as a reference15:26
alex-abreusergiusens, ah great,  I was manually setting the env vars, let me check that15:27
alex-abreusergiusens, the URLs look reasonnably similar to what I have been using, although setting them manually15:29
mupPR snapcraft#834 closed: Remove the debian packaging <Created by elopio> <Closed by elopio> <https://github.com/snapcore/snapcraft/pull/834>15:31
sittermhall119: sudo snap install --edge kde-frameworks-5 && sudo snap install --edge --devmode kblocks15:34
sitterI do have a feeling that we are missing some "automatic dependency install" system for content sharing (i.e. one can install kblocks without having frameworks installed)15:35
kyrofaHey ogra_, what is the difference between the pi2 RC and pi3?15:38
Pharaoh_Atemzyga: ping15:39
mhall119sitter: auto-dependency installation is being worked on, IIRC it will check if you already have something installed that fulfills the content need, and if not it will look for the defined default snap and install that15:41
mhall119zyga: ^^ is that correct?15:41
Pharaoh_Atemmhall119: this morning, I managed to get the selinux policy to let snapd start and run :)15:41
mhall119Pharaoh_Atem: \o/15:41
mhall119sitter: are the edge channel builds coming from our CI now?15:43
mupPR snapcraft#874 opened: Remove the debian packaging <Created by elopio> <https://github.com/snapcore/snapcraft/pull/874>15:43
zygaPharaoh_Atem: hey15:46
zygasitter: that's correct, it's planned but not implemented yer15:46
Pharaoh_Atemzyga: the systemd units need to be refreshed15:48
Pharaoh_Atemthey're wrong vs the canonical (pun intended) ones15:48
ogra_kyrofa, about 30 lines of uboot code15:49
kyrofaogra_, ah, okay. Still 32-bit, right?15:50
ogra_yeah15:50
kyrofaogra_, is it "officially" supported?15:50
ogra_ppisati already landed an arm64 kernel but i didnt find the time to tinker with that15:51
zygaPharaoh_Atem: how can I do that?15:51
ogra_yeap, pi2 and 3 are official ... drgoboard too ...15:51
Pharaoh_Atemzyga: first, pull in my PR15:51
ogra_beaglebone is community supported15:51
zygayep15:51
jdstrandogra_: hey-- in the snapcraft@ mailing list you mention a README for flashing the dragonboard. I created an image, dd'd it to a device then botted up be get some qualcomm thing. is there more information on how to boot from the sd card?15:51
Pharaoh_Atemthen next, regenerate that patch with new systemd units based on the ones from upstream, merging in the differences from the old units to the new ones (paths, environmentfile, etc.)15:52
jdstrandogra_: I don't see that README file anywhere15:52
ogra_jdstrand, well ... use mvo's godd snap ;)15:53
Pharaoh_Atemzyga: also, keep in mind, stuff that refers to /snap will need to change to /var/lib/snapd/snap15:53
ogra_jdstrand, beyond that ... the only thing you need to do is to turn the dip switch for SD booting on the bottom of the board on15:53
zygaPharaoh_Atem: ack15:54
jdstrandogra_: ah!15:54
zygaPharaoh_Atem: merged15:55
ogra_jdstrand, xzcat ./ubuntu-core-16-dragonboard.img.xz | sudo godd - /dev/sdc15:55
ogra_jdstrand, thats how i flash it15:55
elopiopitti: ping. Can you help me debugging why the autopkgtests from snapcraft github are not running?15:56
pittielopio: oh, welcome back! I was going to ask you how that went some weeks ago15:56
elopioI've just updated the branches now that we are clean after a release, but I don't see any results15:56
elopiohttps://github.com/snapcore/snapcraft/pull/87415:56
mupPR snapcraft#874: Remove the debian packaging <Created by elopio> <https://github.com/snapcore/snapcraft/pull/874>15:56
pittielopio: in the middle of building psql updates and running out for dinner, but sure15:56
elopiopitti: I can wait until tomorrow.15:57
pittielopio: well, whatever these tests are, it's not the autopkgtest.u.c. infra15:57
pittithese are pointing to some jenkins?15:57
Pharaoh_Atemelopio: errm, what do I do about this? https://travis-ci.org/snapcore/snapcraft/jobs/170776507#L209615:57
elopioPharaoh_Atem: hello. Looking.15:58
Pharaoh_Atemelopio: Hi :)15:58
elopiopitti: ignore all those failing tests. They are for our existing jenkins, which will fail of course because they are expecting a debian directory.15:59
elopioMy idea is to replace the four of them with your infrastructure.15:59
elopioPharaoh_Atem: oh, sucks. Do you get that out of memory error running locally?16:00
pittielopio: I don't see a recent snapcraft related error in the logs; can you prod the web hook on your side? does a ping work?16:00
pittielopio: i. e. maybe some mismatch in the password?16:00
elopiopitti: I can't change the hook because I'm not admin. But sergiusens can.16:01
elopioSergio, are you around?16:01
pittibbl16:02
pitti(back in ~ 3 hours)16:02
elopiopitti: have a good night!16:03
sittermhall119: not from CI yet. I hope to have everything done on automation earlier next week so I can write a blog post and invite more of our devs to join in improving their snaps.16:05
Pharaoh_Atemelopio: hmm, weird, I get an OOM error locally now too16:10
elopioPharaoh_Atem: you are using a scary library there :)16:10
Pharaoh_Atem:S16:10
sergiusenselopio for a bit16:11
=== kallisti6 is now known as kallisti5
gQuigsis it just me or does snapd.firstboot.service start up every boot?16:12
mupPR snapd#2198 closed: tests: only check pc model for the ubuntu-core-16-64 system <Created by fgimenez> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2198>16:13
mupPR snapd#2217 closed: tests: increase wait time for service to be up <Created by fgimenez> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2217>16:13
gQuigsa /var/lib/snapd/firstboot/stamp is never created....16:13
mupPR snapcraft#875 opened: Add the test upstream rules <Created by elopio> <https://github.com/snapcore/snapcraft/pull/875>16:13
mupPR snapcraft#875 closed: Add the test upstream rules <Created by elopio> <Merged by elopio> <https://github.com/snapcore/snapcraft/pull/875>16:16
Pharaoh_Atemelopio: okay, this is retarded16:17
Pharaoh_AtemI can only have a list of one object, or it breaks16:17
Pharaoh_Atemmugh16:17
elopiosergiusens: there's something wrong in our autopkgtest hook, but I'm not sure how to debug it.16:18
elopioPharaoh_Atem: not funny. Is that a bug on the library?16:19
Pharaoh_AtemI think so, yes16:19
Pharaoh_AtemI have a tiny reproducer test case sample, so I'll probably file a bug with python-libarchive-c about it16:19
Pharaoh_Atembut :S16:20
elopioPharaoh_Atem: alright! one point for the test suite, it's even finding bugs in libarchive :D16:20
mupPR snapd#2227 opened: overlord/snapstate: add dynamic snapdX.Y assumes <Created by niemeyer> <https://github.com/snapcore/snapd/pull/2227>16:21
Pharaoh_Atemelopio: libarchive is scary :(16:22
Pharaoh_Atembut the alternative of having to detect every single possible compression algorithm that could be used in an rpm payload is simply not worth it16:23
elopioPharaoh_Atem: I agree. Any possible workaround while they release a fix?16:23
MikeBsergiusens, a couple days ago we chatted about the issues surrounding the kernel plugin pulling from edge...16:27
MikeBAs an experiment, I changed it to pull from stable.16:27
MikeBThane ran ubuntu-image pulling from stable.16:27
MikeBs/thane/then/16:28
CroephaWhere can I find the snapcraft.yaml for the official vanilla kernel that comes with core 16?16:28
MikeBStill didn't work - get the error about snapd being too old.16:28
MikeBAny suggested workaround?16:28
jdstrandogra_: my dragonboard gets a dhcp address, but ssh connection is slow and I see it asking for an ip frequently. is this known? I guess it could be this: wcn36xx: ERROR hal_remove_bsskey response failed err=1616:29
ogra_weird, i dont have such things here16:29
ogra_ogra@wall2:~$ grep DHCPREQ /var/log/syslog|grep dragon16:30
ogra_Oct 27 12:29:36 wall2 dhcpd: DHCPREQUEST for 192.168.2.69 (192.168.2.2) from 02:00:25:af:71:aa (dragon) via p4p116:30
ogra_Oct 27 13:17:55 wall2 dhcpd: DHCPREQUEST for 192.168.2.56 (192.168.2.2) from 02:00:25:af:71:aa (dragon) via p4p116:30
ogra_Oct 27 15:17:54 wall2 dhcpd: DHCPREQUEST for 192.168.2.56 from 02:00:25:af:71:aa (dragon) via p4p116:30
ogra_Oct 27 17:17:52 wall2 dhcpd: DHCPREQUEST for 192.168.2.56 from 02:00:25:af:71:aa (dragon) via p4p116:30
sergiusensMikeB said it was wrong, but ogra_ told me to leave it there for a bit16:30
ogra_right, until stable isnt so outdated anymore ... i doubt the initrd would successfully boot16:31
MikeBsergiusens, understood.  Just looking for an interim workaround I could implement if there is one.16:32
ogra_(or it might boot but things would fail during boot due to missing mounts etc)16:32
ogra_MikeB, if you tell ubuntu-image to use stable *everything* comes from stable16:32
MikeBAny idea when stable may be modernized?16:32
ogra_in ~7 days16:33
ogra_build from edge,beta or candidate until then16:33
MikeBogra_, Great.  I can wait.16:33
ogra_candidate should largely be what will go to stable next week16:33
elopioCroepha: http://bazaar.launchpad.net/~snappy-dev/pc-kernel-snap/trunk/view/head:/snapcraft.yaml16:34
MikeBI've had no luck with edge and beta.  Haven't tried candidate.  I'll give that a try.  Thanks.16:34
Croephaelopio: Thank you so much ! :)16:34
Croephawow, thats really different then the ones in the examples16:35
ogra_MikeB, well, edge and beta work for all other images ... su better track down why exactly it fails, jumping around on different channels wont solve that16:36
ogra_Croepha, that is because it needs to use the deb package from the archive16:36
ogra_other kernels do not need that16:37
ogra_(the binaries in the deb are signed with the ubuntu archive key, which is essential for secure boot environments to work)16:37
ogra_mvo, yummy ! betas with pi and more !16:38
Croephahmm, well, maybe instead of trying to emulate what the vanilla core kernel is doing, maybe i should just say what my problem is... I tried to build a custom kernel for the intel compute stick based on a source tree I found on github (linuxium) ive used their binaries before and they work... When I booted off the drive there isn't any drivers in the initramfs just squashfs (probably just because that was the one listed in the 96boards kernel16:41
Croepha snapcraft.yaml that I copied over...) , I want the image to be general purpose so I want a good set of drivers....16:41
ogra_no, you dont :)16:41
MikeBogra_ I think the problem is related to using a custom kernel to build the image.  The error message implies a version/channel mismatch somewhere...16:42
ogra_you want a handfull of controller drivers and filesystems ... we do not support anything more than detecting your rootfs from the initrd16:42
ogra_(no netbooting or any such fancy stuff)16:42
ogra_you can try to grab the config from a xenial ubuntu desktop install and base on that ... then add a few basic controller drivers to the snapcraft..yaml and be done16:43
Croephaogra_, ok I'll try that, thanks16:44
mhall119sitter: sounds great, let me know when the blog post is up, I'd love to share it around16:44
Croephaogra_: btw, it looks like a full set of drivers got built and made it into the .snap, they just didn't make it into the initrd16:48
ogra_on purpose16:48
elopiosergiusens: pitti: oh it's running, it's awesome! I used the retry script, so the problem is in our hook for sure.16:48
ogra_we dont want big initrds on IoT devices16:48
Croephamakes sense16:49
Croephajust saying its not a kernel .config problem16:49
ogra_we put ahci, usbstrorage and a few MMC controller drivers into the pc-kernel snap initrd currently16:49
ogra_all filesystems are builtin16:50
Croephaso i just add that to "kernel-initrd-modules" section and that should be it right?16:50
ogra_yep16:50
Croephasweet16:50
CroephaThanks for the help :)16:50
mupPR snapd#2220 closed: overlord/snapstate: fix missing argument to Noticef <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2220>16:52
jdstrandwell, I reflashed the dragonboard with mvo's images and it's the same thing. if there is network traffic, it starts disassociating and reassociating17:15
ogra_strange17:26
ogra_jdstrand, are you using the default power supply ??17:27
ogra_might be a low current issue17:27
jdstrandogra_: I was sent the board with a power supply in a box. I guess it is default for me17:42
ogra_yeah, same here17:42
ogra_do you have any 5GHz in your house (only 2.x here)17:42
ogra_perhaps that makes some difference17:43
jdstrandI do17:44
jdstrandand it is connecting to it. is there a way in console-conf to prefer 2.4?17:44
jdstrand5G and 2.4G use the same ssid17:44
ogra_i dont think there is a way, no17:46
ogra_you'd hack it yourself into the wpa-supplicant config i fear17:46
jdstrandogra_: hrmm... of course, I don't have a reliable console to do that. maybe if I can set a password then I can hook up a keyboard and login17:49
ogra_yep17:49
jdstrandthat's a big if at this point :)17:49
dobeywrap the antenna in a physical filter that blocks 5GHz but allows 2.4GHz?17:50
kyrofajdstrand, the wifi driver in my dell M3800 periodically disconnected from 2.4 and connected to 5 (like every 10 minutes) when they had the same SSID17:50
kyrofaI had to change it17:51
dobeywhy does everything have crappy wifi chips17:51
kyrofadobey, I think that every time I install ubuntu on something and cross my fingers17:52
jdstrandmost of my devices are pretty happy with it. I guess I'll need to consider that17:52
kyrofajdstrand, took me way too long to figure out that was the cause17:53
dobeykyrofa: i just only buy laptops with intel wifi and only buy phones with qualcomm. works pretty well then :)17:53
kyrofajdstrand, and historically, the dragonboard wifi driver has been terrifyingly bad17:53
dobeythough i guess dragonboard is qualcomm17:53
jdstranddobey: interestingly, my wife's wifi has iwlwifi (intel) and I had to disable 5g on it and this is a qualcomm :P17:54
kyrofaHahaha17:54
jdstrand(this meaning the dragonboard)17:54
dobeythe dragonboard is weird though i guess becuase unlike the phones we don't have the android device tree binary blobs17:54
jdstrandthis is slowly killing me. now it won't associate at all17:55
dobeyso we're stuck with the reverse engineered open source drivers17:55
stgrabersergiusens: hey there, would I be right in assuming that stage-packages will be a bit unhappy if a package isn't available (architecture specific)?17:57
kyrofastgraber, yeah it'll fail17:58
dobeyheh17:59
stgraberwell, that sucks :)17:59
* stgraber goes to file another snapcraft bug17:59
dobeyi guess someone could build a 3.10 kernel snap for dragonboard using the lollipop device tree for it18:00
dobeybet wifi might work better then18:00
bzoltansergiusens: I am working on a snapcraft plugin. How can I know the main project's name  and how can I copy out stuff from the parts to the same place where the result .snap is placed?18:07
pstolowskikyrofa, ping18:19
kyrofaHey pstolowski!18:19
kyrofaWhat's up?18:19
jdstrandok, I give up. it was connecting to 2.4G, I tried forcing to 5G, it just doesn't work18:39
jdstrandI tried using a usb wifi, nope. I tried unloading the other module, segfault18:40
* jdstrand goes to be productive somewhere18:40
mupPR snapcraft#876 opened: Allow for architecture-specific packages <Created by stgraber> <https://github.com/snapcore/snapcraft/pull/876>18:52
pittielopio: hmm, "running", I don't see it queued or running?19:02
pittielopio: what's the PPA you run these tests with? I'd like to check swift if there's any result, i. e. whether it's the request or the status_url end19:06
dobeyi presume that attempting to do "snap login" with an e-mail address that i've already logged in with, returning an error about username/password being wrong, is a bug?19:24
kyrofadobey, what... that's not expected behavior?19:29
dobeykyrofa: ah i miss your sarcasm ;)19:33
kyrofadobey, nice to see you around, too ;) . Yeah, log a bug19:33
kyrofaNow I wonder how snapcraft handles that19:34
dobeyyeah, i'm trying to decide how to deal with all these weird little conditions, to make the u1 online-accounts plug-in log in via snapd, and not cause the world to implode19:35
kyrofadobey, are you using the REST API for that, then?19:38
dobeykyrofa: yeah, to snapd19:38
kyrofadobey, and that's saying wrong username/password if you're already logged in?19:39
dobeykyrofa: presumably it is. i haven't got that code implemented yet. i was just trying with snap cli to see what happens19:39
dobeykyrofa: or maybe it's just bloody confusing and i typed the wrong password19:41
kyrofadobey, hmm, looking at the "error kinds" in rest.md, there doesn't seem to be one for invalid login info19:41
kyrofadobey, there's invalid-auth-data, but the example it gives is an invalid email address19:41
dobeykyrofa: because when you type "sudo ..." and the only line is "Password:" it's not entirely clear which password one needs to type19:42
dobeyso i can log in a second time just fine, it seems19:42
dobeybut the cli is a bit unclear19:42
kyrofadobey, whoops, just sent your sudo password to the store eh?19:43
dobeykyrofa: well, the password for the user in the vm :)19:43
kyrofadobey, heh19:44
dobeyhttps://bugs.launchpad.net/snappy/+bug/163729919:46
mupBug #1637299: sudo snap login "Password:" prompt unclear what password to type <Snappy:New> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1637299>19:46
mupBug #1637299 opened: sudo snap login "Password:" prompt unclear what password to type <Snappy:New> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1637299>19:47
pittisergiusens, elopio: still here for about an hour or so, if you want to look at the snapcraft tests20:03
Pharaoh_Atemelopio: I've worked around the issue with libarchive20:10
Pharaoh_Atemthe integration test passes now20:10
Croephais there a known issue where snapcraft'ing a kernel can lead to a "File exists" error when building the initrd?20:44
pittielopio: oh look, a snapcraft upstream request in http://autopkgtest.ubuntu.com/running#queue-upstream-xenial-amd6421:29
pitti(doing maintenance, will run soon)21:29
=== matteo` is now known as matteo
mupBug #1637324 opened: snapd does not provide a REST API to log out <Snappy:New> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1637324>21:42
mupBug #1637325 opened: snapd provides no way to register a new account <Snappy:New> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1637325>21:42
sethjdoes snappy put $SNAP in XDG_CONFIG_DIRS?22:01
kyrofasethj, I don't believe so. Nothing defined that config files should go there22:05
mupBug #1637328 opened: Ubuntu Core 16 includes libnss-resolve from universe <Snappy:New> <https://launchpad.net/bugs/1637328>22:06
kyrofae.g. they might be in SNAP_DATA22:06
sethjkyrofa, sorry, just realized I meant XDG_DATA_DIRS, not CONFIG_DIRs.22:06
sethjI'm trying to figure out how to make my app work with snaps without too much source change, since it's looking in /usr/share/app-name for stuff.22:07
kyrofasethj, the answer still applies. Nothing says you have data in $SNAP/, or $SNAP/data, or $SNAP/usr/share/app-name22:08
josharensonHow can I increase the size of my snappy core image? I think I made the /writable device larger, but "/" is still out of space22:08
kyrofasethj, but if you know where the data is, you can define it, no?22:08
sethjkyrofa, I'm not sure I understand what you are saying. The app puts files in /usr/share/app-name. snappy puts them in /snap/app-name/#######/usr/share/app-name, but that doesn't work because the app itself looks in /usr/share/app-name. I thought if I changed the app to look in XDG_DATA_DIRS it might work, but it has been a long time since I thought about that and I lost my source.22:11
kyrofasethj, ah, I see what you're saying. I thought you had an app that looked in XDG_DATA_DIRS and was confused why it wasn't working as a snap22:12
kyrofasethj, there's no FHS enforced or even suggested when it comes to snaps. You can format them however you wish. The only requirement is that it's self-contained (i.e. everything is inside $SNAP somewhere)22:15
kyrofasethj, you have an application that sounds like it's hard-coded to assume the presence of a FHS22:15
kyrofasethj, if you're considering a patch, might I suggest simply supporting a cli flag (--data-dir or similar) to redirect it?22:15
kyrofajosharenson, not only do you have to make the partition larger, but you have to resize the filesystem as well22:18
kyrofajosharenson, e.g. resize2fs22:19
sethjkyrofa, I may be ignorant, but the app is a collection of shell/python scripts. How else would I find config files/scripts it placed other than hard coded the location? I put them there, after all..22:19
kyrofasethj, but the hard-coded path is in /usr/share, which isn't contained in the snap22:21
sethjright22:21
sethjbut that's snappy's problem, not the apps.22:21
sethjI'm not the one doing semi-sandboxing ;) I didn't explicitely put the files in $SNAP/usr/share. I put them in /usr/share. snappy decided to put them under $SNAP (which makes sense) but how good is a packaging format if I have to edit the code so it works? Neither debian nor rpm packaging makes it that hard.22:22
dobeywell it's the app developer making the assumptiong that XDG_DATA_DIRS is available/used everywhere22:23
josharensonkyrofa: ah thanks... that grew the writable partition, but installing snaps still results in "no space left on device"22:23
sethjdobey, you'll note I haven't even used XDG_DATA_DIRS yet. But hard coding $SNAP into my paths is just as bad, no, worse, than hard coding /usr/share.22:23
dobeysethj: snap is not simply a "packaging format" in the traditional sence of the word22:23
dobeysense22:24
dobeysethj: i'm not saying that's what you should, or implying that you are using XDG_DATA_DIRS directly. glib for example has no idea about containment, and is the owner of the implementation that a great many things use when it comes to finding files that those things have installed to the system22:25
dobeyso you would need a patched glib that handles the $SNAP for you22:25
sethjthat's insane.22:26
dobeyno, it's different22:27
sethjthey aren't mutually exclusive.22:28
dobeywell, not that different really. distributors have had to take upstream source code and patch it to fit into a productized system for decades22:28
sethj;)22:28
sethjdobey, yes and I have my fair share of experience with that, but not quite like this.22:28
sethjI hate to be "that guy", but I can't be the only person having this problem and the lack of solutions makes me wonder what the goal is here.22:29
pittiyou aren't22:30
pittiI've seen crazy patches like https://code.launchpad.net/~morphis/netplan/+git/netplan/+merge/306607 :)22:30
dobeywell i don't quite understand what your problem is. you're saying that the way you package things for a different system doesn't work for this system. this is no different than if you were to package your thing for native windows. the way files are placed and discovered by the installer and application there works completely differently from debs and rpms too22:31
sethjdobey, no, I'm saying snappy puts my files in places I didn't put them, but provides me no method of finding them unless I hard code my app to figure out where snappy puts things (which is NOT where I put them)22:32
dobeyyes, some applications and libraries may be more difficult to fit into the snap world than others22:32
dobeybut that doesn't make it insane22:32
dobeysethj: it puts them exactly where you put them. that's the problem22:32
sethjyou guys express shock at my hard coded paths but then tell me the only way to get my files is to hard code the snappy path...22:33
dobeyi didn't say anything about hard coded paths22:33
dobeythere are many solutions to this problem22:33
kyrofasethj, I never suggested hard-coding anything. I suggested making the app more flexible via cli-flags (find my data there, find my configs there, etc.)22:33
dobeyyou could fix your application to resolve file paths relatively22:33
kyrofasethj, darktable does it this way, apache does it this way, etc.22:34
dobeyyou could compile your data into the application as resources22:34
dobeygetenv("SNAP") is also not at all "hard coding a path"22:34
sethjyes it is. since snappy is the only thing that sets snap. Hence my desire to use XDG_DATA_DIRS (which I still think would work) because it already works with Debian/Ubuntu and should work with Fedora and Arch too.22:35
kyrofasethj, indeed, that would work, but you'll need to set it22:36
sethjkyrofa, fair enough. I apologize if I come across upset.22:36
dobeywell snapdir = getenv("SNAP"); setenv("XDG_DATA_DIRS", sanpdir)22:36
dobeywhatever22:36
kyrofasethj, you're having understandable frustrations. One of the biggest complications when snapping something can be the requirement that it should be relocatable. This is historically not something to which projects are accustomed22:37
dobeyyou need to fix your app to be relocatable (work as installed in a different root path) and to work in a confined world22:38
sethjagain, I don't mean to be "that guy" (I've dealt with him enough), but I really don't see how this is supposed to catch on. I've already had to hack font and gtk support, now this...22:38
sethjdobey, but there is no way to do that without hard coding your list of root paths. at least not in snappy's case if it doesn't set any env variables to help (unless it does and I missed something somewhere?)22:39
dobeyyes there is22:39
dobeyit sets $SNAP22:39
dobeythe system doesn't know where the files are inside your snap that you need to find, so it can't possibly set XDG variables to something inside your snap for you22:40
sethjwhich is practically the same thing as hard coding the root path as only snappy will ever set $SNAP. Oh well.22:40
dobeyit can only tell you the root to your snap, and then you have to find things under it yourself22:41
sethjdobey, right. shouldn't it add $SNAP/usr/share to XDG_DATA_DIRS?22:41
dobeywell, nothing other than snappy is going to install or run your thing that's a snap22:41
dobeyno22:41
kyrofasethj, no, $SNAP/usr/share isn't a standard path22:42
dobeymaybe snapcraft could have some convenience things that does something like that, to make it easier to migrate things22:42
dobeybut once your app is installed in the system, all that should be inside your snap, in a wrapper script or something22:43
kyrofadobey, indeed, I suspect some of the desktop-helper parts do that22:43
dobeyif you want to migrate something and aren't using snapcraft, it's going to be a fair bit more work to do, but if done right, will be closer to what an ideal snapped application should be22:44
sethjis the ideal snapped application layed out somewhere? I am using snapcraft, but tbh I have no way of knowing how well I am using it. The documentation isn't great. Or at least it wasn't 6 months ago when I started this.22:45
dobeyfor gui applications on ubuntu, the "ideal" snap of an app i suspect won't be terribly far off from what clicks are on the phone today22:46
sethjif only I knew anything about clicks.22:48
dobeythere are certainly things about how gtk+ and traditional applications work, that makes confining such applications quite difficult22:49
kyrofasethj, snapcraft has a concept of remote parts (i.e. parts defined by others). There are several out there for gtk- and qt-based apps. Have you seen those? Or the examples in the playpen?22:49
sethjkyrofa, I think I've seen some. I started this a few days before the playpen became a thing though. I should look at it again.22:50
dobeyanyway, time for me to go. good luck22:50
kyrofasethj, the gtk parts define a slew of environment variables that might interest you22:50
kyrofasethj, an example: https://github.com/ubuntu/snappy-playpen/blob/master/hexchat/snapcraft.yaml22:50
naccsethj: i would recommend refreshing the documentation, as it's quite a bit more updated (not perfect by any means) than it was 6 months ago22:50
kyrofaNote that the app is launched with a wrapper provided by the desktop-gtk2 part called `desktop-launch`22:51
sethjalright, I'll give it a shot.22:51
kyrofaAlright, EOD here as well. Have a great day everyone!22:53

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