digitalcircuit has quit [Ping timeout: 276 seconds]
rgrinberg has quit [Quit: WeeChat 1.5]
rgrinberg has joined #sandstorm
ill_logic has joined #sandstorm
<ill_logic>
asheesh: just got here a couple min ago.
<asheesh>
Howdy ill_logic
<asheesh>
Cool. My carpool to NB is en route.
sydney_untangle has joined #sandstorm
<asheesh>
I've been spending the last half hour polishing up the tool that gets a shell within a grain.
<asheesh>
But tell me - what's the most valuable thing I can do for you?
<asheesh>
Let me start by reading the thread we had about the status of the kiwix package, and read the code you already have in there.
<asheesh>
re: /opt/app - yes, the filesystem synchronization you're experiencing is intentional.
<ill_logic>
Well, you told me where I can find a log. That's the valuable thing.
<asheesh>
Ah, great.
<ill_logic>
I'll let you know when I get there again.
<ill_logic>
Hmm, lmk when you're here. The locals aren't always super eager to answer the door...
<asheesh>
Will do.
<asheesh>
Great. I'll work on that get-shell-within-a-grain thing for now.
<asheesh>
Also - you're not the only person to have failed to find the grain logs. If you have advice on how we can make that easier, I'd love to hear it.
<ill_logic>
I... didn't know there would be one? I sort of expected it'd come out from the vagrant-spk dev output.
<asheesh>
Yeah, that makes sense.
<asheesh>
Maybe I can have 'spk dev' print a note about the grain log.
<ill_logic>
I mean, the reason I expected it is that spk up gave some output.
<asheesh>
Mm, interesting.
<ill_logic>
You also don't say anything about vagrant ssh in the tutorial. You told me about it in person
<asheesh>
FWIW, it "has to" work the way it does because there can be multiple grains.
<ill_logic>
Not sure how everybody else found it.
<asheesh>
("or did they?")
<ill_logic>
Oh, so the others may not have even looked.
halindrome has quit [Ping timeout: 252 seconds]
jadewang has quit [Remote host closed the connection]
jadewang has joined #sandstorm
neynah has joined #sandstorm
jadewang has quit [Remote host closed the connection]
neynah has quit [Client Quit]
halindrome has joined #sandstorm
<ill_logic>
oh and it's not even ssh, heh
<ill_logic>
it's a click thing
<asheesh>
It's interesting; it does mean that the terminal where you run 'vagrant-spk dev' is sort of a waste.
<ill_logic>
Okay, so /var is different per grain, huh.
<ill_logic>
That's why the file I put there during installation is invisible to it when I run.
<asheesh>
Yeah. It's "variable".
<asheesh>
Oh, I see. Yeah.
<asheesh>
If you are going to bundle it into the package, or you want to pretend you are, leave it in /opt/app probably.
<ill_logic>
Okay. This is the zim file. For proof of concept I put it in /var, but I'll put it in opt for now.
<asheesh>
/opt/app == your working directory with the app etc.
<ill_logic>
Later when I add uplodaing a zim, it'll go into /var/
<asheesh>
+1
<asheesh>
Keep in mind /opt/app is mounted readonly when the app is running.
<asheesh>
That should be OK for now, but I want to make sure I mention that in case it bites you because you didn't know it.
<ill_logic>
cool.
isd has quit [Quit: Leaving.]
jadewang has joined #sandstorm
<ill_logic>
So, there's a funny thing where in the launcher I'm trying to wget it to see that it's up.
<ill_logic>
like the php example waits for mysql to be ready
<ill_logic>
And it doesn't know what localhost is.
<asheesh>
(a) use 127.0.0.1
<asheesh>
(b) by default we omit /etc/hosts from the app, but maybe we should stop doing that by default.
<ill_logic>
It also doesn't seem to think that it's serving at 127.0.0.1
<ill_logic>
which is the next thing. but just wanted to note that I noticed.
<ill_logic>
also curl ran out of memory :-P
<asheesh>
If it thinks it's serving at 0.0.0.0 that's OK.
<ill_logic>
Would be a little nice to get an interactive shell.
<ill_logic>
Though I understand that may be very difficult.
<asheesh>
I'm "almost" there on it.
<ill_logic>
oh really
<asheesh>
I can give you an interactive shell if you're OK with a few hacks, but they're probably harder to explain than it is for me to just finish my thing.
<asheesh>
It only works if you have one app running, and requires that you keep it open in a browser window.
<asheesh>
I mean only have one grain running.
<asheesh>
jessie's nsenter doesn't support the arguments we need to make it all work, so I am writing a replacement that I will bundle with vagrant-spk.
<ill_logic>
how do I get the pid of the bridge?
<asheesh>
The comand there should do the right thing - $(pidof sandstorm-http-bridge)
<ill_logic>
oh that was literal, heh
<ill_logic>
btw will you be here?
<asheesh>
Yeah; sorry about the delay. Carpool got a late start. About 7:24.
<asheesh>
Which I know interacts poorly with your hard stop.
neynah has joined #sandstorm
jacksingleton has quit [Ping timeout: 250 seconds]
<ill_logic>
No worries.
<ill_logic>
Okay, so within the shell, I can access 127.0.0.1:8080. But the launcher script cannot.
<asheesh>
!
<ill_logic>
Is this becuase you block all connections?
<asheesh>
wait 8080 vs 8000
<ill_logic>
You said you block the outside world, maybe it applies here.
<ill_logic>
Yeah I'm running kiwix with 8080, and I'm wgetting 8080
<ill_logic>
Should I do 8000?
<asheesh>
In .sandstorm/sandstorm-pkgdef.capnp , the sandstorm-http-bridge invocation declares what port gets exposed as the grain.
<asheesh>
And the default is 8000.
<asheesh>
You could change .sandstorm/sandstorm-pkgdef.capnp, or you could change kiwix
<asheesh>
I would change kiwix but either is A-OK.
<ill_logic>
Okay. Interesting. I think I read 8080 when I looked at it before.
<isd>
dwrensha: fyi, I think the issue I was having getting the wake lock was due to misunderstanding how to talk to the api with sandstorm-http-bridge; it looks like there's another interface that you have to use to get at the SandstormApi if you're touching /tmp/sandstorm-api; I wasn't doing that. Had it working before (and now, again) when I was lauching my app directly and talking to fd #3, but haven't gotten the web ui working that way yet. tl;dr not a sandstorm b
<isd>
and now it is bed time.
isd has quit [Quit: Leaving.]
jemc has joined #sandstorm
<Mitar>
carpooling? what is this about?
raoulzecat has quit [Ping timeout: 260 seconds]
jadewang has quit [Remote host closed the connection]
jadewang has joined #sandstorm
jadewang has quit [Remote host closed the connection]
rustyrazorblade has quit [Quit: rustyrazorblade]
jadewang has joined #sandstorm
jadewang has quit [Remote host closed the connection]
jadewang has joined #sandstorm
jadewang has quit [Remote host closed the connection]
aundro has joined #sandstorm
<aundro>
Hi!
<asheesh>
Hi aundro !
jacksingleton has joined #sandstorm
jacksingleton has quit [Ping timeout: 246 seconds]
jemc has quit [Ping timeout: 276 seconds]
jadewang has joined #sandstorm
<guiniol>
asheesh: thanks, I'll keep an eye out for it
amyers has quit [Read error: Connection reset by peer]
amyers has joined #sandstorm
kecors has joined #sandstorm
amyers has quit [Remote host closed the connection]
amyers has joined #sandstorm
isd has joined #sandstorm
Zertrin has quit [Remote host closed the connection]
Zertrin has joined #sandstorm
amyers has quit [Remote host closed the connection]
amyers has joined #sandstorm
amyers has quit [Read error: Connection reset by peer]
amyers has joined #sandstorm
amyers has quit [Remote host closed the connection]
amyers has joined #sandstorm
amyers has quit [Ping timeout: 250 seconds]
raoulzecat has quit [Ping timeout: 252 seconds]
raoulzecat has joined #sandstorm
kecors has quit [Quit: Leaving]
dwrensha has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160502172042]]
isd has quit [Ping timeout: 260 seconds]
* asheesh
stretches.
dograt has quit [Quit: No Ping reply in 180 seconds.]
dograt has joined #sandstorm
amyers has joined #sandstorm
amyers has quit [Read error: Connection reset by peer]
amyers has joined #sandstorm
rgrinberg has quit [Ping timeout: 252 seconds]
raoulzecat has quit [Ping timeout: 244 seconds]
raoulzecat has joined #sandstorm
rgrinberg has joined #sandstorm
<ocdtrekkie>
I just wanted to say that meteor/meteor is now the largest/most widespread project I've contributed something to: https://github.com/meteor/meteor/pull/6757
<ocdtrekkie>
\o/
<asheesh>
Yay ocdtrekkie !
<asheesh>
Congrats!
<ocdtrekkie>
The time to merge though demonstrates why it's useful that Sandstorm is managing this directly now.
<asheesh>
Yeah, I was gonna say something resembling that.