{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/vault/issues/836","repository_url":"https://api.github.com/repos/hashicorp/vault","labels_url":"https://api.github.com/repos/hashicorp/vault/issues/836/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/vault/issues/836/comments","events_url":"https://api.github.com/repos/hashicorp/vault/issues/836/events","html_url":"https://github.com/hashicorp/vault/issues/836","id":121675967,"number":836,"title":"vault v0.4.0: runtime error with aws-sdk-go","user":{"login":"Friz-zy","id":870618,"avatar_url":"https://avatars.githubusercontent.com/u/870618?v=3","gravatar_id":"","url":"https://api.github.com/users/Friz-zy","html_url":"https://github.com/Friz-zy","followers_url":"https://api.github.com/users/Friz-zy/followers","following_url":"https://api.github.com/users/Friz-zy/following{/other_user}","gists_url":"https://api.github.com/users/Friz-zy/gists{/gist_id}","starred_url":"https://api.github.com/users/Friz-zy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Friz-zy/subscriptions","organizations_url":"https://api.github.com/users/Friz-zy/orgs","repos_url":"https://api.github.com/users/Friz-zy/repos","events_url":"https://api.github.com/users/Friz-zy/events{/privacy}","received_events_url":"https://api.github.com/users/Friz-zy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-12-11T10:01:14Z","updated_at":"2016-02-12T19:38:37Z","closed_at":"2015-12-15T02:25:41Z","body":"Environment (perfect work for v0.3.1):\r\n- [vault for linux amd64](https://releases.hashicorp.com/vault/0.4.0/vault_0.4.0_linux_amd64.zip)\r\n- OS: aws linux, access to S3 via AWS IAM Role\r\n- config:\r\n```\r\nbackend \"s3\" {\r\n  bucket = \"test-bucket\"\r\n    # you should set AWS_ACCESS_KEY_ID environment variable!\r\n      # you should set AWS_SECRET_ACCESS_KEY environment variable!\r\n      # you can OPTIONAL set AWS_SESSION_TOKEN environment variable...\r\n      region = \"us-east-1\"\r\n  }\r\n\r\nlistener \"tcp\" {\r\n  address = \"0.0.0.0:8200\"\r\n    tls_disable = 1\r\n  }\r\n\r\n\r\n# for Linux systems that only use encrypted swap or do not use swap at all\r\ndisable_mlock = true\r\n```\r\n\r\nLog:\r\n```\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x0 pc=0xb39340]\r\n\r\ngoroutine 1 [running]:\r\ngithub.com/aws/aws-sdk-go/aws/ec2metadata.(*EC2Metadata).GetMetadata(0x0, 0x130e360, 0x19, 0x0, 0x0, 0x0, 0x0)\r\n\t/gopath/src/github.com/hashicorp/vault/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go:18 +0x1b0\r\ngithub.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds.requestCredList(0x0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/gopath/src/github.com/hashicorp/vault/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go:129 +0x74\r\ngithub.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds.(*EC2RoleProvider).Retrieve(0xc820190b70, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/gopath/src/github.com/hashicorp/vault/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go:86 +0x7b\r\ngithub.com/aws/aws-sdk-go/aws/credentials.(*ChainProvider).Retrieve(0xc820190ba0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/gopath/src/github.com/hashicorp/vault/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go:67 +0xf2\r\ngithub.com/aws/aws-sdk-go/aws/credentials.(*Credentials).Get(0xc8201b65f0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/gopath/src/github.com/hashicorp/vault/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/credentials/credentials.go:182 +0x111\r\ngithub.com/aws/aws-sdk-go/private/signer/v4.(*signer).sign(0xc8201e0c88, 0x0, 0x0)\r\n\t/gopath/src/github.com/hashicorp/vault/Godeps/_workspace/src/github.com/aws/aws-sdk-go/private/signer/v4/v4.go:123 +0x3bf\r\ngithub.com/aws/aws-sdk-go/private/signer/v4.Sign(0xc8201f4000)\r\n\t/gopath/src/github.com/hashicorp/vault/Godeps/_workspace/src/github.com/aws/aws-sdk-go/private/signer/v4/v4.go:97 +0x1e7\r\ngithub.com/aws/aws-sdk-go/aws/request.(*HandlerList).Run(0xc8201f4118, 0xc8201f4000)\r\n\t/gopath/src/github.com/hashicorp/vault/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/request/handlers.go:115 +0x9f\r\ngithub.com/aws/aws-sdk-go/aws/request.(*Request).Sign(0xc8201f4000, 0x0, 0x0)\r\n\t/gopath/src/github.com/hashicorp/vault/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/request/request.go:197 +0xce\r\ngithub.com/aws/aws-sdk-go/aws/request.(*Request).Send(0xc8201f4000, 0x0, 0x0)\r\n\t/gopath/src/github.com/hashicorp/vault/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/request/request.go:207 +0x54\r\ngithub.com/aws/aws-sdk-go/service/s3.(*S3).HeadBucket(0xc8200203a0, 0xc8200203a8, 0x0, 0x0, 0x0)\r\n\t/gopath/src/github.com/hashicorp/vault/Godeps/_workspace/src/github.com/aws/aws-sdk-go/service/s3/api.go:888 +0x4f\r\ngithub.com/hashicorp/vault/physical.newS3Backend(0xc820190990, 0x0, 0x0, 0x0, 0x0)\r\n\t/gopath/src/github.com/hashicorp/vault/physical/s3.go:82 +0xc68\r\ngithub.com/hashicorp/vault/physical.NewBackend(0xc82018da50, 0x2, 0xc820190990, 0x0, 0x0, 0x0, 0x0)\r\n\t/gopath/src/github.com/hashicorp/vault/physical/physical.go:75 +0x1db\r\ngithub.com/hashicorp/vault/command.(*ServerCommand).Run(0xc82014c0c0, 0xc82000a1d0, 0x1, 0x1, 0xc8201aae58)\r\n\t/gopath/src/github.com/hashicorp/vault/command/server.go:108 +0xdeb\r\ngithub.com/mitchellh/cli.(*CLI).Run(0xc82018e210, 0xc82018e210, 0x0, 0x0)\r\n\t/gopath/src/github.com/hashicorp/vault/Godeps/_workspace/src/github.com/mitchellh/cli/cli.go:112 +0x655\r\ngithub.com/hashicorp/vault/cli.RunCustom(0xc82000a1c0, 0x2, 0x2, 0xc820199ef0, 0x2)\r\n\t/gopath/src/github.com/hashicorp/vault/cli/main.go:44 +0x452\r\ngithub.com/hashicorp/vault/cli.Run(0xc82000a1c0, 0x2, 0x2, 0x9c1d00)\r\n\t/gopath/src/github.com/hashicorp/vault/cli/main.go:11 +0x4c\r\nmain.main()\r\n\t/gopath/src/github.com/hashicorp/vault/main.go:10 +0x60\r\n\r\ngoroutine 5 [runnable]:\r\nos/signal.loop()\r\n\t/usr/local/go/src/os/signal/signal_unix.go:20\r\ncreated by os/signal.init.1\r\n\t/usr/local/go/src/os/signal/signal_unix.go:28 +0x37\r\n\r\ngoroutine 7 [runnable, locked to thread]:\r\nruntime.gopark(0x1484c00, 0xc820013d98, 0x1228600, 0x9, 0x16, 0x3)\r\n\t/usr/local/go/src/runtime/proc.go:185 +0x163\r\nruntime.goparkunlock(0xc820013d98, 0x1228600, 0x9, 0x16, 0x3)\r\n\t/usr/local/go/src/runtime/proc.go:191 +0x54\r\nruntime.chansend(0xdd3e40, 0xc820013d40, 0xc82001e70c, 0xc82001e601, 0x450629, 0x2)\r\n\t/usr/local/go/src/runtime/chan.go:197 +0x499\r\nruntime.chansend1(0xdd3e40, 0xc820013d40, 0xc82001e70c)\r\n\t/usr/local/go/src/runtime/chan.go:92 +0x43\r\nruntime.ensureSigM.func1()\r\n\t/usr/local/go/src/runtime/signal1_unix.go:238 +0x2a9\r\nruntime.goexit()\r\n\t/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1\r\n\r\ngoroutine 8 [runnable]:\r\ngithub.com/hashicorp/vault/cli.makeShutdownCh.func1(0xc820013ce0, 0xc820013c80)\r\n\t/gopath/src/github.com/hashicorp/vault/cli/commands.go:294\r\ncreated by github.com/hashicorp/vault/cli.makeShutdownCh\r\n\t/gopath/src/github.com/hashicorp/vault/cli/commands.go:299 +0x195\r\n\r\ngoroutine 9 [runnable]:\r\ngithub.com/hashicorp/vault/command.(*Meta).FlagSet.func1(0xc82016ab80, 0xc82014c0e0)\r\n\t/gopath/src/github.com/hashicorp/vault/command/meta.go:186\r\ncreated by github.com/hashicorp/vault/command.(*Meta).FlagSet\r\n\t/gopath/src/github.com/hashicorp/vault/command/meta.go:190 +0x5e6\r\n```"},"comment":{"url":"https://api.github.com/repos/hashicorp/vault/issues/comments/183460903","html_url":"https://github.com/hashicorp/vault/issues/836#issuecomment-183460903","issue_url":"https://api.github.com/repos/hashicorp/vault/issues/836","id":183460903,"user":{"login":"mconigliaro","id":180180,"avatar_url":"https://avatars.githubusercontent.com/u/180180?v=3","gravatar_id":"","url":"https://api.github.com/users/mconigliaro","html_url":"https://github.com/mconigliaro","followers_url":"https://api.github.com/users/mconigliaro/followers","following_url":"https://api.github.com/users/mconigliaro/following{/other_user}","gists_url":"https://api.github.com/users/mconigliaro/gists{/gist_id}","starred_url":"https://api.github.com/users/mconigliaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mconigliaro/subscriptions","organizations_url":"https://api.github.com/users/mconigliaro/orgs","repos_url":"https://api.github.com/users/mconigliaro/repos","events_url":"https://api.github.com/users/mconigliaro/events{/privacy}","received_events_url":"https://api.github.com/users/mconigliaro/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T19:38:37Z","updated_at":"2016-02-12T19:38:37Z","body":"Same problem here. Anyone have a workaround for 0.4.1?"}}