TritonDataCenter / manta-thoth

Thoth is a Manta-based system for core and crash dump management
16 stars 7 forks source link

thoth: TypeError: Cannot call method 'on' of null #121

Closed dwlf closed 7 years ago

dwlf commented 9 years ago

If a MANTA_USER without access is set then any thoth command will fail with thoth: TypeError: Cannot call method 'on' of null.

ENV

MANTA_USER=lloyd.dewolf
MANTA_KEY_ID=XXX_REMOVED_XXX
MANTA_URL=https://us-east.manta.joyent.com
THOTH_USER=thoth

My MANTA_USER is not a manta developer account, so I needed to also set MANTA_USER=thoth

ADDITIONAL DETAILS

When THOTH_USER=thoth was not set, then thoth is verses a "local install" and I don't receive this symptom. Hence, my belief it is an authentication/authorization issue.

$ thoth -h
thoth: using database at localhost:28015 (configured from source)
thoth: unrecognized command "-h"
Usage: thoth [command] [params]
...
numericillustration commented 8 years ago

I'm guessing this will be fixed by https://github.com/joyent/manta-thoth/pull/130 but in the mean time you can work around it by setting the ssh key fingerprint to an MD5 style one since this uses the older node-manta MANTA_KEY_ID=$(ssh-keygen -l -f ~/.ssh/id_rsa -E md5 | awk '{print $2}' | cut -d : -f 2-)

trentm commented 7 years ago

Will be fixed by joyent/manta-thoth#144.

trentm commented 7 years ago

That fix is in. manta-thoth@1.0.0 is published with the fix.