lal-verma / microservices-examples

21 stars 47 forks source link

Cannot pull from remote, the working tree is not clean. #1

Open hendisantika opened 3 years ago

hendisantika commented 3 years ago

Hi, Nice sample.

Why I alway got this error message when trying to access properties on every services?

Cannot pull from remote https://github.com/hendisantika/microservices-config-server.git, the working tree is not clean.

Do You have any idea?

Thanks

lal-verma commented 3 years ago

Hi, You need to setup the config server repo. By default it picks up on your local server.

You can check my medium article on this. You can also use GitHub by changing the reference.

On Sat, May 8, 2021 at 11:04 AM Hendi Santika @.***> wrote:

Hi, Nice sample.

Why I alway got this error message when trying to access properties on every services?

Cannot pull from remote https://github.com/hendisantika/microservices-config-server.git, the working tree is not clean.

Do You have any idea?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/albeever/microservices-examples/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHVT2EX6MCSDRPVI3NIHREDTMTEQBANCNFSM44MIN55Q .

hendisantika commented 3 years ago

Hi @albeever , issue has been closed. BTW, I already setup config server repo.

lal-verma commented 3 years ago

good to know. do suggest to me, if I need to update anything at my end.

thanks lal

On Sat, May 8, 2021 at 1:29 PM Hendi Santika @.***> wrote:

Hi @albeever https://github.com/albeever , issue has been closed. BTW, I already setup config server repo.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/albeever/microservices-examples/issues/1#issuecomment-835190053, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHVT2EV5O5OX26G7W2DBOOTTMTVOHANCNFSM44MIN55Q .

hendisantika commented 3 years ago

Now I have errors again. As follow: It is said:

https://gitlab.com/microservice-samples/micro-services-spring-cloud-config/configuration: 422 Unprocessable Entity

2021-05-09 10:08:11.007  WARN 28080 --- [nio-8888-exec-1] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.cloud.config.server.environment.NoSuchRepositoryException: Cannot clone or checkout repository: https://gitlab.com/microservice-samples/micro-services-spring-cloud-config/configuration]

But, When I change config from spring.cloud.config.server.git.uri=https://gitlab.com/microservice-samples/micro-services-spring-cloud-config/configuration to spring.cloud.config.server.git.uri=file://${user.home}/Desktop/tes/configuration

it works.

Then If I change properties file to yml it error again.

Any suggestion?

Thanks