[BUG] MismatchedInputException: Jackson Deserialization Error in Docker TaskRunner volumes (v1.1.5)
[!IMPORTANT] This issue is not ready for contributions yet. The Kestra team still has to review it. Please wait until this message is removed and the issue has been move to Backlog stage before you start working on it. Pull requests opened before that will not be reviewed. In the meantime, feel free to get started on a different issue by checking out our good first issues list.
Describe the issue
In Kestra v1.1.5, script tasks using the Docker taskRunner fail during initialization if the volumes property is defined. The engine throws a MismatchedInputException, stating it cannot deserialize a java.lang.String from an Object value.Steps to ReproduceThe error occurs when defining a taskRunner with volume mounts in a consolidated flow (multiple tasks).Create a flow with multiple tasks.Add a Shell or Python task with the following taskRunner configuration:YAMLtaskRunner: type: io.kestra.plugin.scripts.runner.docker.Docker volumes: - /home/user/data:/mnt:ro Execute the flow.Observed BehaviorThe task succeeds when run as a standalone flow (task at top level) but fails when included in a multi-task flow. This suggests a parsing failure during deeper recursion of the YAML tree.Logs / Stack TracePlaintextio.kestra.core.exceptions.IllegalVariableEvaluationException: java.lang.IllegalArgumentException: Cannot deserialize value of type java.lang.String from Object value (token JsonToken.START_OBJECT) Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type java.lang.String from Object value (token JsonToken.START_OBJECT) at io.kestra.core.models.property.Property.deserialize(Property.java:186) at io.kestra.core.models.property.Property.asList(Property.java:262) at io.kestra.core.models.tasks.runners.ScriptService.replaceInternalStorage(ScriptService.java:104)
http://googleusercontent.com/immersive_entry_chip/0
Environment
Environment
- [cite_start]Kestra Version: 1.1.5 [cite: 1, 4]
- [cite_start]Runner Type: Docker (io.kestra.plugin.scripts.runner.docker.Docker) [cite: 4]
- [cite_start]Host OS: Debian 12 (Linux) [cite: 4]
- [cite_start]Installation: Docker Compose (Sibling containers pattern) [cite: 4]Kestra Version: develop
Source: kestra-io/kestra