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

25th
May 2016
dragontree101
@dragontree101
May 25 2016 02:04
i use spring-cloud-config 1.1.0.RELEASE version, and test in github is ok, but my company use gitlab, config-server has error:
```
org.eclipse.jgit.errors.PackProtocolException: invalid advertisement of <!DOCTYPE html>
    at org.eclipse.jgit.transport.TransportHttp$HttpObjectDB.invalidAdvertisement(TransportHttp.java:750) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar:3.5.3.201412180710-r]
    at org.eclipse.jgit.transport.TransportHttp$HttpObjectDB.readAdvertisedImpl(TransportHttp.java:716) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar:3.5.3.201412180710-r]
    at org.eclipse.jgit.transport.TransportHttp.newDumbConnection(TransportHttp.java:340) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar:3.5.3.201412180710-r]
    at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:320) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar:3.5.3.201412180710-r]
    at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136) ~[org.eclipse.jgit-3.5.3.201412180710-r.jar:3.5.3.201412180710-r]
dose spring-cloud-config support gitlab?
Spencer Gibb
@spencergibb
May 25 2016 02:05
Yes
dragontree101
@dragontree101
May 25 2016 02:08
how can i solve this exception?
i think this protocol error, i use spring-cloud-config version is 1.1.0.RELEASE
maybe my url is incorrect
gitlab url is different from github
Spencer Gibb
@spencergibb
May 25 2016 02:13
I don't know. Your configuration would be helpful
dragontree101
@dragontree101
May 25 2016 02:20
thanks, my config uri is http://gitlab.xxxxx.net/yyyyy/config-common-repository.git and then is ok
Spencer Gibb
@spencergibb
May 25 2016 02:37
Is there security on the repo?
dragontree101
@dragontree101
May 25 2016 02:42
no, before url is incorrect, gitlab's url is different github,
github's repo first page has my repo's file but gitlab's first page only a web
Spencer Gibb
@spencergibb
May 25 2016 03:00
So you're working?
dragontree101
@dragontree101
May 25 2016 03:04
i test that's ok
dragontree101
@dragontree101
May 25 2016 09:27
i define my ApplicationEnvironmentPreparedEvent and use spring-cloud-config i found my ApplicationEnvironmentPreparedEvent run twice?
i could set flag and skip last time, but can i other way to handler this problem?
dragontree101
@dragontree101
May 25 2016 09:45
i have framework, and i put the framework's config put to git , and my app to read the config from config server, but i should to change my application name change to my framework's name, after read the config, we should change back to origin application name
i found! maybe cloud: config: uri: http://127.0.0.1:8888/ username: user password: J2f(8J!onz label: master name: rhllor
dragontree101
@dragontree101
May 25 2016 09:58
another problem? could i get config from two different config file in git? framework config and app config?
dragontree101
@dragontree101
May 25 2016 10:46
any one help me ? thanks very much
Marcin Grzejszczak
@marcingrzejszczak
May 25 2016 10:55
Can you post your sample app somewhere and describe the problem a little bit in more depth? I've read what you wrote twice and I have a problem with understanding it. Can you describe there what exactly you want to achieve , how are you doing it and what the problem is? Thanks!
dragontree101
@dragontree101
May 25 2016 11:01
i want to fetch two or more properties from git at same time:
share config properties from: github.com/service/shared-config
and x service config properties from: github.com/service/x-config
i think my question like to spring-cloud/spring-cloud-config#383
Tommy Ludwig
@shakuzen
May 25 2016 11:13
That is marked as a duplicate of spring-cloud/spring-cloud-config#286 which is still open. So I do not think it is possible to do that with the Spring Cloud Config project now.
dragontree101
@dragontree101
May 25 2016 11:14
ok thanks
Tommy Ludwig
@shakuzen
May 25 2016 11:15
You could have common config and service-specific config in the same repo, though.
Włodzimierz Rożkow
@rozhok
May 25 2016 11:48

@jkubrynski

is it possible to change application status programatically? For example to put "maintenance"?

yes, there is methods in Eureka API but not sure they implemented in spring-cloud-netflix. See the docs here: https://github.com/Netflix/eureka/wiki/Eureka-REST-operations
At least you could implement deregistering by yourself, it's very simple rest call

Guillaume Larose
@theonlyguills
May 25 2016 13:24
@spencergibb maybe you can help me with this one.. I'm trying to use the Validated User-ID feature of RabbitMQ. Have you seen anything anywhere about using it with spring cloud stream?
google not very helpful on that one
Spencer Gibb
@spencergibb
May 25 2016 14:46
@theonlyguills I haven't
Guillaume Larose
@theonlyguills
May 25 2016 15:07
ok thanks
Gary Russell
@garyrussell
May 25 2016 15:18
@theonlyguills If your set the spring-messaging header amqp_userId (AmqpHeaders.userId), it will be mapped and sent to RabbitMQ
But spring-cloud-stream doesn't currently set it automatically
Guillaume Larose
@theonlyguills
May 25 2016 15:20
ok I'll look into that :) thanks!
Marius Bogoevici
@mbogoevici
May 25 2016 15:43
@theonlyguills I believe that adding a header-enricher before the output can help