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
anthropy has joined #sandstorm
<anthropy> hey all, I have a weird issue with my sandstorm install.. the sandcats SSL certificate expired randomly and I can't figure out what broke to cause it stopping renewals
funwhilelost has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harish has quit [Ping timeout: 276 seconds]
wolcen has joined #sandstorm
<kentonv> anthropy, what's your sandcats hostname? (Feel free to PM me if you don't want to say it publicly.)
<anthropy> I /msg'd it to you but I'm using pidgin and I'm not sure it arrived :P
<kentonv> yep, got it
<kentonv> it looks to me like your server did not request a new cert when expected. Other servers are still requesting and receiving just fine, so this is odd.
<kentonv> is there anything in the system log? See /admin/status
<anthropy> yea, I'm having some idea about why though
<anthropy> for some reason the virtual harddisk got corrupted the other day, I shut the machine down, fixed it with qemu-img, and then let btrfs run a scrub which fixed most of the errors, but not everything
<anthropy> heh yep, basically this message repeated:
<anthropy> Couldn't send UDP sandcats ping { [Error: getaddrinfo EAI_AGAIN] code: 'EAI_AGAIN', errno: 'EAI_AGAIN', syscall: 'getaddrinfo', hostname: 'sandcats.io' }
<anthropy> I'm thinking of just redoing the machine from scratch with another OS though.. (open to suggestions). Is there an easy way to migrate sandstorm to a new server?
<kentonv> yeah that'd do it. Although that specific error is not from certificate renewal, it indicates that DNS isn't working.
<anthropy> [alex@Anthropy-Sandstorm ~]$ ping google.nl
<anthropy>
<anthropy> 64 bytes from ams16s29-in-f3.1e100.net (172.217.17.35): icmp_seq=1 ttl=56 time=3.69 ms
<anthropy> PING google.nl (172.217.17.35) 56(84) bytes of data.
<anthropy> hm
<kentonv> ping sandcats.io?
<anthropy> PING sandcats.io (104.197.28.173) 56(84) bytes of data.
<anthropy> 5 packets transmitted, 0 received, 100% packet loss
<anthropy> --- sandcats.io ping statistics ---
<anthropy> ^C
<kentonv> ok, so I guess DNS is working fine
<kentonv> (our host doesn't return pings apparently)
<anthropy> it's probably some strange corruption issue though.. is it easy to migrate sandstorm with relatively fresh config but all apps in tact?
<anthropy> ah at least the icmp block is expected then :)
<kentonv> if you move the whole /opt/sandstorm directory you should be good. But I'd try a few more things first.
<kentonv> this may be silly but have you tried "sudo sandstorm restart"?
<kentonv> actually
<kentonv> sudo sandstorm stop; sudo sandstorm start
<anthropy> [root@Anthropy-Sandstorm alex]# sandstorm restart
<anthropy> bash: sandstorm: command not found
<anthropy> dundun DUNNN
<kentonv> /opt/sandstorm/sandstorm
<kentonv> (there's supposed to be a symlink in /usr/local/bin but I guess not for you)
neynah has joined #sandstorm
<anthropy> ohey that seemed to fix the certificate
<kentonv> heh
<kentonv> so I think what happened is
<kentonv> Sandstorm copies your DNS config at startup, in order to make it available inside the self-container
<kentonv> however, if your DNS config changed after Sandstorm started, then Sandstorm would be running with a broken config
<kentonv> so a restart fixed it and then it was able to get a new cert
<anthropy> perhaps the system fixed itself after bootup, there /was/ a corrupt dns config and now there isn't anymore
<anthropy> or something
<anthropy> anyway neat
<anthropy> "WARNING: This server seems to be unable to create a WebSocket. " hmm
<kentonv> are you using an HTTP proxy?
<kentonv> (like is your browser configured to go through a proxy)
<anthropy> kinda maybe yes though it's a SOCKS5 proxy (SSH)
<kentonv> usually WebSocket problems aren't actually the server's fault but something about your browser or your network
<anthropy> I'll try some things
<anthropy> is there a way to test it without logging in?
<kentonv> a socks proxy ought to work, though... it's HTTP proxies that would typically cause trouble.
<kentonv> unless your socks proxy is doing deep-packet inspection somewhere
<anthropy> nah
<anthropy> I do have a HTTPS proxy running on my webserver to route it to the VM based on hostname, but that doesn't touch the traffic either, it uses the TLS SNI tag and is completely transparent otherwise
<kentonv> hmm, when I open your sandcats domain I do not see Sandstorm.
<kentonv> I just see "More interesting stuff up here soon."
<anthropy> be sure to use https, http points to the nginx of the frontend webserver right now which doesn't redirect yet l3;
<kentonv> oh right
<kentonv> so you can check this in the JS console: Meteor.connection._stream.socket.protocol
<kentonv> if websockets are working, it should be the string "websocket"
<kentonv> seems to be working for me, on your server
<kentonv> so I think it's your browser or network.
<kentonv> oh, one possibility
<kentonv> sometimes the browser will decide, after failing to connect WebSockets once or twice, that the host simply doesn't support them at all. And then it will stop allowing new ones.
<kentonv> maybe it decided this while the certificate was broken
<kentonv> I usually find that restarting the browser (full exit, then restart, not just closing the tab) solves this
<kentonv> FWIW most things work fine without WebSocket, though a few apps will break
aldeka_limechat has quit [Remote host closed the connection]
<anthropy> it seems to be working now
<anthropy> neat, I hope the server keeps working, it'd be nice not having to setup a new server for no real reason
<asheesh> +1
<asheesh> I just showed up and read scrollback and yeah, +1 to understanding and fixing problems. I'm glad that approach worked!
<anthropy> is fedora a decent OS to run sandstorm on?
<anthropy> (and BTRFS a decent filesystem for sandstorm? or are there known issues?)
aldeka_limechat has joined #sandstorm
<asheesh> Totally reasonable; no known issues to me, at least.
<anthropy> yay! then I hope nothing will fall over despite that corruption issue at one point
<asheesh> That's the spirit with btrfs, I feel/fear.
<anthropy> I'm making nightly snapshots with ZFS now so it should be easier to fix next time
<asheesh> I had a sad time with it in 2011 but it's not 2011 anymore.
<asheesh> Great.
<anthropy> still no idea what caused it in the first place though, hardware is full ECC (xeon + ddr4 ecc), using ZFS RAID1+0 with weekly scrubs (was daily).. guess sometimes applications just feel like being a pain in the dick
<strugee> heya
<strugee> so I have a Sandstorm install - strugee.sandcats.io - which (according to the admin panel) has a misconfigured WILDCARD_HOST
<strugee> in the browser console I get:
<strugee> > Sandstorm WILDCARD_HOST self-test failed. Details: Error: network
<strugee> I don't see anything useful other than that in the console (which may be because I'm on Firefox Nightly and have a newer/different console) but the Network pane shows all 200 responses from the main domain along with a bunch of requests to "static.strugee.sandcats.io"... ah
<strugee> that's the problem
<strugee> any chance https://github.com/sandstorm-io/sandcats/issues/153 will get fixed/triaged anytime soon?
<strugee> that's the underlying problem
<strugee> hey larjona did you ever hear back from botbot.me?
harish has joined #sandstorm
jemc has quit [Ping timeout: 240 seconds]
jemc has joined #sandstorm
<strugee> awkward. wrong channel :P
<ocdtrekkie> S'okay, I type botbot.me a lot for this channel. It's how I read it when I'm at work. :D
aldeka_limechat has quit [Remote host closed the connection]
aldeka_limechat has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 248 seconds]
aldeka_limechat has joined #sandstorm
jemc has quit [Quit: WeeChat 1.4]
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jemc has joined #sandstorm
jemc has quit [Ping timeout: 256 seconds]
jemc has joined #sandstorm
wolcen has quit [Ping timeout: 255 seconds]
wolcen has joined #sandstorm
aldeka_limechat has quit [Remote host closed the connection]
neynah has joined #sandstorm
harish has quit [Ping timeout: 245 seconds]
Jan2 has joined #sandstorm
Jan\ has quit [Ping timeout: 240 seconds]
aldeka_limechat has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 248 seconds]
harish has joined #sandstorm
jemc has quit [Ping timeout: 240 seconds]
aldeka_limechat has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 240 seconds]
Lionel_Debroux has quit [Ping timeout: 240 seconds]
harish has quit [Ping timeout: 245 seconds]
harish has joined #sandstorm
harish has quit [Ping timeout: 264 seconds]
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
aldeka_limechat has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 240 seconds]
Guest94271 has joined #sandstorm
Guest94271 has quit [Ping timeout: 252 seconds]
dograt has quit [Ping timeout: 248 seconds]
dograt has joined #sandstorm
aldeka_limechat has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 240 seconds]
afuentes has joined #sandstorm
NhanH has quit [Quit: Connection closed for inactivity]
Guest94271 has joined #sandstorm
aldeka_limechat has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 255 seconds]
aldeka_limechat has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 276 seconds]
tobald has joined #sandstorm
aldeka_limechat has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 255 seconds]
anthropy has quit [Ping timeout: 276 seconds]
Jan2 has quit [Ping timeout: 248 seconds]
Jan\ has joined #sandstorm
anthropy has joined #sandstorm
aldeka_limechat has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 240 seconds]
aldeka_limechat has joined #sandstorm
jemc has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 240 seconds]
jemc has quit [Client Quit]
jemc has joined #sandstorm
tobald has quit [Quit: Ex-Chat]
Lionel_Debroux has joined #sandstorm
aldeka_limechat has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 256 seconds]
neynah has joined #sandstorm
ill_logic has quit [Ping timeout: 240 seconds]
<strugee> hey all
<strugee> I'm trying to build Sandstorm
<strugee> when invoking `make` I get:
<strugee> compile: node-capnp/capnp.cc
<strugee> /ekam-provider/canonical/node-capnp/capnp.cc:29:10: fatal error: 'node.h' file not found
<strugee> #include <node.h>
<strugee> `make update-deps` doesn't do anything (i.e. everything is already up-to-date)
<strugee> as an aside, great job on this project. I'm continually impressed by the security model
<strugee> ^^^ I proposed Sandstorm's inclusion in prism-break.org
<strugee> kentonv: ping
afuentes has quit [Ping timeout: 248 seconds]
aldeka_limechat has joined #sandstorm
ill_logic has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 240 seconds]
ill_logic has quit [Ping timeout: 276 seconds]
demonimin has quit [Remote host closed the connection]
demonimin has joined #sandstorm
intelligence has joined #sandstorm
intelligence has quit [Client Quit]
<anthropy> Is there a way to redownload and install an app in sandstorm? the host suffered some corruption and the Davros app is giving vague errors
IQFred has joined #sandstorm
<IQFred> hi!
<IQFred> I'm evaluating Sandstorm for a project that my company is working on and I wonder if anyone here has experience with Sandstorm deploying on mobile devices?
<anthropy> I've tried most apps on mobile devices and they seem to perform well
<anthropy> Some apps don't work with the native android/iOS apps though, such as Rocketchat doesn't appear to be working with the Android Rocketchat app
<anthropy> but the web parts all seem to work well
<anthropy> even the little MMORPG thingy :P
<IQFred> I guess the reason I ask is that I created two demo accounts on Oasis and I'm testing them on iOS and Android and the web interface is really clunky
<IQFred> The biggest issue I noticed is that the viewport doesn't scroll in the main menu.
<IQFred> So if you have a bunch of grains "open" and the list scrolls past the end of the viewport,... it doesn't scroll at all. There's no way to reach it
<IQFred> (btw, didn't they just fix the rocket chat client on Android? I thought I saw that ticket closed)
<anthropy> yea it has some.. usability needs, though it worked well for me whenever I have to use an app on the go. I can work around the bug by going back to selecting an app from the grains list
<anthropy> really? I'll check that out right now then
<IQFred> Oh, absolutely. It's technically usable.... just not really good UX
<IQFred> Are you part of the development team or a user?
<anthropy> I'm a user, I have a few sandstorm setups running
<anthropy> and hey you're right, the app works now! Sweet
<jemc> I'm having trouble with developing a vagrant-spk packaged meteor grain
<IQFred> Right :) I saw it in the development thread over on GitHub
<jemc> I'm getting the infinite loading spinner when I try to view the grain
<neynah> Yeah the current state of our ux on mobile is pretty unspectacular... If you'd like to file an issue for the scrolling issue we can make an effort to fix it. :)
<jemc> is there any way to see stdout/stderr from the `launcher.sh` that is being run?
<jemc> I know I can use `vagrant-spk enter-grain` to execute commands in the grain, but I'd like to see the output of the command that sandstorm itself is executing
<IQFred> Hey Neynah, I'll do that... might take me a few days because I'll need to document it properly so you can see the use cases where the issue is present.
<jemc> is there a log where this would be written to, or a way to attach to the stdout/stderr?
<IQFred> Thanks all :)
aldeka_limechat has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 248 seconds]
wolcen has quit [Ping timeout: 255 seconds]
IQFred has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<anthropy> Is there a way to reinstall a sandstorm app? I tried uninstall/reinstall but something is corrupt and the app fails to load
<neynah> Is this an app from the App Market?
<anthropy> yes, Davros actually
<anthropy> I had some issues where the VM got slightly corrupted, I pondered reinstalling but it seems to hold up fairly alright after some fixes
<anthropy> BTRFS managed to fix most of the errors aside for 15 checksum errors, I presume davros has files in it somewhere
esmiurium has quit [Ping timeout: 240 seconds]
wolcen has joined #sandstorm
<kentonv> anthropy, reinstalling an app is actually sort of tricky. I think you would need to mess with the database unfortunately.
<kentonv> unless there's an update, in which case the update will replace the old version
<kentonv> I think you would need to go into `sandstorm mongo` and do: db.packages.remove({_id: "<package-id>"})
<kentonv> and at the shell: rm -rf /opt/sandstorm/var/sandstorm/apps/<package-id>*
<anthropy> I'll try that, thanks!
<kentonv> you need to substitute in the package ID of course
<kentonv> which app is broken?
<kentonv> davros?
<anthropy> Davros yea
<kentonv> current package ID for Davros should be e813a833d983fbc38d87da62ea461fa7
<anthropy> 2017-01-26T21:15:21.271+0000 In File::open(), ::open for '' failed with errno:2 No such file or directory
<anthropy> is this bad?
<kentonv> where did you see that?
<anthropy> it said that when I opened mongo
<kentonv> when you did `sandstorm mongo` it said that?
<anthropy> yea
<anthropy> ssrs:PRIMARY> db.packages.remove({_id:"e813a833d983fbc38d87da62ea461fa7"})
<anthropy> at least that worked
<anthropy> WriteResult({ "nRemoved" : 1 })
<kentonv> oh, well... I guess it's working then
<kentonv> dunno what that error meant
<anthropy> hmm, I tried restarting sandstorm and then reinstalling the app after removing all the above mentioned entries, but now Davros just shows up as '<Unknown>' after installation. Installation from the market seems to work, but after that that happens
<kentonv> let me try doing the same steps here and see what happens
<anthropy> Davros used to work before the corruption event, just afterwards I never got it working again
<kentonv> huh, that File::open() error appears for me too, guess I never noticed
<anthropy> I intend to use it to save my scanned bills and mail so I have it together with all my other stuff inside sandstorm, would be neat to have davros working :3
<kentonv> ok I've reproduced the same error here. Interesting, apparently I'm forgetting some place that is caching some metadata or something. Lemme see here...
<kentonv> oh
<kentonv> you'll need to do a "sandstorm restart"
<kentonv> because it caches some package info in-memory
<kentonv> after that you should be able to reinstall davros
<anthropy> I did that actually
<anthropy> but I'll try it again
<kentonv> maybe repeat all the steps again
<kentonv> including clicking "uninstall" in the UI, which I forgot before, but I think you figured out
<anthropy> oh, it works now!
<anthropy> neat
<kentonv> great!
<anthropy> now to see if it starts without errors
<anthropy> yep! it's all working now :)
<anthropy> thanks for the help! I'll definitely add those two purging commands to my personal knowledge base
<kentonv> we should probably add a "reinstall app" feature for admins
<anthropy> yea it would be great for recovery scenarios
<kentonv> feel free to file an issue for that
<anthropy> sure thing, where? github?
<kentonv> yep
<anthropy> will do right away
<strugee> oh man
<strugee> saw https://github.com/sandstorm-io/sandstorm/pull/2836#issuecomment-275526341 in my notifications and thought I got midaired :D
<strugee> but I guess garply is a bot
<kentonv> Garply is a cat!
* strugee turns red
<kentonv> but yes, it's actually Jenkins
<strugee> yeah, I looked at the wiki
<strugee> I guess Travis doesn't work for some usecase Sandstorm has?
<strugee> couldn't you use e.g. Vagrant to build PRs in a virtualized environment?
* strugee is just curious
<strugee> like to be clear "it's too much work" would be a very valid answer IMHO :P
<maurer> strugee: Sandstorm requires certain kernel features to properly test. These are certainly not present in travis's containerized builds, and I am unsure about their VM builds
<strugee> ohhhhhh right
<strugee> the newest you can get is Ubuntu Precise IIRC
<strugee> which I'm guessing is probably too old
<maurer> I would expect sandstorm works on precise, but I cannot say for sure (I'm not an official sandstorm person0
<maurer> My point is basically "They do stuff with new namespace features, it makes sense that they would want their own testing environment"
<kentonv> Travis almost certainly blocks some of the syscalls we need to test Sandstorm
<kentonv> if they don't then they have a security problem. :)
<maurer> kentonv: I mean, it's possible their non-container version wouldn't block the syscalls?
<kentonv> oh, I suppose yeah
<kentonv> if it's VM-based
<maurer> Yeah, they have 3 stacks
<maurer> default is container based, which will certainly not work
<maurer> they have a VM based stack, whose kernel may or may not be too old
<maurer> and they have an OSX stack, which is not relevant to sandstorm
<kentonv> Precise is too old though, if that's really the newest they support.
<maurer> Newest is 14.04
<maurer> which is quite old
<kentonv> 14.04 is good enough
<maurer> they really want people to switch to container-based, it's much cheaper fo rthem to run
<kentonv> yeah I would imagine so
<maurer> Yeah, if you feel like playing with it in your copious free time, the magic words are "dist: trusty" and "sudo: required"
<maurer> to get onto a trusty vm
<kentonv> yeah, our Jenkins VM seems to be working fine, so... nah. :)
<kentonv> someday Sandstorm itself needs a VM API, in order to be able to put our tests on our own infrastructure...
<maurer> Yeah, there are definite plusses to using jenkins
samba_ has joined #sandstorm
<jemc> just a quick bump for my earlier question - is there a way to see the stdout/stderr of `launcher.sh` for a `vagrant-spk dev` grain that is failing to start (infinite loading spinner)?
<kentonv> jemc, click the debug log button in the top bar in the UI (icon looks like a monitor)
samba_ has quit [Client Quit]
<kentonv> just had an idea: we should automatically display the debug log in a bottom panel when an app is in dev mode
<jemc> ah, that sounds like it's a lot simpler than I was making it...
<jemc> for whatever it's worth, I would have expected to see some reference to this in the docs titled "debugging a running grain" - https://docs.sandstorm.io/en/latest/developing/debugging/
<kentonv> indeed, that seems like a glaring omission
<kentonv> FWIW the docs are in the Sandstorm repo if someone wants to make a PR. :)
esmiurium has joined #sandstorm
afuentes has joined #sandstorm
jemc has quit [Ping timeout: 240 seconds]
funwhilelost has joined #sandstorm