zalando-zmon / zmon-scheduler Goto Github PK
View Code? Open in Web Editor NEWZMON Scheduler
License: Other
ZMON Scheduler
License: Other
This should be easy to detect when downtime task is received.
It's really sad that we break the master branch by pushing directly to it ๐ข
Trying to run scheduler with cd58 Docker image in Vagrant box yields:
2016-06-06 08:12:53.912 INFO 11 --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [jar:file:/zmon-scheduler.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-boot-starter-web-1.3.3.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-boot-starter-1.3.3.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-boot-1.3.3.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-boot-autoconfigure-1.3.3.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-boot-starter-logging-1.3.3.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/logback-classic-1.1.5.jar!/, jar:file:/zmon-scheduler.jar!/lib/logback-core-1.1.5.jar!/, jar:file:/zmon-scheduler.jar!/lib/jcl-over-slf4j-1.7.16.jar!/, jar:file:/zmon-scheduler.jar!/lib/jul-to-slf4j-1.7.16.jar!/, jar:file:/zmon-scheduler.jar!/lib/log4j-over-slf4j-1.7.16.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-core-4.2.5.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-boot-starter-tomcat-1.3.3.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/tomcat-embed-core-8.0.32.jar!/, jar:file:/zmon-scheduler.jar!/lib/tomcat-embed-el-8.0.32.jar!/, jar:file:/zmon-scheduler.jar!/lib/tomcat-embed-logging-juli-8.0.32.jar!/, jar:file:/zmon-scheduler.jar!/lib/tomcat-embed-websocket-8.0.32.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-boot-starter-validation-1.3.3.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/hibernate-validator-5.2.4.Final.jar!/, jar:file:/zmon-scheduler.jar!/lib/validation-api-1.1.0.Final.jar!/, jar:file:/zmon-scheduler.jar!/lib/jboss-logging-3.3.0.Final.jar!/, jar:file:/zmon-scheduler.jar!/lib/classmate-1.1.0.jar!/, jar:file:/zmon-scheduler.jar!/lib/jackson-databind-2.6.5.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-web-4.2.5.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-aop-4.2.5.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/aopalliance-1.0.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-beans-4.2.5.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-context-4.2.5.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-webmvc-4.2.5.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-expression-4.2.5.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-boot-starter-actuator-1.3.3.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/spring-boot-actuator-1.3.3.RELEASE.jar!/, jar:file:/zmon-scheduler.jar!/lib/jedis-2.8.1.jar!/, jar:file:/zmon-scheduler.jar!/lib/commons-pool2-2.4.2.jar!/, jar:file:/zmon-scheduler.jar!/lib/metrics-core-3.1.0.jar!/, jar:file:/zmon-scheduler.jar!/lib/slf4j-api-1.7.16.jar!/, jar:file:/zmon-scheduler.jar!/lib/fluent-hc-4.3.6.jar!/, jar:file:/zmon-scheduler.jar!/lib/httpclient-4.5.1.jar!/, jar:file:/zmon-scheduler.jar!/lib/httpcore-4.4.4.jar!/, jar:file:/zmon-scheduler.jar!/lib/commons-codec-1.9.jar!/, jar:file:/zmon-scheduler.jar!/lib/commons-logging-1.1.3.jar!/, jar:file:/zmon-scheduler.jar!/lib/scala-library-2.11.8.jar!/, jar:file:/zmon-scheduler.jar!/lib/scala-xml-2.11.0-M4.jar!/, jar:file:/zmon-scheduler.jar!/lib/jackson-module-scala_2.11-2.6.6.jar!/, jar:file:/zmon-scheduler.jar!/lib/scala-reflect-2.11.8.jar!/, jar:file:/zmon-scheduler.jar!/lib/jackson-core-2.6.5.jar!/, jar:file:/zmon-scheduler.jar!/lib/jackson-annotations-2.6.5.jar!/, jar:file:/zmon-scheduler.jar!/lib/jackson-module-paranamer-2.6.6.jar!/, jar:file:/zmon-scheduler.jar!/lib/paranamer-2.6.jar!/, jar:file:/zmon-scheduler.jar!/lib/jackson-dataformat-yaml-2.7.4.jar!/, jar:file:/zmon-scheduler.jar!/lib/snakeyaml-1.16.jar!/, jar:file:/zmon-scheduler.jar!/lib/snappy-java-1.1.1.7.jar!/, jar:file:/zmon-scheduler.jar!/lib/tokens-0.9.8.jar!/]
Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:62)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)
... 1 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'application': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: de.zalando.zmon.scheduler.ng.Scheduler de.zalando.zmon.scheduler.ng.Application.scheduler; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'createScheduler' defined in class path resource [de/zalando/zmon/scheduler/ng/SchedulerFactory.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [de.zalando.zmon.scheduler.ng.alerts.AlertRepository]: Error creating bean with name 'alertRepository' defined in URL [jar:file:/zmon-scheduler.jar!/de/zalando/zmon/scheduler/ng/alerts/AlertRepository.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.zalando.zmon.scheduler.ng.alerts.AlertRepository]: Constructor threw exception; nested exception is java.lang.NullPointerException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alertRepository' defined in URL [jar:file:/zmon-scheduler.jar!/de/zalando/zmon/scheduler/ng/alerts/AlertRepository.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.zalando.zmon.scheduler.ng.alerts.AlertRepository]: Constructor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)
at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)
at de.zalando.zmon.scheduler.ng.Application.main(Application.java:189)
... 6 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: de.zalando.zmon.scheduler.ng.Scheduler de.zalando.zmon.scheduler.ng.Application.scheduler; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'createScheduler' defined in class path resource [de/zalando/zmon/scheduler/ng/SchedulerFactory.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [de.zalando.zmon.scheduler.ng.alerts.AlertRepository]: Error creating bean with name 'alertRepository' defined in URL [jar:file:/zmon-scheduler.jar!/de/zalando/zmon/scheduler/ng/alerts/AlertRepository.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.zalando.zmon.scheduler.ng.alerts.AlertRepository]: Constructor threw exception; nested exception is java.lang.NullPointerException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alertRepository' defined in URL [jar:file:/zmon-scheduler.jar!/de/zalando/zmon/scheduler/ng/alerts/AlertRepository.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.zalando.zmon.scheduler.ng.alerts.AlertRepository]: Constructor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
... 23 more
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'createScheduler' defined in class path resource [de/zalando/zmon/scheduler/ng/SchedulerFactory.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [de.zalando.zmon.scheduler.ng.alerts.AlertRepository]: Error creating bean with name 'alertRepository' defined in URL [jar:file:/zmon-scheduler.jar!/de/zalando/zmon/scheduler/ng/alerts/AlertRepository.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.zalando.zmon.scheduler.ng.alerts.AlertRepository]: Constructor threw exception; nested exception is java.lang.NullPointerException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alertRepository' defined in URL [jar:file:/zmon-scheduler.jar!/de/zalando/zmon/scheduler/ng/alerts/AlertRepository.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.zalando.zmon.scheduler.ng.alerts.AlertRepository]: Constructor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:464)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545)
... 25 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alertRepository' defined in URL [jar:file:/zmon-scheduler.jar!/de/zalando/zmon/scheduler/ng/alerts/AlertRepository.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.zalando.zmon.scheduler.ng.alerts.AlertRepository]: Constructor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:275)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
... 38 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.zalando.zmon.scheduler.ng.alerts.AlertRepository]: Constructor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:267)
... 51 more
Caused by: java.lang.NullPointerException
at de.zalando.zmon.scheduler.ng.alerts.AlertRepository.fill(AlertRepository.java:29)
at de.zalando.zmon.scheduler.ng.alerts.AlertRepository.<init>(AlertRepository.java:93)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
... 53 more
Scheduler logs show inactive checks are still being scheduled
d.z.z.s.ng.scheduler.ScheduledCheck : Probably inactive/deleted check still scheduled:
We need to find a way how to stop inactive/deleted checks to keep scheduling. Also it will be useful to evaluate impact of scheduling inactive checks.
ERROR 19 --- [pool-7-thread-1] d.z.z.s.ng.cleanup.MetricsCleanup : Metrics cleanup failed: For input string: "1470317861.237414"
I just removed this for now, needs to be put in again.
No need to poll all entities from data service or controller if a base filter is set.
Base filter for this should easily map to jsonb filter, which it does in the common map<string,string> case.
As the ZMON Scheduler is a highly critical component of the ZMON monitoring tool, high quality standards should be applied --- including a reasonably high code coverage and automated tests.
Apparently only the old Python scheduler still does this...
We experienced some problem today where a check was not scheduled until the ZMON Scheduler was restarted. Trial run always worked.
Some hints:
Similar to alert allow to exclude entities at check level.
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'createScheduler' defined in class path resource [de/zalando/zmon/scheduler/ng/SchedulerFactory.class]: Unsatisfied dependency expressed through constructor argument with index 2 of type [de.zalando.zmon.scheduler.ng.entities.EntityRepository]: : Error creating bean with name 'entityRepository' defined in URL [jar:file:/..../application.jar!/de/zalando/zmon/scheduler/ng/entities/EntityRepository.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.zalando.zmon.scheduler.ng.entities.EntityRepository]: Constructor threw exception; nested exception is org.springframework.web.client.HttpServerErrorException: 502 Bad Gateway; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityRepository' defined in URL [jar:file:/..../application.jar!/de/zalando/zmon/scheduler/ng/entities/EntityRepository.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.zalando.zmon.scheduler.ng.entities.EntityRepository]: Constructor threw exception; nested exception is org.springframework.web.client.HttpServerErrorException: 502 Bad Gateway
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:464)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1111)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1006)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533)
... 24 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityRepository' defined in URL [jar:file:/..../application.jar!/de/zalando/zmon/scheduler/ng/entities/EntityRepository.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.zalando.zmon.scheduler.ng.entities.EntityRepository]: Constructor threw exception; nested exception is org.springframework.web.client.HttpServerErrorException: 502 Bad Gateway
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:275)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1131)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1034)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
... 37 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.zalando.zmon.scheduler.ng.entities.EntityRepository]: Constructor threw exception; nested exception is org.springframework.web.client.HttpServerErrorException: 502 Bad Gateway
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:267)
... 50 more
Caused by: org.springframework.web.client.HttpServerErrorException: 502 Bad Gateway
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:94)
at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:615)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:573)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:529)
at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:329)
at de.zalando.zmon.scheduler.ng.entities.DeployCtlInstanceAdapter.getCollection(DeployCtlInstanceAdapter.java:57)
at de.zalando.zmon.scheduler.ng.entities.EntityRepository.fill(EntityRepository.java:110)
at de.zalando.zmon.scheduler.ng.entities.EntityRepository.<init>(EntityRepository.java:221)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
... 52 more
ERROR copying MANIFEST.MF
on any mvn build with newest openJDK which involves test run:
9:37:46 AM -------------------------------------------------------
9:37:46 AM T E S T S
9:37:46 AM -------------------------------------------------------
9:37:46 AM Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter
9:37:46 AM
9:37:46 AM Results :
9:37:46 AM
9:37:46 AM Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
9:37:46 AM
9:37:46 AM [INFO] ------------------------------------------------------------------------
9:37:46 AM [INFO] BUILD FAILURE
9:37:46 AM [INFO] ------------------------------------------------------------------------
Caused by: java.lang.UnsatisfiedLinkError: /tmp/snappy-unknown-e9f8ee9f-93a7-4415-a437-ec9eaa38a22f-libsnappyjava.so: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /tmp/snappy-unknown-e9f8ee9f-93a7-4415-a437-ec9eaa3
8a22f-libsnappyjava.so)
Jun 14 18:13:21 ip-172-31-142-67 docker/ab73110cc978[868]: #011at java.lang.ClassLoader$NativeLibrary.load(Native Method)
Not needed for UI but for deployment tool integration right now.
This config option is only there to support the old internal ZMON 2 Controller.
..as they will be replaced by another "agent" pushing entities into Entity Service (like the existing ZMON AWS Agent).
Use Bearer tokens to connect to ZMON Controller (zalando-zmon/zmon-controller#4)
I would strongly suggest renaming this repository to "zmon-scheduler" --- the Docker image is now called "zmon-scheduler" too (https://registry.opensource.zalan.do/teams/stups/artifacts/zmon-scheduler/tags). We don't need the "-ng" suffix anymore ๐
As a ZMON user
I want global ZMON scheduler to process non-global TrialRun requests even if Redis is down
So we have better resilience
de.zalando.zmon.scheduler.ng.trailruns.TrialRunAPI#postTrialRun
public void postTrialRun(@RequestBody TrialRunRequest trialRun) {
scheduler.scheduleTrialRun(trialRun);
trialRunForwarder.forwardRequest(trialRun);
}
If Redis is down, scheduler.scheduleTrialRun
throws an exception. However, for Global Scheduler it should be still possible to call trialRunForwarder.forwardRequest
.
forwardRequest
before scheduleTrialRun
Querying check definitions with token eyJ..
Failed to get check definitions: Could not read document: Unrecognized field "last_modified"
Problem description
The results of alerts are visible on the ZMON dashboards even after deleting the alert.
Expected behaviour
Alerts after deletion
This problem is related to this zmon-worker issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.