Skip to main content
Community Scripts logo

Exit codes

Every exit code the engine knows, its text and telemetry category, and how to read an error line.

When a script fails it prints one line with an exit code and an explanation. The texts come from explain_exit_code in api/exitcodes.func; the line itself is printed by error_handler in core/error_handler.func. The same file is loaded on the host (through api/api.func) and inside the container (by lxc/install.func), so both sides use one table.

Reading an error line

✖️  in line 24: exit code 100 (APT: Package manager error (broken packages / dependency problems)): while executing command apt install -y build-essential
PartMeaning
in line 24Line that was running. For an install script the number is one higher than the line in install/<app>-install.sh
exit code 100Exit status of the failing command
(…)Explanation, from the table below or adjusted to the command (next section)
while executing command …The command that failed

Below that line you get the output of the failing command, hints for known causes, and on the host the path of the full log. When the install inside a container fails, the host prints its own summary instead:

✖️  Installation failed in container 105 (exit code: 100)
📋  Installation log: /tmp/vaultwarden-105-1a2b3c4d.log
  Error: APT: Package manager error (broken packages / dependency problems)

followed by the recovery menu. The exit code of the whole run is the code shown.

The explanation depends on the command

Many programs use the same small numbers for different things. The handler therefore only uses a table text that belongs to a tool family when a tool of that family ran:

Table prefixApplies when the command runs
curl:curl
APT:, DPKG:apt, apt-get, apt-cache, aptitude, dpkg, dpkg-query, dpkg-reconfigure
Node.js:, npm/Node.js:, npm/pnpm/yarn:node, npm, npx, pnpm, yarn, corepack, bun
Python:python, python3, pip, pip3, pipx, uv, uvx
PostgreSQL:psql, pg_*, postgres
MySQL/MariaDB:mysql, mariadb, mysqladmin, mariadb-admin
MongoDB:mongosh, mongo, mongod
Systemd:systemctl
git:git

For any other program the line reads <program> exited with status N. The same wording is used for exit 1, 2 and 3 whenever the program is known, and a few shell cases get their own text: Arithmetic expression evaluated to 0, Test condition was false, Command substitution exited with status N, grep found no match, Systemd: unit not found (exit 5 from systemctl) and Exit status N for a bare return or exit.

A code that is not in the table is shown as Unknown error.

Categories

categorize_error assigns each failure a category for telemetry. The category column below is what it returns for the code alone. Three things take precedence, in this order:

  1. ERROR_CATEGORY_OVERRIDE, which the host sets to dependency, resource, network or storage when an install failed with exit 1 and the output shows an APT, out-of-memory, network or disk-full error.
  2. The codes that are always user_aborted (113, 114, 122, 129, 130, 143, 253, 254), resource (134, 137) or signal (139, 141).
  3. The program that failed: systemctl gives service; pct, qm, pvesm, pvesh and pveam give proxmox.
CategoryMeaning
user_abortedYou cancelled, declined a prompt, or the run was interrupted
networkDNS, connection, HTTP or TLS failure
timeoutA command or a lock wait ran out of time
storageNot enough space, or a storage that cannot hold containers
dependencyPackage manager failure or a missing command
permissionA command could not be executed or was refused
configInvalid settings or input
proxmoxContainer, template or cluster operation failed
serviceA service did not start or a build failed
databaseDatabase connection, authentication or query failure
runtimeNode.js runtime failure
resourceKilled or aborted, usually out of memory
signalSegmentation fault or broken pipe
shellGeneric exit 1 or 2
unknownEverything else

The table

All 167 codes that explain_exit_code knows, grouped as in the source.

Generic and shell

CodeTextCategory
0Cancelled before completion (no error)unknown
1General errorshell
2Invalid usage or argumentsshell
3Command-specific errorunknown
10Docker / privileged mode required (unsupported environment)config

curl and wget

CodeTextCategory
4curl: Feature not supported or protocol errorunknown
5curl: Could not resolve proxyunknown
6curl: DNS resolution failed (could not resolve host)network
7curl: Failed to connect (network unreachable / host down)network
8curl: Server reply error (FTP/SFTP or apk untrusted key)unknown
16curl: HTTP/2 framing layer errorunknown
18curl: Partial file (transfer not completed)unknown
22curl: HTTP error returned (404, 429, 500+)network
23curl: Write error (disk full or permissions)unknown
24curl: Write to local file failedunknown
25curl: Upload failedunknown
26curl: Read error on local file (I/O)unknown
27curl: Out of memory (memory allocation failed)unknown
28curl: Operation timeout (network slow or server not responding)timeout
30curl: FTP port command failedunknown
32curl: FTP SIZE command failedunknown
33curl: HTTP range errorunknown
34curl: HTTP post errorunknown
35curl: SSL/TLS handshake failed (certificate error)network
36curl: FTP bad download resumeunknown
39curl: LDAP search failedunknown
44curl: Internal error (bad function call order)unknown
45curl: Interface error (failed to bind to specified interface)unknown
46curl: Bad password enteredunknown
47curl: Too many redirectsunknown
48curl: Unknown command line option specifiedunknown
51curl: SSL peer certificate or SSH host key verification failedunknown
52curl: Empty reply from server (got nothing)unknown
55curl: Failed sending network dataunknown
56curl: Receive error (connection reset by peer)unknown
57curl: Unrecoverable poll/select error (system I/O failure)unknown
59curl: Couldn't use specified SSL cipherunknown
61curl: Bad/unrecognized transfer encodingunknown
63curl: Maximum file size exceededunknown
75Temporary failure (retry later)unknown
78curl: Remote file not found (404 on FTP/file)unknown
79curl: SSH session error (key exchange/auth failed)unknown
92curl: HTTP/2 stream error (protocol violation)unknown
95curl: HTTP/3 layer errorunknown

