spring-attic / spring-cloud-dataflow-server-mesos

Spring Cloud Data Flow Implementation for Apache Mesos
http://cloud.spring.io/spring-cloud-dataflow-server-mesos/
Apache License 2.0
10 stars 25 forks source link

Docker starter apps not registering #79

Closed wkennedy closed 8 years ago

wkennedy commented 8 years ago

This occurs with both DC/OS 1.7 and 1.8 and the latest version of spring-cloud-dataflow-server-mesos. Attempting to register the stock time and log docker based apps. No errors happen during registration, but the following shows up when attempting to deploy a stream with these apps:

2016-08-29 17:12:54.260 INFO 1 --- [nio-9393-exec-4] o.s.c.d.r.s.DelegatingResourceLoader : Caching file /tmp/deployer-resource-cache4399728424332694720/docker-2a1f83a148e4863f3d6f8ed2677a3f930b16f953-null as given location docker:springcloudstream/log-sink-rabbit 2016-08-29 17:12:54.260 WARN 1 --- [nio-9393-exec-4] o.s.c.d.r.s.DelegatingResourceLoader : Unable to cache file since getInputStream() is not supported for resource: Docker Resource [docker:springcloudstream/log-sink-rabbit] 2016-08-29 17:12:54.261 INFO 1 --- [nio-9393-exec-4] o.s.c.d.s.m.m.MarathonAppDeployer : Deploying app: log 2016-08-29 17:12:54.275 INFO 1 --- [nio-9393-exec-4] o.s.c.d.s.m.m.MarathonAppDeployer : Using Docker image: springcloudstream/log-sink-rabbit 2016-08-29 17:12:54.289 WARN 1 --- [nio-9393-exec-4] o.s.c.d.s.c.StreamDeploymentController : Exception when deploying the app StreamAppDefinition [streamName=test-stream, name=log, registeredAppName=log, properties={spring.cloud.stream.bindings.input.destination=test-stream.time, spring.cloud.stream.bindings.input.group=test-stream}]: Unauthorized (http status: 401) 2016-08-29 17:12:54.290 INFO 1 --- [nio-9393-exec-4] o.s.c.d.r.s.DelegatingResourceLoader : Caching file /tmp/deployer-resource-cache4399728424332694720/docker-f8c015665ed74d545ebb5279faa3fa48c5f9ade7-null as given location docker:springcloudstream/time-source-rabbit:latest 2016-08-29 17:12:54.291 WARN 1 --- [nio-9393-exec-4] o.s.c.d.r.s.DelegatingResourceLoader : Unable to cache file since getInputStream() is not supported for resource: Docker Resource [docker:springcloudstream/time-source-rabbit:latest] 2016-08-29 17:12:54.292 INFO 1 --- [nio-9393-exec-4] o.s.c.d.s.m.m.MarathonAppDeployer : Deploying app: time 2016-08-29 17:12:54.296 INFO 1 --- [nio-9393-exec-4] o.s.c.d.s.m.m.MarathonAppDeployer : Using Docker image: springcloudstream/time-source-rabbit:latest 2016-08-29 17:12:54.301 WARN 1 --- [nio-9393-exec-4] o.s.c.d.s.c.StreamDeploymentController : Exception when deploying the app StreamAppDefinition [streamName=test-stream, name=time, registeredAppName=time, properties={spring.cloud.stream.bindings.output.producer.requiredGroups=test-stream, spring.cloud.stream.bindings.output.destination=test-stream.time}]: Unauthorized (http status: 401)

Everything works fine locally. It's possible that I have something configured incorrectly, but I double checked all the steps from the Data Flow/Mesos documentation. Let me know if you need any other data.

trisberg commented 8 years ago

Do you have OAuth enabled on DC/OS? We do not support that yet and we currently develop against a cluster where we set oauth_enabled: 'false' in the DC/OS config. See https://github.com/spring-cloud/spring-cloud-dataflow-server-mesos/blob/master/spring-cloud-dataflow-server-mesos-docs/src/main/asciidoc/appendix-test-cluster.adoc#appendix-a-test-cluster

wkennedy commented 8 years ago

Thank you trisberg, adding that configuration resolved the issue.