Error map
syntax error: unexpected end of file (bash script) script.sh: line 25: syntax error: unexpected end of file
Linux · layer 6, Platform & cloud
Centre: this error. First ring: errors it is linked with (12). 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.
Directly related (12)
Dockerfile parse error line N: unknown instruction
A line in the Dockerfile doesn’t start with a valid instruction — usually a broken line continuation or a typo.
Apache: AH00526: Syntax error on line 12 of /etc/apache2/sites-enabled/site.conf: Invalid command 'Foo', perhaps misspelled or defined by a module not included in the server configuration
Apache's config has a syntax problem or a directive from a module that isn't loaded.
Nginx: nginx: [emerg] directive "proxy_pass" is not terminated by ";" in /etc/nginx/sites-enabled/app:15
A directive's arguments run into the next line because the `;` is missing (or a quote is unbalanced).
Nginx: nginx: [emerg] unexpected end of file, expecting ";" or "}" in /etc/nginx/conf.d/site.conf:42
The config ends while a block or directive is still open — a missing `}` or `;`.
script.sh: line 12: DB_HOST: unbound variable
`set -u` stops on an undefined variable.
fatal: bad config line 12 in file /home/user/.gitconfig
A Git config file has invalid syntax.
fatal: bad boolean config value 'yes please' for 'core.filemode'
A boolean Git setting has an invalid value.
"/tmp/crontab.abc":3: bad minute errors in crontab file, can't install. Do you want to retry the same edit?
The crontab syntax is invalid.
sudo: parse error in /etc/sudoers near line 25 sudo: no valid sudoers sources found, quitting
A broken sudoers file blocks sudo entirely.
bash: ./script.sh: Permission denied
The script isn't executable or lives on a noexec mount.
-bash: ./script.sh: /usr/bin/python3\r: bad interpreter: No such file or directory
The shebang has a wrong path or CRLF line endings.
line 8: [: too many arguments
An unquoted variable expanded to several words or nothing.
Two steps away (33)
PHP Parse error: syntax error, unexpected …
PHP can’t parse the file because of a syntax mistake — the real error is often on the line before the one reported.
IndentationError: unexpected indent / expected an indented block
Python’s block structure is broken — inconsistent indentation or mixed tabs and spaces.
npm ERR! code ELIFECYCLE / Command failed with exit code 1
An npm script (build, start, test, postinstall) exited with an error. ELIFECYCLE is only the wrapper — the real error is printed…
Apache: AH00558: apache2: Could not reliably determine the server's fully qualified domain name
A harmless startup warning: Apache has no global ServerName, so it guessed one from the host’s IP.
Apache: AH02240: Server should be SSL-aware but has no certificate configured / SSLCertificateFile: file '/etc/ssl/x.crt' does not exist or is empty
Apache cannot find the certificate or key file named in its configuration, or `SSLEngine on` is set without any certificate.
Apache: [ssl:warn] AH01909: example.com:443:0 server certificate does NOT include an ID which matches the server name
Apache's SSL virtual host name does not match any name inside the certificate it loads.
Nginx: nginx: [emerg] unknown directive "x" in /etc/nginx/sites-enabled/x:12 — configuration file test failed
Nginx found a directive it doesn’t know — a typo, a missing semicolon on the previous line, a directive from a module that isn’t…
Nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/sites-enabled/default:3
A server block listens with `ssl` but has no `ssl_certificate` and `ssl_certificate_key`.
Nginx: nginx: [emerg] duplicate location "/" in /etc/nginx/sites-enabled/default:52
Two `location` blocks with the same match exist in one server block (often from two included files).
Nginx: nginx: [warn] conflicting server name "example.com" on 0.0.0.0:80, ignored
Two server blocks listen on the same port with the same `server_name`; the second is ignored.
Nginx: nginx: [emerg] open() "/etc/nginx/snippets/fastcgi-php.conf" failed (2: No such file or directory) in /etc/nginx/sites-enabled/app:20
The config includes a file (snippet, certificate, ssl option file) that doesn't exist.
Nginx: nginx: [error] invalid PID number "" in "/run/nginx.pid" (when running nginx -s reload)
Nginx can't signal the master process because the PID file is empty, stale or missing.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/main/binary-amd64/Packages.gz Hash Sum mismatch Hashes of expected file: SHA256:...
The downloaded index doesn't match its checksum.
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1234 (unattended-upgr)
Another apt/dpkg process is running.
The following packages have been kept back: linux-generic linux-headers-generic 0 upgraded, 0 newly installed
apt won't upgrade some packages automatically.
fatal: not a git repository (or any of the parent directories): .git
You ran a Git command outside a Git working tree.
Author identity unknown *** Please tell me who you are.
Git doesn’t know your name and email for commits.
error: There was a problem with the editor 'vi'. Please supply the message using either -m or -F option.
Git couldn't open your configured editor to collect a message or todo list.
OpenSSL: Can't open openssl.cnf for reading / error loading config file
OpenSSL can't find or parse its configuration file, so `req`, `ca` or `x509` commands abort.
nginx: [emerg] SSL_CTX_set_cipher_list("...") failed — invalid ssl_ciphers string
The `ssl_ciphers` value contains a cipher or syntax OpenSSL doesn't accept, so nginx won't load the config.
ERROR: Permission to org/repo.git denied to other-user.
SSH offers the wrong key, so GitHub sees another account.
Certbot: Another instance of Certbot is already running
A previous certbot process (or cron/systemd timer) holds the lock file, so a new run refuses to start.
/usr/sbin/cron: Operation not permitted
cron lacks Full Disk Access.
(behavior) timer is active but service never triggers
The timer isn't scheduled as you expect.
user is not in the sudoers file. This incident will be reported.
Your account isn’t allowed to use sudo.
sudo: unable to resolve host <hostname>: Name or service not known
The machine’s hostname isn’t in /etc/hosts (or DNS), so sudo prints this warning — usually after changing the hostname.
sudo: a password is required (pam_tid.so removed)
macOS updates overwrite `/etc/pam.d/sudo`.
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
The docker CLI can’t talk to the Docker engine — it isn’t running, or your user can’t access the socket.
FATAL: data directory "/var/lib/postgresql/data" has invalid permissions — Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).
PostgreSQL refuses to start because the data directory is too open or owned by the wrong user.
exec /entrypoint.sh: permission denied (container won't start)
The entrypoint or command isn’t marked executable inside the image, or it’s on a volume mounted noexec.
cannot execute binary file: Exec format error
The program was built for a different CPU architecture or OS — e.g. an x86_64 binary on an ARM machine (Raspberry Pi, Graviton, A…
PEM routines: bad end line / no start line — Windows CRLF line endings or truncated PEM file
OpenSSL can't parse a PEM file because it has Windows line endings, missing newlines or a damaged BEGIN/END line.
/usr/bin/env: 'bash\r': No such file or directory
A shell script has Windows line endings, so the interpreter name includes a carriage return.