BSD sysexits

CodeTextCategory
64Missing or invalid input (a required setting was not given)config
65Data format error (bad input data)unknown
66Input file not found (cannot open input)unknown
67User not found (addressee unknown)unknown
68Host not found (hostname unknown)unknown
69Service unavailableunknown
70Internal software errorunknown
71System error (OS-level failure)unknown
72Critical OS file missingunknown
73Cannot create output fileunknown
74I/O errorunknown
76Remote protocol errorunknown
77Permission deniedunknown

APT and dpkg

CodeTextCategory
100APT: Package manager error (broken packages / dependency problems)dependency
101APT: Configuration error (bad sources.list, malformed config)dependency
102APT: Lock held by another process (dpkg/apt still running)dependency
255DPKG: Fatal internal errordependency

Validation and setup (103–123)

CodeTextCategory
103Validation: Shell is not Bashunknown
104Validation: Not running as root (or invoked via sudo)unknown
105Validation: Proxmox VE version not supportedunknown
106Validation: Unsupported architecture (requires amd64 or arm64)unknown
107Validation: Kernel key parameters unreadableunknown
108Validation: Kernel key limits exceededunknown
109Proxmox: No available container ID after max attemptsunknown
110Proxmox: Failed to apply default.varsunknown
111Proxmox: App defaults file not availableunknown
112Proxmox: Invalid install menu optionunknown
113LXC: Under-provisioned — user aborted updateuser_aborted
114LXC: Storage too low — user aborted updateuser_aborted
115Download failed (engine, install script or VM image)unknown
116Proxmox: Default bridge vmbr0 not foundunknown
117LXC: Container did not reach running stateunknown
118LXC: No IP assigned to container after timeoutunknown
119Proxmox: No valid storage for rootdir contentunknown
120Proxmox: No valid storage for vztmpl contentunknown
121LXC: Container network not ready (no IP after retries)unknown
122LXC: No internet connectivity — user declined to continueuser_aborted
123LXC: Local IP detection failedunknown

Shell and signals (124–146)

CodeTextCategory
124Command timed out (timeout command)timeout
125Command failed to start (Docker daemon or execution error)unknown
126Command invoked cannot execute (permission problem?)permission
127Command not founddependency
128git: Fatal error (repository, network or permission problem)config
129Killed by SIGHUP (terminal closed / hangup)user_aborted
130Aborted by user (SIGINT)user_aborted
131Killed by SIGQUIT (core dumped)unknown
132Killed by SIGILL (illegal CPU instruction)unknown
134Process aborted (SIGABRT - possibly Node.js heap overflow)resource
137Killed (SIGKILL / Out of memory?)resource
139Segmentation fault (core dumped)signal
141Broken pipe (SIGPIPE - output closed prematurely)signal
143Terminated (SIGTERM)user_aborted
144Killed by signal 16 (SIGUSR1 / SIGSTKFLT)unknown
146Killed by signal 18 (SIGTSTP)unknown

Services and builds (150–154)

CodeTextCategory
150Systemd: Service failed to startservice
151Systemd: Service unit not foundservice
152Permission denied (EACCES)permission
153Build/compile failed (make/gcc/cmake)service
154Node.js: Native addon build failed (node-gyp)service

Python (160–162)

CodeTextCategory
160Python: Virtualenv / uv environment missing or brokendependency
161Python: Dependency resolution faileddependency
162Python: Installation aborted (permissions or EXTERNALLY-MANAGED)dependency

PostgreSQL (170–173)

CodeTextCategory
170PostgreSQL: Connection failed (server not running / wrong socket)database
171PostgreSQL: Authentication failed (bad user/password)database
172PostgreSQL: Database does not existdatabase
173PostgreSQL: Fatal error in query / syntaxdatabase

MySQL and MariaDB (180–183)

