Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1377

WFLYCTL0201: Unknown attribute 'server-state' using HTTP management API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 2.1.0.CR1
    • Management
    • None
    • Hide
      • Create administrator user admin with password admin using ./add-user.sh
      • Start domain using ./domain.sh
      • Try to find out server state
        curl --digest -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"operation":"read-attribute", "address" : [[{ "host" : "master" },{ "server" : "server-one" }]], "name" : "server-state","json.pretty":1}' -u admin:admin
        

        Error "WFLYCTL0201: Unknown attribute 'server-state'" occures

      Show
      Create administrator user admin with password admin using ./add-user.sh Start domain using ./domain.sh Try to find out server state curl --digest -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"operation":"read-attribute", "address" : [[{ "host" : "master" },{ "server" : "server-one" }]], "name" : "server-state","json.pretty":1}' -u admin:admin Error "WFLYCTL0201: Unknown attribute 'server-state'" occures

      Unable to get server-state using http management API

      [mchoma@localhost bin]$ curl --digest -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"operation":"read-attribute", "address" : [[{ "host" : "master" },{ "server" : "server-one" }]], "name" : "server-state","json.pretty":1}' -u admin:admin
      HTTP/1.1 401 Unauthorized
      Connection: keep-alive
      WWW-Authenticate: Digest realm="ManagementRealm",domain="/management",nonce="sI2Bu4kJcGgNMTQ1NTYxMDE3OTU2MVc91LWa8HnWzIKZ5I8UIlo=",opaque="00000000000000000000000000000000",algorithm=MD5,qop="auth"
      Content-Length: 77
      Content-Type: text/html
      Date: Tue, 16 Feb 2016 08:09:39 GMT
      
      HTTP/1.1 500 Internal Server Error
      Connection: keep-alive
      Authentication-Info: nextnonce="sI2Bu4kJcGgNMTQ1NTYxMDE3OTU2MVc91LWa8HnWzIKZ5I8UIlo=",qop="auth",rspauth="8e575a86f8dae40426abd49bbc8f8b8a",cnonce="YmNiNmM4YjA0NmZlYjQ5MzAwMDAyNjIxMDAwODNhODE=",nc=00000001
      Content-Type: application/json; charset=utf-8
      Content-Length: 131
      Date: Tue, 16 Feb 2016 08:09:39 GMT
      
      {
          "outcome" : "failed",
          "failure-description" : "WFLYCTL0201: Unknown attribute 'server-state'",
          "rolled-back" : true
      
      

      Running analogous CLI command works OK.

      [domain@127.0.0.1:9999 /] /host=slave/server=main-three:read-attribute(name=server-state)
      {
          "outcome" => "success",
          "result" => "running"
      }
      

      Can't get server status neither with

        
      curl --digest -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"operation":"read-attribute", "address" : [[{ "host" : "master" },{ "server-config" : "server-one" }]], "name" : "status","json.pretty":1}' -u admin:admin
      ...
      "WFLYCTL0201: Unknown attribute 'status'"
      

      Issue can be seen in EAP 6, as well.

              bstansbe@redhat.com Brian Stansberry
              mchoma@redhat.com Martin Choma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: