isd changed the topic of #sandstorm to: Welcome to #sandstorm: home of all things sandstorm.io. Say hi! | Have a question but no one is here? Try asking in the discussion group: https://groups.google.com/group/sandstorm-dev | This channel is logged at: https://freenode.irclog.whitequark.org/sandstorm/
<jfred> by any chance is it possible to manually enable outbound network access to a grain temporarily that wasn't designed to request it?
<jfred> for context, I'm trying to import a wordpress media library from an older non-sandstorm wordpress instance before a migration, and apparently that involves downloading each file from its original source
<jfred> (I thought it might make a powerbox request for a connection to the source host when attempting to do so, but it doesn't seem to)
<JacobWeisz[m]> Not really, no. Sandstorm sandboxes don't block network access so much as they simply don't support it.
<jfred> Ah, hmm
<isd> (From the app's perspective, it's running on a box that doesn't have any nics).
<jfred> okay, another possible solution: presumably the grain's filesystem is somewhere on disk, could I access that directly from the sandstorm host and drop my files into it? (not sure if it's a mounted block device or just a directory or something)
<JacobWeisz[m]> I think that should work.
<JacobWeisz[m]> Grains are stored in some subdirectory of /opt/sandstorm.
<jfred> aha yup found it - /opt/sandstorm/var/sandstorm/grains/<id>/sandbox
<jfred> now, the wordpress functionality that lets you add media from the local filesystem to the WP database seems to be missing though (possibly disabled as part of the sandstorm package, I suppose)
<jfred> oh, never mind, that's a plugin
<jfred> yup, to confirm, copying my files right into my wordpress grain's sandbox dir seems to work just fine
<jfred> heh, this grain is getting very large... I wonder if sandstorm would balk at trying to restore a >600 MB grain backup
<jfred> (it also takes a very long time to republish the site, but it looks like that's something I'll either have to live with or start working on the wordpress sandstorm package myself to fix :P)
<JacobWeisz[m]> Sandstorm can work with 600 MB grains pretty well, I imagine the backup might shrink too a bit because it's compressed, depending on what's in it.
<JacobWeisz[m]> The big thing you are presumably hitting is that publish is turning your blog into a static site. :)
fkautz has quit [Ping timeout: 248 seconds]
fkautz has joined #sandstorm
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #sandstorm
<jfred> JacobWeisz[m]: yeah, I just wasn't expecting it to take quite as long as it does to build it as a static site haha
<jfred> (~10m I think?)
xet7 has quit [Ping timeout: 240 seconds]
<jfred> so, this is a bit concerning... I have a wordpress instance published as a static site through sandstorm, but recently the nginx reverse proxy I have in front of it has started returning 502s sometimes until I restart sandstorm
<jfred> huh, and in the grain through sandstorm as well
<jfred> only thing in the debug log is: ...*** couldn't connect to grain (Error: remote exception: stream disconnected prematurely) ***
<jfred> (this is not the grain I've been mucking around with the filesystem on, fwiw)
<jfred> ...oh
<jfred> filesystem looks to have plenty of space left, are there per-grain quotas or something?
<JacobWeisz[m]> Shouldn't be.
<JacobWeisz[m]> The static hosting area is weird though, I wonder if its specific to that.
<jfred> mmm, turns out that "no space left on device" is a bit misleading and it was https://askubuntu.com/a/1088275
<jfred> if something's trying to inotify watch everything in that grain's sandbox directory, it has... a lot of files right now
<isd> Yeah, that'd be the supervisor trying to keep track of how much storage a grain is using. Could you open an issue? Would be nice to handle this more gracefully.