Skip to content

always getting error "redfishtool: getCollection: Error getting service root, aborting" #116

@iamsli

Description

@iamsli

running into a similar issue as #111. this is happening on all redfishtool commands. I have a socks environment variable set if that matters.

 redfishtool -r BMC_IP -u USER -p 'PASSWORD' -S Always -v Chassis
   redfishtool: getCollection: Error getting service root, aborting
# Main: Error: rc=5

but i am able to manually curl this

curl -sk -u USER:'PASSWORD' https://BMC_IP/redfish/v1/Chassis | jq            
{
  "@odata.type": "#ChassisCollection.ChassisCollection",
  "@odata.id": "/redfish/v1/Chassis",
  "Name": "Chassis Collection",
  "Members": [
    {
      "@odata.id": "/redfish/v1/Chassis/1"
    }
  ],
  "[email protected]": 1,
  "@odata.etag": "\"bafba9145202c6aac913f3f9d4d41fe0\""
}

this is the service root for reference

{
  "@odata.type": "#ServiceRoot.v1_17_0.ServiceRoot",
  "@odata.id": "/redfish/v1",
  "Id": "ServiceRoot",
  "Name": "Root Service",
  "RedfishVersion": "1.21.0",
  "UUID": "BLANK",
  "Vendor": "VENDOR",
  "Systems": {
    "@odata.id": "/redfish/v1/Systems"
  },
  "Chassis": {
    "@odata.id": "/redfish/v1/Chassis"
  },
  "Managers": {
    "@odata.id": "/redfish/v1/Managers"
  },
  "Tasks": {
    "@odata.id": "/redfish/v1/TaskService"
  },
  "SessionService": {
    "@odata.id": "/redfish/v1/SessionService"
  },
  "LicenseService": {
    "@odata.id": "/redfish/v1/LicenseService"
  },
  "AccountService": {
    "@odata.id": "/redfish/v1/AccountService"
  },
  "EventService": {
    "@odata.id": "/redfish/v1/EventService"
  },
  "UpdateService": {
    "@odata.id": "/redfish/v1/UpdateService"
  },
  "CertificateService": {
    "@odata.id": "/redfish/v1/CertificateService"
  },
  "Registries": {
    "@odata.id": "/redfish/v1/Registries"
  },
  "JsonSchemas": {
    "@odata.id": "/redfish/v1/JsonSchemas"
  },
  "ComponentIntegrity": {
    "@odata.id": "/redfish/v1/ComponentIntegrity"
  },
  "TelemetryService": {
    "@odata.id": "/redfish/v1/TelemetryService"
  },
  "Product": null,
  "ServiceIdentification": "SERVICEIDENTIFICATION",
  "Links": {
    "Sessions": {
      "@odata.id": "/redfish/v1/SessionService/Sessions"
    }
  },
  "Oem": {
    "Supermicro": {
      "DumpService": {
        "@odata.id": "/redfish/v1/Oem/Supermicro/DumpService"
      }
    }
  },
  "ProtocolFeaturesSupported": {
    "FilterQuery": true,
    "SelectQuery": true,
    "ExcerptQuery": false,
    "OnlyMemberQuery": false,
    "DeepOperations": {
      "DeepPATCH": false,
      "DeepPOST": false,
      "MaxLevels": 1
    },
    "ExpandQuery": {
      "Links": true,
      "NoLinks": true,
      "ExpandAll": true,
      "Levels": true,
      "MaxLevels": 2
    }
  },
  "@odata.etag": "\"61dfc40dadb8681783ec1cf687f198ce\""
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions