Container Service error - “session is a required field and has no available values”

12 views
Skip to first unread message

Ana Harris

unread,
Nov 13, 2025, 1:18:58 PM (9 days ago) Nov 13
to xnat_discussion
Hello everyone,

  I’m encountering the following issue when running a container command in XNAT:

Captura.JPG

The command works fine for most sessions, but fails for two specific sessions. I have checked the logs from `/opt/xnat/logs/xnat/containers-services-commandresolution.log` and that is what I get:

INFO org.nrg.containers.services.impl.CommandResolutionServiceImpl - Attempting to initialize a Session using value as ID string. INFO org.nrg.containers.services.impl.CommandResolutionServiceImpl - Done resolving input "session". Resolved value: "null". INFO org.nrg.containers.services.impl.CommandResolutionServiceImpl - Resolving input "session-id". ERROR org.nrg.containers.services.impl.CommandResolutionServiceImpl - Cannot derive input "session-id". Parent input's JSON representation is blank. INFO org.nrg.containers.services.impl.CommandResolutionServiceImpl - Done resolving input "session-id". Values: [].

The datatype of the failing sessions is the same as the others (xnat:mrSessionData), and as far as I can tell, nothing has changed in the session configuration or metadata.  In fact, I was able to run containers on this session before. Do you have any insights or suggestions about what might be going on?  

Here’s a snippet of how the inputs are defined in the command JSON:

"xnat": [
    {
      "name": "pipeline",
      "label": null,
      "description": " pipeline  ",
      "contexts": [
        "xnat:imageSessionData"
      ],
      "external-inputs": [
        {
          "name": "session",
          "description": "Input session",
          "type": "Session",
          "matcher": null,
          "default-value": null,
          "required": true,
          "replacement-key": null,
          "sensitive": null,
          "provides-value-for-command-input": null,
          "provides-files-for-command-mount": null,
          "via-setup-command": null,
          "user-settable": null,
          "load-children": true
        }
      ],
      "derived-inputs": [
        {
          "name": "session-id",
          "description": null,
          "type": "string",
          "matcher": null,
          "default-value": null,
          "required": true,
          "replacement-key": null,
          "sensitive": null,
          "provides-value-for-command-input": "session-id",
          "provides-files-for-command-mount": null,
          "user-settable": false,
          "load-children": true,
          "derived-from-wrapper-input": "session",
          "derived-from-xnat-object-property": "id",
          "via-setup-command": null
        }
      ],

Thanks,
Ana.
Reply all
Reply to author
Forward
0 new messages