eventuate.apiKeySecret null
Closed this issue · 7 comments
I have an error in the ordercommandside container:
14:26:08.601 ERROR o.s.b.b.PropertiesConfigurationFactory - Properties configuration failed validation
14:26:08.609 ERROR o.s.b.b.PropertiesConfigurationFactory - Field error in object 'eventuate' on field 'apiKeySecret': rejected value [null]; codes [NotBlank.eventuate.apiKeySecret,NotBlank.apiKeySecret,NotBlank.java.lang.String,NotBlank]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [eventuate.apiKeySecret,apiKeySecret]; arguments []; default message [apiKeySecret]]; default message [may not be empty]
14:26:08.609 ERROR o.s.b.b.PropertiesConfigurationFactory - Field error in object 'eventuate' on field 'apiKeyId': rejected value [null]; codes [NotBlank.eventuate.apiKeyId,NotBlank.apiKeyId,NotBlank.java.lang.String,NotBlank]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [eventuate.apiKeyId,apiKeyId]; arguments []; default message [apiKeyId]]; default message [may not be empty]
14:26:08.660 ERROR o.s.b.f.s.DefaultListableBeanFactory - Destroy method on bean with name 'org.springframework.context.annotation.internalScheduledAnnotationProcessor' threw an exception
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7a4f0f29: startup date [Fri Jul 28 14:26:00 UTC 2017]; root of context hierarchy
It seems that the apiKeyId and apiKeySecret are not set and the container crashes.
yes. Before running docker-compose up -d
you must set these environment variables: EVENTUATE_API_KEY_ID and EVENTUATE_API_KEY_SECRET
Thank you Chris, but it's still failing even if I set those envs, because I start the containers using the docker-compose-eventuate-local.yml, not docker-compose.yml. The envs are set in the docker-compose.yml, but are missing from docker-compose-eventuate-local.yml.
oops. Eventuate Local does NOT use
I built with the local driver as above and then I did a docker-compose -f docker-compose-eventuate-local.yml up -d
but the same container (eventuateexamplesjavacustomersandorders_ordercommandside_1) crashes with:
***************************
APPLICATION FAILED TO START
***************************
Description:
Binding to target io.eventuate.javaclient.spring.httpstomp.EventuateHttpStompClientConfigurationProperties@3911c2a7 failed:
Property: eventuate.apiKeySecret
Value: null
Reason: may not be empty
Property: eventuate.apiKeyId
Value: null
Reason: may not be empty
Action:
Update your application's configuration
what are the values we need to set for apiKeyId and apiKeySecret?