<r4z>
Why I'm getting "bash: /var/.bashrc: Permission denied" when entering the grain? Should I create the vm as sudo?
bodisiw has joined #sandstorm
bodisiw has quit [Quit: This computer has gone to sleep]
bodisiw has joined #sandstorm
pili has joined #sandstorm
<pili>
I'm trying to setup Sandstorm on a libremesh.org deployment. I don't entirely understand what I'm supposed to do for the dnsmasq setup. Currently, I have sandstorm running on lubuntu 16, trying to serve to the network. When you go to the ip of the sandstorm, get page explaining "sandstorm static publishing needs further configuration"
<r4z>
hey pili does the page mention anything of an admin-token?
bodisiw has quit [Quit: This computer has gone to sleep]
<pili>
It only mentions admin-token on error page in context of oauth config.
<zarvox>
pili: Sandstorm requires that your HTTP requests carry a Host: header that matches the hostname configured in sandstorm.conf . What URL are you punching in your web browser?
<zarvox>
(or at least, Sandstorm's own frontend is only served for requests to that hostname)
<zarvox>
in particular, you should be connecting via whatever is specified as BASE_URL in your sandstorm.conf
bodisiw has quit [Quit: This computer has gone to sleep]
<pili>
baseurl is https://APP.sandcats.io. When I input the IP address, I get the error page. When I try app.sandcats.io, the connection hangs.
<isd>
pili: If you do a DNS request for APP.sandcats.io, does it resolve to the correct IP address?
bodisiw has joined #sandstorm
<pili>
To be clear, the network I'm connected to does not have an internet connection. It's computer <-> openwrt router <-> sandstorm. so far, I've modified the dnsmasq.conf on the router to include `address=/app.nolime.sandcats.io/LOCAL_IP_OF_ROUTER.
<pili>
As of now, I can only access sandstorm through the internal ip. If am unable to ping app.sandcats.io
<zarvox>
your DNS server is refusing the DNS query
bodisiw has quit [Quit: This computer has gone to sleep]
<zarvox>
check that it's configured to accept/reply to DNS queries from your device (and the Sandstorm server?)
<zarvox>
that could also mean that dnsmasq is trying to forward the query to some other server rather than answering it directly from its own knowledge
<zarvox>
I'm afraid I don't know that much about dnsmasq; for better or worse I've mostly used bind
<mokomull>
pili: You may also want to add address=/.app.sandcats.io/LOCAL_IP to the dnsmasq config. If I'm reading the manpage right, at least, that's how wildcards are done.
bemasc has quit [Ping timeout: 258 seconds]
<mokomull>
Or maybe not. I'm in the same "haven't used that package in a while" boat.
<pili>
zarvox, what config should I look for exactly to make sure it will accept connections? the only other line in the dnsmasq.conf is `conf-dir=/etc/dnsmasq.d`
<pili>
mokomull, I'll try to add that variation..
<asheesh>
r4z: The .bashrc error isn't important. Let me know if you managed to succeed.
<isd>
pili: covering the bases: is your machine (the one you're viewing the page from) using that dns server by default? or if you leave of the @.. does it query something else?
<pili>
isd: It queries something else. Does not work without @
<isd>
pili: okay. So probably your browser/machine has to be pointed at the same DNS server for that to work.
<pili>
curl -v hangs
<pili>
Success! Kind of. I changed /etc/resolv.con to include `nameserver LOCAL_ROUTER_IP`. It works. But I'd like to find a solution that doesn't involve changing a setting on the client devices
<pili>
Any ideas?
<isd>
pili: Do you have control over the local network? I.e. can you have the DHCP server point clients at that dnsmasq in the first place?
<isd>
(I know dnsmasq does dhcp itself...)
<r4z>
But whenever I tried access /var/www I get a permissions error.
bodisiw has quit [Quit: This computer has gone to sleep]
afuentes has quit [Ping timeout: 250 seconds]
<pili>
Yes, total control of local network. Its running LibreMesh which is basically OpenWRT. I'll take a look at the dhcp server on the router side. Thanks.
<pili>
By the way, does anybody know if I need a feature key in order to unlock advanced features? It seems like it. But because this is an offline network, right now, its not really clear what email to give for signup.
yeehi has joined #sandstorm
jemc has joined #sandstorm
<isd>
pili: probably the dhcp server is dnsmasq then; that's what openwrt used the last time I set it up (years and years ago, before the libre* forks were even a thing), and it's a typical choice for small deployments
<isd>
in which case you might be able to just shove the DNS config you set up onto the router itself.
<isd>
I can't speak to the feature key thing; haven't poked at sandstorm for work much at all.
<pili>
Thanks. I'm looking at this now https://wiki.openwrt.org/doc/howto/dhcp.dnsmasq and I think its saying the same thing. If I just modify the /etc/resolv.conf on the router, that should work.
<isd>
yeah, that should do it.
jemc has quit [Ping timeout: 265 seconds]
<pili>
Great, almost there. I didn't even need to do resolv.conf stuff. Restart ended up doing the trick. A final step is that I just plugged internet into the network. All nodes, including the sandstorm server have access. I'm aware that sandcats does some type of dynamic dns stuff. Is there a way to make it point to my server?
jemc has joined #sandstorm
<pili>
Thanks isd zarvox r4z mokomull and all that have helped. I'm logging off and will send an email to support about the feature key and sandcats stuff.
<medicalwei>
If I give another user a link to a grain, which that user doesn't have permission to it, but a powerbox has its permission covered, what will happen?
<medicalwei>
(a powerbox that the user has permission to it)