{"action":"opened","issue":{"url":"https://api.github.com/repos/gruntwork-io/terragrunt/issues/316","repository_url":"https://api.github.com/repos/gruntwork-io/terragrunt","labels_url":"https://api.github.com/repos/gruntwork-io/terragrunt/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/gruntwork-io/terragrunt/issues/316/comments","events_url":"https://api.github.com/repos/gruntwork-io/terragrunt/issues/316/events","html_url":"https://github.com/gruntwork-io/terragrunt/issues/316","id":264994882,"number":316,"title":"Crash: \"runtime error: invalid memory address or nil pointer dereference\"","user":{"login":"dgarstang","id":2925359,"avatar_url":"https://avatars1.githubusercontent.com/u/2925359?v=4","gravatar_id":"","url":"https://api.github.com/users/dgarstang","html_url":"https://github.com/dgarstang","followers_url":"https://api.github.com/users/dgarstang/followers","following_url":"https://api.github.com/users/dgarstang/following{/other_user}","gists_url":"https://api.github.com/users/dgarstang/gists{/gist_id}","starred_url":"https://api.github.com/users/dgarstang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgarstang/subscriptions","organizations_url":"https://api.github.com/users/dgarstang/orgs","repos_url":"https://api.github.com/users/dgarstang/repos","events_url":"https://api.github.com/users/dgarstang/events{/privacy}","received_events_url":"https://api.github.com/users/dgarstang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-12T15:53:52Z","updated_at":"2017-10-12T15:53:52Z","closed_at":null,"author_association":"NONE","body":"What is happening here? First of all, my S3 state has not changed. Then, it tries to import it and crashes! :(\r\n\r\nterragrunt version v0.13.7\r\nTerraform v0.10.7\r\n\r\n```\r\ndoug@ADMINs-MacBook-Pro-2 widgetcorp (master) [widgetcorp_eu] $ tg apply --var-file ~/tfvars/widgetcorp.tfvars\r\n[terragrunt] [/Users/doug/git/terraform/terraform-live/terragrunt/eu-central-1/euprod/widgetcorp] 2017/10/12 08:32:09 Running command: terraform --version\r\n[terragrunt] 2017/10/12 08:32:09 Reading Terragrunt config file at /Users/doug/git/terraform/terraform-live/terragrunt/eu-central-1/euprod/widgetcorp/terraform.tfvars\r\n[terragrunt] 2017/10/12 08:32:09 WARNING: no double-slash (//) found in source URL /Users/doug/git/terraform/terraform-modules/widgetcorp. Relative paths in downloaded Terraform code may not work.\r\n[terragrunt] 2017/10/12 08:32:09 Cleaning up existing *.tf files in /var/folders/jr/b3nl0vcj7hgclvbfbt2mdrhw0000gp/T/terragrunt/FUYc4vvbbeeAusv9CM_VpOpxY0M/TcDLwgb-0LmdbdvcWfM7FNWB6UM\r\n[terragrunt] 2017/10/12 08:32:09 Downloading Terraform configurations from file:///Users/doug/git/terraform/terraform-modules/widgetcorp into /var/folders/jr/b3nl0vcj7hgclvbfbt2mdrhw0000gp/T/terragrunt/FUYc4vvbbeeAusv9CM_VpOpxY0M/TcDLwgb-0LmdbdvcWfM7FNWB6UM using terraform init\r\n[terragrunt] [/Users/doug/git/terraform/terraform-live/terragrunt/eu-central-1/euprod/widgetcorp] 2017/10/12 08:32:09 Backend s3 has not changed.\r\n[terragrunt] [/Users/doug/git/terraform/terraform-live/terragrunt/eu-central-1/euprod/widgetcorp] 2017/10/12 08:32:09 Running command: terraform init -backend-config=bucket=sws-tfstate -backend-config=key=widgetcorp/terraform.tfstate -backend-config=region=us-west-1 -backend-config=encrypt=true -from-module=file:///Users/douglasgarstang/git/terraform/terraform-modules/widgetcorp /var/folders/jr/b3nl0vcj7hgclvbfbt2mdrhw0000gp/T/terragrunt/FUYc4vvbbeeAusv9CM_VpOpxY0M/TcDLwgb-0LmdbdvcWfM7FNWB6UM\r\nCopying configuration from \"file:///Users/doug/git/terraform/terraform-modules/widgetcorp\"...\r\nDownloading modules...\r\nDo you want to copy the state from \"s3\"?\r\n  Terraform has detected you're unconfiguring your previously set backend.\r\n  Would you like to copy the state from \"s3\" to local state? Please answer\r\n  \"yes\" or \"no\". If you answer \"no\", you will start with a blank local state.\r\n\r\n  Enter a value: yes\r\n\r\nDo you want to copy state from \"s3\" to \"local\"?\r\n  Pre-existing state was found in \"s3\" while migrating to \"local\". No existing\r\n  state was found in \"local\". Do you want to copy the state from \"s3\" to\r\n  \"local\"? Enter \"yes\" to copy and \"no\" to start with an empty state.\r\n\r\n  Enter a value: yes\r\n\r\n\r\n\r\nSuccessfully unset the backend \"s3\". Terraform will now operate locally.\r\n\r\nInitializing provider plugins...\r\n\r\nThe following providers do not have any version constraints in configuration,\r\nso the latest version was installed.\r\n\r\nTo prevent automatic upgrades to new major versions that may contain breaking\r\nchanges, it is recommended to add version = \"...\" constraints to the\r\ncorresponding provider blocks in configuration, with the constraint strings\r\nsuggested below.\r\n\r\n* provider.template: version = \"~> 1.0\"\r\n\r\nTerraform has been successfully initialized!\r\n\r\nYou may now begin working with Terraform. Try running \"terraform plan\" to see\r\nany changes that are required for your infrastructure. All Terraform commands\r\nshould now work.\r\n\r\nIf you ever set or change modules or backend configuration for Terraform,\r\nrerun this command to reinitialize your working directory. If you forget, other\r\ncommands will detect it and remind you to do so if necessary.\r\n[terragrunt] 2017/10/12 08:32:56 Copying files from /Users/doug/git/terraform/terraform-live/terragrunt/eu-central-1/euprod/widgetcorp into /var/folders/jr/b3nl0vcj7hgclvbfbt2mdrhw0000gp/T/terragrunt/FUYc4vvbbeeAusv9CM_VpOpxY0M/TcDLwgb-0LmdbdvcWfM7FNWB6UM\r\n[terragrunt] 2017/10/12 08:32:56 Setting working directory to /var/folders/jr/b3nl0vcj7hgclvbfbt2mdrhw0000gp/T/terragrunt/FUYc4vvbbeeAusv9CM_VpOpxY0M/TcDLwgb-0LmdbdvcWfM7FNWB6UM\r\n[terragrunt] 2017/10/12 08:32:56 runtime error: invalid memory address or nil pointer dereference\r\n[terragrunt] 2017/10/12 08:32:56 Unable to determine underlying exit code, so Terragrunt will exit with error code 1\r\n```\r\n"}}
{"actor":{"display_login":"dgarstang"}}