/srv/irclogs.ubuntu.com/2016/09/30/#snappy.txt

mupPR snapd#2037 opened: asserts,interfaces/builtin,overlord/assertstate: introduce base-declaration <Created by pedronis> <https://github.com/snapcore/snapd/pull/2037>00:07
mupPR snapd#2038 opened: many: add email to UserState <Created by matiasb> <https://github.com/snapcore/snapd/pull/2038>01:02
mwhudsonuh01:07
mupPR snapcraft#843 opened: Add `snapcraft history` and `snapcraft status` <Created by maxiberta> <https://github.com/snapcore/snapcraft/pull/843>04:10
=== hikiko_ is now known as hikiko
mupPR snapd#2039 opened: overlord/configstate: support nested configuration <Created by niemeyer> <https://github.com/snapcore/snapd/pull/2039>04:57
mupPR snapd#2038 closed: many: add email to UserState <Created by matiasb> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2038>05:40
=== mup_ is now known as mup
=== mup_ is now known as mup
=== mup_ is now known as mup
mupPR snapd#2040 opened: daemon: add support for `snap create-user --known` <Created by mvo5> <https://github.com/snapcore/snapd/pull/2040>07:07
dholbachgood morning07:07
=== longsleep_ is now known as longsleep
mupPR snapd#2041 opened: daemon: add `snap create-user --force-managed` support <Created by mvo5> <https://github.com/snapcore/snapd/pull/2041>08:00
mupPR snapd#2042 opened: daemon: add users to the sysInfo data <Created by mvo5> <https://github.com/snapcore/snapd/pull/2042>08:10
popeyAs a user of a snap, is there a planned way to get in contact with a developer, or leave a review for a broken snap?08:48
popeye.g. htop is broken on the pi, but works on amd6408:48
=== ycheng is now known as ycheng-afk
mupPR snapd#2036 closed: daemon, store: switch to new store APIs in snapd <Created by pete-woods> <Merged by pete-woods> <https://github.com/snapcore/snapd/pull/2036>10:26
ogra_popey, htop works here, whats your issue ?10:29
ogra_(pi3 that is)10:29
mupPR snapd#2043 opened: store: change purchase to order and store clean up first pass <Created by pete-woods> <https://github.com/snapcore/snapd/pull/2043>10:29
popeyogra_: 2016/09/29 14:49:55.859377 cmd_run.go:179: WARNING: cannot create user data directory: cannot create "/home/popey/snap/htop/41": mkdir /home/popey/snap/htop: permission denied10:43
popeyfailed to create user data directory. errmsg: Permission denied10:43
popeywhen i try and run it10:43
ogra_popey, thats not a htop issue .... i assume you have classic installed and ran sudo classic ?10:45
popeyyes10:45
oparozHello, where do we report issues with the snap store?10:45
ogra_and you installed that as your first snap ?10:45
popeypossibly, yes10:46
ogra_well, then the sudo caused /home/popey/snap to be created root owned10:46
ogra_jusz chrown -R popey /home/popey/snap10:46
oparozIs "Developer registration portal" correct?10:46
ogra_there is a bug open somewhere about that10:46
popeyok, thanks10:46
popey\o/ fixed10:47
ogra_oparoz, https://bugs.launchpad.net/software-center-agent/+filebug10:49
oparozThanks ogra_10:50
ogra_popey, bug 1620592, seems zyga is on it10:50
mupBug #1620592: if your first installed snap contains a binary needing sudo ~/snap is created with root.root ownership <Snappy Launcher:Triaged> <Snappy:New> <https://launchpad.net/bugs/1620592>10:50
mupPR snapd#2044 opened: snap: auto-import assertions from block devices <Created by mvo5> <https://github.com/snapcore/snapd/pull/2044>10:53
mvopitti: hi, quick question - I have a udev rule in https://github.com/snapcore/snapd/pull/2044/files#diff-ae4a6795688426c8798d190872d58f89R1 that ideally triggers when a new block device is mounted. this works fine, however I noticed there is a small race, i.e. I get the udev event when the device is not fully mount (not available in /proc/self/mountinfo yet). a small wait fixes it but that is of course not ideal, do you have a suggestion how to p10:54
mvoroperly fix this?10:54
mupPR snapd#2044: snap: auto-import assertions from block devices <Created by mvo5> <https://github.com/snapcore/snapd/pull/2044>10:54
=== hikiko is now known as hikiko|ln
mupPR snapd#2044 closed: snap: auto-import assertions from block devices <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/2044>11:12
* cjwatson belatedly uploads a bzr SRU for https://bugs.launchpad.net/bzr/+bug/1606203 (though it'll need SRU team approval)11:24
mupBug #1606203: Failed to build of snappy package on Launchpad: Invalid header value 'Basic U05BUEJVSUxELTE4NzAtMTQ2OTQyNjE0ODpjOTJkYzVjOWQ0OTg0ZGE5OWZlNGY1ZjI3ODRhMWJk\nOA==' <launchpad> <snappy> <Bazaar:Fix Committed by vila> <Snapcraft:Invalid by sergiusens> <bzr (Ubuntu):Fix Released> <bzr11:24
mup(Ubuntu Xenial):In Progress by cjwatson> <https://launchpad.net/bugs/1606203>11:24
ogra_cjwatson, whee !11:30
pittimvo: err, udev rules do NOT trigger on mounts, at least not in general; they trigger when a device appears or goes away, or gets reformatted11:37
pittimvo: how do you mount the device?11:38
pittimvo: sorry, on a conference, 'orribly lagging on IRC11:39
pittimvo: if "snap auto-import" does the mouting by itself, don't you want to hand it the device name as an argument?11:41
mvopitti: yeah, I think that is actually what I want11:41
pittimvo: but if it doesn't, what *does* mount the device?11:41
pittimvo: do you have some kind of udisks2 and automounter?11:42
mvopitti: it seems udev+systemd makes this a bit tricky, maybe with%I and the @ thing of systemd?11:42
mvopitti: I think snapd may need to do the mounting itself (ro mounting)11:42
mvopitti: to a temp location and all that, we do not have udisks2 in the general case :/11:42
pittimvo: yes, you can start snapd.autoimport@%k.service from the udev rule11:43
pittimvo: so how does this work right now? (aside from the sleep)11:44
mvopitti: it works only on the desktop currently, next step is to add mounting if no automounter is available11:44
pittiah11:45
pittimvo: open a new unshared mount ns and mount it there, to not confuse the host system11:46
mvopitti: I guess that is also going to be tricky because I don't want to interfere with the existing automounters11:46
ogra_we have autofs ... couldnt we use systemds automounter ?11:46
mvopitti: yeah, that was my thinking11:46
pittiogra_: you can, if you pin down the mount dir11:46
pittibut then you can't easily have more than one at a time11:46
pitti(not sure if that's a thing)11:46
pittisorry, need to go again, bbl11:48
mvopitti: thank you! I will do the %k and %I stuff and do the mounting next, thanks for your help11:48
=== hikiko|ln is now known as hikiko
mupPR snapd#2043 closed: store: change purchase to order and store clean up first pass <Created by pete-woods> <Merged by pete-woods> <https://github.com/snapcore/snapd/pull/2043>12:09
mupPR snapd#2045 opened: many: remove all traces of the /v2/buy/methods endpoint <Created by pete-woods> <https://github.com/snapcore/snapd/pull/2045>12:22
mupPR snapd#2046 opened: cmd, disconnect: abbreviated forms of disconnect <Created by stolowski> <https://github.com/snapcore/snapd/pull/2046>12:58
oparozIs it possible to namespace snaps at install time? In order to have different versions of the same snap installed13:03
Mirvis there a way to provide configflags with spaces to the autotools plugin without it breaking?13:03
oparozsnap install mysnap --prefix=featureX13:03
Mirvif I use different lines, that works but not when same thing needs to be repeated multiple times. on the same line the space character causes error for the configure script13:04
Mirv(multiple times -> non-unique elements error)13:05
mupPR snapd#2044 opened: snap: auto-import assertions from block devices <Created by mvo5> <https://github.com/snapcore/snapd/pull/2044>13:16
popeywhen packaging an (python) app which tries to write to /etc/init.d/appname, and obviously fails during snappy, what's best practice here? Patch setup.py and install into some $SNAP.. dir and patch the app not to look in global /etc?13:18
mvoogra_: so - we think about udisks2 as part of ubuntu-core, what do you think? looks like its just 300kb13:19
ogra_mvo, not thrilled about adding all that stuff lately .. :((13:19
ogra_mvo, why cant you use systemd's automount ?13:20
mvopitti: so while I was working on this auto-impoter I noticed that its tricky to not get in the way of existing auto-mounting, it feels like replying on udisks2 is more reliable, do you think that is an reaonable idea? add it to ubuntu-core13:20
mvoogra_: because the names are not predicatable - or am I overlooking a way ?13:20
mvoogra_: i.e. if there is a way to say "mount any block device to /media/" from systemd that would be great13:21
ogra_https://www.freedesktop.org/software/systemd/man/systemd.automount.html13:21
ogra_Where=13:21
ogra_    Takes an absolute path of a directory of the automount point. If the automount point does not exist at time that the automount point is installed, it is created. This string must be reflected in the unit filename. (See above.) This option is mandatory.13:21
ogra_so you make a udev rule that creates the unit on plugin ... with a "Where=/media/$device-label" or some such13:22
ogra_and a udev rule that removes the dir on unplug13:22
ogra_super simple13:23
abeatojdstrand, hi, is it possible to define an apparmor rule that allows access to path "/"? it looks like http://paste.ubuntu.com/23255279/ does not work, for instnace13:23
mvoogra_: that sounds interessting, I'm slightly concerned about when teams like morphis who use udisks2 as a snap that it does not interfere here13:24
ogra_mvo, my prob with udisks is that along with the diskspace you also add another constantly running daemon13:24
ogra_we slowly start to grow out of embedded (though the keyboard stuff was worse here than udisks would be ...)13:25
ogra_i'm not sure if there would be any interference between automounter and udisks ... thats a pitti question ... worst case we'd need some automatism that turns off the automounter stuff dynamically13:26
ogra_(we could abuse interfaces here ... if a certain interface is used, turn off the global mounting support and hand it over to the in-snap udisks)13:29
ogra_(or simply tell morphis to use the system level mounting :P )13:30
jdstrandabeato: yes, we do that in several places. can you show me the denial?13:35
abeatojdstrand, Error org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.95" (uid=0 pid=5079 comm="/snap/ofono/x1/usr/bin/dbus-send --system --type=m") interface="org.ofono.Manager" member="GetModems" error name="(unset)" requested_reply="0" destination="org.ofono" (uid=0 pid=5061 comm="/snap/ofono/x1/sbin/ofonod -d ")13:36
jdstrandabeato: the apparmor denial from syslog13:36
abeatojdstrand, [22568.513731] audit: type=1107 audit(1475242602.796:90): pid=1198 uid=100 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/" interface="org.ofono.Manager" member="GetModems" name=":1.103" mask="receive" pid=5061 label="snap.ofono.ofono" peer_pid=5141 peer_label="snap.ofono.dbus-send"13:36
abeato                exe="/usr/bin/dbus-daemon" sauid=100 hostname=? addr=? terminal=?'13:36
jdstrandabeato: is the interface connected?13:38
abeatojdstrand, yes13:38
jdstrandcan you paste /var/lib/snapd/apparmor/profiles/snap.ofono.ofono ?13:39
abeatojdstrand, things go through with path different from "/" , like /sss13:39
abeatosure13:39
mvoogra_: I poke at it some more, maybe I find a reliable way13:40
abeatojdstrand, http://paste.ubuntu.com/23255346/13:40
ogra_well, i think the systemd automounter should be the way to go13:40
* ogra_ wonders if systemd doesnt also have a keymap selection for consoles :P13:40
jdstrandabeato: can you 'sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.ofono.ofono' and try again?13:43
abeatojdstrand, same error, must be in another profile13:45
abeatojdstrand, is says exe="/usr/bin/dbus-daemon" ?13:46
jdstrandabeato: what do you mean 'must be in another profile'?13:46
jdstrandthat doesn't matter13:46
abeatoanother apparmor file13:46
jdstrandlabel="snap.ofono.ofono"13:46
jdstrandthat is the profile we need to modify ^13:46
jdstrandabeato: can you paste the new denial?13:46
abeatojdstrand, [23082.209137] audit: type=1107 audit(1475243116.493:101): pid=1198 uid=100 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/" interface="org.ofono.Manager" member="GetModems" mask="send" name="org.ofono" pid=5614 label="snap.ofono.dbus-send" peer_pid=5566 peer_label="snap.ofono.ofono"13:47
abeato                exe="/usr/bin/dbus-daemon" sauid=100 hostname=? addr=? terminal=?'13:47
jdstrandthat is a different denial :)13:48
jdstrand label="snap.ofono.dbus-send"13:48
jdstrandso now update /var/lib/snapd/apparmor/profiles/snap.ofono.dbus-send to have:13:48
jdstranddbus (send) bus=system path=/ interface=org.ofono.* peer=(name=org.ofono, label=snap.ofono.ofono),13:49
jdstrandabeato: ^13:49
jdstrandabeato: then run 'sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.ofono.dbus-send13:50
abeatojdstrand, aha, let me modify the connected interface13:50
jdstrandabeato: it is important to remember that if you change the apparmor profile on disk, to reload it with apparmor_parser -r. it is also important to remember that we mediate both sides of the connection and to keep the label and the peer_labels straight13:50
jdstrandabeato: it easy to miss something unless you're used to looking at denials13:51
jdstrandit's*13:51
abeatojdstrand, that did the trick, thanks a lot13:52
abeatojdstrand, yep, thanks for the hints :)13:53
jdstrandabeato: fyi, the two rules in http://paste.ubuntu.com/23255346/ could be combined into one: dbus (receive, send) bus=system path=/{,**} interface=org.ofono.* peer=(label=###PLUG_SECURITY_TAGS###),13:54
jdstrandabeato: fyi, the two rules in http://paste.ubuntu.com/23255346/ could be combined into one: dbus (receive, send) bus=system path=/{,**} interface=org.ofono.** peer=(label=###PLUG_SECURITY_TAGS###),13:55
jdstrandsorry for the double paste-- the second rule is what I think you would want13:55
abeatojdstrand, sure, will do that13:55
jdstrandabeato: the path=/{,**} in an alternation. the interface=org.ofono.** is for org.ofono.foo.bar. if you only have org.ofono.* then org.ofono.foo matches, but org.ofono.foo.bar doesn't13:56
jdstrandabeato: perhaps the ofono api doesn't need org.ofono.**, but in case it does, there you go13:57
abeatodon't think it needs **, but yeah13:58
sil2100Hey! I just got back to debugging my simple python3 snap again14:10
sil2100The problem I have is that the script does not work because I get "exec: image-info: not found" (image-info is the script name)14:10
sil2100So I went into snap run --shell for the snap and started debugging14:11
mupPR snapcraft#813 closed: "snapcraft validate" and "snapcraft gated" commands <Created by ralsina> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/813>14:11
sil2100And the strange thing my experiments revealed: the command-image-info.wrappercommand-image-info.wrapper only works when I change the interpreter from sh to bash (uh?)14:12
ogra_are you using any bashisms ?14:12
sil2100No, this is just a pure python3 script14:12
sil2100The part that's failing is the wrapper which is autogenerated I guess?14:13
ogra_yes, it is14:13
sil2100With it having the default /bin/sh, the PATH doesn't seem to be respected by the final 'exec' call14:13
sil2100No idea why14:13
ogra_(and it works for all other snaps without changing to bash)14:13
sil2100Yeah, it completely makes no sense to me...14:13
sil2100No one had any issues like that?14:14
ogra_i havent heard about any14:14
ogra_though i havent seen anyone call python3 directly from the apps: entry in snapcraft.yaml either14:16
ogra_which IIRC you are doing14:17
sil2100I'm not calling it directly per se, I just install the main part in parts: using the python3 plugin, add the image-info app with the image-info command14:19
sil2100Since my setup.py installs the python3 scripts to the right bin place14:20
sil2100So in theory it should all just work: scripts are in the right /usr/bin in the snap, the PATH is set to the correct values14:20
ogra_show me your snapcraft.yaml again14:20
sil2100But when trying to run the snap, I get exec: image-info: not found14:20
sil2100http://paste.ubuntu.com/23255543/14:21
sil2100Really simple yaml right now14:21
ogra_and the image-info script ?14:21
ogra_(the shebang mainly)14:21
sil2100Well, the image-info script is "#!/usr/bin/python3" and then the rest of the script14:22
ogra_right, thats wrong14:22
sil2100What is failing is the command-image-info.wrapper14:22
sil2100Wrong?14:22
sil2100I thought it should be the command to call?14:22
ogra_make it "#! /usr/bin/env python3"14:22
sil2100Oh14:22
sil2100hm14:23
ogra_you are forcefully calling the python3 from ubuntu-core ... not the one you ship14:23
sil2100Let me try that14:23
mupPR snapd#2047 opened: snap: auto mount block devices and import assertions <Created by mvo5> <https://github.com/snapcore/snapd/pull/2047>14:23
ogra_the one you ship is in $SNAP/usr/bin/python3 ... which your env points to14:23
ogra_(through the PATH)14:23
ogra_though i thought the python plugin actually re-writes the shebang lines at package build14:24
sil2100ogra_: yeah, it does - but it re-wrote it to something strange14:25
sil2100When I examine the /snap/landing-team-tools/x1/usr/bin/image-info script, I see the interpreter being set to "<path to my workdir>/parts/landing-team-tools/install/usr/bin/python3"14:25
sil2100Doesn't look like it's correct14:26
ogra_yeah14:26
ogra_even after you changed the line and re-built ?14:26
sil2100No, didn't try that yet14:26
sil2100I'm wondering if it'll help though, as currently the exec line in the wrapper is failing14:26
sil2100It's not even reaching my image-info script14:27
sil2100Like, at all14:27
ogra_"exec: image-info: not found" reads to me like it tries to sxec image-info ...14:27
ogra_but cant exec it because something inside (the interpreter) is not found14:28
ogra_else i'd expect "exec: not found"14:28
verterokhi, having some issues while trying to snap an app that tries to write to SNAP_COMMON. the app is unable to write there, getting: permission denied.14:31
* ogra_ hugs mvo for https://github.com/snapcore/snapd/pull/204714:32
mupPR snapd#2047: snap: auto mount block devices and import assertions <Created by mvo5> <https://github.com/snapcore/snapd/pull/2047>14:32
ogra_beautiful :)14:32
mvoogra_: yeah, all without new stuff14:33
ogra_yep :D14:33
* ogra_ loves it14:34
mvoogra_: I'm very happy, probably need a look from pitti but I think its good14:34
ogra_yeah, looks totally fine to me14:34
mvomorphis: all good, looks like we don't need udisks afterall14:34
mvomorphis: sorry for the noise14:34
ogra_verterok, looks like either Bug 1611063 or Bug 161014914:35
mupBug #1611063: can't mkdir SNAP_USER_COMMON directory <snapd-interface> <Snappy:Triaged> <snapd (Ubuntu):Triaged> <https://launchpad.net/bugs/1611063>14:35
mupBug #1610149: writing to the "common" directory needs to have sudo right <Snappy:Invalid> <https://launchpad.net/bugs/1610149>14:35
ogra_verterok, for a user app/executable you need to use SNAP_USER_COMMON  ... SNAP_COMMON would be for a daemon or some sudo executed app14:36
verterokogra_: ok. I was trying to store a file accesible from this app for any user running it, not just for this user14:38
verterokogra_: but I think I can workaround this by having a file per user14:38
ogra_well, or you could create some daemon script that handles the file or so14:39
sil2100ogra_: hah, ok, I upgraded snapd, ubuntu-core-launcher and snapcraft and now things work14:39
ogra_hah14:39
sil2100Strangeness14:39
sil2100ogra_: thanks for the help nevertheless! :)14:40
ogra_heh14:40
verterokogra_: thanks14:41
ogra_:)14:41
CroephaPRO TIP: if you want ubuntu-image to use your kernel snap locally, you have to specify it with --extra-snaps in addition to setting it in the model assertion14:55
ogra_yep ... that was just discussed on the meiling list recently :)14:55
kyrofaI was just about to say... that sounds familiar14:56
ogra_*mailing14:56
Croephahuh14:56
CroephaI had to dig into the snapd source to figure it out14:56
ogra_niemeyer, i got poked about hibernate on snappy images recently ... that made me think ... we kind of didnt define "swap" as a partition type for gadget.yaml, i think we should add that as optional type14:57
kyrofaCroepha, no! Don't look directly at it!14:57
Croephamy snapd is riddled with fmt.Printfs now14:57
kyrofaHahaha14:57
ogra_niemeyer, we'll indeed never used it on SD images ... but i can immagine there are plenty use-cases where people want/need it14:58
ogra_*use it14:58
Croephait took me a solid 20 minutes to figure out that ubuntu-image doesn't actually do anything, and it just passes most work off to snapd14:58
CroephaI14:58
morphis_pitti: ping15:02
morphis_cyphermox: maybe you can help too15:04
morphis_pitti, cyphermox: is it correct that netplan does not restart networkd/network-manager when the last netplan configuration file was removed and this causes the current configuration not to be disabled and still being active until the next device reboot?15:06
oparozIs the apparmor issue with ld.so.preload is only created by Launchpad?15:07
kyrofaoparoz, ask jdstrand15:16
ogra_lool, is there any reason that snapweb is constanly running instead of using socket activation ? it eats from 10MB reserved memory (pi2) to 30MB (dragonboard) just for idling15:17
kyrofaogra_, does snapd support socket activation?15:17
ogra_i guess we dont actually need it running all the time, do we ?15:17
ogra_kyrofa, well, systemd does ... should only be a matter of writing the unit differently15:18
ogra_having suchh processes run all the time on an IoT device seems very wasteful15:18
kyrofaogra_, sure, I'm just saying that I think that might be the reason :P15:18
ogra_ah15:18
ogra_k15:18
* ogra_ has a hard time resisting to suggest to use a three char suffix at https://github.com/snapcore/snapd/pull/2047 15:21
mupPR snapd#2047: snap: auto mount block devices and import assertions <Created by mvo5> <https://github.com/snapcore/snapd/pull/2047>15:21
jdstrandoparoz: I don't understand the question. if you are talking about https://bugs.launchpad.net/snappy/+bug/1627813, I need to prepare an update for that15:22
mupBug #1627813: AppArmor denies access to /etc/ld.so.preload on armhf <Snappy:Triaged by jdstrand> <https://launchpad.net/bugs/1627813>15:22
jdstrands/update/PR/15:22
oparozThanks jdstrand. It seems to only happen with Snaps built from Launchpad, but maybe I'm wrong and that bug appeared in a snapd update pushed this week15:29
mupPR snapd#2048 opened: interfaces: allow read of /etc/ld.so.preload by default for armhf on series 16 <Created by jdstrand> <https://github.com/snapcore/snapd/pull/2048>15:40
jdstrandoparoz: fyi ^15:40
oparozThanks jdstrand can this be patched live?15:42
jdstrandoparoz: yes. add '/etc/ld.so.preload r,' to /var/lib/snapd/apparmor/profiles/snap.your.app, then run 'sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.your.app15:43
jdstrandoparoz: you'll have to do that after refresh, install, install/remove, etc15:43
oparozThanks jdstrand that will at least tell me if the other error messages I get related to Go6 are related or not :)15:44
oparozjdstrand, tht didn't work: AppArmor parser error for /var/lib/snapd/apparmor/profiles/snap.spreedme in /var/lib/snapd/apparmor/profiles/snap.spreedme at line 1: syntax error, unexpected TOK_MODE, expecting TOK_OPEN15:48
jdstrandoparoz: can you paste the file in paste.ubuntu.com?15:48
oparozjdstrand, the file contains a single line: /etc/ld.so.preload r,15:49
oparozjdstrand, my bad... I overwritten it15:50
jdstrandoparoz: did you delete everything out of that file or create a new one?15:50
jdstrandoparoz: you can uninstall the snap then install it (back up your data if it is important)15:50
oparozjdstrand, looking at the profiles, I got it wrong. It needs to be installed for every single service and I had used the snap name15:53
jdstrandoparoz: yes, sorry if I wasn't clear. that is what I meant with snap.your.app15:54
=== victorp_ is now known as victorp
oparozjdstrand, that doesn't change anything unfortunately: https://paste.ubuntu.com/23255934/15:59
=== dpm is now known as dpm-afk
Croephaso, is the current paradigm to have grub mount the kernel snap and load the kernel that way?16:29
Croephalooks to be that way16:41
Croephathats pretty clever16:42
Croephalol, ive got the craziest nesting doll of loopback mounts going on right now, ive got a .img mounted, and I have a kernel snap mounted form inside it, then the initrd inside of it17:06
mupPR snapd#2048 closed: interfaces: allow read of /etc/ld.so.preload by default for armhf on series 16 <Created by jdstrand> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/2048>17:48
zygajdstrand: was this breaking arm snaps?17:51
jdstrandzyga: it was as the reporter said, 'spamming the logs'17:51
jdstrandI don't think it would cause them to break outright17:52
jdstrandbut I guess it is possible17:52
zygajdstrand: I recall someone asking about snaps breaking on arm17:52
zygajdstrand: with some cryptic message about v617:52
jdstrandcould be this. could be the 4.8 kernel17:52
jdstrandzyga: oh that was different17:52
jdstrandwe fixed that a while ago17:52
zygajdstrand: was that auxv?17:53
jdstrandthat was the 'unsafe' rules17:53
jdstrandyeah17:53
zygaah17:53
zygaso, i spent part of the day away from home, I managed to make spread testing of snap-confine work offline17:53
jdstrandoh neat :)17:54
zygaI need to automate creation of the offline setup (one file left) but it should be ok17:55
zygajdstrand: I'll get to making all the small branches for everything today and tomorrow17:55
jdstranda cool next addition to spread would be running snapd in local lxd17:55
jdstrandI might take a look at that at some point if others don't17:55
zygajdstrand: oh, after some of my experiments I love qemu17:56
zygajdstrand: I heard that we can now have nested apparmor, lxd just might be a target now17:56
zygajdstrand: but still, offline apt, offline snap, that's useful regardless of where that works17:57
jdstrandI <3 qemu (with livirt especially)17:58
jdstrandyes, if you have amd64 you should be able to do nested qemu17:58
mupPR snapd#2049 opened: Allow writing DHCP lease files to /run/NetworkManager/dhcp <Created by ssweeny> <https://github.com/snapcore/snapd/pull/2049>17:59
jdstrandI mention lxd cause running the snapd and snap-confine testsuites inside of lxd shipped as a snap would be handy for local tests but also really exercise the apparmor stacking feature17:59
jdstrandand be a great regression test18:00
zygahmm, I didn't think about the stacking case, that is a good point18:01
jdstrandit's exciting-- all the pieces are in flight fr 16.1018:02
jdstrandand once there, the SRUs will begin18:02
jdstrandthat is some very cutting edge stuff18:03
jdstrandand it'll be great for the lxd project and snappy18:03
zygajdstrand: any chance this is all also upstream in relevant places?18:06
zygabtw, the complexity of lxd running as a snap on lxd running as a snap is mind boggling18:06
zygawhat's the kernel mount namespace layout again?18:06
mupPR snapd#2050 opened: interfaces/policy: start of interface policy checking code based on declarations <Created by pedronis> <https://github.com/snapcore/snapd/pull/2050>18:06
jdstrandzyga: everywhere except the kernel. the kernel bits are still work in progross18:06
zygado you need kernel devs? :-)18:07
jdstrandzyga: well, that is deep nesting and won't be supported just yet (it's planned). lxd as a snap running snapd is supported18:07
jdstrandzyga: well, the kernel devs that were working on the upstreaming got put on the stacking feature18:08
jdstrandzyga: tyhicks can comment on the progress and next steps18:08
jdstrandtyhicks: context: stacking support and upstreaming18:08
oparoz_jdstrand, that bug is killing snaps on armhf18:09
jdstrandoparoz_: ack (zyga ^)18:09
oparoz_It's impossible to install anything. Services all crash18:09
zygaI was joking :) maybe I can re-brand myself as a junior kernel developer18:09
jdstrandoparoz_: it's committed now18:09
oparoz_Yeah, I saw, thanks :). I can't test if it works because app-confine doesn't seem to have a customizable apparmor profile18:10
tyhickszyga, jdstrand: the kernel changes needed for stacking are not upstream18:10
tyhickszyga, jdstrand: now that stacking is just about finished, upstreaming can commence after the bits of work left for gsettings mediation18:11
zygaoparoz_: snap-confine has a profile that you can change (well, perhaps not in a presistent way but still)18:15
oparoz_zyga where?18:15
oparoz_Noting in the apparmor folder18:15
oparoz_Couldn't find doc about it18:16
mupPR snapd#2035 closed: asserts: support parsing the slots stanza i.e. slot rules in snap-declarations <Critical> <Created by pedronis> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2035>18:16
zygaoparoz_: anywhere, you can just load the profile18:18
zygaoparoz_: look at /etc/apparmor.d/usr.lib.snapd.snap-confine18:18
zygaoparoz_: you can copy/edit that anywhere18:18
zygaoparoz_: and load the new version with apparmor_parser -r18:18
mupPR snapd#2042 closed: daemon: add users to the sysInfo data <Created by mvo5> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/2042>18:19
oparoz_zyga, thanks, that eliminated that one error :) Still one left, but I don't know if it's related to the same problem18:22
oparoz_zyga,18:23
oparoz_Sep 30 18:21:40 ubuntu-standard snap[22880]: ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.18:23
oparoz_Another file to whitelist?18:23
zygaoparoz_: looks like something that jdstrand just fixed18:25
jdstrandoparoz_: /usr/lib/arm-linux-gnueabihf/libarmmem.so probably doesn't exist in the core snap18:26
jdstrandmaybe it does. do you have apparmor denials?18:26
oparoz_20 -rw-r--r-- 1 root root 18920 Jul  8  2015 /usr/lib/arm-linux-gnueabihf/libarmmem.so18:27
oparoz_No denials, just ERROR18:27
zygaoparoz_: does it work in devmode?18:27
oparoz_I've added it to both policies and it doesn't fix things18:27
jdstrandoparoz_: what are you adding to snap-confine's policy?18:27
oparoz_jdstrand, I added /etc/ld.so.preload r,18:28
oparoz_and then /usr/lib/arm-linux-gnueabihf/libarmmem.so r,18:28
jdstrandoparoz_: did you have denials for those?18:29
oparoz_I thoght the 2nd error about libarmmem.so was relatedto the apparmor error from the previous line18:30
oparoz_jdstrand, but apparently it's unrelated18:30
jdstrandoparoz_: you'll see a new denial for that file if it is blocked by apparmor18:30
oparoz_jdstrand, so probably not related to that18:30
oparoz_zyga, doesn't load in devmode either18:31
oparoz_So the logs still look like that: https://paste.ubuntu.com/23255934/18:32
oparoz_Minus the apparmor error18:32
jdstrandoparoz_: are you using an up to date image? (core and kernel in particular)18:35
oparoz_snap refresh says so18:35
zygaoparoz_: did you reload the profile?18:35
oparoz_ubuntu-core     16.04.1         424  canonical  -18:35
jdstrandoparoz_: cat you paste /etc/apparmor.d/usr.lib.snapd.snap-confine ?18:36
mupPR snapd#1918 closed: tests: add external spread backend <Reviewed> <Created by fgimenez> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1918>18:37
oparoz_jdstrand, https://paste.ubuntu.com/23256723/18:38
jdstrandoparoz_: that is too old18:38
oparoz_jdstrand, neither apt, nor snap are giving me anything newer18:39
jdstrandoparoz_: I suggest using 'snap refresh ubuntu-core --channel=edge'18:39
jdstrandI don't upload the core snaps so I don't know why you a newer stable version of the armhf core snap is not available18:40
jdstrandbut getting the edge core snap should resolve this18:40
mupPR snapd#2045 closed: many: remove all traces of the /v2/buy/methods endpoint <Created by pete-woods> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2045>18:40
oparoz_Thanks jdstrand I'm downloading now and will keep you posted18:41
oparoz_jdstrand, It seems it's stuck, error: cannot refresh "ubuntu-core": snap "ubuntu-core" has changes in progress18:44
oparoz_jdstrand, any way to restart?18:44
jdstrandI'm not sure how to get you out of that situation. perhaps there was something wrong with it which is why it wasn't refreshing18:45
jdstrandperhaps someone here can help?18:45
oparoz_jdstrand, It started and I killed it and now I can't refresh...18:46
jdstrandyeah, I don't know how to fix that. I think it will try again in some minutes behind the scenes18:46
oparoz_OK :)18:46
jdstrandyour image is definitely too old and perhaps it isn't able to update. just a guess18:47
oparoz_abort seemed to have solved it18:47
oparoz_But I can't connect and retrieve the snap. Connection reset by peer. Weird18:49
Croephawhats the service that setups networking interactively on core? how do you disable/override it?18:50
zygaoparoz_: killing snapd wont change anything18:52
zygaoparoz_: start with snap changes18:52
oparoz_I did that and it gave me a list of errors and I used the ids18:52
oparoz_It complained that there was nothing to do and then it worked18:52
zygaoparoz_: you can abort changes18:57
oparoz_error: cannot abort change 78 with nothing pending18:58
Croephathe answer to my questions was apparently console-conf18:58
oparoz_78   Error   2016-09-30T18:40:05Z  2016-09-30T18:45:10Z  Refresh "ubuntu-core" snap from "edge" channel18:58
oparoz_And this one is stuck in abort: 91   Abort   2016-09-30T18:54:26Z  -                     Refresh "ubuntu-core" snap from "edge" channel18:59
mupPR snapcraft#842 closed: Catkin plugin: Support ROS Kinetic <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/842>18:59
kyrofaoparoz_, more info here on what happened there: http://askubuntu.com/a/790975/26175319:00
oparoz_Thanks kyrofa :)19:01
mupBug #1629423 opened: Ordering of command line arguments matters <Snappy:New> <https://launchpad.net/bugs/1629423>19:02
oparoz_Rebooted and network is still flaky as hell. Impossible to download anything anymore :S19:05
oparoz_What I find amazing is that older snaps still load, it's just newer ones which can't19:07
mupBug #1629425 opened: Cannot safely refresh from edge to stable with ubuntu-core <Snappy:New> <https://launchpad.net/bugs/1629425>19:08
oparoz_Is there a way to download ubuntu-core edge via wget? Snapd just can't handle network connections anymore19:14
kyrofaattente, ping19:16
attentekyrofa: hey19:17
kyrofaattente, hey, I just had a bug logged against nextcloud saying that the description within the software center is terribly unclear. They provided this screenshot: https://cloud.githubusercontent.com/assets/9272078/19003640/131490a4-8752-11e6-80f0-2d811abcf244.png19:18
kyrofaattente, there more data in the store though. Does the software center not have access to that?19:18
kyrofaattente, it also looks like it's grabbing the name out of the YAML or something instead of what's in the store19:20
attentekyrofa: hmm... i can't even seem to find that snap via gnome-software19:21
kyrofaattente, I guess specificaly I'm missing the summary19:21
kyrofaattente, huh, yeah, I don't either. What's happening here?19:22
attentekyrofa: can you kill gnome-software and re-run it with GNOME_SOFTWARE_SNAPPY=debug in the env?19:23
kyrofaattente, huh, lots of 404s19:25
attentekyrofa: yeah, that's what i'm seeing too19:26
kyrofaTemporary store failure?19:27
attentekyrofa: fwiw, this is from the find endpoint: http://paste.debian.net/848827/19:28
kyrofaattente, huh, okay. Really just adding the summary in there would make me happy19:29
kyrofaattente, is there a reason we're not showing it?19:29
CroephaHAHA!19:30
attentekyrofa: the extra missing data is coming from /v2/snaps/nextcloud usually? and since it's 404'ing that's why the information is so sparse?19:30
slangasekogra_: hey, so, are you planning to grab any timing of a full console-conf startup on BBB? (+strace)19:30
CroephaPRO TIP #2: if you want the first-boot helper to go away in core, just touch /var/lib/console-conf/complete19:30
kyrofaattente, no, the summary is in the response to the query you just pasted19:31
attentekyrofa: but you said that the store is showing more information in the store19:31
attentekyrofa: so i'm wondering if that's because gnome-software is getting a 404 there19:32
kyrofaattente, I meant to simply say that there is information available that isn't shown in gnome-software19:32
kyrofaWell, that's just not making it show up at all! Haha19:32
kyrofaIt must have been working a few minutes ago when the bug was logged19:33
kyrofa(that screenshot was from the bug, not me personally)19:33
kyrofaattente, compare the screenshot to this: http://pasteboard.co/9qPYYft9h.png19:34
attenteweird. is a server down or something?19:34
kyrofaThere it has a summary above the install, and the longer description below19:34
kyrofaGood question. oparoz_ was just complaining about network issues19:34
kyrofaI'm installing nextcloud... that seems to be working anyway19:35
oparoz_I can't download anything via snap on armhf, works on amd6419:35
oparoz_Same network, but different cable ;)19:35
mupPR snapd#2049 closed: interfaces: builtin: Allow writing DHCP lease files to /run/NetworkManager/dhcp <Created by ssweeny> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/2049>19:35
oparoz_https://uappexplorer.com still shows decriptions, so must not be an API thing19:42
elopiokyrofa: well, it starts now alright: https://gist.github.com/elopio/dffcda326f5b51feedeb09f012ac9a4419:43
elopioit fails when trying to create a user though19:43
attentekyrofa: ok, i see. so you'd prefer the summary go in the top line, and description to be the blurb below19:48
kyrofaattente, well, the summary isn't shown at all, right? Wouldn't that be more consistent?19:48
attentein the second image, there are three items, name, summary and description, but from the bug report, we show the name and description (which is displayed where the summary would ideally be)19:49
kyrofaIndeed19:50
attenteok, that should be a simple fix19:51
attentestill not sure about the 404s though :/19:52
kyrofaattente, yeah me neither. But yeah, do you think that makes sense?20:02
attentekyrofa: yup, makes sense to me20:04
oparoz_Is the API serving snaps documented somewhere?20:06
attentekyrofa: i'm not sure what to do about the jhbuild plugin stuff. do you think it's still worth looking into even though you're planning to make all plugins build in a container20:08
kyrofaattente, I'm honestly not sure. I just got back onto snapcraft yesterday, still getting up to speed. Probably a better question for sergiusens20:09
kyrofaoparoz_, nessita can probably help you with that. I think it's on the wiki somewhere20:10
oparoz_Thanks kyrofa I'm trying to find a link I saw about creating our own app store as that may have some info20:11
kyrofaattente, shall I log a bug about the summary?20:11
attentekyrofa: sure20:11
=== cosmo_ is now known as cos-
kyrofaattente, here? https://bugs.launchpad.net/ubuntu/+source/gnome-software20:12
attentekyrofa: yup20:13
kyrofaattente, bug #162945620:16
mupBug #1629456: Summary isn't shown for snaps <gnome-software (Ubuntu):New> <https://launchpad.net/bugs/1629456>20:16
attentekyrofa: thanks!20:17
nessitakyrofa, hi! what do you need?20:19
kyrofanessita, where is the store API documented nowadays? oparoz_ was asking20:19
oparoz_Found this: https://wiki.ubuntu.com/AppStore/Interfaces/ClickPackageIndex20:20
nessitaoparoz_, hi! that documentation is for the click endpoints only, is not updated to snaps20:20
nessitaoparoz_, what's your goal?20:20
oparoz_Ah :(20:20
oparoz_I want to download armhf package from an amd64 machine20:20
nessitaoparoz_, we don't officially provide public APIs to query the store, ideally you should use snapd to do searches and downloads20:21
oparoz_There is no arch switch in snappy20:21
oparoz_snapd doesn't work20:21
oparoz_I only get this: error: read tcp 1.2.3.4:60014->95.172.71.39:443: read: connection reset by peer20:22
zygaoparoz_: you can use snapd-glib to query snapd20:22
lutostaghey all, when I try to push a snap I get "There has been a problem while analyzing the snap, check the snap and try to push again."... how can I find out what I am doing wrong?20:23
zygajdstrand: can I get a +1 on https://github.com/snapcore/snap-confine/pull/15820:24
mupPR snap-confine#158: Constrain SNAP_CONFINE_DEBUG values <Created by zyga> <https://github.com/snapcore/snap-confine/pull/158>20:24
oparoz_Thanks zyga, that's interesting20:26
zygajdstrand: and perhaps https://github.com/snapcore/snap-confine/pull/15720:26
mupPR snap-confine#157: Add support for --version switch <Created by zyga> <https://github.com/snapcore/snap-confine/pull/157>20:26
jdstrandzyga: I feel like I looked at this alreayd20:27
zygajdstrand: oh? I don't see any comments there20:27
jdstrandno there aren't any20:27
jdstrandmaybe I started looking at it20:28
jdstrandI'm looking at something else right now and have a hard stop soon20:28
zygajdstrand: I wrote a small spread test for the "prefer core" https://github.com/snapcore/snap-confine/pull/161/commits/3e4d839da5efb8e34b5a72a45445abd404d8a62720:28
mupPR snap-confine#161: Prefer the "core" snap is one is available <Created by zyga> <https://github.com/snapcore/snap-confine/pull/161>20:28
zygajdstrand: ok, ignore those two20:28
jdstrandI've added it to me todo20:28
zygahmm, me is silly20:28
jdstrandjeez, I thought I looked at --verson too20:28
jdstrandmeh20:29
zygajdstrand: I'm doing a micro release with the core preference feature20:35
mupPR snapcraft#843 closed: Add `snapcraft history` and `snapcraft status` <Created by maxiberta> <Closed by maxiberta> <https://github.com/snapcore/snapcraft/pull/843>20:36
mupPR snapcraft#844 opened: Add `snapcraft history` <Created by maxiberta> <https://github.com/snapcore/snapcraft/pull/844>20:36
mupPR snapcraft#845 opened: Add `snapcraft status` <Created by maxiberta> <https://github.com/snapcore/snapcraft/pull/845>20:36
lutostag(figured it out, someone else had registered the name I tried to push to, but got it sorted)20:38
mupPR snapcraft#841 closed: Replace SNAPCRAFT_PART_INSTALL in the part attributes <Created by josepht> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/841>20:39
oparoz_jdstrand, usr.lib.snapd.snap-confine is not updated when installing ubuntu-core edge and so nothing changes20:42
jdstrandzyga: I gave a comment on 161 you may want to consider20:43
jdstrandoparoz_: I am about to head out. does usr.lib.snapd.snap-confine contain 'unsafe' in the change_profile rules?20:44
zygajdstrand: looking20:44
oparoz_jdstrand, no20:45
jdstrandoparoz_: I suspect that /snap/ubuntu-core/current points to the old one20:45
jdstrandoparoz_: I don't know how convenient it is for you, but you may want to reflash. perhaps others can help debug this20:46
oparoz_jdstrand, it points to the dev version I just sideloaded20:46
jdstrandoparoz_: what does snap list say?20:46
zygajdstrand: replied20:46
jdstrandmaybe the armhf core snap is out of date20:46
oparoz_jdstrand, ubuntu-core     16.04.1         x1              -20:47
oparoz_This is a Nextcloud Box image20:47
oparoz_Which only had snapcraft installed on to try and build simpler snaps20:47
oparoz_It used to work find until the preload bug and now all dnaps fail20:48
oparoz_with that lib error20:48
oparoz_snap-confine/xenial-updates,now 1.0.38-0ubuntu0.16.04.10 armhf20:48
oparoz_snapd/xenial-updates,now 2.15.2ubuntu1 armhf20:49
oparoz_I just hope it's recoverable, because lots of users won't be tech savvy20:49
jdstrandoparoz_: oh, 16.04 still has 1.0.38-0ubuntu0.16.04.10. that doesn't have the necessary changes20:50
jdstrand:(20:50
oparoz_OK, at least now I know why :)20:50
jdstrandoparoz_: I know zyga was working on landing that. I'm not sure of the status20:50
zygaoparoz_: there's a good version in yakkety, xenial will get the SRU but I need to verify a dozen bugs for that and I'm also doing other things20:51
zygaoparoz_: ~ next week20:51
oparoz_OK, I'll just be patient and wait for updates to land20:51
oparoz_Thank you guys20:51
sbeattieHow does one get snapcraft to include datadirs in a snap? the autotools plugin installed them into stage/SNAP/installdata, but I can't figure out how to get the stuff under there included in the snap.20:52
sbeattieIf I try to use the "stage" part (from http://snapcraft.io/docs/build-snaps/parts) , it looks under stage/SNAP/install/20:54
zygajdstrand: my browser froze and I think I just accidentally somehow removed your commend about /media and udisks21:02
zygajdstrand: my point on this is, perhaps, but it would make devmode vs non-devmode different21:02
zygain somewhat weird ways21:02
oparoz_zyga, just to confirm that that yaketi package fixes the problem. The error about the lib is still there but it seems it was a red herring21:02
zyga(well, to phrase this better, right now all you need is devmode and then you can "be udisks"21:02
zygaoh the comment is back, odd21:03
zygaoparoz_: intersting21:03
zygaoparoz_: I'm away from home and my fleet of arm devices21:03
zygaoparoz_: I will be able to look at this in early november21:03
oparoz_zyga, OK. Hopefully fixed by Ubucon EU21:04
zygaoparoz_: I'm sure we'll get someone with a device to debug it21:05
oparoz_:)21:05
InnokentiyHello! Have some questions about using snappy for packaging an application ... Unfortunately can't find answers in tutorial and FAQ21:07
zygaInnokentiy: ask away21:09
InnokentiyTnx!21:11
InnokentiyI use odroid and beaglebone for about 4 years now, and recently found that Ubuntu core may be an answer to a question what Linux distribution is  the best for the IoT, so the question is: :)21:12
Innokentiynaturally it is a set of php scripts ... not a real application ...21:14
kyrofaInnokentiy, no matter, you can run PHP scripts. Is it not a web application, though?21:15
sergiusensattente kyrofa can we take the jhbuild plugin to the sprint?21:17
zygaInnokentiy: this is not a question yet21:17
kyrofasergiusens, sounds good to me21:18
attentesergiusens: sure21:18
sbeattiesorry, I mis-asked. the snapcraft autotools plugin is installing my snap's data into parts/SNAP/installdata rather than parts/SNAP/install (where it correctly installs the bins). How do I get snapcraft to look at the parts/SNAP/installdata dirs as well?21:18
InnokentiySomething went wrong, looks like messages gone nowhere ...21:23
InnokentiySo i continue ...21:23
zygaInnokentiy: try again :)21:23
InnokentiyTnx zyga :)21:24
Innokentiymy project is a set of php scrips, so i have one fundamental question ...21:24
InnokentiyNormally, i place all folder structure to /var/www/mpsbox21:25
Innokentiyand then point apache to use this folder as virtual directory21:26
Innokentiyor main site folder ...21:26
zygaright, here you'd want to bundle PHP and use apache (or anything else that runs php apps)21:26
zygayour snap will be installed in a directory that is variable at runtime21:26
zygabut you can find it because it is in environment under the $SNAP name21:27
Innokentiywhat should i do when i want to install with snappy?21:27
mupPR snapd#2037 closed: asserts,interfaces/builtin,overlord/assertstate: introduce base-declaration <Critical> <Created by pedronis> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2037>21:27
zygae.g. typically /that would be /snap/yoursnapname/123/21:27
Innokentiyright21:27
zygastart with a snap (use snapcraft) that can bundle apache221:27
Innokentiyand then i will pint apache to this folder21:27
zygayou will need the "network-bind" plug for the application that runs apache21:27
zygathe script you start can alter apache config to point it to the right place21:28
zyganote that you will have to fiddle with apache first21:28
zygato make it relocatable (might be trivial, might be hard, not sure)21:28
zygathen adding PHP21:29
zygathen adding your app21:29
zygaI think it should be doable but I'm not a php expert21:29
Innokentiythanks, and how i can define dependances?21:29
zyga(where anything is doable, I mean easily)21:29
zygaInnokentiy: you want to read about how snapcraft works21:29
Innokentiyi need apache snmp mysql and php ...21:30
zygaInnokentiy: there are no dependencies among snaps but you can easily bundle lots of things into one snap21:30
zygaoh, mysql might be another thing you will neee extra time on21:30
zygaI would recommend asking on the mainling list, this seems like something a lot of people can reuse21:30
Innokentiythat what i missed out ... i went through tutorial21:30
kyrofaInnokentiy, the nextcloud snap uses apache mysql and php as well, might be useful for reference: https://github.com/nextcloud/nextcloud-snap21:30
Innokentiybut didn't get how to manage those things :(21:31
sbeattieAlso, is there a way to clean just a specific stage of the snapcraft process? I don't want to redo the entire build if I can avoid it.21:31
kyrofasbeattie, you can `snapcraft clean <part name>` and `snapcraft clean --step=<step>`. You can combine those, too: `snapcraft clean <part name> --step=<step>`21:31
InnokentiyThanks kyrofa will check it ...21:32
zygaInnokentiy: in the end your snap will bundle apache, mysql, php and anything else you need21:32
Innokentiyzyga - yes that the point, ultimately i just want to automate the installation i do now manually ...21:32
zygaInnokentiy: in the end the snap will be totally self-contained21:33
zygaInnokentiy: and you will have total control over versions of each bit inside21:33
sbeattiekyrofa: thanks. do you have any idea how I can get snapcraft to include the files the autotools plugin installed in parts/SNAP/installdata along with the bins it installed in parts/SNAP/install ?21:34
InnokentiyI really confident on make my stuff bundled as snap, as today, i getting questions mainly how to set everything up :)21:34
kyrofasbeattie, can I see your YAML?21:34
Innokentiyon a device like odroid or beagle or raspberry  :)21:35
sbeattiekyrofa: it's pretty dirt simple: http://paste.ubuntu.com/23257449/21:38
Innokentiykyrofa - why you decide to compile everything in snap, and not use packages available in ubuntu?21:38
sbeattieI tried adding a 'source' section to part, but snapcraft looked under parts/SNAP/install/21:38
kyrofaInnokentiy, this series of blog posts might be a good read, and will answer questions like that: https://kyrofa.com/posts/installing-nextcloud-can-be-a-snap21:39
kyrofasbeattie, I'm not sure what's going on there, but I suspect the way your project is handling DESTDIR is odd21:41
kyrofasbeattie, try adding `install-via: prefix` to your autotools part21:41
sbeattiekyrofa: this is how it ended up installing things: http://paste.ubuntu.com/23257470/21:42
sbeattiekyrofa: I'll give that a go.21:42
kyrofasbeattie, yeah it might be using ${DESTDIR}data or something dumb like that21:42
Innokentiykyrofa: Thanks! Already dive in to reading :)21:46
CoderEuropeo/21:59
CoderEuropebbl21:59
mupPR snapcraft#846 opened: Release changelog for 2.19 <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/846>22:00
InnokentiyGuys, thanks for help!22:19
ogra_slangasek, i'll dig on the weekend23:01
ogra_slangasek, thats not bbb specific ... pi2/3 also take very long23:02
tsimonq2 /or23:02
tsimonq2whoops23:02
slangasekogra_: ok. and they still do, after the bytecompile fix?23:03
ogra_yep23:03
slangasekogra_: ok. I don't think I have any of those devices here, so strace welcome23:03
ogra_slangasek, well, was there another fix ? you mentioned subiquity would be missing its .pyc files too23:03
slangaseksubiquity's should be insignificant, but maybe a full strace will tell us something more23:04
ogra_yeah, michael also asked for setting some SNAPD_HTTP_* debug var ...23:04
ogra_(i have to dig that up ... not at 1am though :) )23:05

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