Error map

error: externally-managed-environment (Debian/Ubuntu pip) error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz

Linux · layer 6, Platform & cloud

Open the full error page →

Centre: this error. First ring: errors it is linked with (10). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

error: externally-managed-environment (Debian/Ubuntu pip) — error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz (Linux)error: exte…HTTPSConnectionPool: Max retries exceeded (SSLError) — Python requests: HTTPSConnectionPool(host='api.example.com', port=443): Max retries exceeded with url: /v1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] ...'))) (SSL / TLS)HTTPSConnectionPool…EOF occurred in violation of protocol — Python: ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396) (SSL / TLS)EOF occurred in vio…Unable to locate package — E: Unable to locate package (apt / apt-get install) (Linux)Unable to locate pa…externally-managed-environment — error: externally-managed-environment (Python)externally-managed-…certifi — requests SSLError: CERTIFICATE_VERIFY_FAILED because certifi is outdated (missing a new root CA) (SSL / TLS)certifisecurity level — Python/OpenSSL: SSLV3_ALERT_HANDSHAKE_FAILURE or CA_MD_TOO_WEAK — OpenSSL security level 2 rejects legacy servers (SSL / TLS)security levelmacOS — Python on macOS: SSL: CERTIFICATE_VERIFY_FAILED unable to get local issuer certificate (run Install Certificates.command) (SSL / TLS)macOSpre-commit: files were modified by this hook — - hook id: end-of-file-fixer - exit code: 1 - files were modified by this hook (Git)pre-commit: files w…pyenv: BUILD FAILED — zlib not available — ERROR: The Python zlib extension was not compiled. Missing the zlib? (macOS)pyenv: BUILD FAILED…gyp ERR! find Python — Python is not set from command line or npm configuration — gyp ERR! find Python Python is not set from command line or npm configuration (macOS)gyp ERR! find Pytho…CERTIFICATE_VERIFY_FAILED — SSL: CERTIFICATE_VERIFY_FAILED / unable to get local issuer certificate (API)CERTIFICATE_VERIFY_…1003 — Cloudflare Error 1003: Direct IP access not allowed (Cloudflare)10031013 — Cloudflare Error 1013: HTTP hostname and TLS SNI hostname mismatch (Cloudflare)1013cURL error 35 — cURL error 35: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to host:443 (PHP)cURL error 35sslv3 alert handshake failure — OpenSSL: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure (SSL alert number 40) (SSL / TLS)sslv3 alert handsha…tlsv1 unrecognized name (SNI) — OpenSSL: SSL alert number 112 — tlsv1 unrecognized name (SSL / TLS)tlsv1 unrecognized …dpkg lock — E: Could not get lock /var/lib/dpkg/lock-frontend — is another process using it? (Linux)dpkg lockdid not complete successfully — failed to solve: process "/bin/sh -c ..." did not complete successfully: exit code: 1 (Docker)did not complete su…Sub-process /usr/bin/dpkg returned an error code (1) — E: Sub-process /usr/bin/dpkg returned an error code (1) (Linux)Sub-process /usr/bi…ModuleNotFoundError — ModuleNotFoundError: No module named 'x' (Python)ModuleNotFoundErrorAttributeError — AttributeError: 'X' object has no attribute 'y' (Python)AttributeErrorConnectionRefusedError — ConnectionRefusedError: [Errno 111] Connection refused (Python)ConnectionRefusedEr…SMTPServerDisconnected: Connection unexpectedly closed — Python: smtplib.SMTPServerDisconnected: Connection unexpectedly closed (Email / SMTP)SMTPServerDisconnec…SMTPAuthenticationError (Python) — Python: smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted') (Email / SMTP)SMTPAuthenticationE…ConnectionRefusedError [Errno 111] (SMTP) — Python: ConnectionRefusedError: [Errno 111] Connection refused — smtplib connect to localhost:25 (Email / SMTP)ConnectionRefusedEr…unable to get local issuer certificate — OpenSSL: error:num=20:unable to get local issuer certificate / SSL: CERTIFICATE_VERIFY_FAILED (SSL / TLS)unable to get local…ca md too weak / ee key too small — OpenSSL: error:0A00018E:SSL routines::ca md too weak / error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small (SSL / TLS)ca md too weak / ee…renegotiation — unsafe legacy renegotiation disabled (OpenSSL 3) when connecting to an old server (SSL / TLS)renegotiationTimeout during connect (likely firewall problem) — Let's Encrypt: Fetching http://example.com/.well-known/acme-challenge/token: Timeout during connect (likely firewall problem) (SSL / TLS)Timeout during conn…ACM region — CloudFront can't use my ACM certificate: it must be requested in us-east-1 (N. Virginia) (SSL / TLS)ACM regionApple Mail — Apple Mail: Cannot Send Message — the SMTP server connection failed / password incorrect (Email / SMTP)Apple Maildeploy hook — Certbot renewed the certificate but the server still serves the old one (deploy hook / reload failed) (SSL / TLS)deploy hookpre-commit hook failed / husky - pre-commit hook exited with code 1 — husky - pre-commit hook exited with code 1 (error) (Git)pre-commit hook fai…hint: The 'pre-commit' hook was ignored because it's not set as executable — hint: The '.git/hooks/pre-commit' hook was ignored because it's not set as executable. (Git)hint: The 'pre-comm…COPY failed — COPY failed: file not found in build context / "/app/x": not found (Docker)COPY failedERR_OSSL_EVP_UNSUPPORTED — Error: error:0308010C:digital envelope routines::unsupported (Node.js)ERR_OSSL_EVP_UNSUPP…prisma generate — Error: @prisma/client did not initialize yet. Please run "prisma generate" (Node.js)prisma generateis damaged and can’t be opened — macOS: “App” is damaged and can’t be opened. You should move it to the Trash. (macOS)is damaged and can’…Homebrew Cask: It seems there is already an App at — Homebrew: Error: It seems there is already an App at '/Applications/Chrome.app' (macOS)Homebrew Cask: It s…zsh: bad CPU type in executable — macOS (Apple Silicon): zsh: bad CPU type in executable: ./tool (macOS)zsh: bad CPU type i…

