Guide · VASP · SLURM · 23 min read
What do VASP's error messages mean, and what should I try?
Checked against the docs · VASP forum and VASP wiki and SLURM 26.05 · Last checked 12 November 2026 · Spot a mistake? Tell us
Short answer
Find the whole message first, in the job's output file (VASP's standard output; on SLURM slurm-<jobid>.out unless your script names another) and in OUTCAR. Then sort it: an input error stops VASP at once, before the first electronic step; ZBRENT, BRMIX, EDDDAV, Sub-Space-Matrix and NELM trouble come from the ionic or electronic loop mid-run; SGRCON and POSMAP from symmetry. Change one thing at a time, and check the VASP wiki's Known issues page for your version. The wiki explains only some of these messages; this page says which.
Where does VASP write its errors?
In its standard output. VASP prints its progress, warnings and errors to the screen, which the wiki calls the standard output (stdout). On a cluster, nobody is watching the screen: the scheduler writes it to a file. On SLURM, the sbatch documentation says that by default both standard output and standard error go to one file, slurm-%j.out, where %j is the job id; the --output and --error options in your job script send them elsewhere, and --error alone splits the error stream into its own file. Errors from the job script itself (a file it could not copy, a module that would not load) and from the MPI launcher land in the same place.
In OUTCAR. VASP's main log repeats the warnings, with your settings and the full detail of every step. The wiki's Terminal output page advises checking the stdout or OUTCAR for warnings after every calculation, finished or not: "Often a small oversight can lead to plausible, but incorrect results."
In OSZICAR. The short log of every electronic and ionic step. It carries no error text, but it shows where the run was when it stopped: in the first electronic loop, or after many ionic steps.
To find the message, look at the end of the output file and search it:
tail -n 40 slurm-123456.out
grep -n -i -E "error|warning|bad news" slurm-123456.out(123456 stands for your job id.) Read the whole block around the line, not only the line: VASP frames its messages in boxes, and the box says what it wanted.
A box of E's is an error that stops VASP. The Terminal output page's example is a tag with the wrong kind of value:
-----------------------------------------------------------------------------
| EEEEEEE RRRRRR RRRRRR OOOOOOO RRRRRR ### ### ### |
| ... |
| Error reading item KPAR from file INCAR. |
| Error code was IERR= 5 ... . |
| |
| ----> I REFUSE TO CONTINUE WITH THIS SICK JOB ... BYE!!! <---- |
-----------------------------------------------------------------------------A box of W's is a warning. VASP carries on. The wiki's examples are a missing KPOINTS file (VASP falls back on a coarse automatic mesh) and a magnetic run without MAGMOM (every atom starts at 1, ferromagnetic). A run that carries on after a warning can finish with numbers that look reasonable and are wrong, which is why the wiki asks you to read them. The Setting up an electronic minimization page adds that some warnings sit in the header of the screen output, so keeping that output in a file makes troubleshooting much easier.
What kinds of error are there?
Where the run was when it stopped tells you most of what you need. Open OSZICAR and the end of the output file together.
| When it stopped | What kind it usually is | Where to look first |
|---|---|---|
Before the first electronic step (no DAV: or RMM: lines yet) | An input error: a file missing or unreadable, a tag VASP could not read | The error box, then the file it names |
| In the first electronic loop | The electronic setup: the starting structure, the bands, the algorithm, the mixing | The electronic steps in OSZICAR, then the structure |
| After several ionic steps | The relaxation or the dynamics: the ionic loop, or an electronic loop that broke as the atoms moved | The last ionic steps and the last structure in CONTCAR |
| No error, but no "reached required accuracy" | The run hit NSW, NELM or the walltime | How do I fix a relaxation that won't converge? |
Before a long run, you can catch input errors early: the wiki's Setting up an electronic minimization page suggests a dry run, which validates the settings and uncovers possible errors without spending the computing time, and prints warnings for setup mistakes such as a POSCAR and POTCAR in different orders. The wiki's example uses VASP 6.5.0; an older version may not have the option.
/path/to/vasp_std --dry-runWhat should I try first, whatever the message?
The VASP wiki's general advice, from its Troubleshooting electronic convergence and Structure optimization pages, works for most of the messages below. Start here, in this order:
| Step | What to do | Why |
|---|---|---|
| 1 | Read the whole message and note where the run was (the table above) | The same routine name can come from different causes at different points. |
| 2 | Check the structure: the atoms where you meant them, no two far too close | The relaxers find the closest minimum to the start, and need the start close enough to work. |
| 3 | Simplify the INCAR to the fewest tags that describe the run, and add tags back one at a time | The wiki's first troubleshooting step; it finds the tag that breaks the run. |
| 4 | Change one thing per run | Otherwise you cannot tell which change helped. |
| 5 | Check the wiki's Known issues page and Changelog for your version | Some failures are bugs, with a workaround listed or a fix in a newer release. |
What it depends on:
- Where the run stopped. An error at the start is in the inputs; one after many ionic steps is in the run's path.
- Your VASP version. VASP prints it in the first lines of the output (
vasp.6.4.3 ...); the Known issues page lists bugs by the version they were first noticed and fixed in. - The material. Metals, large cells, slabs and magnetic systems strain the electronic loop more than a small insulator does.
What does each message mean, and what should I try?
The wiki does not print most of these messages. Each heading below is the part of the message to look for in a job's output; the full wording can differ between versions. Where the wiki explains a message or its fix, this section says so; where it does not, it says that too, and what it gives instead comes from the wiki's general advice or the VASP team's forum answers.
Error reading item … from file INCAR
What it means. A tag in the INCAR has a value of the wrong kind: a word where VASP wants a number, a number where it wants .TRUE. or .FALSE., a stray character. The Terminal output page says incorrect use of an INCAR tag makes VASP terminate immediately, with this message naming the tag.
What to try. Open the INCAR, find the tag the message names, and correct its value against the tag's page on the wiki. The error code tells you nothing more useful than the tag name does.
POTCAR not found (No such file or directory)
What it means. The job could not find or build POTCAR, the file of potentials, one per element. The POTCAR page calls it a mandatory input file, so VASP cannot start without it. The words usually come from the job script or the shell, not from VASP, so they vary with how your script builds the file.
What to try. Check that the path to your group's potential library is right on this cluster, and that each potential name your script asks for exists there (ls the folder). The Preparing a POTCAR page shows how the file is built: the potentials concatenated with cat, in the order of the species in POSCAR.
POSCAR and POTCAR do not match
What it means. The species in POSCAR and the potentials in POTCAR disagree. The POTCAR and POSCAR pages say the potentials must come in the same order as the species in POSCAR. The Preparing a POTCAR page adds a warning that matters here: if the species names are given in POSCAR and the order differs, VASP prints a warning and still runs, and it calls a mismatched order "a common mistake". So the most dangerous version of this mistake is not an error at all. The wiki does not say what VASP prints when the number of species differs between the two files, or whether it stops, so do not count on a message: compare the species VASP lists at the top of the output with your POSCAR.
What to try. Rebuild POTCAR in the order of the species line in POSCAR. Keep the species names in POSCAR, so that VASP can warn you, and read the warnings at the top of the output. The first lines of the output name the species VASP found (POSCAR found type information on POSCAR ...).
ENCUT is below what the POTCARs need
What it means. The cutoff energy is below the largest ENMAX in the potentials, the cutoff each potential is designed for. The ENCUT page recommends always setting ENCUT yourself and checking convergence with respect to it. The wiki does not say whether VASP warns or stops when the cutoff is below ENMAX, so do not wait for a message: compare your ENCUT with the largest value grep ENMAX POTCAR prints before you submit.
What to try. Raise ENCUT to at least the largest ENMAX (grep ENMAX POTCAR), and higher when the cell changes; What cutoff energy should I use? explains how far.
Too few k-points for the tetrahedron method
What it means. The tetrahedron method (ISMEAR = -5 and its relatives) needs at least 4 k-points to form a tetrahedron, as the wiki's Smearing technique page says, and the ISMEAR page asks for a Γ-centered mesh with any tetrahedron method.
What to try. Use a denser Γ-centered mesh, or Gaussian smearing (ISMEAR = 0) for this run, for example a large cell at the Γ point alone. Which smearing should I use? has the choices.
An electronic step did not converge (NELM reached)
What it means. An electronic loop ran its full NELM steps (60 by default) without the energy settling to EDIFF. In OSZICAR, an ionic step whose last electronic line is numbered NELM shows it. The NELM page says that a loop that has not converged within 40 steps will probably not converge at all.
What to try, in the order of the wiki's Troubleshooting electronic convergence page:
- Simplify the
INCARand add tags back one at a time. - Check the smearing: with partially filled states, the wiki says
ISMEAR = -1or1. - Check
NBANDS: the highest bands inOUTCARshould be empty. - Switch
ALGO; the ALGO page callsALGO = Allthe appropriate choice for magnetic systems and systems whereALGO = Normalfailed. - Tune the mixing (
AMIX,BMIX) if the density is sloshing.
The NELM page points to ALGO and the mixing rather than a higher NELM. The whole procedure, with how to read the electronic steps, is in How do I fix a relaxation that won't converge?
BRMIX: very serious problems
What it means. The wiki has no page on this message. The VASP wiki's Electronic minimization page says VASP mixes each new charge density with the old one, by default with a Broyden mixer, so a routine with this name is likely in the mixing step of the electronic loop. The wiki does not say what causes this message, so start from the mixer: the steps below are the wiki's fixes for a mixing that will not settle.
What to try. The wiki's own advice for a mixer that will not settle, from the Troubleshooting electronic convergence, Charge sloshing, AMIX and MAXMIX pages, is to change one thing at a time: mix more slowly (a smaller AMIX), try linear mixing (BMIX = 0.0001, and BMIX_MAG = 0.0001 with spin), and reduce MAXMIX; the MAXMIX page also says to remove a positive MAXMIX whenever rms(c) in OSZICAR jumps suddenly. The wiki does not tie these steps to this message, so treat them as things to try one at a time, not a known fix.
EDDDAV: Call to ZHEGV failed
What it means. The wiki has no page on this message. The ALGO page labels the blocked-Davidson algorithm's steps DAV:, so a routine called EDDDAV is likely in the Davidson eigensolver. The VASP team's answers on the forum confirm the rest: the forum's administrator described ZHEGV as a LAPACK routine that "computes all the eigenvalues, and optionally, the eigenvectors of a complex generalized Hermitian definite eigenproblem" (22 April 2005), and a VASP developer called the message "an error of the diagonalization routine" (10 February 2020). The causes they name are a structure that is not reasonable (an unreasonable input geometry, two overlapping atoms in POSCAR, or a relaxation step that brought two atoms too close), a magnetic system run without MAGMOM, and, when the error comes in every calculation, the LAPACK library VASP was built with (23 May 2006; 19 April 2022; and the answers of 2020 and 26 January 2021 in the thread on this error). A dedicated page covers this error: What does EDDDAV: Call to ZHEGV failed mean?
What to try. The VASP developer's 2020 answer: look at the structure, since two atoms can come too close during a relaxation; check that the electronic loops within the ionic loop converged; continue from the structure of the second-to-last ionic step instead of the last; or switch to a different ALGO. The ALGO page recommends ALGO = All for systems where ALGO = Normal failed. The wiki's IALGO page adds that when the blocked-Davidson algorithm has problems, which happens when linear dependencies develop in its search space, decreasing NSIM reduces the rank of that space. The VASP team's answers on this message do not mention NSIM, so whether it helps here is not settled; try their steps above first, and lower NSIM as a separate run if the message stays.
Sub-Space-Matrix is not hermitian
What it means. The wiki has no page on this message. The message itself names the Davidson solver ("in DAV"), and VASP carries on after it. The forum's administrator gave its most common causes in 2006: an input geometry that is not reasonable (the warning comes at the very first ionic step), a last relaxation step that led to an unreasonable geometry, or, if it shows up in all your calculations, a LAPACK library that was not installed properly (23 May 2006). A dedicated page covers it: What does "Sub-Space-Matrix is not hermitian in DAV" mean?
What to try. The VASP team's forum answers: in a relaxation, compare the input and output geometries of the last ionic steps, decrease POTIM ("0.1 seems a reasonable value in most of these cases") and/or try IBRION = 1 (the administrator, 22 April 2005 and 23 May 2006); and try ALGO = All, "usually the most reliable algorithm when it comes to convergence issues" (a Global Moderator, 29 October 2024). The answers give no order; change one thing per run.
TOO FEW BANDS
What it means. VASP needs more bands than it has. The NBANDS page says VASP requires all occupied states plus at least one empty band, and gives a warning otherwise. It also says that for good convergence the iterative algorithms need enough empty bands above the occupied ones, and that the default (about half the number of electrons plus half the number of ions) is safe in most cases, while transition metals with open f shells can need many more (up to half the electrons plus twice the ions). The wiki does not say whether "TOO FEW BANDS" is that warning or a stop; the fix below is the same either way.
What to try. Set NBANDS yourself, above the value VASP reported in OUTCAR. The NBANDS page gives the test for how many is enough: several runs with a fixed potential (ICHARG = 12) and an increasing number of bands, starting from the default; with enough bands, an accuracy of 10⁻⁶ is reached in 10 to 15 iterations. Two more things from the wiki: running in parallel, VASP raises NBANDS on its own so it divides evenly among the cores; and the Known issues page lists a bug (entry dated 22 August 2025; first noticed in VASP 5.4.4, fixed in 6.6.0) where negative MAGMOM values made the default NBANDS too small, "often resulting in too few bands and possible crashes with misleading error messages". Its workaround, for versions before 6.6.0, is to set NBANDS manually.
VERY BAD NEWS! internal error in subroutine SGRCON
What it means. The wiki has no page on SGRCON. The ISYM page describes what VASP does with symmetry: it finds the point group and space group of the structure (and of MAGMOM, the starting magnetic moments), and SYMPREC sets how far apart positions may be and still count as equivalent (default 10⁻⁵). The wiki does not say that SGRCON belongs to this symmetry analysis or what causes the error, so the steps below are the symmetry steps the wiki describes, not a known fix.
Not every "VERY BAD NEWS! internal error" is about symmetry. The Known issues page lists one, internal error in subroutine SGRGEN: Too many elements 49 (entry dated 10 April 2024; VASP 6.4.2 built with the AOCC compiler 4.0 or later without OpenMP, fixed in 6.5.0), that comes from how VASP was compiled, fixed by changing the build; that is a problem for whoever installed VASP on your cluster.
What to try. Check the positions in POSCAR: the wiki's Setting up an electronic minimization page asks for lattice vectors and positions with at least 7 digits so the symmetry analysis works accurately, and the SYMPREC page says a larger SYMPREC tolerates less accurate positions. Turning symmetry off (ISYM = 0) stops VASP using it, so it no longer reduces the k-point mesh to its symmetry-irreducible part. The wiki does not say which to try first for this message, or when turning symmetry off is safe for your results. Fixing the positions changes nothing else about the run, while ISYM = 0 changes the k-points VASP uses, so the positions are the smaller change to make first; if you do turn symmetry off, compare the energy with a run that keeps it.
POSMAP internal error
What it means. The wiki has no page on this message and does not say what it means.
What to try. The wiki gives no fix for this message. Work through the general steps above: check the structure for atoms far too close, simplify the INCAR, and look up your version on the Known issues page. If the message stays, the VASP forum is where the VASP team answers questions like this; post the full message, your version and your input files.
ZBRENT: fatal error
What it means. ZBRENT is in the line search of the conjugate-gradient relaxer (IBRION = 2), which the Structure optimization page says uses a variant of Brent's algorithm. That page says occasional ZBRENT output means the corrector step's error was too large and the line search is being refined; it does not describe the fatal error. The Changelog for VASP 6.6.0 lists a fix: "The ionic CG algorithm (IBRION = 2) for the Brent algorithm determined the bracketing interval improperly." On the VASP forum, a member of the VASP team said on 8 April 2026 that this specific error should be fixed in VASP 6.6, pointing to that entry; in the case discussed, run on VASP 6.3.2, the electronic minimization and the forces had also not converged (VASP forum, 8 April 2026). The wiki and the answer read here name no other causes, so start with the forces: check in OSZICAR that every ionic step's electronic loop converged before NELM. A dedicated page covers this error: What does the ZBRENT error mean?
What to try. Copy CONTCAR to POSCAR and continue from the last structure, as the CONTCAR page describes for an unfinished relaxation. Make the forces more accurate: the EDIFF page recommends EDIFF = 1E-6 for well-converged calculations. The Structure optimization page describes other relaxers too, but the wiki does not say whether switching to one (such as IBRION = 1 near the minimum) should come before or after these steps. The ZBRENT page gives the VASP forum's advice on when to switch, by how close the structure already is to converged. The relaxation guide has the rest: How do I fix a relaxation that won't converge?
Other messages the wiki does document
EDWAV: internal error, the gradient is not orthogonal(withinternal error in: rot.F). The Known issues page lists it as an open bug (entry dated 6 October 2026; first noticed in VASP 6.1.0, not fixed as of 11 November 2026):ALGO = Allstarted from random wavefunctions (ISTART = 0) can stop at the first conjugate-gradient step, usually around the 6th electronic step, more often in large systems. Its workaround: converge withALGO = Normalfirst, then restart withALGO = Allfrom theWAVECAR(ISTART = 1).number of k-points has changed, file: … present: …, printed while reading aWAVECAR. The Terminal output page recommends restarting fromCHGCAR, notWAVECAR, when the number of k-points changes.
How do I know the fix worked?
The run gets past the point where it stopped. For an input error, the output reaches POSCAR, INCAR and KPOINTS ok, starting setup and the first electronic steps.
The electronic loops settle well before NELM. The ALGO page's test: the energy minus its final value should fall roughly exponentially with the electronic step, and rms(c) should fall too. If it bounces, the loop is not fixed, only lucky.
A relaxation ends with its line. reached required accuracy - stopping structural energy minimisation in the output means the forces met EDIFFG.
No warnings you have not read. Search the finished output and OUTCAR for warning, as the Terminal output page advises, and read each box.
What goes wrong when fixing VASP errors?
| Mistake | What you would see | What to do |
|---|---|---|
| Reading only the last line of the output | A routine name and no idea what it wanted | Read the whole box, and note where the run was in OSZICAR. |
| Changing several tags at once | A run that works, or fails differently, with no way to tell why | One change per run, as the wiki's troubleshooting steps do. |
Raising NELM for an electronic loop that bounces | The same failure, later | Change ALGO or the mixing; see the NELM entry above. |
Assuming a POSCAR and POTCAR in different orders would stop VASP | A run that finishes with the wrong potential on each atom; at most a warning | Build POTCAR in POSCAR order and keep the species names in POSCAR. |
| Ignoring the warning boxes because the run finished | Plausible numbers from a coarse automatic k-mesh, or a ferromagnetic start you did not mean | Read every warning in the output and OUTCAR. |
Restarting from a WAVECAR after changing the k-points | The warning number of k-points has changed, and a restart that may fail | Restart from CHGCAR instead, as the wiki recommends. |
| Treating a compiler problem as a physics problem | VERY BAD NEWS! internal error in subroutine SGRGEN: Too many elements 49 whatever the input | Tell whoever built VASP on the cluster; the Known issues page has the build fix. |
When a job's output contains a message Verlet recognizes, Analyze names it in plain words with what usually helps, and Explain this error asks Ask Verlet about it, showing you the exact text before anything is sent. Script & files shows every input file exactly as it will go to the cluster.