You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
causes singularity to die/abort with the following exception info in the log:
2016-02-29T14:55:08.03091 ERROR [2016-02-29 14:55:08,021] com.hubspot.singularity.mesos.SingularityMesosScheduler: Received fatal error while accepting offers - will decline all available offers
2016-02-29T14:55:08.03094 ! java.lang.ArrayIndexOutOfBoundsException: 0
2016-02-29T14:55:08.03094 ! at com.hubspot.mesos.MesosUtils.getPorts(MesosUtils.java:87) ~[SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03094 ! at com.hubspot.singularity.mesos.SingularityMesosTaskBuilder.buildTask(SingularityMesosTaskBuilder.java:93) ~[SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03094 ! at com.hubspot.singularity.mesos.SingularityMesosScheduler.match(SingularityMesosScheduler.java:236) ~[SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03095 ! at com.hubspot.singularity.mesos.SingularityMesosScheduler.resourceOffers(SingularityMesosScheduler.java:174) ~[SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03095 ! at com.hubspot.singularity.mesos.SingularityMesosScheduler$$EnhancerByGuice$$4737360b.CGLIB$resourceOffers$3(<generated>) [SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03096 ! at com.hubspot.singularity.mesos.SingularityMesosScheduler$$EnhancerByGuice$$4737360b$$FastClassByGuice$$a1320235.invoke(<generated>) [SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03096 ! at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) [SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03096 ! at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03096 ! at com.palominolabs.metrics.guice.TimedInterceptor.invoke(TimedInterceptor.java:47) [SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03097 ! at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03097 ! at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) [SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03097 ! at com.hubspot.singularity.mesos.SingularityMesosScheduler$$EnhancerByGuice$$4737360b.resourceOffers(<generated>) [SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03097 ! at com.hubspot.singularity.mesos.SingularityMesosSchedulerDelegator.resourceOffers(SingularityMesosSchedulerDelegator.java:175) [SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03097 ERROR [2016-02-29 14:55:08,025] com.hubspot.singularity.mesos.SingularityMesosSchedulerDelegator: Scheduler threw an uncaught exception - exiting
2016-02-29T14:55:08.03098 ! java.lang.ArrayIndexOutOfBoundsException: 0
2016-02-29T14:55:08.03098 ! at com.hubspot.mesos.MesosUtils.getPorts(MesosUtils.java:87) ~[SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03098 ! at com.hubspot.singularity.mesos.SingularityMesosTaskBuilder.buildTask(SingularityMesosTaskBuilder.java:93) ~[SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03098 ! at com.hubspot.singularity.mesos.SingularityMesosScheduler.match(SingularityMesosScheduler.java:236) ~[SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03098 ! at com.hubspot.singularity.mesos.SingularityMesosScheduler.resourceOffers(SingularityMesosScheduler.java:174) ~[SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03098 ! at com.palominolabs.metrics.guice.TimedInterceptor.invoke(TimedInterceptor.java:47) ~[SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03098 ! at com.hubspot.singularity.mesos.SingularityMesosSchedulerDelegator.resourceOffers(SingularityMesosSchedulerDelegator.java:175) ~[SingularityService-shaded.jar:0.4.9]
2016-02-29T14:55:08.03099 ERROR [2016-02-29 14:55:08,025] com.hubspot.singularity.SingularityAbort: Singularity on vagrant-devops-singularity is aborting due to UNRECOVERABLE_ERROR
2016-02-29T14:55:08.03099 WARN [2016-02-29 14:55:08,025] com.hubspot.singularity.SingularityAbort: Couldn't send abort mail because no SMTP configuration is present
2016-02-29T14:55:08.03099 INFO [2016-02-29 14:55:08,028] com.hubspot.singularity.SingularityAbort: Attempting to flush logs and wait 00:00.100 ...
2016-02-29T14:55:08.19300 I0229 14:55:08.182867 7619 sched.cpp:1805] Asked to abort the driver
Essentially what we're trying to do here is run a container in bridge mode where all the ports are statically allocated. Since no dynamically allocated ports are needed (i.e. no FROM_OFFER ports in the port mappings), I've set resources.numPorts=0. It seems this combination clearly makes singularity unhappy. In looking at this, I was wondering why resources.numPorts is even needed and why it can't be dynamically determined by the number of FROM_OFFER ports in the port mappings section?
The text was updated successfully, but these errors were encountered:
Submitting a deploy request with the following
containerInfo
andresources
section in it:causes singularity to die/abort with the following exception info in the log:
Essentially what we're trying to do here is run a container in bridge mode where all the ports are statically allocated. Since no dynamically allocated ports are needed (i.e. no FROM_OFFER ports in the port mappings), I've set
resources.numPorts=0
. It seems this combination clearly makes singularity unhappy. In looking at this, I was wondering whyresources.numPorts
is even needed and why it can't be dynamically determined by the number ofFROM_OFFER
ports in the port mappings section?The text was updated successfully, but these errors were encountered: