<LuckyD>
Hello! I'm new to sandstorm.io. I was able to get running last week (on Debian10). Now I've got installed but the Grains keep loading forever. Has anyone seen this before?
<LuckyD>
I tried different Distro's such as Debian9 and Ubuntu (even different virtualization platforms) but it all ends up the same.
<JacobWeisz[m]>
Ian: Yes. I think UPS supports JSON too, but I'm already going to be wrangling XML for all the other ones.
<JacobWeisz[m]>
Hi LuckyD! You aren't getting the wildcard host warning anywhere like in the admin panel, are you?
<LuckyD>
Let me check.
<LuckyD>
Yes, I can see that. Let me see what the issue is.
<LuckyD>
I've reconfigured but I still have an error. Old: *.goldie:6080 | New: *.goldie.home:6080
<LuckyD>
Any ideas?
<JacobWeisz[m]>
Ah, yeah, single-name DNS has an issue in some browsers, IIRC.
<LuckyD>
We shouldn't need sandcats.io domain?
<JacobWeisz[m]>
You do not, but Sandcats handles a lot of things so there's less to troubleshoot. ;)
<LuckyD>
Does sandstorm.io support local addresses? I'm only planning on running this on my local network.
<JacobWeisz[m]>
So your DNS for foo.goldie.home should successfully return your server's IP address, right?
<LuckyD>
Yes, it resolves locally on my network.
<JacobWeisz[m]>
And are you using HTTPS in this setup?
<LuckyD>
Yes. I'm using the address from sandstorm admin-token
<LuckyD>
I'm going to try using my external hostname and IP Address.
<JacobWeisz[m]>
If you're using HTTPS, you need a wildcard cert, I think if it doesn't cover your subdomains, they won't load, but the iframe hides the security warning.
<JacobWeisz[m]>
Do note that Sandstorm should work with your internal DNS or your external DNS, but won't work with both at the same time. (I wish it did.)
<LuckyD>
I got it to work, but I had to use my external dynamic dns hostname.
<LuckyD>
Can you only use HTTP?
<JacobWeisz[m]>
You can use HTTPS, it just has to have a wildcard certificate. Sandstorm can work with Let's Encrypt for publicly routable domains.
<JacobWeisz[m]>
That functionality is DNS provider specific though, because Sandstorm has the update your DNS to do ACME renewals.
<LuckyD>
Is it possible to run sandcats.io only locally (without needing the wildcard?)
<LuckyD>
Putting the correct wildcard (accessible from the outside) worked. Thanks JacobWeisz[m]
<JacobWeisz[m]>
Sandcats is basically a dynamic DNS provider, so it doesn't really work offline.
<JacobWeisz[m]>
Monica has it's first build to hit the experimental queue. Ian, do you want to see if it still fails to load for you?
xet7 has joined #sandstorm
<isd>
I'll have a look
<isd>
ocdtrekkie: starts up in a reasonable amount of time on my laptop (SSD), but it is taking a very long time on thelibrary.sandcats.io (spinning disk). So I suspect it works but is just not well optimized.
<isd>
Likely an upstream issue.
<isd>
Do there exist minifiers for PHP? these mostly exist in the javascript world for the sake of browsers, but mnutt had success cutting startup times for davros by doing this on the server.
<isd>
Update, it has started.
<isd>
An error occured trying to register the user
<isd>
Whoops! Something went wrong.
<isd>
Got:
<isd>
Back to homepage
<isd>
...though it worked on my laptop
<JacobWeisz[m]>
My Sandstorm server is SSD-based.
<JacobWeisz[m]>
I haven't tried the update quite yet. I am sure there are various tricks with PHP just like any other language, but I'm not super familiar with modern practices of PHP.
<isd>
Ok, so I think the verdict is "flaky if you don't have an SSD"
<isd>
This is a problem with dynamic languages in general -- having to do lots of disk IO on startup.
<JacobWeisz[m]>
I kinda wonder if there's a point where we need to specify the expected performance needs for some apps.
<JacobWeisz[m]>
I don't think it's while we have one or two largely monolithic apps out there, but it's a thought.
<isd>
Yeah. It might someday make sense to have some baseline perf stuff be part of our app market guidelines. Certainly if it takes so long to start that people perceive it as not starting, that's a problem.
<isd>
And I do want to support spinning disks in the fairly long term -- the price per storage is still a big deal, and I don't expect that to change in the short term.
<JacobWeisz[m]>
Yeah, I don't use Sandstorm for large file storage because... I don't have a lot of storage on it.
<isd>
One of these days I plan to hook up a couple TBs to mine and then use it for my own backups.
<JacobWeisz[m]>
I would love to have some sort of ability to use additional storage on Sandstorm and maybe tier it a bit.
<JacobWeisz[m]>
I never would want documents or apps like Monica on spinning disk, but it'd be nice to put a ton of Davros grains on it.