kentonv changed the topic of #sandstorm to: Welcome to #sandstorm: home of all things sandstorm.io. Say hi! | Have a question but no one is here? Try asking in the discussion group: https://groups.google.com/group/sandstorm-dev
Mitar has joined #sandstorm
prompt-laser has joined #sandstorm
heliostatic has quit [Quit: The Lounge - https://thelounge.github.io]
heliostatic has joined #sandstorm
kawaiipunk has quit [Quit: Leaving this Club]
kawaiipunk has joined #sandstorm
nwf has quit [Ping timeout: 256 seconds]
nwf has joined #sandstorm
vertigo_38 has joined #sandstorm
<vertigo_38> Hi all! I'm just setting up a sandstorm instance on my vps, but run into troubles setting up my admin account...
<vertigo_38> I can finish all the steps (including LDAP setup), but once I try to login in the last step, I get an internal server error 500. I have the feeling, that it's somehow connected to LDAP maybe, but if I use the same parameters for a ldapsearch I see what I need, and the ldap users can otherwise normally login...
<vertigo_38> The one suspicious thing I can find in the logs: ~Exception while invoking method 'createAccountForCredential' TypeError: Cannot read property 'findOne' of undefined~
<vertigo_38> I'm on ubuntu 20.04
<vertigo_38> (setup was done with bash install.sh)
<vertigo_38> I'm eager to try out this software, as it could more than fulfill our lab's needs , so any hint is really welcome! THX
<vertigo_38> Could it be, that I'm just missing a java library?
<vertigo_38> I put the exact error-message from /opt/sandstorm/var/log/sandstorm.log here: https://pastebin.com/a5w8kMiQ
<vertigo_38> This one pops up everytime I try to log into the admin account from firefox/chromium (it's immediate, I tail -f the file)
<abliss> You're not missing a java library. this looks like a javascript bug in the latest release. Could you open a github issue?
<abliss> actually nvm, we already have one for this: https://github.com/sandstorm-io/sandstorm/issues/3322
<vertigo_38> abliss: thank you! this is exactly what I see too -- I will try to apply the workaround as I'm meanwhile sure that LDAP is working well on my machine.
<vertigo_38> But if I get it right, I will have to build from source to apply the patch for my installation?
<JacobWeisz[m]> You also could install an older build and disable updates until we push a release that fixes it.
<JacobWeisz[m]> We should get another release out very soon.
vertigo_38 has quit [Ping timeout: 240 seconds]
vertigo_38 has joined #sandstorm
<vertigo_38> JacobWeisz[m]: The version from: https://github.com/sandstorm-io/sandstorm.git obviously already includes the patch from above ;) Just compiled it and it seems to work nicely!
<JacobWeisz[m]> Awesome :)
<JacobWeisz[m]> It's good to know the fix is tested, we had reopened the issue pending knowing it worked.
<vertigo_38> I just installed a few apps (etherpad, ethercalc, draw.io), which goes in a rush, but once I actually open a grain it loads long (like minutes) with all of the applications -- so far I haven't seen a spreadsheet (although load on cpu and ram low). Any hints, how long a grain is expected to load for the 'first start'?
<abliss> New grain startup should be less than a minute for sure.
<abliss> There should be a grain debug log that you can get by clicking the monitor icon at the top of the shell... any clues in there?
<vertigo_38> abliss: the debug log stays at '** SANDSTORM SUPERVISOR: Starting up grain. Sandbox type: userns'
<vertigo_38> It seems I have to adjust my WILDCARD_HOST, there is a message about it in admin's panel 'pre-installed apps' section!
<abliss> how's the cpu/ram load on your vps during grain loading?
<vertigo_38> mhm, actually BASE_URL is set to https://sandstorm.mydomain.com and WILDCARD_HOST to '*.sandstorm.mydomain.com'
<vertigo_38> abliss: i still have 3.5GB RAM free when the grain is starting and one of the core in varied intervals goes up, but load stays down at low 0.XY values
<kentonv> vertigo_38, try going to "foo.sandstorm.mydomain.com" -- you should get an error from Sandstorm like "Sandstorm static publishing needs further configuration", but my guess is you'll get some other error because the request never gets to Sandstorm
<vertigo_38> kentonv: absolutely, I think I haven't completely correctly set up DNS... it finds nothing, and I wouldn't even know how...
<vertigo_38> (it should)
<vertigo_38> back to the docs
<vertigo_38> abliss, kentonv, JacobWeisz[m]: thanks for your helpfulness. it turned out, that I already had a wildcard-ca-certificate, but I did not have a proper wildcard-dns-entry at my provider. If I wouldn't be sure, that you know how ethercalc looks like, I'd post a screenshot now (it was there in some 10s;)!
<JacobWeisz[m]> @Ian Denhardt There's an issue on the app market repo that I am concerned about. I tagged you.
<JacobWeisz[m]> vertigo_38: So everything is working for you now?
<vertigo_38> JacobWeisz[m]: almost, the compiled version does not bring any preinstalled apps, and I don't yet see, how to edit that (empty) part in the admin panel! Installing as my user goes quickly, but a landings zone with eg. etherpad and ethercalc preinstalled for a 'fresh' user (iow my collegues), would be nice. Apart from that I'm pretty stunned playing around for now ;)
<JacobWeisz[m]> I am a little curious why that admin panel is empty for you, vertigo_38
<JacobWeisz[m]> Do you see any browser console errors or anything in there?
<vertigo_38> I see one repeating one in the admin system log:
<vertigo_38> j/compat/http.c++:5079: error: unhandled exception in HTTP server; exception = kj/compat/http.c++:1853: failed: previous HTTP message body incomplete; can't write more messages
<vertigo_38> stack: 709c10 7109e0
<JacobWeisz[m]> Can you open an issue on GitHub for it? That doesn't sound healthy.
<vertigo_38> I think I'll recompile first and log compilation, there were some errors in the process, but I cannot access them anymore
vertigo_38 has quit [Ping timeout: 260 seconds]
frigginglorious has joined #sandstorm
vertigo_38 has joined #sandstorm
<vertigo_38> mhm, actually https://docs.sandstorm.io/en/latest/administering/guide/ tells me that users entering sandstorm for the first time are supposed to install the apps themselves. Good enough for me, actually.
syf_z_otchlani has quit [Ping timeout: 260 seconds]
<JacobWeisz[m]> The preinstalled app feature is definitely meant so you can have them prepopulated for new users, but yeah, users can also install them themselves if they want.
<vertigo_38> OK, I'm a bit further now, but seem to end up in a kind of funny situation:
<vertigo_38> if install sandstorm through 'curl https://install.sandstorm.io | bash', I end up with apps installed, but a login error 500 (as discussed above), and if I compile it, the culprit could be that one:
<vertigo_38> sry
<vertigo_38> If I read this right, sandstorm looks for an app list, but this somehow times out - in the web-admin setup the application list stays empty then
<JacobWeisz[m]> So something with your build is preventing the app list from being contacted. Weird.
<vertigo_38> Maybe it's a proxy issue?
<JacobWeisz[m]> Are you using any sort of proxy?
<JacobWeisz[m]> Even then I am confused why a version you build would be different than an official build.
<JacobWeisz[m]> I am not sure when kentonv will be able to push a bugfix release again. Bit of a rocky week for us. But largely because a lot of cool stuff has been going on in the Sandstorm world lately.
<kentonv> there's another bugfix?
<vertigo_38> it's ubuntu's standard nginx as reverse proxy with the config from https://github.com/sandstorm-io/sandstorm/blob/master/docs/administering/sample-config/nginx-example.conf with my hostname adapted
<JacobWeisz[m]> kentonv: LDAP users can't create accounts. The workaround is to create an account with email login and then link LDAP.
<kentonv> is there a fix PR?
<JacobWeisz[m]> #3323 is merged already, yeah
<JacobWeisz[m]> Some folks have built it and verified the fix.
<kentonv> guess I'll push a release tomorrow
<JacobWeisz[m]> <3
<JacobWeisz[m]> vertigo_38: So we haven't documented the new things too well, but if you just did the reverse proxy to use your own HTTPS cert, you might not need it anymore.
<JacobWeisz[m]> I have my doubts on it being the Nginx config at issue, if you didn't have that problem using the official build.
<vertigo_38> JacobWeisz[m]: I'm mainly doing the reverse proxy, because I use 443 for other applications sometimes
<JacobWeisz[m]> Ah, okay. I think you can probably set HTTPS_PORT to whatever you like in sandstorm.conf and we do now have a UI to install your own cert and use Let's Encrypt for your own domains. It's on my documentation todo list. :)
<JacobWeisz[m]> Did you see any sort of errors or warnings when building Sandstorm you could share?
<JacobWeisz[m]> Though depending on the urgency, it might be just as well to recommend you look for 0.265 hopefully tomorrow.
<vertigo_38> JacobWeisz[m]: I'm happy to wait, it's in experimental stage yet ;)
<vertigo_38> grep "warning:" sandstorm_make.log:
<JacobWeisz[m]> It's notable to me that the call you saw in your Sandstorm log has a warning in your make log?
<JacobWeisz[m]> But I am not the expert.
cheers has quit [Ping timeout: 246 seconds]
<vertigo_38> Thanks for pointing out. Trying to figure out connections...
cheers has joined #sandstorm
cheers has quit [Ping timeout: 260 seconds]
cheers has joined #sandstorm
<isd> Funny coincidence that keys.pub hit the front page of hackernews just a couple days before the keybase announcement...