Skip to content

Error Codes

Most error codes and their associated documentation.

wire::key::File

message
txt
"error reading file"

wire::key::SpawningCommand

message
txt
"error spawning key command"

HELP

"Ensure wire has the correct $PATH for this command"

wire::key::Resolving

message
txt
"Error resolving key command child process"

wire::key::CommandExit

message
txt
"key command failed with status {}: {}"

wire::key::Empty

message
txt
"Command list empty"

wire::key::ParseKeyPermissions

message
txt
"Failed to parse key permissions"

HELP

"Refer to the documentation for the format of key file permissions."

wire::activation::SwitchToConfiguration

message
txt
"failed to run switch-to-configuration {0} on node {1}"

wire::network::HostUnreachable

message
txt
"Cannot reach host {host}"

HELP

"If you failed due to a fault in DNS, note that a node can have multiple targets defined."

wire::network::HostUnreachableAfterReboot

message
txt
"Failed to get regain connection to {0} after activation."

wire::network::HostsExhausted

message
txt
"Ran out of contactable hosts"

wire::hive_init::NoHiveFound

message
txt
"No hive could be found in {}"

HELP

"Double check the path is correct. You can adjust the hive path with --path when the hive lies outside of the CWD."

wire::hive_init::Parse

message
txt
"Failed to parse internal wire json."

HELP

"If you cannot resolve this problem, please create an issue."

wire::hive_init::ParsePrefetch

message
txt
"Failed to parse `nix flake prefetch --json`."

HELP

"please create an issue."

wire::hive_init::NodeDoesNotExist

message
txt
"node {0} not exist in hive"

HELP

"Please create an issue!"

wire::hive_location::MalformedPath

message
txt
"Path was malformed: {}"

wire::hive_location::Malformed

message
txt
"--path was malformed"

wire::hive_location::TypeUnsupported

message
txt
"The flakref had an unsupported type: {:#?}"

wire::command::TermAttrs

message
txt
"Failed to set PTY attrs"

wire::command::PosixPipe

message
txt
"There was an error in regards to a pipe"

wire::command::PortablePty

Error wrapped around portable_pty's anyhow

errors

message
txt
"There was an error from the portable_pty crate"

wire::command::Joining

message
txt
"Failed to join on some tokio task"

wire::command::WaitForStatus

message
txt
"Failed to wait for the child's status"

wire::detached::NoHandle

message
txt
"There was no handle to child io"

HELP

"This should never happen, please create an issue!"

wire::command::WritingClientStdout

message
txt
"Failed to write to client stderr."

wire::command::WritingMasterStdin

message
txt
"Failed to write to PTY master stdout."

wire::command::Recv

message
txt
"Failed to receive a message from the begin channel"

HELP

"please create an issue!"

wire::command::ThreadPanic

message
txt
"Thread panicked"

HELP

"please create an issue!"

wire::command::CommandFailed

message
txt
"{command_ran} failed ({reason}) with {code} (last 20 lines):\n{logs}"

HELP

"nix commands are filtered, run with -vvv to view all"

wire::command::RuntimeDirectory

message
txt
"error creating $XDG_RUNTIME_DIR/wire"

wire::command::RuntimeDirectoryMissing

message
txt
"$XDG_RUNTIME_DIR could not be used."

wire::command::OneshotRecvError

message
txt
"Error waiting for begin message"

wire::BuildNode

message
txt
"failed to build node {name}"

wire::CopyPath

message
txt
"failed to copy path {path} to node {name}"

wire::Evaluate

message
txt
"failed to evaluate `{attribute}` from the context of a hive."

wire::Encoding

message
txt
"error encoding length delimited data"