In Overleaf, if you're seeing the message:
"A previous compile is still running. Please wait a minute and try compiling again."
it usually means that Overleaf thinks a compile process is still active (possibly due to a crash or timeout), even though it might not actually be running anymore.
Here are steps you can take to cancel the current compile and start fresh:
✅ 1. Wait a Minute
Sometimes this message appears temporarily. Just wait 30–60 seconds and then click Recompile again.
✅ 2. Force Stop the Compile (if possible)
If the message persists and you see a "Stop" button (usually a red square) during compilation, click it to stop the current compile job.
Then click Recompile again.
✅ 3. Clear Aux Files / Recompile from Scratch
To force a clean recompile (similar to deleting .aux, .log, etc., in local LaTeX editors):
Option A: Use "Clear Cached Files"
- Click on the menu icon (≡) in the top-left of the file menu.
- Select "Clear cached files".
- Then click Recompile.
This will remove auxiliary files and start fresh.
Option B: Use the "Recompile from scratch" Tool
If you're using Overleaf v2 (not the older Classic version), you can use the built-in tool:
- Go to the Menu (≡) > Compiler section.
- Click "Recompile from scratch".
This will:
- Save your project.
- Stop any current compilations.
- Delete all cached build files (
.aux, .log, .pdf, etc.).
- Start a fresh compile.
✅ 4. Close and Reopen the Project (Advanced)
If nothing else works:
- Close the project tab/browser window.
- Reopen the project from your Overleaf dashboard.
- Try compiling again.
This sometimes resets the session state.
✅ 5. Contact Support (Last Resort)
If the problem continues for more than an hour, there may be a server-side issue. You can report it via:
- Menu (≡) > Help > Contact Support
Summary of Best Actions:
| Action | Purpose |
|---|
| Wait | Let the previous compile finish naturally |
| Stop Compile | If currently running |
| Clear Cached Files | Remove old aux files |
| Recompile from Scratch | Built-in clean compile option |
| Close & Reopen | Reset session state |
Let me know if you'd like help checking for stuck processes or debugging why compiles keep hanging!