question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

issue running uchatterjee/zally-vida docker image

See original GitHub issue

I want to have a try to the Zally server & client. However, I can’t succeed in building them from the source/repo.

However, I found on dockerhub:

I run the server docker via docker run --rm --network=host -ti uchatterjee/zally-vida java -jar /zally.jar but ends up with:

__________      .__  .__                                                                                                                                                                                                                      
\____    /____  |  | |  | ___.__.                                                                                                                                                                                                             
  /     /\__  \ |  | |  |<   |  |                                                                                                                                                                                                             
 /     /_ / __ \|  |_|  |_\___  |                                                                                                                                                                                                             
/_______ (____  /____/____/ ____|                                                                                                                                                                                                             
        \/    \/          \/                                                                                                                                                                                                                  
                                                                                                                                                                                                                                              
2018-07-18 05:55:20.808  INFO 1 --- [           main] de.zalando.zally.Application             : Starting Application on default with PID 1 (/zally.jar started by root in /)                                                                 
2018-07-18 05:55:20.860  INFO 1 --- [           main] de.zalando.zally.Application             : The following profiles are active: production                                                                                                
2018-07-18 05:55:21.579  INFO 1 --- [           main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@5622fdf: startup date [Wed Jul 18 
05:55:21 GMT 2018]; root of context hierarchy                                                                                                                                                                                                 
2018-07-18 05:55:30.106  WARN 1 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreExcept
ion: Failed to process import candidates for configuration class [de.zalando.zally.Application]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframework.boot.actuate.autoconfigure.web.server.
ManagementContextAutoConfiguration$DifferentManagementContextConfiguration                                                                                                                                                                    
2018-07-18 05:55:30.180  INFO 1 --- [           main] ConditionEvaluationReportLoggingListener :                                                                                                                                              
                                                                                                                                                                                                                                              
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.                                                                                                                             
2018-07-18 05:55:30.226 ERROR 1 --- [           main] o.s.boot.SpringApplication               : Application run failed                                                                                                                       
                                                                                                                                                                                                                                              
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [de.zalando.zally.Application]; nested exception is java.lang.IllegalStateException: Error processing condition on
 org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextAutoConfiguration$DifferentManagementContextConfiguration                                                                                                         
        at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:616) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                              
        at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:548) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                              
        at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:184) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                                       
        at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:316) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                  
        at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:233) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                             
        at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                   
        at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:93) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                               
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:693) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                            
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                                    
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]                                              
        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:752) [spring-boot-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]                                                                                                     
        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:388) [spring-boot-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]                                                                                              
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]                                                                                                         
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]                                                                                                        
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1234) [spring-boot-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]                                                                                                        
        at de.zalando.zally.Application.main(Application.java:15) [classes!/:na]                                                                                                                                                              
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_162]                                                                                                                                                        
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_162]                                                                                                                                      
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_162]                                                                                                                              
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_162]                                                                                                                                                                   
        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [zally.jar:na]                                                                                                                                      
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [zally.jar:na]                                                                                                                                                   
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [zally.jar:na]                                                                                                                                                   
        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [zally.jar:na]                                                                                                                                               
Caused by: java.lang.IllegalStateException: Error processing condition on org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextAutoConfiguration$DifferentManagementContextConfiguration                                
        at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:64) ~[spring-boot-autoconfigure-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]                                                           
        at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:109) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                                              
        at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:217) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                   
        at org.springframework.context.annotation.ConfigurationClassParser.processMemberClasses(ConfigurationClassParser.java:355) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                        
        at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:261) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                 
        at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:241) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                   
        at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:606) ~[spring-context-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                              
        ... 23 common frames omitted                                                                                                                                                                                                          
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'MANAGEMENT_PORT' in value "${MANAGEMENT_PORT}"                                                                                                                  
        at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:172) ~[spring-core-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                                           
        at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:124) ~[spring-core-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                                        
        at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:237) ~[spring-core-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                                    
        at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:211) ~[spring-core-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                              
        at org.springframework.core.env.AbstractPropertyResolver.resolveNestedPlaceholders(AbstractPropertyResolver.java:228) ~[spring-core-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                                
        at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:88) ~[spring-core-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                                 
        at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:68) ~[spring-core-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                                 
        at org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:542) ~[spring-core-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]                                                                                        
        at org.springframework.boot.actuate.autoconfigure.web.server.ManagementPortType.getPortProperty(ManagementPortType.java:57) ~[spring-boot-actuator-autoconfigure-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]                                   
        at org.springframework.boot.actuate.autoconfigure.web.server.ManagementPortType.get(ManagementPortType.java:46) ~[spring-boot-actuator-autoconfigure-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]                                               
        at org.springframework.boot.actuate.autoconfigure.web.server.OnManagementPortCondition.getMatchOutcome(OnManagementPortCondition.java:53) ~[spring-boot-actuator-autoconfigure-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]                     
        at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47) ~[spring-boot-autoconfigure-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]                                                           
        ... 29 common frames omitted                  

Would you have any idea of the issue ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
vadegcommented, Jul 18, 2018

Env variable is missing. Try this command

docker run -e MANAGEMENT_PORT=7979 --rm --network=host -ti uchatterjee/zally-vida java -jar /zally.jar
0reactions
tkropcommented, May 27, 2021

Since there is no discussion on this for a long time, and it is unclear whether we can give more support here, I close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix and Debug Docker Containers Like a Superhero
Container errors are tricky to diagnose, but some investigative magic works wonders. Read along to learn how to debug Docker containers.
Read more >
Run your image as a container - Docker Documentation
To run an image inside of a container, we use the docker run command. It requires one parameter and that is the image...
Read more >
Run your image as a container - Docker Documentation
To run an image inside of a container, we use the docker run command. The docker run command requires one parameter and that...
Read more >
docker run - Docker Documentation
The docker run command first creates a writeable container layer over the specified image, and then starts it using the specified command.
Read more >
hello-world - Official Image - Docker Hub
Example output. $ docker run hello-world Hello from Docker! This message shows that your installation appears to be working correctly. To generate this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found