Skip to content
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

unexpected EOF panic: runtime error: invalid memory address or nil pointer dereference #553

Closed
hashibot opened this issue Oct 8, 2017 · 1 comment · Fixed by #556
Closed

Comments

@hashibot
Copy link

hashibot commented Oct 8, 2017

This issue was originally opened by @aelzhanova as hashicorp/terraform#16286. It was migrated here as a result of the provider split. The original body of the issue is below.


Ubuntu 17

Terraform Version

0.10.7

Terraform Configuration Files

provider "google" {
        project = "project_name"
        region = "europe-west1"
}
resource "google_compute_instance" "app" {
        name = "reddit-app"
        machine_type = "g1-small"
        zone = "europe-west1-b"
        boot_disk {
                initialize_params {
                        image = "image_name"
                }
        }
        network_interface {
                network = "default"
                access_config {}
        }
}

Debug Output

Full debug output can be obtained by running Terraform with the environment variable TF_LOG=trace. Please create a GitHub Gist containing the debug output. Please do not paste the debug output in the issue, since debug output is long.

Debug output may contain sensitive information. Please review it before posting publicly, and if you are concerned feel free to encrypt the files using the HashiCorp security public key.

Crash Output

https://gist.github.com/aelzhanova/75a6758ada177687293b618cae134802

Expected Behavior

What should have happened?
Succesfull terraform apply

Actual Behavior

error:

  • google_compute_instance.app: unexpected EOF

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
panic: runtime error: invalid memory address or nil pointer dereference
more information here:
https://gist.github.com/aelzhanova/876b81a8d0f20be6e703dfb7539cbe7c

Steps to Reproduce

Please list the full steps required to reproduce the issue, for example:

  1. terraform init
  2. terraform plan
  3. terraform apply

Important Factoids

Are there anything atypical about your situation that we should know? For example: is Terraform running in a wrapper script or in a CI system? Are you passing any unusual command line options or environment variables to opt-in to non-default behavior?

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

@ghost
Copy link

ghost commented Mar 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost unassigned rosbo Mar 30, 2020
@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants