These are chat archives for spring-cloud/spring-cloud

27th
Jun 2018
SubhamAshish
@SubhamAshish
Jun 27 2018 09:42

i m trying to run eureka with context path
like localhost:8070:ksp-eureka,

but it is unable to register client with this

is there anyone who can help with this
eureka:
client:
register-with-eureka: true
fetch-registry: true
service-url:
  defaultZone: http://localhost:8070/ksp-eureka
Marcos Barbero
@marcosbarbero
Jun 27 2018 09:44
did you try like this defaultZone: http://localhost:8070/ksp-eureka/eureka/?
@SubhamAshish
SubhamAshish
@SubhamAshish
Jun 27 2018 09:44
let me try now
in eureka server should i configure same
eureka:
client:
register-with-eureka: false
fetch-registry: false
service-url:
   defaultZone: http://localhost:8070/eureka/
or as i have attached context path so here also i have to change
Marcos Barbero
@marcosbarbero
Jun 27 2018 09:47
The configuration should be the same everywhere, but, before you go on, here's something that you need to know.
Context paths are not supported by the default spring cloud netflix eureka implementation, here you can read more about it spring-cloud/spring-cloud-netflix#737
SubhamAshish
@SubhamAshish
Jun 27 2018 09:50
ok sure thank you
Marcos Barbero
@marcosbarbero
Jun 27 2018 09:59
you're welcome
Fydon
@Fydon
Jun 27 2018 10:56

Hi. I'm trying to update from Edgware.SR2 to Edgware.SR3. When I build the Config Server the default contextLoads test in ApplicationTests fails with the following error:

org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.cloud.bootstrap.encrypt.RsaProperties' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

I suspect that this is the result of the following change (spring-cloud/spring-cloud-commons#334). I have encrypt.rsa configuration in my bootstrap.yml file which working in Edgware.SR2 and I've tried adding compile( "org.springframework.security:spring-security-rsa" ) to build.gradle. What change would I need to make in order to use Edgware.SR3?

Matt Benson
@mbenson
Jun 27 2018 13:51
is there a known timeline for spring-cloud-commons 1.3.4?
Ryan Baxter
@ryanjbaxter
Jun 27 2018 13:52
@mbenson ASAP
Matt Benson
@mbenson
Jun 27 2018 13:52
are there unresolved issues?
Matt Benson
@mbenson
Jun 27 2018 13:53
404
Ryan Baxter
@ryanjbaxter
Jun 27 2018 13:54
ok maybe only team members can see it
there is an PR in spring cloud config and spring cloud netflix that need to be merged
Matt Benson
@mbenson
Jun 27 2018 13:57
thanks
Matt Benson
@mbenson
Jun 27 2018 14:16
interesting... has https://github.com/spring-cloud/spring-cloud-openfeign been added to this Gitter room? I would have expected to see my PR in the activity frame.
DJ Spiess
@deege
Jun 27 2018 15:31

Hi, I'm trying to get Spring/Consul/Vault working together in a very simple app. The spring app is having troubles resolving placeholders for vault items. From the Vault logs, it looks like client token isn't getting passed, but that's a guess.

{"time":"2018-06-26T21:14:11.960066Z","type":"request","auth":{"client_token":"","accessor":"","display_name":"","policies":null,"metadata":null,"entity_id":""},"request":{"id":"0c845a65-1b84-c7df-2a3d-63bd5e3c7f78","operation":"read","client_token":"hmac-sha256:707274380035b290b1f077d0f27da497c2d9871210af731ed7a3fc5db990875b","client_token_accessor":"hmac-sha256:b6b5f837cdb1345a5fc24bbc74dd54730b2d9471cb197ef8db179719357bb606","path":"sys/internal/ui/mounts","data":null,"policy_override":false,"remote_address":"127.0.0.1","wrap_ttl":0,"headers":{}},"error":""}

The Spring app source code is on GitHub at https://github.com/deege/test-consul-vault
Any ideas where I'm going wrong?

KaijuDeluxe
@KaijuDeluxe
Jun 27 2018 16:06
hi, i am getting wrong time in loggin with spring, how can i change the default timezone?
Fydon
@Fydon
Jun 27 2018 18:32
I've now also asked my question on Stackoverflow here.
Marcos Barbero
@marcosbarbero
Jun 27 2018 19:05
@KaijuDeluxe what do you mean by wrong time?
KaijuDeluxe
@KaijuDeluxe
Jun 27 2018 19:05
my servertime is 21:05
but in the logs it prints out 19:05
so i think it prints UTC
Marcos Barbero
@marcosbarbero
Jun 27 2018 19:06
@deege I didn't follow your problem, you can follow this and see where's the gap
that's quite odd, it should use the server time
@KaijuDeluxe I just saw you cross posting it here and in spring-boot room, I would recommend you to not cross post
checking your example in the spring-boot channel, I'm still not sure what you are trying to do
DJ Spiess
@deege
Jun 27 2018 19:16
@marcosbarbero That works for Spring Cloud Config. I'm trying to use Consul for config and Vault for secrets.
Marcos Barbero
@marcosbarbero
Jun 27 2018 19:25
sorry, I didn't pay attention that it was consul integration