CodeTextCategory
180MySQL/MariaDB: Connection failed (server not running / wrong socket)database
181MySQL/MariaDB: Authentication failed (bad user/password)database
182MySQL/MariaDB: Database does not existdatabase
183MySQL/MariaDB: Fatal error in query / syntaxdatabase

MongoDB (190–193)

CodeTextCategory
190MongoDB: Connection failed (server not running)database
191MongoDB: Authentication failed (bad user/password)database
192MongoDB: Database not founddatabase
193MongoDB: Fatal query errordatabase

Engine (199)

CodeTextCategory
199Engine: exit code not reportedunknown

Proxmox VE and Incus host (200–231)

CodeTextCategory
200Proxmox: Failed to create lock fileproxmox
203Proxmox: Missing CTID variableconfig
204Proxmox: Missing PCT_OSTYPE variableconfig
205Proxmox: Invalid CTID (<100)config
206Proxmox: CTID already in useconfig
207Proxmox: Password contains unescaped special charactersconfig
208Proxmox: Invalid container settings (network, DNS, RAM, password, mounts)config
209Proxmox: Container creation failedproxmox
210Proxmox: Cluster not quorateproxmox
211Proxmox: Timeout waiting for template locktimeout
212Proxmox: Storage type 'iscsidirect' does not support containers (VMs only)proxmox
213Proxmox: Storage type does not support 'rootdir' contentproxmox
214Proxmox: Not enough storage spacestorage
215Proxmox: Container created but not listed (ghost state)proxmox
216Proxmox: RootFS entry missing in configproxmox
217Proxmox: Storage not accessiblestorage
218Proxmox: Template file corrupted or incompleteproxmox
219Proxmox: CephFS does not support containers - use RBDstorage
220Proxmox: Unable to resolve template pathproxmox
221Proxmox: Template file not readableproxmox
222Proxmox: Template download failedproxmox
223Proxmox: Template not available after downloadproxmox
224Proxmox: PBS storage is for backups onlystorage
225Proxmox: No template available for OS/Versionproxmox
226Proxmox: VM disk import or post-creation setup failedunknown
227Proxmox: Container created but failed to startproxmox
228Proxmox: Cluster filesystem /etc/pve not availableproxmox
229Incus: Project restrictions forbid a config the container needspermission
231Proxmox: LXC stack too old for the template, or its upgrade failedproxmox

Tools and add-ons (232–238)

CodeTextCategory
232Tools: Wrong execution environment (run on PVE host, not inside LXC)unknown
233Tools: Application not installed (update prerequisite missing)unknown
234Tools: No LXC containers found or availableunknown
235Tools: Backup or restore operation failedunknown
236Tools: Required hardware not detectedunknown
237Tools: Dependency package installation failedunknown
238Tools: OS or distribution not supported for this addonunknown

Node.js (239–249)

CodeTextCategory
239npm/Node.js: Unexpected runtime error or dependency failureunknown
243Node.js: Out of memory (JavaScript heap out of memory)runtime
245Node.js: Invalid command-line optionruntime
246Node.js: Internal JavaScript Parse Errorruntime
247Node.js: Fatal internal errorruntime
248Node.js: Invalid C++ addon / N-API failureruntime
249npm/pnpm/yarn: Unknown fatal errorruntime

Application install and update (250–254)

CodeTextCategory
250App: Download failed or version not determinedunknown
251App: File extraction failed (corrupt or incomplete archive)unknown
252App: Required file or resource not foundunknown
253App: Data migration required — update aborteduser_aborted
254App: User declined prompt or input timed outuser_aborted

Notes on individual codes

CodeNote
0Only shown when a run ended without an error but also without finishing, for example after cancelling a dialog. Telemetry records it as aborted
1An unsupported Proxmox VE version ends container scripts with exit 1 (pve_check). Code 105 is used by the VM path
10The host adds a hint that the container probably needs privileged mode or nesting
101APT: text only for apt/dpkg commands; cargo exits 101 on a panic and is reported as cargo exited with status 101
115The engine could not download one of its own files or the install script. For a fork, set COMMUNITY_SCRIPTS_URL, see Loading
127The handler names the missing command when it can identify it
129A closed console does not end a run by itself, see Error handling
130, 143Set by the signal handlers for Ctrl-C and SIGTERM
134, 137, 243The recovery menu offers a rebuild with more RAM and CPU
199Used when no numeric exit code reached the host, for example when the container stopped by itself during the install
210, 228Raised by pve_check before any dialog opens
254Also used by confirm_external_installer when the upstream installer is declined

Using exit codes in a script

Let commands fail with their own status. When your script decides to stop, print the reason and exit with the code from the table that describes it, as ct/endurain.sh does in its update function:

if [[ ! -d /opt/endurain ]]; then
  msg_error "No ${APP} installation found!"
  exit 233
fi

Do not invent new numbers and do not copy this table into a script. Codes are added to api/exitcodes.func in the engine, and this page follows that file.