-
Notifications
You must be signed in to change notification settings - Fork 607
error: runtime error: invalid memory address or nil pointer dereference #937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@wise-east Thank you for reporting this! I believe this is an issue with a new IAM check we added for 0.15. Do you mind trying two things: 1. What does 2. I have built a slightly modified version of the CLI, which will print stack traces for panics (this change #921 has been merged into master, but not yet released). I also added extra debug statements to try to see what is going on. Do you mind trying this CLI and sending the output? # make a temporary directory for the test
mkdir cli-test
cd cli-test
# download the modified CLI
# on Mac:
curl -o cortex-test https://cortex-cli-david.s3-us-west-2.amazonaws.com/0.15.0/cli/darwin/cortex
# on Linux:
curl -o cortex-test https://cortex-cli-david.s3-us-west-2.amazonaws.com/0.15.0/cli/linux/cortex
chmod +x cortex-test
# run the command that was breaking for you
./cortex-test cluster up -c <path to cluster.yaml>
# ctrl+c if it asks "do you want to continue", but it will probably crash before then
# clean up
cd ..
rm -rf cli-test Feel free to email me at david@cortex.dev if you prefer, I'd also be happy to jump on a call if you'd like to go through it together, since this is on the critical path and I'd like to get it fixed as soon as possible. Thanks again for reporting this! |
My pleasure.
Hope this helps! |
Yes this is super helpful, thank you! It explains why I was unable to reproduce it: I am using an IAM user, and this issue only happens with the root user. I will work on a fix tonight, and we'll try to have it released tomorrow. In the mean time you can continue using 0.14, or you can create an IAM user (give it the "AdministratorAccess" policy) and use that instead of your root user. |
I just pushed the fix; v0.15.1 is building now, and we plan on testing and releasing it tomorrow. Thanks again for the heads up! |
Version
0.15.0
Description
After installing cortex with
$ bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.15/get-cli.sh)"
and runningcortex cluster up
, I get the following error message after providing the aws region I would like to use:error: runtime error: invalid memory address or nil pointer dereference
I could not figure out why, so I removed this installation and went to the docs and used version 0.14 and the same exact commands seem to work fine.
Configuration
I'll get the message after providing the region if I don't provide a config file but if I do, I'll get the error message right away.
Steps to reproduce
$ bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.15/get-cli.sh
$ cortex cluster up
Expected behavior
Move on to ask configuration for s3 bucket, etc.
Actual behavior
Screenshots
Stack traces
N/A
The text was updated successfully, but these errors were encountered: