/srv/irclogs.ubuntu.com/2016/12/07/#snappy.txt

=== chihchun is now known as chihchun_afk
liuxgI have configured my netplan to make the wifi working in my home on my dragon board. However, now I connect my board to an network cable in the office, the network is not working any more. Does it mean that we cannot make wifi and cable working at the same time?04:21
=== chihchun_afk is now known as chihchun
=== diddledan___ is now known as diddledan
=== Tribaal_ is now known as Tribaal
=== andyrock_ is now known as andyrock
=== Trevinho_ is now known as Trevinho
=== rsalveti_ is now known as rsalveti
mupBug #1647936 opened: Raspberry Pi 3: a small rainbow square on the top right of screen <Snappy:New> <https://launchpad.net/bugs/1647936>05:58
=== JanC_ is now known as JanC
liuxgogra_, ping07:16
mupBug #1647950 opened: Raspberry Pi 2/3: failed to umount /lib/modules and /lib/firmware <Snappy:New> <https://launchpad.net/bugs/1647950>07:40
vigomorning snappy07:49
vigomvo, Could you please share the candidate images link for testing? :)07:57
mvovigo: http://cdimage.ubuntu.com/ubuntu-core/xenial/daily-preinstalled/.pending/07:58
vigomvo, yay!! thank you =)07:59
dholbachhey hey08:07
seb128hey dholbach!08:07
dholbachhi seb12808:07
mupBug #1647992 opened: r620 core snap candidate change /etc/modprobe.d to "synced", and blacklist-watchdog.conf now cause rebooting every 7 min without iTCO_wdt module loaded <Snappy:New> <https://launchpad.net/bugs/1647992>08:32
longsleepQuick snap question, if a snap provides a binary to classic ubuntu, can the snap access files on the classic file system tree? I am only seeing apparmor DENIED whenever that binary tries it09:48
Chipacadidrocks, heya. Me again. Do you think you could get wireshark onto the pi to capture the whole thing? (or somewhere along the route to the pi)09:49
Chipacalongsleep, some but not all files09:49
Chipacalongsleep, what are you trying to access?09:50
Chipacalongsleep, no 'hidden' files, for example09:50
longsleepChipaca: well i am trying out https://uappexplorer.com/app/hugo.hugo-authors - and the binary needs to access the files and folders from the static site, so you run it in the cwd of your site09:50
longsleepChipaca: eg. it fails to read the config.toml file which is cwd/config.toml - it gets the absolute path right but then apparmor prevents read access09:51
Chipacalet's see...09:52
longsleepChipaca: Snap support was added here https://github.com/spf13/hugo/pull/2443/files - and i wonder if i am just the first one to try or if i made a mistake09:52
mupPR spf13/hugo#2443: add snapcraft.yaml file <kind/enhancement> <Created by dholbach> <Closed by anthonyfok> <https://github.com/spf13/hugo/pull/2443>09:52
Chipacaralsina, see? hugo uses snappy. Hint hint.09:53
longsleepChipaca: yeah would be pretty awesome if it would work too :)09:53
Chipacalongsleep, details!09:53
longsleephehe09:54
longsleepright09:54
Chipacalongsleep, is there an easy way to run it?09:54
Chipacai mean, i just installed it, have no config.toml :-)09:54
longsleepsure, i think it can create one09:55
longsleephold on a sec09:55
tsdgeosany idea what i may be doing wrong when trying to use the ubuntu-app-platform content interface?09:55
tsdgeoshttp://paste.ubuntu.com/23592699/09:55
tsdgeost1mp: ↑09:55
longsleepChipaca: hugo new site lala09:56
longsleeplala is the folder it would create, but it fails misterably :)09:56
Chipacayeah, that worked09:56
longsleepoh really09:56
longsleepnot for me09:56
longsleepah09:56
Chipacalongsleep, you're holding it wrong09:56
Chipacalongsleep, hugo uses the 'home' interface09:56
longsleepChipaca: i am on a fuse mount. Maybe thats the reason?09:56
Chipacalongsleep, which means it gets access to your home, except for dotfiles09:57
longsleepoh ok09:57
longsleepChipaca: so when its not in home it fails09:57
* longsleep tries in home09:57
Chipacalongsleep, fuse mounts are probably either /media (different interface) or something like ~/.gvfs/yadda (dotfile)09:57
longsleepChipaca: you are right09:57
longsleepChipaca: yes its in /media09:57
longsleepChipaca: it works in $HOME09:57
longsleepChipaca: anything i can do about it? I do not have enough storage in $HOME09:58
Chipacalongsleep, you could suggest to them to add whatever the interface was that gives you /media09:58
* Chipaca doesn't remember09:58
Chipacalongsleep, or, you could bind-mount it into your home09:58
longsleepChipaca: ok i see - thanks !09:59
Chipacalongsleep, the bind mount thing will not tolerate the fuse mount going away easily09:59
Chipacabut it should work09:59
Chipacalongsleep, if the fuse mount is a long-lived thing you could configure it to mount in your home directly10:00
longsleepChipaca: yeah i understand10:00
longsleepChipaca: no, encrypted USB device :P10:00
ChipacaLUKS-encrypted?10:00
longsleepyes10:00
Chipacayou can make that mount on boot, but yeah, a lot of work10:01
longsleepwell its not connected all the time10:01
tsdgeost1mp: ok, got it to work10:01
Chipacalongsleep, ah10:01
Chipacalongsleep, in any case, you don't need fuse for that, if you want to do the work you need to set up crypttab and fstab appropriately10:02
longsleepChipaca: but i understand the problem now, and the snap basically works as long as the stuff is below $HOME10:02
Chipacayep10:02
longsleepChipaca: without fuse, how does one enter the passphrase for the key?10:03
longsleepChipaca: i mean i have crypttab and all for the rootfs and there it prompts on bootup, but where would it prompt for optional devices on hotplug?10:03
Chipacayou get prompted for it, but I haven't tried doing it in a graphical environment10:03
Chipacaso, i don't know10:04
Chipacasorry :-/10:04
longsleepChipaca: fair enough - this is the snappy channel after all :)10:04
didrocksChipaca: hum, that's going to be complex due to my current schedule, would be great if we have a prepared snap for that10:07
ogra_cjwatson, hmm, seems all core and ubuntu-core snaps failed to build due to what looks like a network error ...10:09
ogra_OSError: Tunnel connection failed: 403 Forbidden10:09
ogra_cjwatson, https://launchpadlibrarian.net/296915208/buildlog_snap_ubuntu_xenial_amd64_core_BUILDING.txt.gz is an example build log10:09
ogra_Chipaca, i think bug 1647950 was something you were working on, right ? (is there a bug i can duplicate to  ?)10:21
mupBug #1647950: Raspberry Pi 2/3: failed to umount /lib/modules and /lib/firmware <Snappy:New> <https://launchpad.net/bugs/1647950>10:21
Chipacayes, a mo'10:22
t1mptsdgeos: yes, I know what it wrong: https://bugs.launchpad.net/ubuntu-app-platform/+bug/164573110:25
mupBug #1645731: Fail to access the shared content if app starts before connect interface <Canonical System Image:Confirmed for pat-mcgowan> <Snappy:Confirmed for zyga> <Ubuntu App Platform:Confirmed> <https://launchpad.net/bugs/1645731>10:25
Chipacazyga, do you remember the bug # for the system-shutdown thing?10:25
t1mptsdgeos: snappy bug. See https://developer.ubuntu.com/en/blog/2016/11/16/snapping-qt-apps/ what is the correct order to install/connect to work around that for now.10:25
t1mpor Jamie's solution in his bug comment10:26
Chipacaogra_, I'm pretty sure we have a bug for it; we certainly have a card and a few branches for it10:28
Chipacaogra_, but as usual i can't find it; let's hope zyga or mvo can10:29
tsdgeosis this https://github.com/snapcore/snapcraft/pull/951 how one is supposed to do pull requests for snapcraft?10:42
mupPR snapcraft#951: snapcraft plugins -> snapcraft list-plugins <Created by tsdgeos> <https://github.com/snapcore/snapcraft/pull/951>10:42
mupPR snapcraft#951 opened: snapcraft plugins -> snapcraft list-plugins <Created by tsdgeos> <https://github.com/snapcore/snapcraft/pull/951>10:43
liuxgogra_, ping11:06
liuxgI used netplan to configure my wifi at home, then I went to my office. Since the wifi AP name is not right, I started to use a cable to connect my ubuntu coree device. However, I cannot find any IP address for the ubuntu core device even though I had a cable connected to it. is this a bug?11:08
ogra_liuxg, yo11:09
liuxgogra_, I described my question above. is that a bug or a designed feature? thanks11:11
ogra_liuxg, well, if you disabled wired network it wont run11:17
ogra_if you did set a password you could do a local console login and run sudo console-conf to reconfigure it ...11:18
liuxgogra_, do you mean I need to turn it on? I configured the netplan during the console-conf. How can I configure it again?11:18
ogra_but beyond this i dont see how you could get wired networking to work11:18
ogra_and during console-conf you configured wired network as dhcp client ?11:19
liuxgogra_, during the console-conf, I just leave the default setting for the wired connection.11:19
ogra_well, not sure if thats enough ... thats a mwhudson question i guess11:20
liuxgogra_, maybe not. I did not touch the default setting there. If that is the casse, would it be good to have the default setting for wired network as that?11:20
ogra_no, because you probably dont want wired to wsork for security reasons as a manufacturer ... defaulting to always have wired obtain an IP would be a bad idea here11:21
liuxgogra_, ok. I see your point. but normally if I have a wired connection, in fact during the console-conf, I do not do anything there, and it starts to work directly.11:22
liuxgogra_, so, I thought wired network connection came automatically without any manipulation.11:22
ogra_liuxg, iirc the firstboot code brings it up, but i'm not sure the config is applied to netplan if you dont take any action to do that in console-conf ... but as i said, thats an mwhudson question11:28
liuxgogra_, thanks for your answering. mwhudson, what do you think of the issue? thanks11:29
ralsinaChipaca: Nikola has been snapped for MONTHS11:45
mupPR snapd#2425 opened: store: decode response.Body json inside retry loops <Created by stolowski> <https://github.com/snapcore/snapd/pull/2425>11:55
=== hikiko is now known as hikiko|ln
renato__mvo, sorry to disturb you again ;). Could you approve media-player-app and ubuntu-notes-app12:31
mardypstolowski: hi! With snapctl, will it be possible to know the apparmor profile of the peer, when running inside an interface hook?12:35
Chipacaralsina, d'oh :-)12:50
Chipacaralsina, i typo'd my original `snap find`, i guess12:51
ralsinaChipaca: we also have a snap for coil, a nikola-based CMS12:51
ralsinathat one is more experimental, tho12:51
Chipacasnap info tells me it's only in beta and edge :-)12:54
Chipacais it really a CMS *for* Nikola, as its description says?12:55
Chipacaanyway. i've got a standup coming up12:55
=== hikiko|ln is now known as hikiko
pstolowskimardy, i'm not aware of such capability, sounds like something concerning apparmor more than snapd; perhaps jdstrand knows?13:03
mvorenato__: sure, soon13:03
mardypstolowski: or, leaving apparmor aside, is it possible to somehow identify who's the snap which is connecting into your interface's slot?13:05
pstolowskimardy, that should be easily doable if required from interface hook, but syntax/semantics need to be defined13:08
jdstrandmardy: I know of no functionality in snapd for wrapping the libapparmor api. I don't know otoh if the rest api has anything about connected plugs to a snaps slot. maybe that is what interface hooks are for? kyrofa (or Chipaca) may know13:12
mardyjdstrand: yes, actually my original question was about interface hooks: I'll need a way from inside the unity8 snap to know what's the apparmor profile of the snaps connecting to the Online Accounts interface, so that I can add them to the ACL when the user enables them13:14
pstolowskimardy, so i think interface hooks will be able to expose this info during the execution of hooks, technically there is no challenge. it just needs to be defined in terms of how this is exposed13:25
pstolowskisomething we need to discuss with niemeyer, along other details of hooks currently in the review13:27
jdstrandmardy: you may want to read this: https://docs.google.com/document/d/1mwLfShu3K8LNa1cYySqhM0fp06TZoKygG0bs2KB9Z4I/edit# . That is something that tvoss and I came up with but it has not undergone review by niemeyer13:31
mardypstolowski, jdstrand: thanks, reading...13:31
jdstrandniemeyer: hi! that document ^ is something we talked about me writing up ages ago but I never followed up with you after my meeting with tvoss since this is mostly about Personal and at the time Personal was far out13:32
jdstrandniemeyer: now Personal is here, so probably need to work through that. I'll let you decide on if before the end of year or not13:32
jdstrandzyga: that is probably something you would be interested in ^13:32
zygajdstrand: looking13:36
mardyjdstrand: mmm... I'm not sure I like the proposal in that document... why does snapd need to be modified at all?13:36
zygajdstrand: thank you13:36
mardyjdstrand: trust-store (and Online accounts) have their own storage for the ACLs13:36
mardyjdstrand: it can be maintained by whatever snap is providing the slot (unity8, in our case)13:37
zygajdstrand: hey, are yon on rocket chat? https://rocket.ubuntu.com/13:37
jdstrandmardy: note the invariants13:37
zygajdstrand: it's easy to join (just sso), it's browser based and has persistent ping history and other good ies13:37
zygaand it's public :)13:37
jdstrandzyga: and its browser based13:38
* jdstrand joins13:38
mardyjdstrand: noted, and I don't see any conflict with what I'm suggesting13:38
jdstrandmardy: I added you, zyga, niemeyer, and pstolowski for comment (and edit) rights13:40
mardyjdstrand: thanks, will jump in right away :-)13:40
jdstrandmardy: feel free to comment. the design is based on direction from niemeyer13:41
jdstrandmardy: though again, he has not reviewed it yet, so still lots of time to comment, etc13:41
jdstrandmardy: also, this is specifically for *trust-store* and not online accounts which I understand is similar but different13:41
jdstrandbut sufficiently similar in my mind that they should be considered in the same conversation13:42
mardyjdstrand: true, they are different in that location service connects the client to a system resource (the GPS), while OA connects the client to the user data (which in our case is stored by another snap (unity8) and not by the system13:43
mardyjdstrand: but I do believe that the solution for OA could be applied for the trust-store services too. Let's see...13:43
jdstrandmardy: this is meant to address multi-user. in fact it was written with pulseaudio microphone recording in mind13:44
jdstrandI think you might have been trying to express a different point there...13:44
jdstrandanyway, yeah-- let's get all the info in there13:45
mardyjdstrand: do I understand it correctly, that at the current stage, if user A manually connects a snap to the camera and user B launches that snap, the process started by user B will have access to the camera?13:51
jdstrandmardy (cc niemeyer): currently, yes. interface connections are at the system level. this document is about allowing a slot implementation to tie into snapd for mediating per-user connections13:53
mardyjdstrand: I'm starting to see the picture now13:54
stgrabermvo: hey there, why was https://bugs.launchpad.net/snappy/+bug/1628289 marked fix released?13:57
mupBug #1628289: snapd should depend on squashfuse (for use in containers) <lxd> <verification-done> <Snappy:Fix Released> <squashfuse (Ubuntu):Fix Released by stgraber> <squashfuse (Ubuntu Xenial):Fix Released> <https://launchpad.net/bugs/1628289>13:57
jdstrandmardy (cc niemeyer): the gist of the document is: slot implementation 'foo' wants to provide a may to allow its services to some users but not others (via prompting or not, that doesn't matter). foo uses the trust-store library. the trust-store library under the hood talks to snapd. a user talks to foo, foo asks trust-store if this user is allowed, trust-store asks snapd, etc13:57
mardyjdstrand: all clear, I just don't see the reason for the latter point: trust store could have its own storage, just like it has on UT13:59
jdstrandmardy: that gets back to the invariant14:00
mardyjdstrand: mmm... which one?14:00
jdstrandmardy: 'Snapd should be the central authority for anything interface-connection related'. that came from guidance from niemeyer.14:01
mardyjdstrand: sure, that would still be the case: the interface between the client and the "service" snap (the one using trust store) would be autoconnected, and the interface between the service and the resource (e.g., GPS) would be manually connected via snapd14:02
jdstrandmardy: a nice feature of this approach is that a tool can be written to talk to snapd to manipulate all trust-store connections. ie, the trust-stores aren't siloed. they are in snapd. this makes it easy to see with one command all the user connections. it would help ubuntu-system-settings, etc14:02
mardyjdstrand: mmm... I think you are trying to solve two different issues with a single solution14:03
jdstrandmardy: I understand what you are saying. the storage doesn't have to be in snapd, but it is a feature that it is14:03
jdstrandmardy: please comment in the PR. this has not been approved and was following particular guidance14:03
mardyjdstrand: OK14:03
mvostgraber: sorry, that was incorrect14:05
mupBug #1628289 opened: snapd should depend on squashfuse (for use in containers) <lxd> <verification-done> <Snappy:Triaged> <squashfuse (Ubuntu):Fix Released by stgraber> <squashfuse (Ubuntu Xenial):Fix Released> <https://launchpad.net/bugs/1628289>14:07
jdstrandzyga: can you send me a message on rocket?14:09
zygajdstrand: yes14:15
zygajdstrand: PM or @-mention?14:15
mupPR snapd#2426 opened: spread.yaml: run dmesg -c with sudo and log the id before running it <Created by plars> <https://github.com/snapcore/snapd/pull/2426>14:16
jdstrandzyga: I don't know. I closed my window to see what offline notifications look like. both?14:20
zygaOK14:20
zygajdstrand: done14:22
mardyjdstrand: thanks for the replies! I think all what you wrote makes a lot of sense if interface connections continue to be per-system, but I hope that there are plans to change that, eventually?14:24
jdstrandmardy: there isn't a way to make them per user for the foreseeable future. apparmor policy is for the system, not per-user14:27
jdstrandmardy: therefore the trusted helpers continue to mediate their APIs like always14:28
jdstrandmardy: and this merely provides a way to move the storage to a central place14:28
jdstrand(for those trusted helpers that use trust-store)14:29
* mardy thinks14:29
jdstrandmardy: I added a couple more comments to hopefully clarify. this isn't a radical change. this is adjusting the trust-store library to use snapd as its storage. that's it. with that, we can do cool things with tooling, etc14:30
jdstrandniemeyer: cc ^14:30
jdstrandniemeyer: also, sorry for all the pings, just want you to have all the context for whenever that spec is reviewed (again, doesn't have to be today)14:31
jdstrandzyga: if you sent anything, I didn't get them14:31
jdstrandzyga: via email. I logged in and see them14:32
mupBug #1646479 opened: Unity8 applications require access to name=com.ubuntu.MenuRegistrar <snapd-interface> <Snappy:Triaged by jdstrand> <snapd (Ubuntu):Triaged> <https://launchpad.net/bugs/1646479>14:40
=== jamespag` is now known as jamespage
ckingi'm getting 504 gateway timeouts whenever I attempt to upload updates to the snap store15:11
ogra_not only you15:12
ogra_but if you check via the store UI you will find your package got uploaded fine15:13
ckingogra_, i'm just trying to navigate on that website to check other snaps I've done and all I get is 504s15:13
ogra_go to the toplevel of the snap in the store (cut off rev/#### from the url)15:14
ogra_and you will see the revision landed fine15:14
ogra_at least thats the case for my LP builds15:14
ckingheh, even that 504s on me15:15
ogra_wow, i can usually reach the toplevel15:15
ckingoh, nth attempt and it worked15:16
ogra_heh15:16
ogra_its a game of patience :)15:16
ckingdoesn't feel that snappy to me15:16
ckingno pun intended15:16
ogra_that is because the store still runs on classic :P15:16
ckingogra_, on a raspi2 I guess15:20
ogra_haha15:20
ogra_probably a pi1 with raspbian15:20
ckingand the CPU clocked at 50% to make sure it don't get too toasty15:21
ogra_heh, yeah15:24
alex-abreujdstrand, I was wondering abut the snapd-control / local snap install/connection issue we talked about a week ago, will the fix (if any) be in 2.19?15:39
jdstrandalex-abreu: I don't know. we talked about it extensively and Gustavo was going to work through a few things. I have a todo to talk to him today about it15:43
alex-abreujdstrand, ok thx15:59
=== chihchun is now known as chihchun_afk
seb128sergiusens, hey, is snapcraft doing some magic to bring in libraries used by a binary you try to include?16:11
mupPR snapd#2422 closed: tests: re-enable snap-confine unit tests via spread <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2422>16:11
lof_mtHi there. I am working through the snap tour and have little problems with "20-PARTS-PLUGINS/01-reusable-part/". Error: No CMAKE_CXX_COMPILER could be found.16:21
lof_mtLooks like the is a build dependency missing.16:21
lof_mthad to install build-essentials because of missing g++.16:23
mupPR snapd#2427 opened: cmd/snap-confine: add support for classic confinement <Created by zyga> <https://github.com/snapcore/snapd/pull/2427>16:23
lof_mtPlease fix this. It is an easy problem to fix for me. But with a bit less experience i wouldn't be able to solve it.16:24
zygajdstrand: poke on rocket :)16:24
lof_mtIs there a issue tracker for the tour?16:24
zygajamiebennett: ^^16:25
cwaynezyga: is that pr what will allow us to call snaps from other snaps?16:26
jamiebennettlof_mt: Here please - https://github.com/ubuntudesign/snapcraft.io/issues16:26
zygacwayne: no, that's classic confinement16:27
zygacwayne: (super close, release is tonight)16:28
=== tgm4883_ is now known as tgm4883
jamiebennettlof_mt: sorry, just looking at the backlog, the github page is correct for the tour working16:28
zygacwayne: the other PR will be merged next cycle, I tried it and I think there are some bits missing still16:28
jamiebennettlof_mt: i.e. the page16:28
jamiebennettlof_mt: for the code itself, that is snapcraft - https://bugs.launchpad.net/snapcraft16:28
cwaynezyga: ah ok16:29
zygacwayne: but I'll try to merge it anyway, we can see how far that gets us :)16:29
lof_mtWhat snap path belongs into a users $PATH?16:35
nacclof_mt: there should be /snap/bin, added by /etc/profile.d/apps-bin-path.sh16:36
lof_mtnacc that only works if the user was create after snapd was installed right? (As the bash profile is already written)16:37
nacclof_mt: no, /etc/profile (which is used at runtime) sources all .sh in /etc/profile.d (on ubuntu)16:38
lof_mtOn debian too. But in both my users bash and zsh there is no snap path.16:39
lof_mtMust be a user not distro issue.16:40
lof_mtThanks nacc16:41
nacclof_mt: that seemds odd ... almost like profile isn't being read, then16:41
nacclof_mt: but that'swhere i'd start; maybe try setting some other variable in /etc/profile (or a new.sh in /etc/profile.d) and see if your user sees it on re-login?16:41
lof_mtWorks for my root user. Definitly messed the users bash profile up at some point. Haven't noticed because of zsh.16:42
nacclof_mt: ok :)16:42
stormchaser3000_hello. i am trying to update my ubuntu gnome system and snapd wont set up during the installation or is takng a very very long time. is there any way i can fix this? and is this the right place to ask?16:44
lof_mtstormchaser3000_: The Ubuntu upgrade is finished?16:50
stormchaser3000_lof_mt: no. it just sits there saying Setting up snapd (2.16ubuntu3) ...16:51
stormchaser3000_no error message or anything16:51
lof_mtIs there a way to deploy gsettings schemas? Does the gtk3 "cloud part" anything of that for me? Or do i need to write a script that deploys the schemas?16:51
lof_mtstormchaser3000_: Graphical or cli update?16:51
stormchaser3000_cli16:51
stormchaser3000_ugh i will be back later have to go16:52
lof_mtLooks like it: https://github.com/ubuntu/snapcraft-desktop-helpers/blob/1bff18219659caa849950858c6021eaa2289f1d0/common/desktop-exports#L10216:54
lof_mtBut where do i put them?16:54
lof_mtOr is that only for making the plug work?16:56
didrockslof_mt: you should just use the desktop parts, like destkop-gt316:59
didrocksgtk3*16:59
didrocksit will build this script, then you only need to use command: desktop-launch <your-app>16:59
didrocks(and it will build the schemas as needed and such)16:59
didrocks+ brings the deps17:00
didrockslof_mt: some example and content: https://developer.ubuntu.com/en/blog/2016/07/06/announcing-new-snap-desktop-launchers/17:00
didrocks(note that desktop/gtk3 and others have been renamed desktop-gtk3 since this post)17:00
lof_mtCan i specify an ubuntu version with cleanbuild?17:21
lof_mtOr an existing lxd container17:26
mupPR snapd#2418 closed: snapstate/backend: add backend methods to manage aliases <Critical> <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2418>17:32
mhall119is there a generic fix for relocating shared memory file creation location?17:32
mhall119snappy-debug says "adjust program to create files and directories in /dev/shm/snap.$SNAP_NAME.*"17:32
mhall119but I'm hoing there's a workaround without patching or re-building the program17:33
zygamhall119: no17:33
mhall119:(17:33
zygamhall119: I looked at it multiple times17:33
zygamhall119: maybe if we teach glibc about snappy17:33
zygamhall119: but that changes semantics and exsitng software will break17:34
stormchaser3000_lof_mt: ok i am back17:36
lof_mtDid it ran through?17:36
stormchaser3000_?17:37
stormchaser3000_no17:37
lof_mtCan you look in /var/log/dpkg.log ?17:38
lof_mt tail /var/log/dpkg.log17:38
stormchaser3000_lof_mt: http://paste.ubuntu.com/23594390/17:39
lof_mtkill all apt and dpkg processes. We try to install it manually with dpkg, look for the error then continue with the rest.17:40
lof_mtThis might be a better fit for #ubuntu17:40
stormchaser3000_ok17:41
stormchaser3000_lof_mt: that seems to have worked17:42
stormchaser3000_but i am not sure yet17:42
stormchaser3000_yep it worked17:42
stormchaser3000_thanks17:42
sergiusensseb128 yes17:42
stormchaser3000_(installing manually with dpkg -i)17:43
lof_mtstormchaser3000_:  What does that mean? Is snapd fully configured anyway?17:43
stormchaser3000_i think so. i downloaded the package and then installed it using dpkg -i17:43
stormchaser3000_and then it configured17:43
stormchaser3000_i think17:43
stormchaser3000_and then i run apt-get upgrade and then it tries to install snapd17:44
stormchaser3000_and it fails to configure17:44
stormchaser3000_i think. i am still waiting17:44
stormchaser3000_and sorry for spamming17:44
stormchaser3000_nope it isn't configuring17:45
stormchaser3000_and then it works when i manually install the package17:47
stormchaser3000_oh well. at least it works XD17:47
lof_mtCan you run md5sum on both files and compare if you get the same package? Or does the package name indicate a different version number?17:47
lof_mtabout schemas again. They are installed in the right location. (/usr/share/glib-2.0/schemas/) on my local system. And on the build server they are in (prime/usr/share/glib-2.0/schemas/). But the application segfaults " GLib-GIO-ERROR **: Settings schema 'org.gnome.feedreader' is not installed"18:01
lof_mti don't have any idea where else it has to be installed. :(18:01
lof_mt(non snap version from same git revision works.18:01
lof_mt)18:01
zygalof_mt: it is because of chroot18:06
zygalof_mt: http://www.zygoon.pl/2016/08/snap-execution-environment.html18:06
niemeyeralex-abreu, jdstrand: Yes, it should be in 2.19.. John has been on it18:07
alex-abreuniemeyer, ah awesome ! is there a PR for this?18:08
niemeyeralex-abreu: Yeah18:11
niemeyeralex-abreu: snapd#241518:11
niemeyersnapd#241518:11
mupPR snapd#2415: overlord/ifacestate: no interface checks if no snap id <Created by chipaca> <https://github.com/snapcore/snapd/pull/2415>18:11
alex-abreuthank you18:12
lof_mtzyga: i don't see how that is a problem. It should be the same path externally and internally. And both have the needed files.18:12
zygalof_mt: prime/usr/share/whatever will end up as /snap/$SNAP_NAME/$SNAP_REVISION/usr/share/whatever18:12
zygalof_mt: at runtime that is18:12
lof_mtzyga so the code can't open  /usr/… but needs to open $SNAP/usr/… ?18:24
kyrofaogra_, ping18:24
zygalof_mt: correct18:25
lof_mtWasn't there an organise instruction for moving files around with snapcraft.yaml?18:30
zygalof_mt: snapcraft organize can only organize files within $SNAP18:36
zygalof_mt: you cannot currently put any contant at another location18:36
zygalof_mt: and $SNAP expands to /snap/$SNAP_NAME/$SNAP_REVISION18:36
zyga*content18:37
mupPR snapcraft#952 opened: Add Features for Conditional Compilation <Created by cholcombe973> <https://github.com/snapcore/snapcraft/pull/952>18:43
renato__jdstrand, what do you think about all telephony services. Should we have a telepathy exclusive for telepathy and another for telephony-service and history-service?19:15
renato__jdstrand, or should we include the telepathy permissions in each interface?19:16
jdstrandniemeyer: oh, John has been on it? I missed the decision. you were going to think about it over the weekend. what did you land on?19:17
niemeyerjdstrand: We're working on allowing dangerous to allow such connections19:28
niemeyerWill be on 2.20 though19:28
zygajdstrand: can you +1 https://github.com/snapcore/snapd/pull/242719:30
mupPR snapd#2427: cmd/snap-confine: add support for classic confinement <Critical> <Created by zyga> <https://github.com/snapcore/snapd/pull/2427>19:30
alex-abreuniemeyer, ah not 2.19?19:39
jdstrandniemeyer: ack, thanks!19:46
jdstrandzyga: I was reviewing it while you pinged me19:46
jdstrandzyga: I gave my feedback19:46
jdstrand+1 with an extremely minor request)19:47
mupPR snapcraft#921 closed: Add support for hooks <Created by kyrofa> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/921>19:49
mupPR snapcraft#941 closed: Support symlinks within deb sources <Created by kyrofa> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/941>19:49
MikeB_Hi, can someone tell me how snaps are signed?  I can't find it in the documentation.  Long time snapcrafter, first time publisher.19:54
jdstrandniemeyer: also, just fyi, I think I responded to all your feedback in the dbus PR. it got a bit lengthy on the why and to detail an investigation as to if we could do something different, but I did at least distill it down to a few options. feel free to ask if you have any questions. fyi, I'm here all this and next week so it isn't critical for today or anything19:57
wililupyquestion: I'm getting the following error: cannot find signatures with metadata for snap when I try to install a snap, even in devmode? Any ideas?20:08
wililupyI'm also getting an error logging into the store: error: cannot get snap access permission from store: Post https://myapps.developer.ubuntu.com/dev/api/acl/: dial tcp: lookup myapps.developer.ubuntu.com on [::1]:53: read udp [::1]:42500->[::1]:53: read: connection refused20:10
moritz_How do i delete old versions of a snap?20:13
wililupydisregard. It was a DNS issue. I manually added 8.8.8.8 to /etc/resolv.conf and I can login to the store.20:13
moritz_snap remove --recision x7 it is20:14
wililupyI'm still getting the first error though.20:15
cholcombesergiusens, how does the get_build_properties override work?20:15
jdstrandrenato__: so, I haven't really thought this through. I don't really know the relationship between telepathy and telephony-service. iirc, history-service just needs to listen to one or both of them20:16
jdstrandrenato__: are telepathy and telephony-service completed separate or do they interact with each other? is telephony-service a Canonical/unity8-only thing? iirc, history-service is a Canonical/unity8 thing20:17
jdstrands/completed/completely/20:17
renato__jdstrand, from what I understand the telephony-service uses telepathy internally but the apps (messaging/dialer) talks with telepathy direct too20:20
jdstrandrenato__: to me that suggests that they should be together, espcially if 'uses telepathy' is more than just some ipc calls (eg, plugin or something)20:22
renato__salem_, hey, could you give us some more information about telephony;/telepathy/history20:23
salem_renato__, sure20:23
renato__salem_, just pasted to you the backlog20:24
wililupyThis is the only error in the syslog when I try to install the snap: Dec  7 20:23:10 localhost /usr/lib/snapd/snapd[2416]: daemon.go:170: DEBUG: uid=0;@ POST /v2/snaps 4.295801232s 40020:24
renato__jdstrand, I kind of agree to keep telepathy internally on the interfaces. But will niemeyer agree with that ;)20:24
renato__I remember that we have a similar discussion about the contact/calendar interface20:25
salem_renato__, both telephony-service, history-service and the apps talk to telepathy directly20:25
jdstrandrenato__: well, he is a reasonable person. we'll come up with what we think is best, present and then have a chat20:25
jdstrandrenato__: we did and I was thinking this maybe should be unity8-... too. let's see what the architecture is20:26
jdstrandsalem_: how is that communication done? via some ipc mechanism (eg, dbus)?20:26
salem_jdstrand, dbus20:26
salem_jdstrand, apps also talk to telephony-service and history over dbus.20:27
jdstrandsalem_: are telephony-service and history-service freestanding? ie, they don't plug into telepathy in some way do they?20:27
cholcombeanyone know how the plugin get_build_properties is supposed to work?20:28
jdstrandsalem_: or put another way, are they three independent processes with independent dbus apis that happen to talk to each other?20:28
* jdstrand thought he remembered telepathy being extendable but doesn't know the mechanism for that20:29
salem_jdstrand, exactly. they are independent processes. actually. telephony-service provides 3 binaries: handler, indicator and approver.20:29
jdstrandok, so this does suggest three difference interfaces20:30
jdstrand(to me)20:30
salem_jdstrand, so, mission-control (which is the telepathy main process) does support plugins, which are shared objects.20:31
jdstrandsalem_: do you know if telepathy on unity8 is a standard full-blown telepathy or are we only using a small subset of it?20:31
jdstrandsalem_: that's it, I remember now. but telephony-service and history-service aren't using shared object plugins, correct?20:31
salem_jdstrand, no, they only talk to each other over dbus.20:32
jdstrandgreat20:32
salem_jdstrand, there is one open issue that telephony-service provides some protocol files that are read by the apps, but we are in a process of moving this to dbus as well20:33
jdstrandsalem_: that would probably be best for working with snappy unless you were going to share them via the content interface20:33
salem_jdstrand, yes, that's why we are moving them to dbus.20:34
jdstrandsalem_: what about my question regarding our use of telepathy (mission-control) on unity8?20:34
salem_jdstrand, sorry. I missed that question.. so unity8 imports a qml plugin from telephony-service that turns it into a telepathy-client to be able to display the call activity. But as it becomes a telepathy-observer, mission control will talk to unity8 over dbus as well.20:37
salem_jdstrand, unity8 is a telepathy client just like any other app (messaging-app or dialer-app)20:38
jdstrandsalem_: ok, thanks20:38
salem_(and media-hub IIRC)20:38
jdstrandrenato__: I suggest this: http://paste.ubuntu.com/23595117/20:38
jdstrandrenato__: 3 services. telepathy stands alone. telephony-service and history-service can talk to telepathy and offer services to connecting clients20:39
jdstrandrenato__: the names of these things may change as part of the PR process, but prepending unity8- for now20:40
renato__jdstrand, then apps will request access to telepathy + any other interface [history, telephony]20:40
jdstrandrenato__: yes20:41
renato__salem_, will be possible to use history-service without telepathy?20:41
salem_renato__, not currently, it's telepathy based.20:41
mupPR snapd#2427 closed: cmd/snap-confine: add support for classic confinement <Critical> <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2427>20:42
renato__jdstrand, we kind of agree to use communication-history (history-service), communication (telephony-service).  what do you think? (unity8-communcation, unity8-communication-history)20:43
jdstrandrenato__: there might be some attibutes in there. eg, by default an app can get safe telepathy apis but say, telephony-service might specify an attribute to get 'unsafe' apis. we'll know more in the PR20:43
jdstrandrenato__: that seems fine20:44
renato__jdstrand, ok I will prepare the necessary changes on history and telephony service20:44
renato__salem_, thanks20:45
renato__jdstrand, thanks20:45
jdstrandrenato__: the question then becomes, do we want to have telepathy be 'telepathy' or 'unity8-telepathy'. I think it depends on if we use telepathy like we do eds in Personal, or will we support the full-on mission-control5 for the world20:46
moritz_Do i need a plug for accessing ~/.config/my-app ~/.local/share/my-app?20:46
jdstrandrenato__: I'll let you ponder that20:46
renato__jdstrand, ok telepathy interface is the next in the queue20:47
jdstrandmoritz_: HOME is set to /home/user/snap/$SNAP_NAME/$SNAP_REVISION so in that sense, no. ~/.config/my-app is /home/user/snap/$SNAP_NAME/$SNAP_REVISION/.config20:47
jdstrand /my-app20:47
moritz_So the user loses all configs when uninstalling the app?20:48
renato__moritz_, why do you want to keep the config after uninstall the app?20:50
jdstrandmoritz_: yes. by design all files in the snap's area are removed on uninstall. you can use 'disable' instead of remove to make it unavailable to users on the system without removing data20:51
renato__this is something that I always complain on current debian dist. The config for olds apps are never removed20:51
moritz_renato__: i agree and disagree (the vim config argument). but this is not the place to discuss.20:52
moritz_thanks jdstrand20:52
jdstrandmoritz_: I believe there is a bug on it if you want to weigh in20:52
jdstrandpersonally, I don't like the data loss part of it, but I understand the motivation20:52
moritz_If the app uses webkit do i need "browser-support"?  How much webbrowser is a webview? :)20:53
jdstrandmoritz_: it depends on the webkit. qtwebkit needs something out of browser-support iirc. a simple renderer wouldn't. that interface is about supporting chromium content api (google chrome, chromium, oxide, electron, etc) and firefox20:55
moritz_Asking because of this error: Unable to fork a new WebProcess: Failed to execute child process "/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitNetworkProcess" (No such file or directory)20:56
moritz_(yes i noticed the no such file, just though about potential issue still to come)20:57
jdstrandmoritz_: it sounds like it isn't finding WebKitNetworkProcess where it wants to. that file is likely in /snap/$SNAP_NAME/$SNAP_REVISION/usr/lib/...21:00
jdstrandmoritz_: I suggest using the desktop part. beyond that, I'm going to hand off to others with more experience working with GNOME libraries, etc on snappy21:01
moritz_Already using the desktop part. → https://github.com/lightonflux/feedreader-snap/blob/master/snapcraft.yaml21:02
jdstrandmoritz_: you might ask didrocks when he comes back online if no one else answers21:03
moritz_I think i might need to add something in staging. The file is just not included in the snap (at all). But it is locally and in the gnome runtimes of flatpak.21:06
sergiusenscholcombe like https://github.com/snapcore/snapcraft/blob/master/snapcraft/plugins/tar_content.py#L2921:07
sergiusenscholcombe it replaces the `pull|build-properties` from `shema`21:08
cholcombesergiusens, ok.  So do I do the normal schema part in there as well to get access to the rust-feature yaml info?21:09
sergiusenscholcombe yeah, the schema part is fine and stays21:09
sergiusenscholcombe in retrospect, that method could of been an attribute but we'd have had precedent for adding logic in there21:10
cholcombeok cool so i leave schema['properties']['rust-features'] and then later in get_build_properties i just return super().schema['properties']['rust-features'] ?21:10
sergiusenscholcombe yup21:10
cholcombeok nice21:11
cholcombeshould i move that code block out of the schema function also?21:11
cholcombeor does it need to be set in there also?21:11
sergiusenscholcombe you can move it out (the `pull-properties` and `build-properties` keys into `get_pull_properties` and `get_build_properties` plugin methods)21:19
cholcombesergiusens, ok21:19
moritz_Can confirm that i forgot it libwebkit2gtk-4.0 as a staging package.21:29
wililupyQuestion: if the file exists, how can I use organize to overwrite the existing file?21:41
kyrofawililupy, you can't, it'll conflict21:45
kyrofawililupy, but you can filter the one that's there out of the part that's providing it21:45
wililupykyrofa: I noticed that. How do I filter it out?21:46
kyrofawililupy, if we're talking the `stage` step, use the `stage` keyword. If the `prime` step, use the `snap` keyword21:46
wililupykyrofa: My source is a deb file. What I am doing now is running snapcraft build, then going into parts/part/install/opt/file/file.py and replacing it with a file.py that allows the snap to work.21:47
wililupyThen I run snapcraft snap to complete the snap.21:47
kyrofawililupy, easy21:47
kyrofawililupy, you're use the dump plugin I assume?21:47
wililupykyrofa yes21:48
kyrofawililupy, try this: http://pastebin.ubuntu.com/23595408/21:49
kyrofawililupy, now that part will still have opt/file/file.py in its installdir, but it won't be included when that part is migrated to stage or prime21:50
kyrofawililupy, so another part can provide it21:50
wililupykyrofa, so remove the file from stage and snap and then use orgnaize to put the file in?21:51
kyrofawililupy, use another part to put that file in. That may or may not involve the organize keyword21:51
wililupykyrofa: http://pastebin.ubuntu.com/23595436/ Does this look right?21:56
kyrofawililupy, no, `snap` is a list just like `stage` is21:57
kyrofaNot an object (like organize or filesets)21:57
wililupykyrofa: Gotcha. So then I will use organize to put the file in under snap: ?21:59
kyrofawililupy, we're missing each other a little, I think21:59
kyrofawililupy, snapcraft isn't really going to help you if you want to replace a part's file _within the same part_22:00
kyrofaYou'll need to do that as part of the build system22:00
kyrofawililupy, you need to split this into two parts. One part with the file filtered out, and another that supplies the new file22:00
wililupykyrofa: Ok. I see what your saying.22:00
kyrofaDoes that make more sense?22:01
wililupykyrofa create a new part and source the old part and use orgnaize to put the corrected python script in place.22:01
kyrofawililupy, that's sounding right, but can you define "source the old part"?22:02
wililupykyrofa: can I put in a feature request to have dump delete files? ;)22:02
kyrofawililupy, that's exactly what the stage/snap keywords are for22:02
kyrofawililupy, and they can be used by all plugins, not just dump22:03
wililupykyrofa: I guess I'm not sure how I would source the previous part.22:05
kyrofawililupy, I don't actually know what you mean by that :P22:06
kyrofawililupy, so let me ask: you have a deb that includes opt/flexswitch/flexswitch22:06
wililupyI was thinking of creating another part in my snapcraft.yaml and under source, point to the parts/flexswitch and use the dump plugin.22:07
kyrofawililupy, you don't want that one, though, you want another one22:07
wililupyBut I don't think they will work.22:07
kyrofawililupy, no, don't do that22:07
kyrofawililupy, parts are supposed to be independent22:07
kyrofawililupy, that "other one," from what I see in this YAML, is actually also contained within the deb. Is that correct?22:07
wililupykrofa: yes. the deb package includes opt/flexswitch/flexswitch, however, in a snap environment, it fails, so we have a python script with $SNAP and we want to put that one in place22:08
kyrofawililupy, where is the "python script with $SNAP" ?22:10
wililupyits in the same directory as my snapcraft.yaml22:10
kyrofawililupy, perfect-- completely independent of the other part22:10
kyrofawililupy, make another part using the dump plugin and `source: .`22:11
kyrofawililupy, then use organize to put it in the right place, and voila22:11
wililupyperfect22:11
wililupyI'll try that.22:11
wililupykyrofa: http://pastebin.ubuntu.com/23595491/ Is this correct?22:14
kyrofawililupy, yes, that looks perfect!22:15
wililupykyrofa: Ok, time to test it out.22:15
wililupykyrofa, so it built, but when I try to install it on my device, I get the following error: error: cannot find signatures with metadata for snap "flexswitch_1.0.0.174.6_amd64.snap"22:26
kyrofawililupy, https://askubuntu.com/questions/822765/snap-install-failure-error-cannot-find-signatures-with-metadata-for-snap22:27
wililupykyrofa, that did the trick.22:29
mupPR snapd#2428 opened: debian: add dependencies and build rules for snap-confine <Created by zyga> <https://github.com/snapcore/snapd/pull/2428>22:44
moritz_How do i tell my snap app (primary binary) to start a daemon from within the snap? At the moment it starts the binary from my system because the local copy is first in my PATH.22:53
wililupyDo we have an example of setting the LD_LIBRARY_PATH to a specific library directory in the snap? IE $SNAP/opt/file/lib/ ?23:12
jdstrandzyga: hey, fyi, I was looking at snap-confine in xenial-proposed and noticed that there are several files in debian/patches that are not applied in debian/patches/series and can therefore be removed23:16

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