jdx/mise · error
unsupported output file type
Error message
unsupported output file type: {} What it means
While archiving task cache outputs, mise only supports regular files, directories, and symlink placeholders (empty data entries); any other file type (fifo, socket, device node) is rejected. Special files cannot be meaningfully archived and restored, so archiving bails out.
Solutions
- Delete the special file from the output directory before the task finishes
- Configure the build tool to write sockets/pipes outside the outputs directory
- Narrow the outputs pattern so special files are excluded (e.g. glob only real files)
Example fix
# before outputs = ['out/'] # after: exclude the socket, capture only real files outputs = ['out/**/*.js']
Defensive patterns
Strategy: validation
Validate before calling
# find non-regular files in outputs find out/ ! -type f ! -type d ! -type l -print
Try / catch
if err contains 'unsupported output file type':
remove_special_files_from_output_dir() Prevention
- Configure dev servers/test runners to put sockets/fifos outside output dirs
- Clean the output dir at the start of the task
- Glob narrowly instead of capturing whole directories that may hold special files
When it happens
Trigger: A task output directory contains a named pipe, unix socket, or device file (e.g. created by a dev server, test runner, or `mkfifo`) when the cache is being saved/archived.
Common situations: Build/test tooling leaves sockets or fifos in the output dir (e.g. webpack dev server sockets, test IPC pipes); CI artifacts directory reused between runs.
Understand the failure class
Background: UnsupportedOperationException and "is not supported" errors: when a library deliberately refuses a call — this error's family across 30 libraries.
Related errors
- task cache archive contains duplicate paths
- task cache archive is missing
- unsupported task cache archive entry type
- additional asset ' ' is not an archive
- archive does not contain registry entries
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/8b22d79cb568f5bf.
Report an issue: GitHub.
Appendix: source
Thrown at src/task/task_cache.rs:1601
metadata
.modified()
.ok()
.and_then(|m| m.duration_since(UNIX_EPOCH).ok())
.map(|d| d.as_secs() as i64)
.unwrap_or(0),
);
if metadata.file_type().is_symlink() {
header.set_size(0);
archive.append_link(&mut header, &rel, fs::read_link(&abs)?)?;
} else if metadata.is_dir() {
header.set_size(0);
archive.append_data(&mut header, &rel, std::io::empty())?;
} else if metadata.is_file() {
header.set_size(metadata.len());
archive.append_data(&mut header, &rel, File::open(&abs)?)?;
restored_bytes = restored_bytes.saturating_add(metadata.len());
} else {
bail!("unsupported output file type: {}", rel.display());
}
}
let encoder = archive.into_inner()?;
encoder.finish()?;
Ok(restored_bytes)
}
#[cfg(unix)]
fn metadata_mode(metadata: &fs::Metadata) -> u32 {
use std::os::unix::fs::PermissionsExt;
metadata.permissions().mode()
}
#[cfg(not(unix))]
fn metadata_mode(metadata: &fs::Metadata) -> u32 {
if metadata.permissions().readonly() {
0o444
} else {View on GitHub (pinned to 533346cc37)