<TonyTheLion>
I did the install on another machine, in the exact same way, and there it does work
<TonyTheLion>
I'm stumped
<kentonv>
I've very occasionally seen this happen. It seems to be random.
<kentonv>
wiping and starting over usually works.
samba_ has joined #sandstorm
<TonyTheLion>
kentonv: I have reinstalled once already
<kentonv>
huh
<TonyTheLion>
didn't seem to make a difference
<TonyTheLion>
guess I could try again
<kentonv>
you deleted /opt/sandstorm before reinstalling?
anthropy has quit [Ping timeout: 256 seconds]
n8a has quit [Ping timeout: 255 seconds]
<TonyTheLion>
kentonv ye I deleted everything
n8a has joined #sandstorm
<kentonv>
can you send the whole sandstorm.log to me?
<kentonv>
/opt/sandstorm/var/log/sandstorm.log
<kentonv>
kenton@sandstorm.io
<TonyTheLion>
lemme do that
<TonyTheLion>
kentonv: sent
<kentonv>
TonyTheLion: well that was short
<TonyTheLion>
sadly
<TonyTheLion>
not very informative huh
<kentonv>
I was hoping to find that it tried to start up once with a weird error, and then had the "not authorized" error on subsequent tries... but I guess not.
<kentonv>
hmm the mongo.log might be useful though
<kentonv>
mongo.log* -- that is, all of them, if there are multiple files
<TonyTheLion>
lemme do that
<TonyTheLion>
kentonv: sent
<kentonv>
thanks. Unfortunately I'm not seeing any obvious leads here. :/
<TonyTheLion>
:(
<kentonv>
I suggest wiping and reinstalling once more. I do wish we could track this down so that it doesn't happen again, but I'm not sure where to look.
<TonyTheLion>
yea these kinds of errors really suck
<TonyTheLion>
kentonv is it possible to manually add that user to the mongodb so it doens't have to do it?
<kentonv>
Maybe. I don't know what the procedure would be. Presumably you have to log in as admin in order to add other users but Sandstorm is having trouble logging in as admin...
<kentonv>
hey actually, a thing to check
<kentonv>
one moment
sydney_untangle has quit [Read error: Connection reset by peer]
<kentonv>
I wonder if the problem is that the auto-generated Mongo password is weird somehow and not being recognized. Can you send me /opt/sandstorm/var/mongo/passwd ? Note that you'll need to wipe either way, so this password will be regenerated, so you aren't revealing anything terribly sensitive.
<kentonv>
but maybe we'll discover that the password is weirdly-formatted and that's causing the problem.
<kentonv>
this would explain the randomness of the problem -- it might depend on the generated password.
<TonyTheLion>
the password generated seems to be always the same per that log
<TonyTheLion>
ie "xxx"
<kentonv>
I assume it's redacted
<kentonv>
the actual password is stored in /opt/sandstorm/var/mongo/passwd
<TonyTheLion>
interestingly
<TonyTheLion>
there seems to be now such file
<TonyTheLion>
there seems to be no such file
<kentonv>
hmm
<TonyTheLion>
the machine it works on has that passwd file
<TonyTheLion>
but the one where it doesn't work
<kentonv>
I guess maybe the file is written after the user is created
<TonyTheLion>
doens't
<kentonv>
but it's failing to create the user here
<kentonv>
it's weird, no users have been created yet in that Mongo, but it complains that the client doesn't have admin -- how is the client supposed to have admin if there is no admin user yet?
<TonyTheLion>
good question
<kentonv>
I'm sitting here repeatedly creating new sandstorm databases trying to repro the problem but can't. :/
<kentonv>
dunno what to say
<TonyTheLion>
suckages
sydney_untangle has joined #sandstorm
<kentonv>
hmm maybe it's a timing issue. Mongo does this thing where it needs to elect itself master of its replica set -- even when it's the only member of the replica set -- which takes 2-3 seconds. We have a 4-second sleep in there, but maybe that's sometimes not long enough...
<kentonv>
no, that seems to produce a different error ("couldn't add user: not master")
samba_ has quit [Ping timeout: 258 seconds]
<TonyTheLion>
interesting
samba_ has joined #sandstorm
<kentonv>
have you tried wiping again?
samba_ has quit [Ping timeout: 256 seconds]
aldeka_limechat has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 252 seconds]
sydney_untangle has quit [Quit: bbl]
sydney_untangle has joined #sandstorm
samba_ has joined #sandstorm
jemc has joined #sandstorm
ill_logic has quit [Ping timeout: 256 seconds]
jemc has quit [Ping timeout: 252 seconds]
aldeka_limechat has joined #sandstorm
aldeka_limechat has quit [Ping timeout: 240 seconds]