<simonv3_>
Just wanted to confirm I need to install the node-capnp package right? (meteor npm install --save capnp)
<zarvox>
simonv3_: at present, meteor-spk provides the binary module and the sandstorm .capnp's you'd import for you, so that shouldn't be necessary at this time.
<simonv3_>
(it’s been a while since I’ve worked with meteor, what’s meteor-spk? Is that just meteor?)
<simonv3_>
or is that something specifically for sandstorm?
<zarvox>
it's specifically for Sandstorm
<zarvox>
spk is the "sandstorm package" tool
<simonv3_>
ah gotcha
<zarvox>
meteor-spk integrates with spk
<zarvox>
:)
<simonv3_>
barking up the wrong tree
<zarvox>
and the vagrant-spk meteor stack makes use of meteor-spk
<simonv3_>
so for this code to work I would have to be running inside the sandstorm environment?
<zarvox>
Ah, yes.
<simonv3_>
that’s cool, just something know :)
<zarvox>
if you're testing with just "meteor run" then meteor-spk isn't injecting the libraries onto your path
<simonv3_>
a clue on how long it’s been: I’m still running meteor 1.2. Which would explain it complaining about that require.
digitalcircuit has quit [Quit: Signing off from Quassel - see ya!]
digitalcircuit has joined #sandstorm
digitalcircuit has quit [Client Quit]
digitalcircuit has joined #sandstorm
xet7 has joined #sandstorm
JonTheNiceGuy[m] has quit [Remote host closed the connection]
TimePath[m] has quit [Remote host closed the connection]
gillisig1 has quit [Remote host closed the connection]
eternaleye has quit [Write error: Connection reset by peer]
Zertrin[m] has quit [Write error: Connection reset by peer]
Simon[m] has quit [Read error: Connection reset by peer]
mclasen has joined #sandstorm
M-hrjet has joined #sandstorm
pouledodue has joined #sandstorm
gillisig1 has joined #sandstorm
JonTheNiceGuy[m] has joined #sandstorm
TimePath[m] has joined #sandstorm
Simon[m] has joined #sandstorm
eternaleye has joined #sandstorm
davidar has joined #sandstorm
Zertrin[m] has joined #sandstorm
justincormack has quit [Ping timeout: 272 seconds]
justincormack has joined #sandstorm
xet7 has quit [Quit: Leaving]
gillisig1 has quit [Ping timeout: 272 seconds]
gillisig1 has joined #sandstorm
indiebio has quit [Ping timeout: 272 seconds]
indiebio has joined #sandstorm
Simon[m] has quit [Ping timeout: 272 seconds]
TimePath[m] has quit [Ping timeout: 272 seconds]
TimePath[m] has joined #sandstorm
Simon[m] has joined #sandstorm
nwf has quit [Ping timeout: 272 seconds]
NwS has joined #sandstorm
nwf has joined #sandstorm
mclasen has quit [Quit: mclasen]
pouledodue has quit [Remote host closed the connection]
pouledodue has joined #sandstorm
mclasen has joined #sandstorm
phoenix1796 has joined #sandstorm
dlitz_ has quit [*.net *.split]
dlitz has joined #sandstorm
xet7 has joined #sandstorm
NwS has quit [Quit: See you in Isla de Muerte!]
frigginglorious has joined #sandstorm
hunterm__ has quit [*.net *.split]
hunterm__ has joined #sandstorm
phildini has quit [Ping timeout: 272 seconds]
phildini has joined #sandstorm
M-hrjet has quit [Ping timeout: 272 seconds]
M-hrjet has joined #sandstorm
wuch has joined #sandstorm
coyotebush has quit [Remote host closed the connection]
coyotebush has joined #sandstorm
frigginglorious_ has joined #sandstorm
pouledodue has quit [Remote host closed the connection]
frigginglorious has quit [Ping timeout: 264 seconds]
frigginglorious_ is now known as frigginglorious
frigginglorious has quit [Client Quit]
xet7 has quit [Quit: Leaving]
jemc has joined #sandstorm
phoenix1796 has quit [Quit: Connection closed for inactivity]
russruss has joined #sandstorm
<russruss>
Hey all, just checked out sand storm for the first time a few days ago. There are so many amazingly cool ideas in this platform! One question that I’m finding difficult to understand in the documentation: do grains run all the time; or do they only spin up when requests get sent to them? I’m wondering if it’s possible to create an RSS reader service that can push notify clients when a new article is published
<asheesh>
russruss: Only when users are looking at them, generally. Normally I'd be happy to chat more, but I'm not feeling super well today, but others here or on the sandstorm-dev Google Group are going to be happy to help you more!
<dwrensha>
russruss: we want to introduce a cron-like API that will allow grains to perform periodic work
<russruss>
asheesh: feel better! thanks for the information
<russruss>
dwrensha: yeah, I think that would open up a lot more possibilities for application writers
wuch has quit [Quit: WeeChat 1.5]
pouledodue has joined #sandstorm
<Simon[m]>
That reminds me, someone posted something to the dev group and I need to go over and give it a thumbs up.
<Simon[m]>
On an other note: I've been experiencing issues upgrading to the new version of meteor where it hangs for forever.
<dwrensha>
Simon[m]: I was hitting a similar error recently
<dwrensha>
manually resolving DNS with `host warehouse.meteor.com` and adding the result to /etc/hosts fixed the problem for me
<dwrensha>
can you edit the /etc/hosts file in the vagrant-spk vm?
<dwrensha>
...by calling `vagrant-spk vm ssh` into it
<zarvox>
Is Meteor's CDN down or DNS broken or what?
<dwrensha>
it seems like some code somewhere in Meteor's magic packaging scripts makes some assumptions about how DNS will behave, and Meteor's newish CDN somehow breaks those assumptions
<dwrensha>
at least that's my theory
<Simon[m]>
dwrensha: Yeah, I'll try that when I'm back online in a couple of hours, thanks for the the tip
pouledodue has quit [Remote host closed the connection]
JonTheNiceGuy[m] has quit [Ping timeout: 258 seconds]
saneki has joined #sandstorm
Tryum has joined #sandstorm
biotim has joined #sandstorm
warren has joined #sandstorm
GauntletLizard has joined #sandstorm
Triplefox has joined #sandstorm
liam has joined #sandstorm
Salt has joined #sandstorm
cstrahan_ has quit [Client Quit]
eternaleye has joined #sandstorm
bpierre has joined #sandstorm
JonTheNiceGuy[m] has joined #sandstorm
nolski_ has joined #sandstorm
Zertrin__ has joined #sandstorm
tdfischer has quit [*.net *.split]
TheJH has quit [*.net *.split]
nolski has quit [*.net *.split]
TC01 has quit [*.net *.split]
Lord has quit [*.net *.split]
zarvox has quit [*.net *.split]
aggelos_ has quit [*.net *.split]
mokomull has quit [*.net *.split]
Zertrin has quit [*.net *.split]
tdfischer has joined #sandstorm
zarvox has joined #sandstorm
TheJH has joined #sandstorm
mokomull has joined #sandstorm
Lord has joined #sandstorm
aggelos_ has joined #sandstorm
TC01 has joined #sandstorm
neynah has joined #sandstorm
neynah has quit [Changing host]
NhanH__ has joined #sandstorm
NhanH__ has quit [Changing host]
eternaleye has quit [Changing host]
eternaleye has joined #sandstorm
bpierre has joined #sandstorm
bpierre has quit [Changing host]
JonTheNiceGuy[m] has quit [Changing host]
JonTheNiceGuy[m] has joined #sandstorm
Lord has quit [*.net *.split]
nolski_ has quit [*.net *.split]
Triplefox has quit [*.net *.split]
uppermgmt has quit [*.net *.split]
iangreenleaf has quit [*.net *.split]
ftoad has quit [*.net *.split]
shachaf has quit [*.net *.split]
cmr has quit [*.net *.split]
mrdon has quit [*.net *.split]
guido has quit [*.net *.split]
DanC_ has quit [*.net *.split]
pie__ has quit [*.net *.split]
strugee has quit [*.net *.split]
HalfEatenPie has quit [*.net *.split]
ptrvldz has quit [*.net *.split]
TC02 has quit [*.net *.split]
Zertrin[m] has quit [*.net *.split]
davidar has quit [*.net *.split]
gwillen has quit [*.net *.split]
xobs has quit [*.net *.split]
wolcen has quit [*.net *.split]
fkautz has quit [*.net *.split]
robbt has quit [*.net *.split]
sh_smith has quit [*.net *.split]
dwrensha has quit [*.net *.split]
sydney_untangle has quit [*.net *.split]
KCinJP has quit [*.net *.split]
ecloud has quit [*.net *.split]
nwf has quit [*.net *.split]
TC01 has quit [*.net *.split]
tdfischer has quit [*.net *.split]
reisi has quit [*.net *.split]
ocdtrekkie has quit [*.net *.split]
gleb has quit [*.net *.split]
ragesoss has quit [*.net *.split]
dagelf has quit [*.net *.split]
larjona has quit [*.net *.split]
mmercer has quit [*.net *.split]
kentonv has quit [*.net *.split]
rafaelmartins has quit [*.net *.split]
XgF has quit [*.net *.split]
crw has quit [*.net *.split]
mrdomino has quit [*.net *.split]
Salt has quit [*.net *.split]
tg has quit [*.net *.split]
rolig has quit [*.net *.split]
jagenau has quit [*.net *.split]
Guest97644 has quit [*.net *.split]
patrickod has quit [*.net *.split]
prettyvanilla has quit [*.net *.split]
keturn has quit [*.net *.split]
russruss has quit [*.net *.split]
mrshu has quit [*.net *.split]
dlitz_ has quit [*.net *.split]
bpierre has quit [Ping timeout: 250 seconds]
mattl has quit [Ping timeout: 258 seconds]
NhanH__ has quit [Ping timeout: 240 seconds]
ocdtrekkie has joined #sandstorm
reisi has joined #sandstorm
tdfischer has joined #sandstorm
gleb has joined #sandstorm
ragesoss has joined #sandstorm
TC01 has joined #sandstorm
dagelf has joined #sandstorm
larjona has joined #sandstorm
kentonv has joined #sandstorm
mmercer has joined #sandstorm
rafaelmartins has joined #sandstorm
crw has joined #sandstorm
XgF has joined #sandstorm
ptrvldz has joined #sandstorm
Lord has joined #sandstorm
shachaf has joined #sandstorm
cmr has joined #sandstorm
mrdon has joined #sandstorm
ftoad has joined #sandstorm
iangreenleaf has joined #sandstorm
uppermgmt has joined #sandstorm
Triplefox has joined #sandstorm
guido has joined #sandstorm
DanC_ has joined #sandstorm
nolski_ has joined #sandstorm
pie__ has joined #sandstorm
strugee has joined #sandstorm
pdurbin has quit [Quit: WeeChat 0.4.2]
jagenau has joined #sandstorm
patrickod has joined #sandstorm
keturn has joined #sandstorm
Guest97644 has joined #sandstorm
Salt has joined #sandstorm
prettyvanilla has joined #sandstorm
rolig has joined #sandstorm
mrshu has joined #sandstorm
tg has joined #sandstorm
mrdomino has joined #sandstorm
russruss has joined #sandstorm
dlitz_ has joined #sandstorm
<Simon[m]>
hmm, I'm having to install g++ in the vagrant-spk vm to compile node-gyp (which I think is needed for fibers?). Is that a thing that should happen? Or should that be set up in the vm already?
<Simon[m]>
(did I do something to horribly brake things)
<dwrensha>
Simon[m]: does your app use Meteor 1.4?
<dwrensha>
Simon[m]: I haven't followed that whole discussion, but my impression is that it should be possible to build Meteor 1.4 apps with vagrant-spk, but it will require a bit of manual configuration
<Simon[m]>
:thumbsup:
<dwrensha>
... the important bit being that you need meteor-spk version 0.3.0
<Simon[m]>
Thanks for the link, I’ll have a look
bpierre has joined #sandstorm
mattl has joined #sandstorm
<Simon[m]>
so should I re-provision the vm?
mclasen has quit [Ping timeout: 258 seconds]
<asheesh>
Howdy Simon[m]
<Simon[m]>
hey asheesh
<asheesh>
w/r/t meteor 1.4 + vagrant-spk:
<asheesh>
Right now, I have some somewhat-complicated advice for you; it's not all pre-packaged.
<asheesh>
1. Make sure you install g++ in the VM. You can do so manually via 'vagrant-spk vm ssh' or you can do so via automation in .sandstorm/setup.sh
<asheesh>
If you need specific advice on how to best-automate it, I can definitely provide that.
<Simon[m]>
looks like when I pointed setup.sh to meteor-spk=0.3.0 and destroyed my vm and booted it up again (which I hope isn’t prematurely disastrous) it at least looks like it tried to install gcc
<Simon[m]>
(I also changed that METEOR_RELEASE variable)
<asheesh>
3. In .sandstorm/setup.sh you will need to use meteor-spk 0.3.0 but seems you already figured that out!
<asheesh>
That's my advice, plus you'd need to either destroy-recreate or 'vagrant-spk vm provision'.
<asheesh>
What I do is add that right above the "PACKAGE=meteor-spk-0.3.0" line.
Telesight has joined #sandstorm
<asheesh>
Also hi! Are you a Simon I already know? Or a new Simon? Just curious!
<Simon[m]>
simonv3
<Simon[m]>
using matrix :)
<asheesh>
Ah, great!
<Simon[m]>
that simonv3 is my matrix username, but oddly enough that doesn’t translate to IRC.
<Simon[m]>
¯_(ツ)_/¯
<asheesh>
simonv3[m]
isd has joined #sandstorm
<Simon[m]>
it’s all still a bit mysterious
<asheesh>
Yeah, agreed.
<asheesh>
Those who love it seem to love it, but I tried to set it up once and got totally confused.
isd has quit [Read error: Connection reset by peer]
<Simon[m]>
I’m confused about where things are hosted, and how it works with IRC
<Simon[m]>
but the Riot UI has come a long way
<Simon[m]>
I wonder if it’s confusing to non-IRC people
<asheesh>
I really want, one day, Matrix-on-Sandstorm, and then I'd self-host something or other. But yeah, for now, where things are hosted is a question that confuses me.
<asheesh>
Maybe if I didn't care about that it'd be easier!
<asheesh>
I mean your link isn't URL-encoded so it could be that there's some ambiguity or something.
<Simon[m]>
(I just copy pasted)
<Simon[m]>
Which I think Matrix put into a txt file?
<asheesh>
Yeah, but it has spaces that aren't %20 so I'm concerned there's some problem where I'm not following exactly the link you want me to be following.
<Simon[m]>
hmm, hold on a sec, I’m going through it and it’s saying there was a keyboard interrupt, which I don’t remember doing?
<asheesh>
!
<Simon[m]>
so, when I do vagrant-spk vm provision vagrant-spk tells me argument not found
<Simon[m]>
Am I running an old version of vagrant-spk?
<asheesh>
Sure sounds like it.
<Simon[m]>
this would explain a lot of commands that don’t work for me
<Simon[m]>
I’m not sure it completed successfully, it just stopped at the end
<asheesh>
It looks like it completed but failed to give you your terminal back because life is hard.
<asheesh>
I've seen that before and I wish I understood it.
<asheesh>
So it's safe to ^C it at this point, and then continue with 'vagrant-spk dev'.
<asheesh>
Also you can remove the 'set -x' thing.
<Simon[m]>
heh
<Simon[m]>
Okay, vagrant-spk dev has been updating package catalog for a while now, but I feel like it has been known to do that
<asheesh>
Yeah, it'll take like 5 to 10 minutes in my experience.
<Simon[m]>
I wonder if I have to re-apply the host block I did this morning
<asheesh>
Find yourself some mate or beer or fizzy water or iced tea or another nice drink to pass the time.
<asheesh>
"host block"?
<Simon[m]>
earlier this morning I was having issues with meteor updating that it got stuck. What I needed to do was to add the warehouse IP to my local and vm’s /etc/hosts file
<isd>
Also, I'm having trouble downloading a zip backup. I quickly get a failed download from both firefox and chromium. Having finding anything useful in the misc. browser tools.
<asheesh>
Ah, right, Simon[m]
<isd>
...I have some suspicions about why my Freenode grain is taking ~300MiB, but I'd like to confirm.
<isd>
P
<asheesh>
isd: Hmm, that's weird. Do other apps work properly wtih downloading a grain backup on your server? Does "Server log" in the admin area have anything related to backups?
<isd>
asheesh: some of the smaller ones download succesfully, but my ~30MiB davros instance dies as well.
Lionel_Debroux has joined #sandstorm
hunterm__ has quit [Read error: Connection reset by peer]
<isd>
Let me check the admin panel
neynah has joined #sandstorm
hunterm__ has joined #sandstorm
<isd>
Nothing obviously relevant. Just stuff about renewing the https cert.
JonTheNiceGuy[m] has quit [Changing host]
JonTheNiceGuy[m] has joined #sandstorm
<asheesh>
I must run off to a meeting in a sec, so for now let me say (a) that sounds like an important Sandstorm bug that we should look into, and (b) can you SSH in and read /opt/sandstorm/var/grains/{{grainId}}/sandbox , see also https://docs.sandstorm.io/en/latest/administering/guide/
<isd>
re (b): looked at the one for my OFTC grain, it's exactly what I would expect.
hunterm__ has quit [Remote host closed the connection]
<isd>
Also had no idea the console logs were kept (seemingly) forever; I had assumed I was leaking storage in the DB, but the oftc grain's storage is only ~80KiB; the console log is basically the whole ~30MiB
<isd>
Would be nice to maybe occasionally clear/rotate/not include that in the backup
<isd>
(worth noting that irc-idelr does a *lot* of logging currently; have the level cranked up to debug)
<isd>
(but it's also been running for a month or two at this point)
hunterm__ has joined #sandstorm
Telesight has quit [Quit: Leaving.]
<isd>
(I *am* leaking stuff to the DB, but not that quickly)
<zarvox>
Yeah. I'm loathe to randomly truncate the log or omit it from backups, since on Oasis (or if you aren't the server admin) that's the only way for you to get at the logs past what we show in the debug window live, which doesn't always include the entirety of the log. But it might be nice to at least have a "truncate log" button if it's really a problem for verbose or long-lived grains.
<isd>
Given that the intended use of IRC Idler involves having one grain live for as long as I keep using Freenode...
<isd>
It does a lot of debug loging, but the grain is > 300MiB
<isd>
and growing.
<isd>
Ideally it would just be a separate thing from the mutable storage.
<isd>
Oh, nvm, it is outside /var. but yeah, should be something you can treat as a separate component
<isd>
But yes, I have a 312MiB log for an app that, after fixing a space leak, ought to be taking up 93 bytes right now.
<isd>
Well, plus the size of an empty sqlite databsae
<zarvox>
Noted. :)
<zarvox>
I am curious what sort of policy you'd suggest the platform enforce on log retention, as it would apply to all apps everywhere
<isd>
...and I'm on a tea shop's wifi, wanting to inspect the state :P
<zarvox>
isd: if you have shell access to the server, I suggest poking around in /opt/sandstorm/var/sandstorm/grains/$GRAIN_ID/
<isd>
Most obvious improvement would be just to be able to download the bits in sandbox *only*
<isd>
zarvox: that's what I've been doing
<zarvox>
oh, good :)
<isd>
...but I think it's still an illustrative point.
<isd>
but yeah, logs aren't really something a user would necessarily want to back up as much as the stuff in sandbo
<isd>
*sandbox
<isd>
Maybe the last two weeks as a starting point? that seems like plenty for most uses.
<zarvox>
ahhh, so perhaps splitting the log out of the backup, and having the grain log separately downloadable?
<isd>
zarvox: yeah, that's the first thing I would do.