Troubleshooting¶
Getting more detail¶
- Plugin side: turn on Help → Debug Output Logging in Zotero, repeat
the conversion, then View Output. The plugin's lines start with
[zotero-docling]or[Docling/…]. They include the transport used (transport=sync/async) and, for page markers, why page numbers were left out. - Server side: watch the terminal where docling-serve runs. docling-serve
hides the cause of failed conversions unless started with
DOCLING_SERVE_DEBUG_ERROR_DETAILS=true.
Connection¶
"docling-serve isn't running — start it and retry"¶
The check before the batch (GET /health) failed. Start docling-serve, or
fix Server URL, then click Test Connection to confirm.
Test Connection errors¶
| Message | Meaning |
|---|---|
Server URL is empty |
Enter a URL. |
Invalid URL — missing scheme? Try http://… |
Add http:// or https://. |
Unsupported scheme "…" — use http or https |
Only http and https work. |
Server URL must not include a username or password … |
Move the credential to Auth. |
Server URL must not include a query string or #fragment |
Remove ?… or #…. |
HTTP 401 / HTTP 403 |
The server or a proxy wants a credential. Check Auth. |
HTTP 404 |
Wrong address or base path; the URL plus /health must reach docling-serve. |
Unexpected /health body: … |
Something answered, but not docling-serve (often a proxy login page). |
Timed out after … waiting for /health |
No answer within Connection check. The server may be busy loading models. |
HTTP 401 after downgrading from 0.6.0¶
0.6.0 moves the docling-serve credential from prefs into Zotero's login manager. 0.5.x and 0.4.x don't look there, so they send requests without it. Re-enter the credential in the older version's preferences.
Conversions¶
HTTP 504, or failures on long PDFs with the sync endpoint¶
docling-serve's sync endpoint gives up after DOCLING_SERVE_MAX_SYNC_WAIT
(120 s by default) and answers 504. Time a PDF spends queued counts too.
Turn on Use the async endpoint in Advanced → Async transport. If you'd
rather stay on sync, raise DOCLING_SERVE_MAX_SYNC_WAIT on the server and
Sync conversion in the plugin to match.
"Timed out after … — docling-serve may still be processing this PDF"¶
One of the plugin's timeouts ran out. The message names the setting to raise. The server keeps converting regardless.
"Async task exceeded maxWait (… min) — server-side task may still be running"¶
The async conversion took longer than Max wait (240 minutes by default). Raise it, or set 0 for no limit.
"docling-serve appears unresponsive — async task may have failed"¶
Shown once after about ten status checks in a row failed (server crashed, network or proxy errors). The plugin keeps trying until Max wait. Check the docling-serve terminal.
Poll HTTP 404¶
The server no longer knows the task. Most often docling-serve was started with
--workers (or UVICORN_WORKERS) above 1, so the status check reached a
different process; use DOCLING_SERVE_ENG_LOC_NUM_WORKERS instead. A server
restart during the conversion has the same effect.
"The conversion failed on the server; docling-serve hides the details — check its log."¶
Added to errors containing Task result not found, which docling-serve 1.36
returns for a failed sync conversion. The real cause is in the docling-serve
log, or in the response once DOCLING_SERVE_DEBUG_ERROR_DETAILS=true is set.
Errors with the remote vision API on¶
See Remote vision APIs → When a conversion fails.
Apple Silicon: MPS Tensor to float64¶
If conversion fails on an Apple Silicon Mac and the docling-serve log ends with:
TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS
framework doesn't support float64. Please use float32 instead.
it's an upstream bug between the transformers RT-DETRv2 layout model and
PyTorch's MPS backend. The plugin adds a hint to the error ("Apple Silicon MPS
bug — restart docling-serve with PYTORCH_ENABLE_MPS_FALLBACK=1") when the
message contains both MPS and float64. Fix it on the server:
# Fastest: send unsupported MPS operations to the CPU
PYTORCH_ENABLE_MPS_FALLBACK=1 docling-serve run
# Or run the layout stage on the CPU entirely
DOCLING_PIPELINE_OPTIONS_ACCELERATOR_OPTIONS_DEVICE=cpu docling-serve run
Older docling-serve versions spell the second variable differently; check
docling-serve --help | grep -i accel.
advancedJson preference is not valid JSON / advancedJson must be a JSON object¶
Fix or clear Advanced → Advanced JSON. Every conversion fails until it parses as a JSON object.
Server returned empty md_content¶
docling-serve reported success but sent no Markdown. Check the server log;
try converting the PDF in docling-serve's own UI at /ui.
Skipped PDFs¶
The batch summary lists the reasons.
| Reason | What to do |
|---|---|
Markdown attachment already exists |
Expected with Skip items that already have a Markdown attachment. Use Re-convert to replace. |
Not a locally-stored PDF attachment with a parent item |
Create a parent item for the PDF, or download the file if it hasn't synced. |
No output target — enable attachToItem or set exportFolderPath |
Turn on Attach the .md… or set an export folder. |
Already converting |
The same PDF is already in another running batch. |
Stopped before it started |
You chose Stop after the PDFs in progress. |
Busy messages¶
Conversions and Remove Images never run at the same time. One manual conversion batch runs at a time; auto-convert can run alongside it.
- "A conversion batch is already running — wait for it to finish"
- "Auto-convert is running (or checking the server) — try again in a moment"
- "Remove Images is running — try again in a moment"
Still stuck?¶
Open an issue with your Zotero, plugin and docling-serve versions, the error text, and the relevant debug output.