asheesh changed the topic of #sandstorm to: Welcome to #sandstorm: home of all things sandstorm.io. Say hi! | Channel glossary: "i,i" means "I have no point, I just want to say". b == thumbs up. | Public logs at https://botbot.me/freenode/sandstorm/ & http://logbot.g0v.tw/channel/sandstorm/today
<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]
bodisiw has joined #sandstorm
KooBaa has joined #sandstorm
aldeka_limechat has joined #sandstorm
<pili> hey @r4z! I'm not sure, it mentions briefly at the end. I'm figuring its dnsmasq issue because of https://docs.sandstorm.io/en/latest/administering/faq/#can-i-run-sandstorm-on-a-totally-offline-server-or-airgapped-network
KooBaa has quit [Ping timeout: 252 seconds]
<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
<pili> (correction `address=/app.sandcats.io/LOCAL_IP`)
<isd> pili: if you do a DNS request for app.sandcats.io to your dnsmasq process, does it return the right result?
<isd> i.e. dig @<dnsmasq-server> app.sandcats.io
<isd> It needs to resolve that and any *.app.sandcats.io domain
<isd> ...to the server's ip.
bodisiw has quit [Quit: This computer has gone to sleep]
bodisiw has joined #sandstorm
<pili> I honestly can't read dig responses. http://pastebin.com/aVkbrjfg
<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.
bodisiw has joined #sandstorm
<pili> Alright, this looks improved right? I think DNS is working http://pastebin.com/qL8918iw
<zarvox> ahhh, that's great!
bemasc has joined #sandstorm
<zarvox> try https://nolime.sandcats.io now?
<pili> nope, just hangs
<zarvox> :(
<zarvox> what if you use curl? curl -v https://nolime.sandcats.io
<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.
pili has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
paulhibbitts has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
paulhibbitts has joined #sandstorm
<r4z> hey asheesh i tried "vagrant-spk vm ssh" and "vagrant-spk enter-grain" with no success :(
<r4z> trying to cd into /var/www throws the permissions error. :( kinda lost here.
yeehi has quit [Remote host closed the connection]
kxra has joined #sandstorm
aldeka_limechat has quit [Remote host closed the connection]
aldeka_limechat has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 240 seconds]
aldeka_limechat has joined #sandstorm
jemc has quit [Ping timeout: 265 seconds]
KooBaa has joined #sandstorm
KooBaa has quit [Ping timeout: 260 seconds]
yeehi has joined #sandstorm
yeehi has quit [Quit: Leaving]
r4z has quit [Remote host closed the connection]
ecloud is now known as ecloud_wfh
KooBaa has joined #sandstorm
KooBaa has quit [Ping timeout: 250 seconds]
cosmos has joined #sandstorm
Telesight has joined #sandstorm
bodisiw has joined #sandstorm
bodisiw has quit [Quit: This computer has gone to sleep]
bodisiw has joined #sandstorm
bodisiw has quit [Quit: This computer has gone to sleep]
snese has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
medicalwei has joined #sandstorm
<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)
Telesight has quit [Quit: Leaving.]
bodisiw has joined #sandstorm
wolcen has joined #sandstorm
paulhibbitts has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jemc has joined #sandstorm
jsdas has joined #sandstorm
<jsdas> Is anyone online?
<jsdas> Guess not.
jsdas has quit [Client Quit]
afuentes has joined #sandstorm
aggelos_ has quit [Ping timeout: 268 seconds]
kxra has quit [Quit: WeeChat 1.7-dev]
kxra has joined #sandstorm
aggelos_ has joined #sandstorm
cosmos_ has joined #sandstorm
cosmos has quit [Ping timeout: 246 seconds]
cosmos_ is now known as cosmos
sydney_untangle has quit [Remote host closed the connection]
sydney_untangle has joined #sandstorm
wolcen has quit [Ping timeout: 246 seconds]
bodisiw has quit [Quit: This computer has gone to sleep]
ocdtr_web has joined #sandstorm
<ocdtr_web> kentonv asheesh jparyani Blog post is #2 on HN atm.
<jparyani> yep, saw it already, but thanks :)
afuentes has quit [Ping timeout: 256 seconds]
ocdtr_web has quit [Client Quit]
jemc has quit [Ping timeout: 250 seconds]
sydney_untangle has quit [Remote host closed the connection]
jemc has joined #sandstorm
cosmos has quit [Ping timeout: 260 seconds]
sydney_untangle has joined #sandstorm
digitalcircuit has quit [Quit: Signing off from Quassel - see ya!]
digitalcircuit has joined #sandstorm