<paulproteus>
What are you trying to do / what are you up to / what's your actual question?
natea has joined #sandstorm
Jaggu has joined #sandstorm
<Jaggu>
Hi
<paulproteus>
Hi Jaggu !
<ocdtrekkie>
paulproteus: My Sandstorm works. My grains do not.
<ocdtrekkie>
The config file, is, AFAIK, fine.
<ocdtrekkie>
But I don't know what/where/how to set the wildcard DNS info in Ubuntu to tell it where to find my grains.
<paulproteus>
What is your WILDCARD_HOST in the config, ocdtrekkie ?
<ocdtrekkie>
The *.local.sandstorm.io:6080
<paulproteus>
Hmm, okay.
<paulproteus>
And when you open up a grain URL, what error do you get in your browser?
<paulproteus>
In the grain IFRAME.
<ocdtrekkie>
I just get a white screen.
<paulproteus>
Can you do right-click open in new tab, and see if you get something more verbose?
<ocdtrekkie>
I am not getting that option on my right click menu.
<ocdtrekkie>
(Firefox, FYI)
<paulproteus>
Oh huh.
<paulproteus>
You could inspect element, then grab the SRC attribute out of the IFRAME .
<ocdtrekkie>
Bear in mind, if you recall, this is a very very old Sandstorm install from before we used wildcard subdomains, so no idea if there's Linux config steps you guys automate that aren't done here.
<paulproteus>
We don't, I think, fwiw.
<paulproteus>
Also wowee re: before wildcard subdomains.
<ocdtrekkie>
My source is particularly unhelpful.
<ocdtrekkie>
Mostly just JavaScript embeds.
<paulproteus>
Not view-source but inspect-element
<paulproteus>
Right-click, do Inspect Element
<paulproteus>
view-source will never be useful with Meteor stuff, alas.
<paulproteus>
But Inspect Element will be.
<ocdtrekkie>
Error looking up DNS TXT records for host '7aoojy9oef9d5h6wcmll.local.sandstorm.io': queryTxt ENODATA
<paulproteus>
o
<ocdtrekkie>
You helped me get this Sandstorm install fixed up enough for hacking on the shell, but getting grains working was unimportant for that so we didn't fix that. :P
<ocdtrekkie>
Now that someone actually wants to use a Scrumblr port, I figured I should get mine up to date and properly on the app list.
<paulproteus>
"Against the grain / that's where I'll stay"
<paulproteus>
OK, so it sounds like your DNS server is doing something weird to not really respond to DNS TXT record lookups.
<ocdtrekkie>
paulproteus: Is that the preferred theme song for the company, since kentonv does not like Darude?
<ocdtrekkie>
;)
<paulproteus>
I can run it by him! (-:
<ocdtrekkie>
I doubt my DNS server is configured to do much at all.
heliostatic has quit [Quit: Be back later ...]
<paulproteus>
Yeah, but it might be some neato home DNS router thingamabob or broken version of dnsmasq that ignores TXT record lookups, to Sandstorm's utter shock and horror.
<ocdtrekkie>
It's just an Ubuntu VM.
<dwrensha>
just getting a grain working should require TXT lookups
<paulproteus>
The thing is that I don't think the TXT record stuff matters unless you're doing personal publishing stuff.
<dwrensha>
should *not*
<dwrensha>
right, paulproteus
<paulproteus>
++
<ocdtrekkie>
Shouldn't DNS lookups for local stuff be all internal to the VM?
<dwrensha>
does any DNS resolution succeed from the VM?
<paulproteus>
Yeah... that's right... *.local.sandstorm.io should never have any TXT records anyway.
<dwrensha>
`dig sandstorm.io`
<paulproteus>
If it did, they'd be shared between all Sandstorm users anyway, like some kind of global singleton (paging dr. kentonv)
<paulproteus>
i,i I can dig it
<dwrensha>
I can dig it too!
<ocdtrekkie>
Yes, you can dig sandstorm.io
<ocdtrekkie>
But I mean, what tells Ubuntu/Firefox that local.sandstorm.io goes to my Sandstorm?
<ocdtrekkie>
AFAIK, I don't have anything set to tell it that.
<paulproteus>
ocdtrekkie: nothing does; global DNS does
<dwrensha>
we've mapped *.local.sandstorm.io to 127.0.0.1
<paulproteus>
local.sandstorm.io is this absurdist Internet hack to create a real publicly-routable domain that always goes to localhost.
<paulproteus>
publicly-resolvable rather
<ocdtrekkie>
That explains so much.
<ocdtrekkie>
And yet still leaves me baffled why this doesn't work. ;)
<dwrensha>
s/absurdist/elegant/
<dwrensha>
can you e.g. `ping google.com` from the VM?
<paulproteus>
Presmably we should patch the source so that if TXT record lookups aren't working, it carries on as if nothing's wrong?
<ocdtrekkie>
I can dig local.sandstorm.io and get 127.0.0.1
<ocdtrekkie>
I can ping google.com of course.
<paulproteus>
ocdtrekkie: also:
<paulproteus>
➜ ~ dig TXT asheesh.org | grep Linux
<paulproteus>
asheesh.org.259193INTXT"Linux.Bogus, your DNS consultants"
<paulproteus>
Anyway, can you "dig TXT asheesh.org | grep Linux" and see if you get similar output as I do above?
<ocdtrekkie>
I can.
<ocdtrekkie>
I get 5 instead of 259193 though
<paulproteus>
Yeah, that's fine.
<paulproteus>
dwrensha + jparyani - if ENODATA means "No data in response", should we declare that's not an error at all?
<paulproteus>
But anyway, jparyani and/or dwrensha , penny for your thoughts on that bug.
<dwrensha>
ocdtrekkie: could you add the complete contents of your sandstorm.conf to that github issue?
<paulproteus>
ocdtrekkie: I can't reproduce your problem, but I have a possible source patch to suggest for you, though it will take me about an hour to be in a position to give it to you.
<dwrensha>
I think the TXT thing is probably orthogonal to the actual problem here.
<dwrensha>
We fall through to a TXT lookup if the URL doesn't look like ROOT_URL or doesn't match any grain
<jeffmendoza>
How do you setup a new server with my old sandcats keys?
<jeffmendoza>
I dropped the keys into /opt/sandstorm/var/sandcats
<jeffmendoza>
and made sure my /opt/sandstorm/sandstorm.conf contained the right names
<jeffmendoza>
I imagine sandcats.io needs to know my new IP somehow?
<ocdtrekkie>
paulproteus: resolv.conf has a nameserver of 192.168.157.2 listed in there, and that's it.
<ocdtrekkie>
That IP has no relevance on my network, AFAIK.
<ocdtrekkie>
dwrensha: sandstorm.conf pasted in #398
<dwrensha>
ok, delete the WILDCARD_PARENT_URL
<dwrensha>
and get rid of the "http://" in the WILDCARD_HOST
<ocdtrekkie>
That fixed it
<ocdtrekkie>
One of those two things.
<dwrensha>
so looks like the bug here is "unhelpful error message"
<dwrensha>
jeffmendoza: paulproteus is the expert on sandcats
<dwrensha>
but I believe it's supposed to "just work"
<dwrensha>
like, you never need to explicitly tell it your IP
<dwrensha>
I think sandcats detects your IP when your server connects to it
<jeffmendoza>
does the server connect? or only the installer script?
<dwrensha>
I'm not sure, but I think the server regularly pings sandcats
<dwrensha>
on the order of once every few minutes
<dwrensha>
paulproteus: please correct me if I'm wrong!
<ocdtrekkie>
Random sidebar: I submitted Scrumblr to the app list since a dev list user wants to use it, which officially means my port is "useful".
<ocdtrekkie>
Now that my Sandstorm grains work, I will be updating the port as time permits.
<paulproteus>
FWIW, it should auto-update if you have all the right sandstorm.conf settings.
bengo has joined #sandstorm
<paulproteus>
win 2
<paulproteus>
...
bengo has quit [Quit: Computer has gone to sleep.]
<paulproteus>
(in which asheesh can't use irssi)
<jeffmendoza>
paulproteus: thanks
<jeffmendoza>
I have BASE_URL and WILDCARD_HOST set in my conf
<jeffmendoza>
SANDCATS_BASE_DOMAIN is not set, do I need that?
<jeffmendoza>
when you say "You can recover a domain by using the Sandstorm installer and typing help at the Sandstorm prompts." you mean the installer prompt?
<paulproteus>
You do need that, yeah re: SANDCATS_BASE_DOMAIN
<paulproteus>
Ya re: I mean installer prompt
<jeffmendoza>
ah ok, can you re-run the installer?
<jeffmendoza>
oh, hey, it's working =)
<paulproteus>
jeffmendoza: (-: Yippee!
<paulproteus>
Probably we should write up the recovery instructions so people have some idea of what the heck to do.
bengo has quit [Quit: Computer has gone to sleep.]
natea has joined #sandstorm
bb010g has quit [Quit: Connection closed for inactivity]
bengo has joined #sandstorm
gopar has quit [Quit: Leaving]
natea has quit [Quit: natea]
<ocdtrekkie>
Starting to update Scrumblr with the 39 commits since I ported it. (I do this largely manually because I'm a masochist and want to make sure they didn't change anything I don't want changed. And sometimes I learn things.)
<ocdtrekkie>
Like the outside dependency they added.
fonfon has quit [Ping timeout: 244 seconds]
paroneayea has quit [Read error: Connection reset by peer]
paroneayea has joined #sandstorm
bengo has quit [Quit: Computer has gone to sleep.]