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

Kamiliontrying to get the webcam-webui example to work, had to apt install snapd, but I get an error when trying to snap install webcam-webui_1_amd64.snap: - Make snap "ubuntu-core" available to the system (can not set next boot: cannot determine bootloader)01:33
carakaWhile doing the 'build your first snap' tutorial, the 'snapcraft stage' command never sees/installs the stage-packages: -fswebcam portion of the yaml. Any ideas what I could be missing?10:01
dakerogra_: ping10:21
dakerhi i am trying to install a snap using10:21
dakersudo snap install raspi2modulessyncup_4.4.0_armhf.snap10:21
dakera local snap, but snap is trying to download it from the store10:22
dakerhttps://paste.ubuntu.com/16143215/10:22
carakadacker: I have no business offering advice here, but have you tried specifying the complete path the .snap file?11:03
=== yp is now known as ypwong
=== daker_ is now known as daker
=== rob-oi-ma_ is now known as rob-oi-ma
oparoz_Does snappy care about what's in the snap's /etc/init.d folder?14:42
sergiusensKamilion did you install only snapd and not by any chance any deb you were not supposed to? Like ubuntu-snappy?14:48
sergiusensKamilion log a bug just in case14:49
=== oparoz_ is now known as oparoz
oparozIs there an easy way to clean up all the garbage left over by snaps in /etc/systemd ?15:12
slvnoparoz, maybe the scripts from zyga, e.g. https://github.com/zyga/devtools/blob/master/reset-state17:50
oparozThanks slvn. I think that script goes too far as my system probably wouldn't boot any more :)17:51
oparozBut it could be altered17:51
slvnoparoz, I tried it to remove/clean-up all snaps installed on my system ...17:51
oparozslvn, your system is probably desktop?17:52
slvnyes17:52
oparozThe problem with core is that some of these snaps are required to boot17:52
oparozBut that script still helps as it gives the location of files17:53
slvnoparoz, ok, then maybe don't use this script :)17:53
slvnbtw, may I ask you what kind of platform do you use for this ?17:54
oparozWhat do you mean by platform?17:54
slvnhardware ? I mean this is not a desktop ?17:55
oparozI use a VM for amd64 stuff, otherwise it's a Pi217:55
slvnok, I'm just curious17:56
oparozOnce Snappy core is GA, I'll probably use the desktop version17:57
oparozRight now I just need something which matches the target17:58
slvnoparoz, but snappy is currently working on desktop, isn'it ? I mean, I just build and tested my first snap packages last week. Is this different for rpi2 ?18:00
oparozYes, it's different because the Pi2 uses Core which isn't ready yet18:00
oparozShould take another month or 218:01
slvnok18:02
bumbleheadHi I'm trying to run the webchat snap example. I was able to create the webchat snap package. I was able to install it. I'm not able to run it.19:47
bumbleheadhttp://askubuntu.com/questions/765571/how-do-i-run-the-snapcraft-webchat-example19:47
bumbleheadwould someone tell me what I'm doing wrong?19:48
bumbleheadshould snappy still be considered to be in the "baking" stage?20:05
Kamilionbumblehead: sorry, just woke up a little while ago -- I had questions like yours too20:08
bumbleheadKamillion: were you able to find answers or help for the questions you had?20:09
Kamilionfrom what I understand, snappy moved beyond the initial baking stage with 16.04's release, supposed to include snapd/ubuntu-core-launcher on the install media of all of the different spins20:09
Kamilionunfortunately, lubuntu doesn't ship with snapd/ubuntu-core-launcher20:09
bumbleheadKamilion: do I need to install snapd/ubuntu-core-launcher?20:10
Kamilion<sergiusens> Kamilion did you install only snapd and not by any chance any deb you were not supposed to? Like ubuntu-snappy?    <---- no, fresh lubuntu 16.04 64bit ISO, apt install snapd, snap install webcam-webui_1_amd64.snap20:10
Kamilionbumblehead: I don't know20:11
Kamilionare you using lubuntu?20:11
Kamiliondo you have the 'snap' command available?20:11
bumbleheadno regular ubuntu20:11
bumbleheadI do have the snap command20:11
Kamilionwhen i tried to use the snap command I got this error20:11
Kamilion- Make snap "ubuntu-core" available to the system (can not set next boot: cannot determine bootloader)20:11
Kamilionin response to 'snap install webcam-webui_1_amd64.snap'20:11
Kamilionbumblehead: as far as I know, all of the other isos have snapd (and ubuntu-core-launcher is one of it's dependants)20:12
Kamiliononce I actually installed the OS to a disk, I got past the strange bootloader error20:13
bumbleheadi don't think this looks good when the examples don't run20:13
Kamilionbut now I have the same problem as you20:13
KamilionI built the webcam snap, and installed it, and have no idea how to launch it20:13
bumbleheadit looks like a lot of the information out there is spread out and incomplete20:14
bumbleheaddespite the marketing around snap, official support snap may be shallow20:15
Kamilioncorrect, IMHO canonical has followed this plan before with a lot of their 'not-invented-here' alternatives to standard linux, such as the unity desktop, mir, 'click' packages, and a couple others I could name but decline to at this point20:15
bumbleheadmaybe they'll have some of the issues worked out in the next release20:15
Kamilionthere's lots of news postings20:15
Kamilionand very little wiki/documentation20:15
bumbleheadyeah some of the documentation just looks like it was created as a formality20:16
Kamilionand what documentation there is, seems targeted at either developers only, or "users, no developers, no admins"20:16
bumbleheadwhat good is a howto document that doesn't show me how to run or test the app?20:16
KamilionI'm very used to tools where the documentation is "read the comments in the source code", so i'm not TOO bothered20:16
bumbleheadI'm using ubuntu touch --same situation there20:17
bumbleheadstuff just languishing in a broken state for years20:17
Kamilionbut this isn't a bashing session, just pointing out20:17
* Kamilion laughs20:17
Kamilionyeah, Upstart.20:17
bumbleheadthe ubuntu touch store also20:17
KamilionThe stories I could tell you about my adventures with upstart. *facepalm*20:17
Kamilionwhat about Ubuntu-One? Poof, gone, all my dotfiles and homedir neccessities...20:18
KamilionI love that they try new things20:18
Kamilionbut it's a double edged sword.20:18
Kamilionso I hope nobody mistakes this as "I hate canonical!" because that's just totally untrue. I have much <3 for them, I just don't agree with them all the time, that's all :D20:19
bumbleheadits fair to observe flaws20:20
Kamilionanyway, snappy seems half-baked at the moment20:20
bumbleheadthere's always this persective 'its open source so you aren't in a position to complain and we're all busy and can't fix our broken stuff so live with it'20:20
Kamilionthe idea is well thought out, but the implimentation is... uh... What's a word for 'disorganized and strewn about" ?20:21
bumbleheadimplementation is incomplete20:21
bumbleheadand the pattern appears to be that once something gets released20:22
Kamilioneh, the ecosystem is incomplete; the core tool works at the moment20:22
bumbleheadthey stop improving it20:22
Kamilion*cough* ptrace in upstart...20:22
Kamilionyeah.20:22
KamilionThe one thing I wanted to do was launch the webserver... Oh, sorry, can't launch apache with upstart because upstart uses ptrace somewhere and apache really doesn't like that.20:23
Kamilionlongstanding bugs, plans formed, and in the end? systemd swoops in and the whole problem evaporates.20:23
KamilionI'm kind of afraid that's what's going to happen to Mir/Unity as well...20:24
bumbleheadsounds like they need to figure out a way to do that with unity and ubuntu touch and snappy and the application store and the core ubuntu apps...20:24
Kamilionwayland will suddenly get a whole bunch of industry support (like the recent announcements that the new GL/Vulkan stuff was already wayland compatible) and then people will be left holding the ball trying to support what amounts to be a personal project20:25
Kamilionwell, it seems to me that's exactly what snappy is20:25
bumbleheadits too bad...20:25
bumbleheadin theory the idea is really attractive20:25
Kamiliona way to ship a whole application bundle with it's libs and everything, as one package.20:25
KamilionIt will be GREAT for games.20:26
bumbleheadis there an alternative to snappy that's supported by a responsible vendor?20:26
Kamilionno longer does it matter that this game needs qt4-something and I only have qt5-something20:26
Kamilionuhhh, honestly? Not that I know of.20:26
KamilionI'm familiar with most of the distros and the package managers that run them20:26
Kamilionthe only thing that I can think of that's similar is gentoo's overlay system for portage20:27
KamilionOr, well, ubuntu's own PPA system if there's a metapackage in the PPA that 'grabs everything'20:27
Kamilionand that's one of the reasons why I'm still here20:28
KamilionCanonical may be quirky and slow to support things.. but they *ARE* innovating greatly20:28
sergiusensbumblehead the snapcraft examples are meant to be examples; and fwiw, it is run on every commit of snapcraft it self20:29
Kamilionlike the lxqt PPAs (there's an lxqt-metapackage in the PPA that will get the right bits from universe and from the ppa)20:29
sergiusensit is not a command line tool (the way the example is crafted at least).20:29
sergiusensand you have an answer http://askubuntu.com/questions/765571/how-do-i-run-the-snapcraft-webchat-example20:29
Kamilionhttp://puu.sh/oBzoy/7622f10efb.png   <--- so it should be running on :3000 now?20:30
Kamilion*checks*20:30
bumbleheadsergiusens: thank you that looks like the information I needed20:31
sergiusensKamilion it should20:32
sergiusensI can't try right now; I'm on 3g20:32
sergiusensif you want a better node app; try shout. I am using it to write into right now20:33
sergiusensI'm really close to an electron app working as well20:33
sergiusensbut it is the weekend after all20:33
sergiusensand not much free time to get to these things20:34
bumbleheadseriusens: I want to package something with nw.js --if you finish packaging the electron app will you share the result somewhere?20:34
bumbleheadsergiusens: I will try the shout example20:35
Kamilionsergiusens: are you one of the primary developers?20:35
Kamilion(it is not running on :3000 for me)20:36
bumbleheadhttps://github.com/ubuntu-core/snapcraft/blob/6685d6359887fbb7b1c35f3dce30bb70e7b06e8a/examples/shout/snapcraft.yaml20:36
Kamilionoh20:37
KamilionI should point out -- you probably want The Lounge, not shout20:37
Kamilionhttps://github.com/thelounge/lounge20:37
Kamilion#thelounge here on freenode. It's a community fork of Shout, because the developer said that Shout is a personal project and he apparently wants to keep it that way20:38
bumbleheadthe should example does not build either20:40
bumbleheadIssues while validating snapcraft.yaml: Additional properties are not allowed ('uses' was unexpected)20:40
sergiusensKamilion it was already pointed out to me20:40
sergiusensbumblehead are you using master?20:40
bumbleheadah no20:40
bumbleheadI will try the master example20:41
sergiusensbumblehead what are you using?20:41
bumbleheadthere is a 1.* branch that's what I was referencing20:41
sergiusensKamilion https://github.com/sergiusens/shout/commit/899e61fa28fe6cb98a434123584a621c1d11ceb3#commitcomment-1731332120:41
sergiusenseven though shout is not really abandonded though20:41
bumbleheadsnap is building the shout package20:42
KamilionShout isn't *abandoned*20:42
Kamilion"We felt that the original Shout project "stagnated" a little because its original author wanted it to remain his pet project (which is a perfectly fine thing!).20:43
KamilionA bunch of people, excited about doing things a bit differently than the upstream project forked it under a new name: “The Lounge”."20:43
KamilionI've been hanging around the IRC channel for the past ~3-4 weeks, and development is extremely active right now20:43
sergiusensKamilion yeah, "active" and wanting to use it for real makes me think I want the dust to settle a bit; but I haven't checked out yet to be certain of my initial thoughts20:44
Kamilionbut that's also a good thing that Shout isn't hugely active, the snaps made from it probably won't be version-obsolete for a while. :)20:44
Kamilionsergiusens: I should mention -- right now Shout cannot handle getting disconnected, and has no idea when 'the server has gone away'.20:45
bumbleheadi wish one of the examples was a nw.js/electron hello world app that runs from a shell or icon click20:45
sergiusensKamilion I fully know about that :-)20:46
sergiusensKamilion you may see me pinging ubottu to know if my connection is alive :-)20:46
* Kamilion chuckles20:46
Kamilionyeah, I do that to my supybot as well20:46
Kamilionalthough ours is the buddy/guy/friend/pal sequence from south park20:47
Kamiliontrying to craft a snap from my old disker-gui package: https://github.com/kamilion/disker-gui20:47
Kamilionor at least, that is the plan.20:48
Kamilionsergiusens: do you know if snapd works on any of the other live ISOs, or if it's required to be an on-disk install with a 'normal' root filesystem?20:49
KamilionI just can't seem to get snaps working on my most recent xenial spin, https://github.com/kamilion/kamikazi-core/releases/tag/0.9.0-rc120:50
bumbleheadsergiusens: do you recommend electron over nw.js?20:50
KamilionI don't think it's enthused that my root filesystem is a squashfs.20:50
sergiusensKamilion I don't know about installation requirements or not, sorry20:52
sergiusensbumblehead I'm not a nodejs person; but everything interesting is using electron20:52
sergiusensKamilion a bug report against snapd might be handy20:53
Kamilionsergiusens: once I can figure out what needs to go in it, repros and data.21:00
Kamilionwhere should bug go? to the github issues, or launchpad on snapd?21:03
Kamilionah, nevermind, answer's obvious if I look at the github -- no issue tracker.21:04
Kamilionjust pull requests.21:04
bumbleheadwhat does the yaml file look like for a tradional desktop style application which does not run as a service daemon?21:05
carakanoob question: While doing the 'build your first snap' tutorial, the 'snapcraft stage' command never sees/installs the stage-packages: -fswebcam portion of the yaml. Any ideas what I could be missing?21:06
=== not_phunyguy is now known as phunyguy
Kamilionbumblehead: I'm looking through the examples tree, and I'm not seeing any desktop applications, but I would figure it would expose a .desktop file in /usr/share/applications or somewhere else that a desktop environment looks for .desktop files.21:06
Kamilioncaraka: I had some trouble going thru the steps myself; but grabbing the final from the git repo and snapcraft snap worked.21:07
Kamilionhttps://github.com/ubuntu-core/snapcraft/tree/master/examples21:07
Kamilioncaraka: This is pretty much what I saw: http://puu.sh/oBzoy/7622f10efb.png21:08
carakaThanks Kamilion. I haven't got  that far because fswebcam isn't getting staged. I'll try cutting and pasting the complete example yaml again, but I'm not sure it's going to help.  :P21:11
KamilionI had some problems when it went to go update repos, I had keybase's deb repo enabled and it was very unhappy there was no Release file for xenial21:11
Kamilioncaraka: there's a snapcraft-examples package you can install from apt21:11
Kamilionwhat I did was cp -R /usr/share/doc/snapcraft-examples/examples/webcam-webui ~/snapcrafty/webcam-webui21:12
carakaI shall try that, thanks. Would prefer to roll my own in order to learn the thng tho...21:13
Kamilionunderstood21:14
carakaall part of the learning curve.21:14
KamilionI myself was just making sure everything was operating as intended before moving on to trying my own21:14
Kamilionyeah, I just started reading the docs myself yesterday21:15
carakaAnd of course I'll be having a go at a full desktop app before I'm ready.  :P21:15
Kamilionsomeone linked them to me after I complained about the release notes pointing to a Marketing press release page that wasn't very helpful21:15
Kamilionthen found out lubuntu somehow missed snapd in their 16.04 release21:16
KamilionI was told it's supposed to be part of the platform seed, which all of the different spins inherit from21:16
Kamilionso in theory snapd should have been included with all of the 16.04 release ISOs.21:17
carakaI think it may have all hit the betas at a very late stage21:17
Kamilionbut nobody tested before shipping, and #ubuntu-release was a madhouse during release week, so it doesn't suprise me it was overlooked or put off till 16.04.01's june point release21:17
carakaI thought I heard it skidding into the blocks on April 20th...21:18
Kamilionhahaha no wonder21:18
Kamilionmeanwhile, I've been running xenial since november21:18
Kamiliongot so many little papercut annoyances fixed between 15.04 and 16.0421:19
carakaI waited. and mucked around with systemd and thoroughly barfed on my wily, so that I could erase it last week and start again21:19
Kamilionopenvswitch is just so much happier now21:19
Kamilionxen and openvswitch play together nicely now too21:20
Kamilionand they barely caught the cusp of the ceph LTS release21:20
KamilionI think they put one of the release candidates in the repo just before release and there's a SRU promised when the final lands. <321:21
KamilionI really love that they loosened the SRU restrictions this LTS21:21
Kamilionbecause of it now we get nginx 1.1021:21
Kamilion(that was a VERY pleasant suprise)21:21
Kamilionnone of these ship on canonical ISOs, so they can all get updated in the archive without worry.21:22
carakaI never play with any of the infrastructure toys21:24
Kamilionall in all, 16.04 is gonna be a really solid platform that'll be well cared for till 2020ish for the server packages, and like 2018 for the desktop packages.21:24
Kamilionwell, uh21:24
Kamiliontill about 14.10 they were kinda sorta broken when just pulled in bare from the archives <.<21:25
carakaI hope so. canonical is mature enough to have made enough people grumpy. (and enough happy)21:25
Kamilionin 15.04 I complained enough so the defaults were sane but kind of poopy performance21:25
=== not_phunyguy is now known as phunyguy
Kamilionin 15.10 I got the performance problems resolved with a lot of the defaults21:25
carakaand now you have an LTS you are happy with21:25
Kamilionand the openstack team has been doing GREAT work on papercut bugs too21:26
Kamilionwell, now we have an LTS where everything works out of the box, at least.21:26
caraka^^21:26
Kamilion14.04's point releases really helped too21:26
Kamilionand if you wanna play around with the fancy VM stuff21:27
carakaWell, we're onto our 6th LTS or so, so the pattern is set21:27
Kamilionhttps://github.com/kamilion/kamikazi-core/releases/tag/0.9.0-rc1  <--- my appliance image USB stick is powered by ISOs and casper21:27
KamilionTORAM=Yes is my bestest friend.21:28
KamilionI steal a gigabyte of ram for a full desktop on top of xen/kvm, openvswitch, ceph, and python321:28
Kamilion"Don't mix your OS with your data" is a good way of describing it... Stick it on a slow USB stick, boot it into ram, unmount the slow usb stick, mount the user disks.21:29
Kamilionubuntu-core's a different way of doing the same thing21:30
carakathats some serious effort!21:31
Kamilionas an appliance, I expect to throw away 99.9% of runtime data when the machine shuts down. Anything the user cared about, they saved. (EG, logs and databases and such)21:31
KamilionI stood on the shoulders of some pretty tall giants. :321:32
carakaDespite it being Sunday morning, I must go to work. Keep up the good work!21:32
Kamilionbut yeah -- after three years, my goals and canonicals have somewhat aligned21:32
Kamilionthanks to openstack getting popular.21:32
Kamiliono/21:32
Kamiliongood luck with snapcraft!21:33
carakao/ thanks, I'll need it!21:33
bumbleheadhowI installed the ubuntu-calculator-app with snap http://bazaar.launchpad.net/~dpm/ubuntu-calculator-app/snap-all-things/view/head:/snapcraft.yaml21:47
bumbleheadhow do I run the calculator from a shell?21:47
bumbleheadubuntu-caculator-app.start21:48
bumbleheadcommand not found21:48
sergiusensbumblehead use autocomplete or ls /snaps/bin21:53
sergiusenserr /snap/bin21:53
bumbleheadsergiusens: thanks I'm able to run the calculator app21:59
bumbleheadnow I'm trying to run my nw.js application with snap but I think the npm command fails because it is not executed from the same location as the package.json22:00
bumbleheadI'm using this command22:00
bumblehead`command: bin/npm run nw`22:01
bumblehead`nw` is defined in the script space of the package.json22:01
bumbleheadrelative to the snap root directory it is found in lib/node_modules/flashcards/package.json22:02
bumbleheadI tried changing command to `cd lib/node_modules/flashcards/ && ../../../bin/npm run nw22:03
bumbleheadbut snapcraft says the cd command is not found22:03
sergiusensbumblehead you build using parts; `command` should hold the final application22:06
sergiusensso `apps` defines how the application is exposed within the snap to the outer world22:07
sergiusensand parts define how to build and/or lay it out in the snap22:07
oparozIs it possible redirect calls going outside of a snap to an internal folder? Like when a binary only wants to create folders in /var/run22:10
oparozBecause even when compiled from source, we can't tell the binaries where the writable partition is22:12
bumbleheadsergiusens: can you tell me how I would describe a build step in the parts section? for example running browserify?22:13
bumbleheadit looks like I would need to write a plugin using python that would drive the node behaviour I need22:46
bumbleheadI don't know where the best place would be to make possible suggestions22:49
bumbleheadbut I would suggest that the snappy plugin should use a special npm run command22:49
bumbleheadthat way people using node/npm would have an easy way to hook up functionality they need for setting up snap packages22:50

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