asheesh changed the topic of #sandstorm to: Welcome to #sandstorm: home of all things sandstorm.io. Say hi! | Channel glossary: "i,i" means "I have no point, I just want to say". b == thumbs up. | Public logs at https://botbot.me/freenode/sandstorm/ & http://logbot.g0v.tw/channel/sandstorm/today
<simonv3> Hey kentonv are you available to answer some questions about accounts-sandstorm (the meteor package)?
<simonv3> or anyone else
<kentonv> hi
<kentonv> simonv3: go ahead
<gwillen> zarvox: submitted
<gwillen> dwrensha: it seems the app is actually already using pushstate and updating its url.... on the iframe, of course, so nobody ever gets to see it
<gwillen> dwrensha: I wonder if sandstorm could intercept that and do setPath automatically
<gwillen> (but it definitely ought to be easy to add it manually)
<simonv3> kentonv: I’m using the accounts-sandstorm package on local.sandstorm.io:6080 and created a new grain of my app - but the permissions array is empty. Using the accounts-sandstorm-dev package with meteor I’m seeing an “owner” instance in the permissions. Is that right?
<kentonv> simonv3: You'll need to declare your permissions and roles in your sandstorm-pkgdef.capnp before they show up in-app. I think accounts-sandstorm-dev ignores your pkgdef and specifies whatever permissions you configure it to specify.
<simonv3> kentonv: ah gotcha, I’ll give that a go
<kentonv> simonv3: note that the owner always has all permissions, so some apps define an "admin" or "owner" permission that is not a member of any role, and that's how they identify the owner
NwS has quit [Quit: See you in Isla de Muerte!]
<mnutt_> gwillen: not sure how wekan is written, but this has worked great for me: https://github.com/mnutt/davros/blob/master/app/router.js#L19-L21
<mnutt_> awesome to be able to hit reload and not go back to the grain root
<gwillen> mnutt_: that's shockingly simple
<mnutt_> the ember devs are really into urls-as-state, it fits really nicely into sandstorm
<gwillen> thanks, I updated the bug and tagged you!
home_ is now known as home
<mnutt_> it looks like wekan uses flow-router, so it’s probably a 3-line change
<gwillen> mnutt_: if that's relevant can you comment on the bug about it? I have to run to dinner. (Thanks for your help!)
<gwillen> Aha, awesome!
<mnutt_> I’ll open a PR to wekan
DanC has left #sandstorm ["Ex-Chat"]
<mnutt_> does anyone here know how wekan spks are made? I don’t see a .sandstorm directory, I’m guessing it’s developed without vagrant-spk?
<dwrensha> mnutt_: it could be using meteor-spk directly
<mnutt_> ah, ok
funwhilelost has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jacksingleton has quit [Ping timeout: 244 seconds]
mnutt_ has quit [Quit: mnutt_]
home has quit [Ping timeout: 272 seconds]
dwrensha has quit [Quit: ChatZilla 0.9.92 [Firefox 42.0/20151029151421]]
jadewang has quit [Remote host closed the connection]
jacksingleton has joined #sandstorm
mnutt_ has joined #sandstorm
jadewang has joined #sandstorm
jadewang has quit [Ping timeout: 240 seconds]
jadewang has joined #sandstorm
jacksingleton has quit [Ping timeout: 260 seconds]
home has joined #sandstorm
home has quit [Remote host closed the connection]
home has joined #sandstorm
rancar2 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dwrensha has joined #sandstorm
jacksingleton has joined #sandstorm
ArcTanSusan has joined #sandstorm
<mnutt_> copy/paste is currently the only powerbox method available, right? is it possible to set up persistent access between two grains using powerbox right now?
<mnutt_> for example, I’d like to permanently offer read access to a directory tree of files I have in my grain, via a capnp API…I’m imagining list() and get() would be sufficient out of the gate
simonv3 has quit [Quit: Connection closed for inactivity]
mnutt_ has quit [Quit: mnutt_]
ArcTanSusan has quit [Quit: ArcTanSusan]
rhapsodhy has quit [Remote host closed the connection]
rhapsodhy has joined #sandstorm
ArcTanSusan has joined #sandstorm
docaedo has joined #sandstorm
jadewang has quit [Remote host closed the connection]
jadewang has joined #sandstorm
erikmaarten has joined #sandstorm
rolig has quit [Ping timeout: 264 seconds]
rolig has joined #sandstorm
ArcTanSusan has quit [Quit: ArcTanSusan]
h2o3 has joined #sandstorm
erikmaarten has quit [Ping timeout: 240 seconds]
ArcTanSusan has joined #sandstorm
home has quit [Ping timeout: 264 seconds]
jacksingleton has quit [Ping timeout: 240 seconds]
jadewang has quit [Remote host closed the connection]
kentonv has quit [Ping timeout: 260 seconds]
kentonv has joined #sandstorm
jadewang has joined #sandstorm
jadewang has quit [Ping timeout: 252 seconds]
jjb is now known as oao
ArcTanSusan has quit [Quit: ArcTanSusan]
jinnko` is now known as jinnko
fonfon has joined #sandstorm
jadewang has joined #sandstorm
jadewang has quit [Ping timeout: 265 seconds]
h2o3 has quit [Quit: Nettalk6 - www.ntalk.de]
fonfon_ has joined #sandstorm
fonfon has quit [Ping timeout: 240 seconds]
jadewang has joined #sandstorm
jadewang has quit [Ping timeout: 255 seconds]
jadewang has joined #sandstorm
jadewang has quit [Ping timeout: 240 seconds]
asmyers has joined #sandstorm
jadewang has joined #sandstorm
fonfon_ has quit [Ping timeout: 244 seconds]
jadewang has quit [Ping timeout: 265 seconds]
jkbbwr has left #sandstorm [#sandstorm]
dlitz_ has quit [Ping timeout: 250 seconds]
dlitz has joined #sandstorm
jadewang has joined #sandstorm
fonfon has joined #sandstorm
jadewang has quit [Ping timeout: 276 seconds]
home has joined #sandstorm
jadewang has joined #sandstorm
augustl has quit [Ping timeout: 240 seconds]
augustl has joined #sandstorm
jadewang has quit [Ping timeout: 264 seconds]
mnutt__ has joined #sandstorm
jadewang has joined #sandstorm
jadewang has quit [Ping timeout: 265 seconds]
<asheesh> mnutt__: The powerbox does retain a capability for you, between server/process restarts etc.
<asheesh> Even the copy-paste one.
<mnutt__> got it, yeah I read through the save one after that
<mnutt__> thanks!
<mnutt__> other than the UI, everything described in the grain capnp is complete?
<dwrensha> mnutt__: there's a lot in grain.capnp that's not implemented
<mnutt__> ok
<asheesh> The comments are up-to-date, is what I would say instead.
rustyrazorblade has joined #sandstorm
erikmaarten has joined #sandstorm
ArcTanSusan has joined #sandstorm
<asheesh> Morning, all.
<rustyrazorblade> morning
<larjona> Tzag! - Evening here :)
<rustyrazorblade> good day
<asheesh> larjona: Did you end up trying out Davros btw?
<larjona> Bad week, didn't advance on that
<asheesh> np, there is much more time available in the world
<larjona> Advanced in writing a blogpost about sanstorm, though
<asheesh> Whoa, neat!
<larjona> (Still unpublished)
<larjona> (Waiting for davros and some other things)
ArcTanSusan has quit [Quit: ArcTanSusan]
jadewang has joined #sandstorm
jadewang has quit [Ping timeout: 250 seconds]
<asheesh> "Sandstorm - easy web containers for self hosting
<asheesh> "
<asheesh> is the name of jontheniceguy's talk, per https://github.com/sandstorm-io/sandstorm/wiki/Sandstorm-Talks -- pretty sensible summary
erikmaarten has quit [Ping timeout: 260 seconds]
mnutt__ has quit [Quit: mnutt__]
fonfon has quit [Ping timeout: 250 seconds]
NOTevil has joined #sandstorm
funwhilelost has joined #sandstorm
fonfon has joined #sandstorm
home has quit [Ping timeout: 276 seconds]
jadewang has joined #sandstorm
tdfischer has joined #sandstorm
funwhilelost has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
funwhilelost has joined #sandstorm
<dwrensha> I'm seeing "error: Backend hasn't responded in 30 seconds! Reconnecting." on my dev server
<dwrensha> and it's not fixing itself...
<dwrensha> kentonv: is this ^ a possible symptom of the bug you've been seeing that forces you to restart the frontend?
<kentonv> dwrensha: yes, that is exactly the bug
kecolus has joined #sandstorm
<dwrensha> i wonder if i can help diagnose it...
<dwrensha> no nginx, fwiw
<kentonv> well, I guess in your case it is not urgent to restart it
<dwrensha> that's true
<kentonv> if you're OK with leaving it like that, I wouldn't mind poking at it a bit
<dwrensha> heh, I don't actually think I can give you access
<kentonv> also, what were you doing when the problems started?
<dwrensha> this is on my VM through a host-only network
<dwrensha> I'm running ./run-dev.sh
<dwrensha> and I did a bunch of switching between git branches
<dwrensha> and testing of share token redemption
<kentonv> huh
<dwrensha> and then I noticed, after being away for about an hour, that it was broken
<kentonv> I guess it's possible that this isn't the same bug at all. It could be that your back-end crashed or something.
funwhilelost has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dwrensha> kentonv: `nc -U /opt/sandstorm/var/sandstorm/socket/backend` still succeeds. I think that means the backend didn't die.
funwhilelost has joined #sandstorm
bb010g has joined #sandstorm
<dwrensha> kentonv: the node process currently has 71 unix sockets open
<kentonv> dwrensha: yeah, that's because it keeps reconnecting and it probably hasn't gotten around to GC'ing the old sockets.
<kentonv> but I don't think that's because of the bug itself
<dwrensha> I got myself a core file of the node process from gdb.
mnutt__ has joined #sandstorm
NOTevil has quit [Quit: reboot!]
fonfon has quit [Remote host closed the connection]
NOTevil has joined #sandstorm
<ocdtrekkie> I submitted a tiny PR for you asheesh
<asheesh> I guess I'll click the "Join us" button
<asheesh> ocdtrekkie: ooh
<ocdtrekkie> Based on replying to ndarilek on the dev list.
<asheesh> +1
<ocdtrekkie> Re: Alliance, would be funny if they were like 'oh, Sandstorm works'.
<ocdtrekkie> Groups is gonna be a big need for organizations in particular.
fonfon has joined #sandstorm
<asheesh> I really want those groups
<jadewang> hey @asheesh, do you know the hylo folks?
<asheesh> I don't really.
<asheesh> I know Ben of Known, is all.
<ocdtrekkie> You should just offer Sandstorm on it. :)
<asheesh> I kind of want to defer that to someone else since I have so much else to do |:
<asheesh> jadewang: Can I get you excited about this?
<jadewang> i already am, but I need to finish this blog post
<ocdtrekkie> Okay, so, my home automation software is in Visual Basic, but I can use a web friendly database like SQLite.
<jadewang> and I'm trying to find a mutual friend for an intro
<jadewang> but if you know ben, that's better
<ocdtrekkie> I wanna do like a Sandstorm hosted web interface for it. But I don't wanna put the database in Sandstorm because the app needs to work if the Internet is down.
<asheesh> "obviously" you should do a thing where you push the contents of your DB to a Sandstorm grain, and then there's some code on the Sandstorm grain that knows how to read the DB file and do some visualization.
<asheesh> But that's the cheating way and makes the "reporting" app separate from the "using it" app.
<ocdtrekkie> I feel like some sort of database sync is in order.
<asheesh> Presumably the Sandstorm copy never should be written-to, and your copy on your machine should be authoritative always?
<ocdtrekkie> No, definitely want to be able to control the house.
jacksingleton has joined #sandstorm
<ocdtrekkie> Though if there was a disagreement, the house's database would be probably assumed to be right. I'm trying to think if like sending the same command to each database would work.
bb010g has quit [Quit: Connection closed for inactivity]
fonfon has quit [Remote host closed the connection]
NOTevil has quit [Quit: ...]
asmyers has quit [Ping timeout: 246 seconds]
larjona has quit [Ping timeout: 260 seconds]
larjona has joined #sandstorm
larjona_ has joined #sandstorm
larjona has quit [Ping timeout: 276 seconds]
pjz has joined #sandstorm
<pjz> anyone availble to help me debug my almost-install?
<pjz> I've got it installed enough that I can use the webUI but apps don't work
<pjz> I'm running it through an nginx proxy
<asheesh> Howdy pjz
<pjz> asheesh: howdy
<asheesh> https://docs.sandstorm.io/en/latest/administering/faq/ can sometimes help too fwiw
<asheesh> "Why do I see an error when I try to launch an app, even when the Sandstorm interface works fine"
funwhilelost has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pjz> well, I don't see an error, I just get the spinner
<pjz> is that the same as an error? I have my wildcard DNS set up
<asheesh> Interesting, pjz
<asheesh> Do you have a domain name I can test with? private message is OK
<pjz> oh, hm, redirects are problematic
funwhilelost has joined #sandstorm
<pjz> I'm proxying 443 for *.foo.mysub.com , but plain 80 on *.foo.mysub.com is going to mysub.com, which is rong
<pjz> okay, fixed that, but, hm, wasn't the source of the problem, looks like
<pjz> asheesh: sent
<asheesh> Looks like you have a problem with a custom CA that can be solved by "Self-hosted HTTPS with a custom certificate authority" in https://docs.sandstorm.io/en/latest/administering/ssl/
<asheesh> Those instructions say sandcats but you can use it on your domain too.
<pjz> asheesh: can I ask how you figured that out?
<asheesh> Basically, Sandstorm uses a bunch of subdomains and it looks to me like you have to click "Yes ignore the HTTPS warning" in each subdomain Sandstorm uses, but with IFRAMEs the browser doesn't show you the "Yes ignore the HTTPS warning"
<asheesh> Ya. Steps:
<pjz> ahh
<asheesh> - Visit your site over HTTP
<asheesh> - Visit over HTTPS
<asheesh> - See a cert I don't trust
<asheesh> - Remember having solved this for others
<asheesh> I guess that merits being added to the FAQ, huh. (-:
<pjz> I guess :)
<pjz> eek, all that trouble you guys might as well enable a client-side-cert auth method
<asheesh> I'd like to! Just a matter of getting the time.
<pjz> oh, ugh
<pjz> I can manually accept one cert, but one cert can't be for both *.foo and foo
<pjz> or can it? hmm...
<asheesh> A different approach is to follow the docs link I gave, to create a new *CA*, then add the CA, and then it'll trust the cert.
<asheesh> One cert can be valid for foo & *.foo
<asheesh> The config in the docs should give you that.
<pjz> indeed. Thanks much!
<asheesh> You got it.
<asheesh> Feel free to look at the git history of that file in the docs and email the nice person who write it.
<asheesh> Sure isn't me!
<pjz> auuuugh... similar issues trying to clone a git repo from a gitlab grain
<asheesh> Yeah -- you'll have issues with a self-signed cert all over the place.
<asheesh> But you may be able to add this CA to your laptop's trust store too.
<asheesh> https://askubuntu.com/questions/73287/how-do-i-install-a-root-certificate appears to be docs about that for Ubuntu, in case that's what your laptop/desktop runs
<pjz> yup, but that one I knew how to do :)
simonv3 has joined #sandstorm
* asheesh waves to simonv3
<simonv3> asheesh: hey :)
<simonv3> Anyone know if the person who goes by JonTheNiceGuy on github hangs out in this IRC channel?
<simonv3> (they’re testing Idea Otter on their own Sandstorm instance and having some issues, it’d probably be easier to chat with them in person)
<asheesh> Not that I've seen I _think_
<asheesh> I've emailed with them a bunch but that's all.
<asheesh> BTW that's cool about Idea Otter.
<asheesh> I should try it!
<simonv3> If you’ve got your own instance, please! This is the issue: https://github.com/simonv3/IdeaOtter/issues/1#issuecomment-157888913
<asheesh> Constant refresh is interesting+weird
<asheesh> I'll test on my own server, rose.sandcats.io
<asheesh> But I don't use nginx; I wonder if jon is running into nginx issues involving websockets.
<asheesh> p.s. removing nginx is the best solution for sandstorm+nginx woes. : P
<simonv3> heh
<pjz> but removes your ability to virtualhost other sites
<asheesh> I guess I should document how Sandstorm can listen on HTTPS with a cert that you provide, not just a sandcats cert.
<asheesh> simonv3: BTW "sharing" this grain acts weird in Sandstorm
<simonv3> asheesh: you mean that you can’t type in the fields?
<simonv3> or something else?
<asheesh> SOrry got distracted
<asheesh> So when I share the grain with someone what I expect is that they see what I see
<asheesh> But instead they get totally separate data
<asheesh> In which case they should just have their own grain!
<simonv3> weird!
<simonv3> That’s happening with Idea Otter?
<asheesh> Yeah -- let me share a grain with you
<asheesh> I have 3 boards and 5 ideas
<simonv3> Are you sure it’s a new grain, or whether the meteor permissions just aren’t publishing to unknown users?
<simonv3> (but yes, it is blank)
<asheesh> I think we are talking past each other a little bit because I'm being vague
<asheesh> When I said:
<asheesh> 23:37 < asheesh> In which case they should just have their own grain!
<asheesh> I mean, the best way for people to have a blank Idea Otter is for them to make their own grain of the app.
<asheesh> I don't mean that I think your app _is_ creating a new grain for them.
<simonv3> right, I gotcha
<asheesh> But yeah -- FWIW "share access" causing my friend to not be able to see what I see is non-Sandstorm-idiomatic.
<asheesh> Your app can do whatever you want, I suppose, but I thought it was worth mentioning!
bb010g has joined #sandstorm
<simonv3> I intend it to be shareable within the sandstorm idiom
<asheesh> BTW I love the pastel colors.
<simonv3> but just hadn’t really dealt with that functionality properly. Meteor has an “autopublish” package which I removed because all the tutorials tell you to remove it, but I’m not sure whether that’s necessary for Idea Otter (because sandstorm handles the permissions)
<asheesh> You can actually keep autopublish in, if you want!
<asheesh> Same with insecure.
<asheesh> Hilariuosly.
<asheesh> +/- typos
<asheesh> And/or you could subscribe to things independent of user ID.
<simonv3> yeah, that’s what I was slowly adding together in my head
<asheesh> Thanks for being open to feedback, btw!
<asheesh> > Ideas.find({}).count()
<asheesh> 5
<asheesh> : D
<simonv3> yeah! thanks for being so freely giving of it
<simonv3> Kenton also had some feedback, so I’ll be debugging that at some point this week :)
<asheesh> : D
<asheesh> BTW I noticed you have ideaotter.com!
<asheesh> I'm curious how you see ideaotter.com the SaaS thing interacting with the fact that there's a Sandstorm package in the long run.
<asheesh> Could also be a thing you haven't thought about a lot, but I thought I'd ask you all the tough questions, anyway.
kecolus has quit [Quit: Leaving]
<asheesh> You can if (process.env.SANDSTORM === "1") {} to have Sandstorm-specific behavior.
<asheesh> shows one slightly smarter way to bind all that together.
<simonv3> hah, you have just dug into the dark history of idea otter
<simonv3> basically, back in i don’t know when i built this really simple thing (this was before google keep!)
<simonv3> and it’s since then become my goto “try out a new development platform” app
<simonv3> so that web page has kind of just been sitting there for a number of years unchanged
<asheesh> : D