n8n - 💡(How to fix) Fix Docker SQLITE_IOERR: disk I/O error

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

SQLITE_IOERR: disk I/O error

There was an error running database migrations SQLITE_IOERR: disk I/O error

SQLITE_IOERR: disk I/O error

There was an error running database migrations SQLITE_IOERR: disk I/O error There was an error running database migrations SQLITE_IOERR: disk I/O error

Code Example

No encryption key found - Auto-generating and saving to: /home/node/.n8n/config
Initializing n8n process
n8n ready on ::, port 5678
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
There was an error running database migrations
SQLITE_IOERR: disk I/O error

---

No encryption key found - Auto-generating and saving to: /home/node/.n8n/config
Initializing n8n process
n8n ready on ::, port 5678
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
There was an error running database migrations
SQLITE_IOERR: disk I/O error

---

Windows 10 Docker

---

docker run -dit --name n8n -p 5678:5678 \
  -v ~/n8n_work/home:/home/node \
  -v ~/n8n_work/n8n-files:/home/node/.n8n-files \
  -v ~/n8n_work/root:/home/node/.n8n \
  -v ~/n8n_work/n8n_zh_cn:/usr/local/lib/node_modules/n8n/node_modules/n8n-editor-ui/dist \
  -e N8N_SECURE_COOKIE=false \
  -e N8N_DEFAULT_LOCALE=zh-CN \
  -e N8N_RESTRICT_FILE_ACCESS_TO=/home/node/.n8n-files:/home/node \
  -e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false \
  --privileged \
  n8n

---

docker run -dit --name n8n -p 5678:5678 \
  -v ~/n8n_work/home:/home/node \
  -v ~/n8n_work/n8n-files:/home/node/.n8n-files \
  -v ~/n8n_work/root:/home/node/.n8n \
  -v ~/n8n_work/n8n_zh_cn:/usr/local/lib/node_modules/n8n/node_modules/n8n-editor-ui/dist \
  -e N8N_SECURE_COOKIE=false \
  -e N8N_DEFAULT_LOCALE=zh-CN \
  -e N8N_RESTRICT_FILE_ACCESS_TO=/home/node/.n8n-files:/home/node \
  -e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false \
  --privileged \
  n8n

### Debug Info

+ logs
RAW_BUFFERClick to expand / collapse

Bug Description

SQLITE_IOERR: disk I/O error

  • logs
No encryption key found - Auto-generating and saving to: /home/node/.n8n/config
Initializing n8n process
n8n ready on ::, port 5678
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
There was an error running database migrations
SQLITE_IOERR: disk I/O error
  • Checkout

Docker Volume should not be the only option, which is inconvenient for file management.

To Reproduce

SQLITE_IOERR: disk I/O error

  • logs
No encryption key found - Auto-generating and saving to: /home/node/.n8n/config
Initializing n8n process
n8n ready on ::, port 5678
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
Database connection timed out
There was an error running database migrations
SQLITE_IOERR: disk I/O error
  • Sys info
Windows 10 Docker
  • Exec
docker run -dit --name n8n -p 5678:5678 \
  -v ~/n8n_work/home:/home/node \
  -v ~/n8n_work/n8n-files:/home/node/.n8n-files \
  -v ~/n8n_work/root:/home/node/.n8n \
  -v ~/n8n_work/n8n_zh_cn:/usr/local/lib/node_modules/n8n/node_modules/n8n-editor-ui/dist \
  -e N8N_SECURE_COOKIE=false \
  -e N8N_DEFAULT_LOCALE=zh-CN \
  -e N8N_RESTRICT_FILE_ACCESS_TO=/home/node/.n8n-files:/home/node \
  -e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false \
  --privileged \
  n8n

Expected behavior

  • Exec
docker run -dit --name n8n -p 5678:5678 \
  -v ~/n8n_work/home:/home/node \
  -v ~/n8n_work/n8n-files:/home/node/.n8n-files \
  -v ~/n8n_work/root:/home/node/.n8n \
  -v ~/n8n_work/n8n_zh_cn:/usr/local/lib/node_modules/n8n/node_modules/n8n-editor-ui/dist \
  -e N8N_SECURE_COOKIE=false \
  -e N8N_DEFAULT_LOCALE=zh-CN \
  -e N8N_RESTRICT_FILE_ACCESS_TO=/home/node/.n8n-files:/home/node \
  -e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false \
  --privileged \
  n8n

### Debug Info

+ logs

No encryption key found - Auto-generating and saving to: /home/node/.n8n/config Initializing n8n process n8n ready on ::, port 5678 Database connection timed out Database connection timed out Database connection timed out Database connection timed out Database connection timed out Database connection timed out Database connection timed out Database connection timed out There was an error running database migrations SQLITE_IOERR: disk I/O error


### Operating System

Windows 10 Docker

### n8n Version

2.19.5

### Node.js Version

Docker

### Database

SQLite (default)

### Execution mode

main (default)

### Hosting

n8n cloud

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

  • Exec
docker run -dit --name n8n -p 5678:5678 \
  -v ~/n8n_work/home:/home/node \
  -v ~/n8n_work/n8n-files:/home/node/.n8n-files \
  -v ~/n8n_work/root:/home/node/.n8n \
  -v ~/n8n_work/n8n_zh_cn:/usr/local/lib/node_modules/n8n/node_modules/n8n-editor-ui/dist \
  -e N8N_SECURE_COOKIE=false \
  -e N8N_DEFAULT_LOCALE=zh-CN \
  -e N8N_RESTRICT_FILE_ACCESS_TO=/home/node/.n8n-files:/home/node \
  -e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false \
  --privileged \
  n8n

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

n8n - 💡(How to fix) Fix Docker SQLITE_IOERR: disk I/O error