Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-2610

Marathon v1.4.0 /v2/apps PUT REST API Error

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Marathon 1.4.0
    • Component/s: None
    • Labels:

      Description

      Marathon v1.4.0 on Ubuntu 14.04 REST API /v2/apps PUT does not seem to work. It always returns error status 422.

      Try starting a simple new app:
      > [

      { "id": "/test/sleep120", "cmd": "sleep 120", "cpus": 0.3, "instances": 2, "mem": 9 }

      ]

      And the return message (status 422):
      > {
      "message": null
      }

      The easiest way to reproduce this is with the Marathon UI API Console:
      [http://localhost:8080/api-console/index.html|url]
      And use the /v2/apps PUT API.

      This same job, /test/sleep120, works if it's started using the POST API.

      The only error message I see is in syslog

      > marathon[19778]: [2017-02-18 19:09:09,304] ERROR Exception while processing request (mesosphere.marathon.api.MarathonExceptionMapper$$EnhancerByGuice$$9833dc0d:qtp1923232046-38)
      marathon[19778]: java.lang.IllegalArgumentException: null
      marathon[19778]: #011at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      marathon[19778]: #011at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      marathon[19778]: #011at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      marathon[19778]: #011at java.lang.reflect.Method.invoke(Method.java:498)
      marathon[19778]: #011at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
      marathon[19778]: #011at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
      marathon[19778]: #011at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
      . . .
      marathon[19778]: #011at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
      marathon[19778]: #011at mesosphere.marathon.api.CacheDisablingFilter.doFilter(CacheDisablingFilter.scala:18)
      marathon[19778]: #011at mesosphere.marathon.api.CacheDisablingFilter$$EnhancerByGuice$$bbaeb0a8.CGLIB$doFilter$0(<generated>)
      marathon[19778]: #011at mesosphere.marathon.api.CacheDisablingFilter$$EnhancerByGuice$$bbaeb0a8$$FastClassByGuice$$ccb95931.invoke(<generated>)
      . . .

        Attachments

          Activity

            People

            • Assignee:
              junterstein Johannes Unterstein
              Reporter:
              GitHub_zanes2016 zanes2016 (Inactive)
              Team:
              Orchestration Team
              Watchers:
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: