apache/flink · error · IOException
Failed to cast s5cmd spell [{}] [exit code = %d] [cfg: {}] m
Error message
Failed to cast s5cmd spell [{}] [exit code = %d] [cfg: {}] maybe due to:
{} What it means
Error "Failed to cast s5cmd spell [{}] [exit code = %d] [cfg: {}] maybe due to: {}" thrown in apache/flink.
Source
Thrown at flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/FlinkS3FileSystem.java:398
hogwart.redirectErrorStream(true)
.redirectInput(inScrolls)
.redirectOutput(outScrolls)
.start();
try (Closeable ignore =
closeableRegistry.registerCloseableTemporarily(
() -> {
maybeCloseableRegistryException.set(
new IOException(
"Copy process destroyed by CloseableRegistry."));
destroyProcess(wizard);
})) {
exitCode = wizard.waitFor();
} catch (InterruptedException e) {
destroyProcess(wizard);
// restore interruption after destroyProcess, to let destroyProcess do some sleeps
Thread.currentThread().interrupt();
throw new IOException(createSpellErrorMessage(exitCode, outScrolls, artefacts), e);
} catch (IOException e) {
destroyProcess(wizard);
throw new IOException(createSpellErrorMessage(exitCode, outScrolls, artefacts), e);
}
if (exitCode != 0) {
throw new IOException(
createSpellErrorMessage(exitCode, outScrolls, artefacts),
maybeCloseableRegistryException.get());
}
} finally {
IOUtils.deleteFileQuietly(tmpWorkingPath);
}
}
private static void destroyProcess(Process processToDestroy) {
LOG.info("Destroying s5cmd copy process.");
processToDestroy.destroy();
View on GitHub (pinned to 2f3c205e92)
Solutions
- Address the cause reported by the error message: Failed to cast s5cmd spell [the reported value] [exit code = the reported value] [cfg: the reported value] maybe due to: the reported value
- Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry.
Example fix
Correct the condition described ("Failed to cast s5cmd spell [the reported value] [exit code = the reported value] [cfg: the reported value] maybe due to:
the reported value") and rerun the job or command. When it happens
Trigger: Triggered at runtime when the operation fails because: Failed to cast s5cmd spell [the reported value] [exit code = the reported value] [cfg: the reported value] maybe due to: the reported value.
Common situations: Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Failed to cast s5cmd spell [the reported value] [exit code = the reported value] [cfg: the reported value] maybe due to: the reported value.
AI-assisted analysis of apache/flink@2f3c205e92 (2026-08-14).
Data as JSON: /api/errors/c3687394d30f8ed7.
Report an issue: GitHub.