mupPR snapcraft#1006 closed: schema: replace `snap` filter with `prime` filter <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1006>00:56
mupPR snapcraft#1014 closed: tests: reorganize plugin tests into subdirectory <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1014>00:59
liuxgelopio, have you checked the reported "classic confinement requires the core_dynamic_linker to be set"? I just installed a container, and I found the same issue02:00
mupBug #1653851 opened: no way to avoid CDN for assertions.ubuntu.com within launchpad builds <Snappy:New> <https://launchpad.net/bugs/1653851>02:04
mupBug #1653852 opened: Cannot activate Chinese input method for Qt app even in the devmode <Snappy:New> <https://launchpad.net/bugs/1653852>02:10
=== chihchun_afk is now known as chihchun
liuxgelopio, I have tried to build it in yaketty container, and I have the same issue. What is your finding? thanks04:20
mupPR snapd#2492 closed: cmd/snap: remove currency switch following UX review <Created by pete-woods> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2492>07:55
mupPR snapd#2549 closed: cmd/snap-confine: add shutdown helper <Created by chipaca> <Closed by chipaca> <https://github.com/snapcore/snapd/pull/2549>09:27
davidcalleMorning and happy new year! Is it expected that on 2.20.1+17.04ubuntu2 , network-bind doesn't auto-connect?09:27
davidcallemvo ^09:28
davidcalle(or zyga ? ^)09:29
=== john-mca` is now known as john-mcaleely
liuxgdavidcalle, network-bind needs to have mannual connect? according to the spec, http://snapcraft.io/docs/reference/interfaces, it should be.09:55
davidcalleliuxg: I know, that's why I'm asking why it's not auto-connecting anymore09:56
topi`I'm trying to build os/kernel/gadget snaps for an unsupported device (Hummingboard), any idea how to "cache" the always-recurring download of ubuntu-core when running "snapcraft"?10:06
topi`no matter how little I change, it always re-downloads it10:07
davidcallesergiusens: ^10:27
jamespagejdstrand, ok so I've had some good success with the new network-namespace support in network-control with the nova-hypervisor snap10:37
jamespagejdstrand, the nova-hypervisor snap almost works in strict mode now10:38
jamespagejdstrand, looking at the remaining syslog DENIED messages, the remaining issues look related to processes wanting to drop privs for things like dnsmasq10:39
* jamespage is frustratingly close to having this working...10:41
mupPR snapd#2551 opened: refactore store.Snap to take a spec struct <Created by chipaca> <https://github.com/snapcore/snapd/pull/2551>10:58
kalikiana_topi`: Does the core snap show as being installed? Does "snap changes" say anything dubious?11:24
* kalikiana_ has no idea about that device, but checking those should be a good start11:26
mupPR snapcraft#1015 closed: tests: reorganize command tests into subdirectory <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1015>11:32
=== hikiko is now known as hikiko|ln
mcphailkyrofa: are you still maintaining the nextcloud snap? If I install it, in preference to a manual nextcloud install, what restrictions would I be likely to face? Can I, for example, use Let's Encrypt etc?12:04
mupIssue snapd#2552 opened: snapd is not tested with against Arch Linux <Created by zyga> <https://github.com/snapcore/snapd/issue/2552>12:11
=== hikiko|ln is now known as hikiko
kalikiana_Hrm. Getting "...changes in progress..." error and nothing in 'snap changes'. I hate it when that happens.12:21
mupBug #1653955 opened: Access to /dev/shm/sem.snap.@{SNAP_NAME}.* should be allowed for semaphores to work <Snappy:New> <https://launchpad.net/bugs/1653955>12:38
mupIssue snapd#2553 opened: snapd is not tested against Debian <Created by zyga> <https://github.com/snapcore/snapd/issue/2553>12:41
popeymcphail: http://flexion.org/posts/2016-12-raspberry-pi-3-powered-nextcloud-box-on-ubuntu-core - i used that guide to add letsencrypt12:56
=== chihchun is now known as chihchun_afk
mcphailpopey: thanks. That looks clever. Didn't realise there were helper scripts in the snap. Do you know if you can dd extra apps like the calendar app etc? Not sure how the snap would handle that...13:24
popeymcphail: i think so, yes. I added an app as part of that guide13:28
didrockspedronis: hey! I was wondering if when providing required-snaps, I could make one installed in devmode?13:28
pedronisdidrocks: you can say --devmode for everything but it's probably going to change again13:30
pedronisdidrocks: anyway is something you pass/would pass to ubuntu-image, not something that goes into the model assertion13:30
pedronisdidrocks: we have a open task about clarifying/fixing this13:31
pedronisdidrocks: mvo started to look into that13:31
didrockspedronis: hum, so, in the model assertion, I should put the snap name13:32
didrockspedronis: and in ubuntu-image, there is a devmode option?13:32
pedronisdidrocks: yes, just the snap name13:32
pedronisdidrocks: there should be but might not work atm13:32
mcphailpopey: excellent. Ta13:32
pedronisas I said bit of wip atm13:32
didrockspedronis: ok, I think this isn't going to work for our workshop deadline thus13:33
didrockspedronis: I'll keep on "this does not work thus"13:33
mupPR snapcraft#1019 closed: tests: reorganize state tests into subdirectory <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1019>13:45
mupPR snapcraft#973 closed: ci: check the license agreement on Travis <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/973>13:48
mupPR snapd#2551 closed: refactor store.Snap to take a spec struct <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2551>13:52
=== chihchun_afk is now known as chihchun
mupPR snapd#2554 opened: tests: add end-to-end store test for classic confinement <Created by mvo5> <https://github.com/snapcore/snapd/pull/2554>13:59
liuxgsergiusens, ping14:13
sergiusensliuxg hey14:15
jaceknhello. What's the best way to create new directory in my snap package using snapcraft.yaml? I need to ship it with empty directory but can't find a way to do it, thought dump plugin woudl do it but does not look like it14:15
liuxgsergiusens, regarding the bug https://bugs.launchpad.net/snapcraft/+bug/1650946, I tried to compile my sample project using LXD, and I had the same issue. What could be reason for it? thanks14:16
mupBug #1650946: unhelpful error when building a classic snap: classic confinement requires the core_dynamic_linker to be set <Snapcraft:Incomplete> <https://launchpad.net/bugs/1650946>14:16
liuxgsergiusens, I checked it with my colleague and it worked under 17.04.14:16
sergiusensliuxg oh, does snap list show `core` in there? if not, `snap install core`14:17
sergiusensand tell me if that works14:17
liuxgsergiusens, http://paste.ubuntu.com/23739129/, this is the list14:18
liuxgsergiusens, I think ubuntu-core is there already14:18
sergiusensliuxg I didn't need the list ;-) And no it is not, `ubuntu-core` != core14:18
sergiusensso `snap install core`14:19
liuxgsergiusens, oh, I see your point. However, I got an error http://paste.ubuntu.com/23739153/. Should I remove ubuntu-core first?14:22
liuxgsergiusens, I am wondering what is the difference between "core" and "ubuntu-core". Are they the same thing? Sorry, this is the first time I tried to install core.14:23
sergiusensliuxg I don't know about that, I have both at the same time. But you need that for classic snaps to be buildable14:23
sergiusenscore replaces ubuntu-core14:23
sergiusensliuxg you will need to ask someone in the snapd (core team) about this14:24
liuxgsergiusens, so, I should remove the "ubuntu-core" first in order to install "core".14:24
liuxgsergiusens, by the way, who is from the snapd team?14:25
sergiusensmvo zyga ^14:26
sergiusensliuxg you can get by this by `snap install core` in a clean lxd container and build there14:26
liuxgsergiusens, OK. I will try it. thanks14:27
mvoliuxg: ubuntu-core and core are currently mostly identical except the name, we will transition ubuntu-core to core at some point but thats not done yet14:27
sergiusensmvo right, classic confined snaps require having core installed to build and eventually run14:28
liuxgmvo, the thing is that classic needs to have "core" instead of "ubuntu-core", right? I cannot remove the "ubuntu-core" for now in my 16.04 system. Can I get them both co-exist in order to test classic?14:28
sergiusensseems an addition to not allowing both installed was added recently14:28
liuxgsergiusens, mvo, the problem is that how can I test it on 16.04 OS. By default, "ubuntu-core" is installed on my machine. when i tried to remove "ubuntu-core", it complains "error: cannot remove "ubuntu-core": snap "ubuntu-core" is not removable"14:30
mvoliuxg: thats a bug then in classic mode, it should work with either ubuntu-core and core, let me have a look14:34
mvoliuxg: plus it should be possible to exachange the two, thats another bug :/14:35
sergiusensmvo it actually isn't possible, we designed it that way with zyga14:35
liuxgmvo, thanks! I never got it working. could you please see the bug report at https://bugs.launchpad.net/snapcraft/+bug/1650946?14:35
mupBug #1650946: unhelpful error when building a classic snap: classic confinement requires the core_dynamic_linker to be set <Snapcraft:Incomplete> <https://launchpad.net/bugs/1650946>14:35
sergiusensmvo the linker used is hard coded in the elf headers14:36
mvosergiusens: oh, ok. so then we need to make it possible to remove ubuntu-core14:36
mvosergiusens: I have a look14:36
pedronismvo: that is a bit problematic in other ways, I think we wanted to allow that but only if there are no other snaps installed (on classic)14:38
pedronisI mean to remove core/ubuntu-core14:38
mupBug #1653988 opened: no soundcore in linux-raspi2  <Snappy:New> <linux-raspi2 (Ubuntu):New> <https://launchpad.net/bugs/1653988>14:42
mvopedronis: aha, I see, to avoid that people break their system? I guess "snap install core and remove ubuntu-core" would be nice :)14:44
pedronismvo: yes, to avoid people breaking stuff without thinking14:48
pmcgowanmvo, is there a workaround to the issue discussed above? can I just rm the /snap/ubuntu-core folder?15:29
mvopmcgowan: cleanest workaround is to purge snapd (the deb) and then snap install core as the first operation15:31
popeymvo: that requires removal of all snaps?15:41
mvopopey: unfortunately, we work on something better but its not there yet15:46
jdstrandniemeyer: hi! I'm not up on everything for 'aliases'. I need to add support to the review tools and was wondering if declaring aliases should prompt for manual review. My understading is 'no' since the aliases are applied by the user unless there is an auto-alias in the store15:52
niemeyerjdstrand: Heya16:05
niemeyerjdstrand: Happy new year (to all!)16:05
niemeyerjdstrand: Yeah, it shouldn't prompt for manual review.. the idea is that people can experiment with aliases without the burden of involving reviews16:06
niemeyerjdstrand: We then need a way for people to ask for aliases16:06
niemeyerask for auto-aliases, that is16:06
niemeyerWhich is just an explicit whitelist of a particular alias that may (and may not!) be in the snap16:06
jdstrandniemeyer: ok, thanks. fyi, cprov showed me today that the store already has support to grant auto-aliases. I don't know the status/plans for how to request them16:09
jdstrandI mean, putting them in the yaml is a form of request, but I don't think that is what you were talking about16:09
niemeyerjdstrand: Yeah, that's no tit16:21
niemeyerjdstrand: As long as you can edit them, we can take bugs as requests for the time being16:22
jdstrandniemeyer: sounds good16:23
ogra_sudo apt install fakeroot16:23
ogra_bah !16:23
longsleepogra_: hey any idea how and whom to contact so https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1652262 can be resolved rather sooner than later? For me right now its pretty unclear how extra dependencies for stuff added to ubuntu-core are handled. I remember there was some ppa which got pulled in during rootfs build in the past.16:26
mupBug #1652262: subiquitycore exception in controller.run <snappy> <Snappy:New> <subiquity (Ubuntu):New> <https://launchpad.net/bugs/1652262>16:26
ogra_heh, i just saw someone comment on it16:27
longsleepogra_: yeah me too, thats why i rememberd to ask you :)16:27
ogra_longsleep, usually subiquity is mwhudson's baby16:27
ogra_might be that he is still on EOY vacation though16:27
longsleepogra_: yes but the fix is in a dependency of subiquity - i wonder how these get pulled in16:27
ogra_oh ?16:28
* ogra_ checks the bug 16:28
longsleepogra_: fix is in https://github.com/CanonicalLtd/probert/commit/09c449104c15f7c4518eff77055d70af08bcc42a16:28
longsleepogra_: so in the probert python module16:28
ogra_longsleep, ah, well, that might be a cyphermox package (though mwhudson tends to touch it too)16:29
ogra_last probert upload for xenial is from nov. 10th though16:30
longsleepogra_: ah yeah that was the repo - good to know that this is still used16:30
longsleepogra_: yeah so what needs to happen to get probert updated eventually is the question16:30
ogra_yeah, sadly it is ... i'll work my way throuhg SRUs the next weeks16:30
ogra_technically all these packages need SRUing16:31
ogra_longsleep, you either catch mwhudson or cyphermox to upload a new version to that PPA16:31
longsleepogra_: ok - great  thanks!16:32
ogra_longsleep, if you dont get any answers before EOW, ping me again and we can see what to do (i would just upload a fixed package but i dont want to break any processes the guys have in place)16:33
longsleepogra_: yeah no hurry - i can wait until they have time16:34
=== JanC is now known as Guest75542
=== JanC_ is now known as JanC
mupPR snapd#2555 opened: many: implement 'snap aliases' <Created by pedronis> <https://github.com/snapcore/snapd/pull/2555>16:38
mupPR snapd#2556 opened: interface/builtin: drop the obsolete checks in udisks2 SanitizeSlot <Created by pedronis> <https://github.com/snapcore/snapd/pull/2556>17:04
mupPR snapcraft#989 closed: pluginhandler: add support for disabling system library migration <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/989>17:06
elopioev_: I heard you can help me with my rocket chat account. I can't log in.17:23
ev_elopio: hey! sorry for not getting back to you on Telegram17:23
ev_I’m not actually an admin on RocketChat17:23
elopioev_: Also, I'll have a meeting with shadow tomorrow at 14:30 UTC. What to join us?17:23
ev_no idea who keeps pointing people in my direction17:24
elopioev_: ^_^17:24
ev_shadow> yes please!17:24
elopiosabdfl: do you know who is admin in rocket chat?17:24
=== ev_ is now known as ev
* ogra_ gives up for the day ... this extrausers group stuff makes my brain hurt ... 17:34
ogra_(but we'll eventually have lxd working on core images at least ... )17:35
kyrofaelopio, in our snaps tests, are we using the ubuntu-core snap or the core snap?17:51
kyrofa(i.e. is it a clean install)?17:51
mupIssue snapd#2557 opened: Serial Port Plug/Interface issue with Ubuntu-core 16.04 <Created by mrsinghgit> <https://github.com/snapcore/snapd/issue/2557>17:53
ogra_hopefully the latter17:55
elopiokyrofa: it is a clean install. But sergiusens forced one test to install core if it wasn't installed before.18:01
kyrofaelopio, ah! Excellent18:01
=== alan_g is now known as alan_g|EOD
Cust0sLimenhow poorly will snappy work with firewalld ?18:06
kyrofaCust0sLimen, I expect it just needs to be properly packaged with the right interfaces18:08
Cust0sLimenkyrofa, well ... let me put it like this rather ... if I use firewalld on ubuntu ... will snappy stop working ?18:08
kyrofaCust0sLimen, ah, indeed I misunderstood the question18:09
kyrofaCust0sLimen, I don't see why that would interfere with snappy. What makes you suspect that it will?18:09
Cust0sLimenso there is this: http://snapcraft.io/docs/reference/interfaces - "firewall-control - Can configure network firewalling giving privileged access to networking."18:10
kyrofaYeah, if you have a snap installed that utilizes that interface you might run into issues18:11
Cust0sLimenkyrofa, :/18:11
kyrofaCust0sLimen, run `snap interfaces` to check that18:11
kyrofaCust0sLimen, it would be like having both ufw and firewalld installed18:11
Cust0sLimenwhy could ubuntu not just be fedora without stupid rules that result in not having ffmpeg ;(18:11
Cust0sLimenkyrofa, I have no snaps at the moment18:12
Cust0sLimenjust pessimistic18:12
kyrofaCust0sLimen, then you should have no issues18:12
Cust0sLimenkyrofa, I might have some installed later though18:12
kyrofaCust0sLimen, just don't install a firewall snap then, and you should be fine18:12
jdstrandCust0sLimen: the firewall-control interface you referenced in the documentation is something that a snap may request, not what snappy necessarily controls. in other words, if your system uses firewalld, you'll have no problems with snappy. if you install the ufw or some other firewall snap and use it, they might conflict with each18:30
jdstrandCust0sLimen: this is no different than trying to install two different firewall applications via rpm and eb and using them at the same time18:30
jdstrands/and eb/or deb/18:30
jdstrandCust0sLimen: so, basically, what kyrofa said: if you don't install a firewall snap, you should have no issues18:31
jdstrandroadmr: hi! can you pull r814? it adds 'aliases' support to the review tools among other things18:32
roadmrjdstrand: sure thing19:03
roadmrjdstrand: (happy new year :)19:03
jdstrandroadmr: thanks! and happy new year to you too :)19:04
wswartzHello.  I was wondering if anyone knew what the various flavors (Gnome, KDE, etc) were planning to also be Snap-based?19:45
mupPR snapd#2556 closed: interface/builtin: drop the obsolete checks in udisks2 SanitizeSlot <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2556>19:58
mwhudsonlongsleep: hi20:11
longsleepmwhudson: hey20:11
mwhudsonlongsleep: you want a probert upload?20:12
longsleepmwhudson: yeah would be awesome to have probert with the wifi stuff try/except change in edge asap20:13
longsleepmwhudson: i still do not know why it fails with my kernel though as my test code works just fine in classic ubuntu20:13
longsleepmwhudson: but the try/except fix would unblock me to hopefully get a working edge image for further testing20:14
mwhudsonlongsleep: with the same kernel?20:14
mwhudsonthat is pretty odd20:14
mwhudsonlongsleep: does your board actually have wifi?20:14
longsleepmwhudson: yes, different builds though20:14
longsleepmwhudson: yes board has wifi / iw works just fine as well20:14
mwhudsonlongsleep: how odd20:15
mwhudsonanyway, i'll get the fix uploaded20:15
longsleepmwhudson: did you see my test program - maybe you can spot a difference - or probert runs in some confinment when started on snappy boot20:15
longsleepmwhudson: awesome - most appreciated thanks20:17
longsleepmwhudson: btw if i might suggest an improvement to https://github.com/CanonicalLtd/probert/commit/09c449104c15f7c4518eff77055d70af08bcc42a#commitcomment-20335990 - it should say that it cannot start the nl80211 listener instead of just the listener imho20:18
mwhudsonit says wlan_listener?>20:19
longsleepah right, wouldnt be nl80211 wlan_listener better? After all there is also the rtnetlink wlan listener?20:20
mwhudsonthere's nothing wlan about the rt listener20:20
mwhudsoni agree it's a bit obscure20:20
longsleepright - then i guess its just my misunderstanding20:20
mupPR snapcraft#1025 opened: project loader: better error message for classic <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1025>20:24
mwhudsonlongsleep: uploaded, should be in the next edge build20:28
longsleepmwhudson: very nice thank you!20:28
longsleepmwhudson: i just rebuilt probert from source on classic ubuntu on that kernel to see if i can reproduce the original issue there20:28
mwhudsonlongsleep: that would be interesting20:29
mwhudsonlongsleep: you can just run python3 probert/network.py20:30
mwhudson(after python3 setup.py build_ext -i)20:30
longsleepmwhudson: yeah on it, need some extra python modules installed first20:30
longsleepmwhudson: what do you make of this http://paste.ubuntu.com/23741215/ ?20:33
mwhudsonlongsleep: well that's interesting20:33
longsleepmwhudson: thats not the same error as when run through subiquity though20:34
mwhudsonpretty odd though, is the device actually up already?20:34
longsleepmwhudson: ifconfig shows wlan0 and wlan1 it as up yes20:35
mwhudsonlongsleep: can you hack network.py:435 to print link.flags?20:36
longsleepmwhudson: sure hold on20:36
mwhudsonit shouldn't be trying to up the device if it's already UP20:36
mwhudsonum i guess printing ifindex would be useful too20:37
longsleepmwhudson: mhm magic print makes it work - no error this time20:37
longsleeplet me down it again20:38
mwhudsonhah uh maybe some kind of race maybe20:38
mwhudsonlongsleep: wait, you have two wifi devices? i haven't tried it in that situation, maybe there is some confusion20:38
longsleepah yeah if its down before20:38
mwhudsonshouldn't be but who knows20:38
longsleepyeah two20:38
longsleepthat driver creates two interfaces for a single card20:38
mwhudsonoh right20:38
longsleepmwhudson: xxx (5, 1)20:39
mwhudsonso i bet when you up one, the other gets implicitly upped too20:39
longsleep5 is the index and 1 is the flags20:39
longsleepmwhudson: ah yeah thats true20:39
longsleepmwhudson: i usually disable the second device in interfaces20:39
mwhudsonand probert tries to up both and something complains20:39
* mwhudson waves hands20:39
mwhudsonlongsleep: wait what, the flags are 1 for the call that crashes?20:40
longsleepmwhudson:  yes - full output at http://paste.ubuntu.com/23741260/20:41
longsleepmwhudson: if i run it again without downing the interfaces first, no error20:41
* mwhudson tries to remember how to find out what -16 means20:42
mwhudsonlongsleep: can you pastebin git diff, to be sure?20:43
mwhudson#define NLE_SEQ_MISMATCH1620:43
longsleep+                print("xxx", (ifindex, IFF_UP))20:43
mwhudsonlongsleep: oh20:43
mwhudsonlongsleep: link.flags, not IFF_UP :)20:43
longsleeperr sorry20:43
longsleepmwhudson: link.flags is 4098 for both errors20:45
mwhudsonlongsleep: thanks20:45
longsleepmwhudson: http://paste.ubuntu.com/23741285/20:45
mwhudsonlongsleep: but anyway, the wlan_listener is starting ok?20:46
mwhudsoneh it must be20:47
longsleepmwhudson: well no other error and it shows a bunch of networkinfo objects20:47
mwhudsonlongsleep: and the interfaces are up after you run probert?20:47
longsleepmwhudson: yes20:47
mwhudsonthen i don't know what is going on but it seems harmless20:47
longsleepmwhudson: xxx wlan_listener started (<_nl80211.listener object at 0x7fa91f3b88>,)20:48
mwhudsonlongsleep: cool20:48
mwhudsonif still mysterious why it doesn't work with snappy20:49
longsleepmwhudson: ok, but it confirms that wlan listener starts fine on classic ubuntu, same kernel except that one is manual build and the other is built by snapcraft20:49
longsleepmwhudson: fyi - kernel snap is built with this https://github.com/longsleep/build-pine64-image/blob/master/snappy/kernel/snapcraft.yaml20:51
longsleepmwhudson: and the classic kernel is also built only with sun50iw1p1smp_linux_defconfig config20:51
mwhudsonlongsleep: can you do this: http://paste.ubuntu.com/23741362/ re-down the interfaces and run network.py again?20:55
mwhudsonuh after running build_ext -i20:55
mwhudsonpastebin the output, there will be a lot of it20:55
longsleepmwhudson: sure hold on20:55
longsleepoh wow thats a lot of output20:56
* longsleep installs pastebinit20:58
longsleepmwhudson: http://paste.ubuntu.com/23741380/20:59
mupPR snapcraft#1010 closed: meta: add 'desktop' entry for apps <Created by oSoMoN> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1010>21:09
cliftontsEvening everybody21:31
cliftontsI'm having an issue packaging up a python script, is there anybody here who might be able to point out where I'm going wrong?21:34
kyrofacliftonts, sure! What's up?21:34
cliftontsInitially it was building but the installed snap was saying it couldn't find python21:35
kyrofacliftonts, which plugin were you using?21:35
cliftontsMark Shuttleworth suggested I change the python location stated in the script, now it just loads the python interpreter.21:35
cliftontsmy snapcraft.yaml is here: http://paste.ubuntu.com/23741430/21:36
kyrofacliftonts, the python plugin pulls in python2-- is that the one you want?21:36
cliftontsMy script will work with either 2 or 321:37
kyrofacliftonts, ah, but you have no setup.py or anything21:37
cliftontsfor what purpose?21:37
kyrofacliftonts, to tell snapcraft (or users, for that matter) about your project's dependencies and where it should be installed21:38
kyrofacliftonts, I'm referring to the RokuTerm project itself21:38
kyrofaWe still might be able to get this to work, hold on a sec21:38
cliftontsI am not the most experienced at this. I've never been able to package an app. Tried with deb for 2 years and gave up!21:39
cliftontsSo please forgive me if I'm doing things in an odd way.21:39
kyrofacliftonts, that's alright, you're just about there :)21:39
cliftontsIt's one of those things that's impossible until you've done it once I think.21:40
kyrofacliftonts, I'm playing with it for a minute, hold on21:42
cliftontskyrofa - rokuterm is a sort of prototype program, mostly not finished, mostly patched together and just there to iron out some kinks in the design which will be transferred to a new project later. It seemed appropriate to experiment with packaging on an experiment.21:42
cliftontsI would be keen to learn how one of these setup.pys would work though.21:43
kyrofacliftonts, it's a python packaging thing. This might prove a good starting point: https://stackoverflow.com/questions/1471994/what-is-setup-py21:45
cliftontsOk, thanks21:45
kyrofacliftonts, but you probably don't need it for this21:45
cliftontsI was about to say, the snap handles all of that anyway, right?21:45
kyrofaI'll explain in a second21:46
kyrofacliftonts, well, you still have to tell snapcraft what to put in the snap21:46
kyrofacliftonts, the `dump` plugin just puts EVERYTHING in its `source` into the snap (unless files are filtered out)21:46
cliftontsYes, but once I've got it actually loading the script I can then worry about dependancies and permissions.21:46
kyrofacliftonts, the make plugin doesn't-- it runs `make` and `make install`21:47
kyrofacliftonts, i.e. if you didn't have a Makefile, the `make` plugin wouldn't know what to install. Does that make sense?21:47
kyrofaThe python plugins are the same way21:47
kyrofacliftonts, but we can get around that by telling it exactly what to do21:48
cliftontskyrofa - I see, I have simply been following the demo for the python3 snap, trying to change as little as possible. But to be honest that didn't seem to work for me either.21:48
kyrofacliftonts, the python3 demo pulls in https://github.com/markokr/spongeshaker, which has a setup.py21:48
cliftontskyrofa - I will browse further. The problem with coming in with zero knowledge is you can so easily overlook the obvious.21:49
kyrofacliftonts, alright, quick question:21:50
kyrofacliftonts, rokuterm.py is supplied by two things, it seems: the github project and alongside the snapcraft.yaml21:51
kyrofacliftonts, can you explain that? Do you actually want both of them?21:51
cliftontskyrofa - No, as I previously stated that is pretty much a carbon copy of the spongeshaker yaml. Make it go, then figure out why it goes. I had no idea what was removable, yet.21:52
kyrofacliftonts, ah, I see. So that github project should work standalone?21:52
cliftontsDownload it to your desktop and run the py, it'll just work.21:52
kyrofaNo dependencies other than python2 or 3?21:53
kyrofa(Note that the py is not executable)21:53
cliftontskyrofa - Only a number of python modules. I debated with myself whether it would be frowned upon to have it set as executable as standard.21:54
kyrofacliftonts, default python modules, or pypi?21:55
cliftontsrequests, urllib, sys, time, os, urllib221:56
kyrofaAlright, sounds standard. Does this work better? http://pastebin.ubuntu.com/23741636/21:56
kyrofaI made a few changes. First of all, got rid of the extra dump usage21:57
kyrofaSecond, I noticed the script uses `env python` so I used python2 instead of python321:57
kyrofaThird, I had to tell snapcraft how to install the script, due to the lack of a setup.py that tells that to snapcraft for you21:57
kyrofaIt's just a simple "make a bin folder, copy it into the bin folder, make it executable"21:58
kyrofacliftonts, does that make sense?21:59
cliftontsSounds good21:59
cliftontskyrofa - Trying now22:01
kyrofacliftonts, looks like you use requests22:02
kyrofaOh, you said so. Not standard, missed that22:02
cliftontskyrofa - I will work on creating the setup.py next then. Easier now I have a starting point22:02
cliftontsRequests if python 322:02
cliftontsOh no sorry, I use th requests module yes.22:03
kyrofacliftonts, alright, this works: http://pastebin.ubuntu.com/23741673/22:04
cliftontskyrofa - Excellent! I now get an error stating no module named requests so that's one problem fixed, one created. Progress!!22:04
kyrofacliftonts, it doesn't work though-- it's trying the wrong subnet for me. But that should get you closer :)22:05
kyrofaAt least it builds correctly now22:05
cliftontskyrofa - As I said it is experimental, one of the next stages is to get network scanning working correctly. But you can specify the IP manually anyway.#22:05
kyrofaHow? I have a roku22:06
cliftontskyrofa - rokuterm 192.168.blah, blah22:06
gb__kyrofa ive been searching for a solution to my snap/nextcloud question.  I have I installed the ownbackup plugin but it doesnt seem to run.  What would you recommend as a backup solution?  I found on reddit that your the goto guy and worked on the snap package.22:07
cliftontskyrofa - Brilliant. It works but of course it is contained so can't access the network. I haven't read up on that yet.22:08
kyrofacliftonts, excellent, a little homework then!22:09
kyrofagb__, we've been talking about that actually22:10
cliftontskyrofa - Feel free to download and play with it. The aim is to re-create it using a graphivcal interface once all the features work.22:10
kyrofagb__, can you explain what you're trying to backup and why?22:10
kyrofacliftonts, already done ;)22:10
kyrofacliftonts, nice job by the way22:11
kyrofacliftonts, it would probably be helpful if you brought your mailing list thread to a close, by the way22:11
kyrofaTo others, I mean22:11
cliftontskyrofa - It's not that impressive, I've simply reverse engineered the code for uroku for ubuntu touch.22:11
gb__kyrofa all i wanted to do was backup the data so if i loose the boot disk on my server i can restore everything22:12
kyrofagb__, so you want _everything_, including the data?22:12
kyrofagb__, how often do you want to capture such a backup?22:12
gb__kyrofa thats what i was thinking of yes22:12
gb__kyrofa, just once a week its only a home server22:13
cliftontskyrofa - Thanks for your help. More progress in 24 hours than the last 2 years!22:14
kyrofagb__, that's all I have to, but that's still a few hundred GBs per backup if you include the data. Where do you intend on putting them? (not trying to attack by the way, it's just helpful having a use-case to poke at)22:15
kyrofacliftonts, any time!22:15
mupPR snapcraft#1025 closed: project loader: better error message for classic <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1025>22:15
kyrofagb__, and how many do you intend on keeping?22:15
cliftontsI'm off to try and find something to watch on the bottomless pit that is roku. Night!22:15
gb__kyrofa i have a zfs array on the server to backup too22:16
mupPR snapcraft#984 closed: parser: improve output <Created by josepht> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/984>22:18
kyrofagb__, okay. So currently, you can totally just slurp the entire /var/snap/nextcloud/current directory22:18
kyrofaAs well as the /var/snap/nextcloud/common directory (which holds the raw data)22:18
kyrofaTo restore, just install the snap and copy stuff over the top22:19
kyrofagb__, but we're working on making a nicer export/import22:19
kyrofagb__, but unlike just Nextcloud, we have other things to think about. SSL keys, etc22:20
kyrofagb__, so: do you find yourself caring about the raw data, the database, the nextcloud config, the extra stuff like SSL keys, or everything in one big dump?22:21
kyrofagb__, note that the discussion to which I refer is happening here: https://github.com/nextcloud/nextcloud-snap/issues/12622:23
gb__kyrofa thinking about it if i backup just the data i could always copy it back22:24
kyrofagb__, yeah just backup /var/snap/nextcloud/common, then. If you need to restore, just put the files back in there and Nextcloud will pick them up22:26
kyrofagb__, but we can make that better22:26
kyrofaIt's on the list :)22:26
gb__kyrofa thanks for your help Ill do that then.  I have a long list of todo's too.  Thanks for your help :)22:27
kyrofagb__, any time!22:28
kyrofagb__, thanks for letting me pick your brain. Feel free to join in that conversation on the bug22:28
gb__kyrofa will do!22:29
mwhudsonlongsleep: sorry for the delay, that doesn't really make much sense to me though :(23:04

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