Directly related (10)

HTTPSConnectionPool: Max retries exceeded (SSLError)SSL / TLS

Python requests: HTTPSConnectionPool(host='api.example.com', port=443): Max retries exceeded with url: /v1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] ...')))

The `requests` call failed during the TLS step and exhausted its retries; the real reason is in the nested SSLError text.

EOF occurred in violation of protocolSSL / TLS

Python: ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396)

The server closed the TLS connection abruptly without a proper shutdown, usually because it rejected the handshake or dropped the…

Unable to locate packageLinux

E: Unable to locate package (apt / apt-get install)

apt can’t find the package name in its package lists — the lists are stale, the repository isn’t enabled, or the name is wrong fo…

externally-managed-environmentPython

error: externally-managed-environment

Your system Python (Debian 12+, Ubuntu 23.04+, Homebrew) refuses pip installs into the OS-managed environment (PEP 668).

certifiSSL / TLS

requests SSLError: CERTIFICATE_VERIFY_FAILED because certifi is outdated (missing a new root CA)

An old `certifi` bundle doesn't contain the root that now signs the site's certificate.

security levelSSL / TLS

Python/OpenSSL: SSLV3_ALERT_HANDSHAKE_FAILURE or CA_MD_TOO_WEAK — OpenSSL security level 2 rejects legacy servers

A modern Python/OpenSSL (Debian/Ubuntu security level 2) refuses weak keys, SHA-1 or small DH from an older server.

macOSSSL / TLS

Python on macOS: SSL: CERTIFICATE_VERIFY_FAILED unable to get local issuer certificate (run Install Certificates.command)

The python.org installer doesn't use the system keychain, so HTTPS requests fail until you install its CA bundle.

pre-commit: files were modified by this hookGit

- hook id: end-of-file-fixer - exit code: 1 - files were modified by this hook

A pre-commit hook auto-fixed files and aborted the commit.

pyenv: BUILD FAILED — zlib not availablemacOS

ERROR: The Python zlib extension was not compiled. Missing the zlib?

pyenv can't compile Python without development libraries.

gyp ERR! find Python — Python is not set from command line or npm configurationmacOS

gyp ERR! find Python Python is not set from command line or npm configuration

node-gyp can't locate a compatible Python.

Two steps away (30)

CERTIFICATE_VERIFY_FAILEDAPI

SSL: CERTIFICATE_VERIFY_FAILED / unable to get local issuer certificate

The client couldn’t verify the server’s TLS certificate chain, so it refused the HTTPS connection.

1003Cloudflare

Cloudflare Error 1003: Direct IP access not allowed

The request went to a Cloudflare IP address directly (or with a Host header for a domain not on Cloudflare).

1013Cloudflare

Cloudflare Error 1013: HTTP hostname and TLS SNI hostname mismatch

The TLS SNI (the hostname used for the certificate) differs from the HTTP Host header in the same request.

cURL error 35PHP

cURL error 35: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to host:443

The TLS handshake failed — protocol/cipher mismatch, a proxy interfering, or the server closed the connection.

sslv3 alert handshake failureSSL / TLS

OpenSSL: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure (SSL alert number 40)

