terraform-provider-marathon icon indicating copy to clipboard operation
terraform-provider-marathon copied to clipboard

app creation won't terminate

Open aedenj opened this issue 6 years ago • 0 comments

I ran the hello-world example in the readme and the app gets created, but terraform apply command doesn't terminate. After some debugging using TF_LOG=TRACE I noticed this in the output,

marathon_app.hello-world: Still creating... (30s elapsed)
2018-05-24T13:42:18.889-0700 [DEBUG] plugin.terraform-provider-marathon: 2018/05/24 13:42:18 registerSSESubscription(): failed to handle event: failed to decode the event type, content: , error: EOF
2018-05-24T13:42:18.889-0700 [DEBUG] plugin.terraform-provider-marathon: 2018/05/24 13:42:18 registerSSESubscription(): failed to handle event: failed to decode the event type, content: , error: EOF
2018-05-24T13:42:18.889-0700 [DEBUG] plugin.terraform-provider-marathon: 2018/05/24 13:42:18 registerSSESubscription(): failed to handle event: failed to decode the event type, content: , error: EOF
2018-05-24T13:42:19.641-0700 [DEBUG] plugin.terraform-provider-marathon: 2018/05/24 13:42:19 registerSSESubscription(): failed to handle event: failed to decode the event, id: 32768, error: json: cannot unmarshal object into Go value of type string
2018-05-24T13:42:20.888-0700 [DEBUG] plugin.terraform-provider-marathon: 2018/05/24 13:42:20 apiCall(): POST https://dcos2.uswest.getty.im/marathon//v2/apps {"id":"/hello-world","cmd":"echo 'hello'; sleep 10000","cpus":0.01,"env":{},"instances":1,"mem":16,"ports":[0],"backoffSeconds":1,"backoffFactor":1.15,"maxLaunchDelaySeconds":3600,"dependencies":null,"upgradeStrategy":{},"unreachableStrategy":{},"killSelection":"YOUNGEST_FIRST","labels":{}} returned 201 Created {"id":"/hello-world","cmd":"echo 'hello'; sleep 10000","args":null,"user":null,"env":{},"instances":1,"cpus":0.01,"mem":16,"disk":0,"gpus":0,"executor":"","constraints":[],"uris":[],"fetch":[],"storeUrls":[],"backoffSeconds":1,"backoffFactor":1.15,"maxLaunchDelaySeconds":3600,"container":null,"healthChecks":[],"readinessChecks":[],"dependencies":[],"upgradeStrategy":{"minimumHealthCapacity":1,"maximumOverCapacity":1},"labels":{},"acceptedResourceRoles":null,"ipAddress":null,"version":"2018-05-24T20:41:42.195Z","residency":null,"secrets":{},"taskKillGracePeriodSeconds":null,"ports":[0],"portDefinitions":[{"port":0,"protocol":"tcp","labels":{}}],"requirePorts":false,"tasksStaged":0,"tasksRunning":0,"tasksHealthy":0,"tasksUnhealthy":0,"deployments":[{"id":"4629100c-5409-4415-ab06-8633bcd62cfd"}],"tasks":[]}
2018/05/24 13:42:23 [TRACE] dag/walk: vertex "meta.count-boundary (count boundary fixup)", waiting for: "marathon_app.hello-world"
2018/05/24 13:42:23 [TRACE] dag/walk: vertex "root", waiting for: "meta.count-boundary (count boundary fixup)"
2018/05/24 13:42:23 [TRACE] dag/walk: vertex "provider.marathon (close)", waiting for: "marathon_app.hello-world"

The important lines being the ones containing failed to decode the event type and failed to decode the event, id: 32768, error: json: cannot unmarshal object into Go value of type string

After that the output just continues repeating,

marathon_app.hello-world: Still creating... (2m40s elapsed)
2018/05/24 13:44:28 [TRACE] dag/walk: vertex "provider.marathon (close)", waiting for: "marathon_app.hello-world"
2018/05/24 13:44:28 [TRACE] dag/walk: vertex "meta.count-boundary (count boundary fixup)", waiting for: "marathon_app.hello-world"
2018/05/24 13:44:28 [TRACE] dag/walk: vertex "root", waiting for: "meta.count-boundary (count boundary fixup)"
2018-05-24T13:44:29.040-0700 [DEBUG] plugin.terraform-provider-marathon: 2018/05/24 13:44:29 registerSSESubscription(): failed to receive event: unexpected EOF
2018/05/24 13:44:33 [TRACE] dag/walk: vertex "root", waiting for: "meta.count-boundary (count boundary fixup)"
2018/05/24 13:44:33 [TRACE] dag/walk: vertex "provider.marathon (close)", waiting for: "marathon_app.hello-world"
2018/05/24 13:44:33 [TRACE] dag/walk: vertex "meta.count-boundary (count boundary fixup)", waiting for: "marathon_app.hello-world"

It looks like the call to registerSSESubscription(): is in go-marathon, but I thought I'd start here. Do I have some version compatibility issues? Thanks.

aedenj avatar May 24 '18 20:05 aedenj