The server aborted the handshake with alert 40 — no acceptable parameters (cipher, signature algorithm, client certificate or SNI…

tlsv1 unrecognized name (SNI)SSL / TLS

OpenSSL: SSL alert number 112 — tlsv1 unrecognized name

The server did not recognise the hostname sent in SNI and rejected the handshake (or an alert/warning is logged).

dpkg lockLinux

E: Could not get lock /var/lib/dpkg/lock-frontend — is another process using it?

apt can’t run because another package operation (often automatic updates) holds the dpkg lock.

did not complete successfullyDocker

failed to solve: process "/bin/sh -c ..." did not complete successfully: exit code: 1

A RUN step in your Dockerfile failed. The real error is printed in the lines just above this message.

Sub-process /usr/bin/dpkg returned an error code (1)Linux

E: Sub-process /usr/bin/dpkg returned an error code (1)

A package’s install/configure script failed, so dpkg aborted. The real error is a few lines above this message.

ModuleNotFoundErrorPython

ModuleNotFoundError: No module named 'x'

Python can’t find the module you import — it isn’t installed in the interpreter/virtualenv that’s running, or the import path is…

AttributeErrorPython

AttributeError: 'X' object has no attribute 'y'

You accessed an attribute or method that doesn’t exist on that object type.

ConnectionRefusedErrorPython

ConnectionRefusedError: [Errno 111] Connection refused

Nothing is listening on the host/port Python tried to connect to.

SMTPServerDisconnected: Connection unexpectedly closedEmail / SMTP

Python: smtplib.SMTPServerDisconnected: Connection unexpectedly closed

The server closed the connection before your script finished the SMTP conversation — a timeout, blocked IP, TLS mismatch or rate…

SMTPAuthenticationError (Python)Email / SMTP

Python: smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted')

`smtp.login()` was rejected by the server — wrong credentials, wrong password type, or authentication not allowed for that accoun…

ConnectionRefusedError [Errno 111] (SMTP)Email / SMTP

Python: ConnectionRefusedError: [Errno 111] Connection refused — smtplib connect to localhost:25

Nothing is listening on the SMTP host and port your script connected to — often `localhost:25` because no host was given and no l…

unable to get local issuer certificateSSL / TLS

OpenSSL: error:num=20:unable to get local issuer certificate / SSL: CERTIFICATE_VERIFY_FAILED

The client could not build a chain from the server's certificate to a CA it trusts — the issuer is missing locally or the server…

ca md too weak / ee key too smallSSL / TLS

OpenSSL: error:0A00018E:SSL routines::ca md too weak / error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small

OpenSSL's security level rejected a certificate signed with a weak hash (MD5/SHA-1) or with a small key (RSA < 2048).

renegotiationSSL / TLS

unsafe legacy renegotiation disabled (OpenSSL 3) when connecting to an old server

OpenSSL 3 refuses to connect to servers that lack RFC 5746 secure renegotiation support.

Timeout during connect (likely firewall problem)SSL / TLS

Let's Encrypt: Fetching http://example.com/.well-known/acme-challenge/token: Timeout during connect (likely firewall problem)

The ACME validation server could not reach your server on port 80 within the timeout.

ACM regionSSL / TLS

CloudFront can't use my ACM certificate: it must be requested in us-east-1 (N. Virginia)

The certificate you want to attach to CloudFront isn't listed, because it was created in another region.

Apple MailEmail / SMTP

Apple Mail: Cannot Send Message — the SMTP server connection failed / password incorrect

Apple Mail can't use the outgoing server for an account, often because of a stale password, wrong SMTP entry or app-specific pass…

deploy hookSSL / TLS

Certbot renewed the certificate but the server still serves the old one (deploy hook / reload failed)

Renewal succeeded on disk, but nginx/Apache wasn't reloaded, so clients keep seeing the expiring certificate.

pre-commit hook failed / husky - pre-commit hook exited with code 1Git

husky - pre-commit hook exited with code 1 (error)

A pre-commit hook returned a failure so the commit was stopped.

hint: The 'pre-commit' hook was ignored because it's not set as executableGit

hint: The '.git/hooks/pre-commit' hook was ignored because it's not set as executable.

Git skipped your hook because it lacks exec permission.

COPY failedDocker

COPY failed: file not found in build context / "/app/x": not found

The Dockerfile COPY refers to a path outside the build context, excluded by .dockerignore, or relative to the wrong directory.

ERR_OSSL_EVP_UNSUPPORTEDNode.js

Error: error:0308010C:digital envelope routines::unsupported

An old build tool (webpack 4, old react-scripts) uses a hash algorithm that OpenSSL 3 in Node 17+ disables.

prisma generateNode.js

Error: @prisma/client did not initialize yet. Please run "prisma generate"

The generated Prisma Client is missing or out of date.

is damaged and can’t be openedmacOS

macOS: “App” is damaged and can’t be opened. You should move it to the Trash.

Gatekeeper blocked an app that isn’t properly signed/notarized or was modified after download (quarantine attribute).

Homebrew Cask: It seems there is already an App atmacOS

Homebrew: Error: It seems there is already an App at '/Applications/Chrome.app'

A cask install failed because the app is already installed manually (or a leftover exists).

zsh: bad CPU type in executablemacOS

macOS (Apple Silicon): zsh: bad CPU type in executable: ./tool

You ran an Intel (x86_64) program on an Apple Silicon Mac without Rosetta 2 (or an arm64 binary on an Intel Mac).