Skip to content

Commit 4874657

Browse files
committed
[DOCS] Document webp:diagnose command
1 parent 4b771fd commit 4874657

2 files changed

Lines changed: 67 additions & 0 deletions

File tree

Documentation/Administrator/Index.rst

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,42 @@ CloudFront, etc.), the ``Accept``-header rewrite has to be done at the edge —
163163
e.g. a CloudFront Function on viewer request, a Cloudflare Worker, or an
164164
origin proxy. The extension only writes the sibling on the storage; choosing
165165
which file to serve per request is the edge's job.
166+
167+
168+
Diagnosing your installation
169+
----------------------------
170+
171+
The ``webp:diagnose`` CLI command walks the full WebP delivery chain
172+
end-to-end and points at the first failing link.
173+
174+
.. code-block:: bash
175+
176+
vendor/bin/typo3 webp:diagnose # health check
177+
vendor/bin/typo3 webp:diagnose --url=https://example.com # also probe webserver delivery
178+
vendor/bin/typo3 webp:diagnose --file=42 # also investigate one file
179+
180+
It reports:
181+
182+
- Storages: mode, driver, sibling count, plus phantom rows with
183+
unregistered drivers.
184+
- Converter: class, binary availability, parameter parsing.
185+
- Async pipeline: queue size, age, scheduler task state.
186+
- Failed-conversion cache: total, recent rows, dominant config hash.
187+
- Delivery probe (``--url=…``): two ``Accept`` HEADs + ``Vary: Accept``.
188+
- File deep dive (``--file=<uid>``): metadata + both sibling tables +
189+
failed-attempts rows.
190+
191+
.. note::
192+
193+
The probe runs from this machine. CDN behaviour at the edge can differ
194+
from what we observe locally. Run the probe from a host inside your
195+
CDN's pull zone for the most accurate read.
196+
197+
Useful flags:
198+
199+
``--insecure``
200+
Disable TLS certificate verification on the HTTP probe -- for
201+
self-signed or otherwise untrusted certs.
202+
203+
``--probe-timeout=<sec>``
204+
HTTP probe timeout (default: 10).

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,34 @@ Or open the URL in a browser and check the response headers in the developer too
426426

427427
![Response headers showing image/webp](Resources/Public/Documentation/headers.png)
428428

429+
## Diagnosing your installation
430+
431+
The `webp:diagnose` CLI command walks the full WebP delivery chain end-to-end and points at the first failing link.
432+
433+
```bash
434+
vendor/bin/typo3 webp:diagnose # health check
435+
vendor/bin/typo3 webp:diagnose --url=https://example.com # also probe webserver delivery
436+
vendor/bin/typo3 webp:diagnose --file=42 # also investigate one file
437+
```
438+
439+
It reports:
440+
441+
- Storages: mode, driver, sibling count, plus phantom rows with unregistered drivers.
442+
- Converter: class, binary availability, parameter parsing.
443+
- Async pipeline: queue size, age, scheduler task state.
444+
- Failed-conversion cache: total, recent rows, dominant config hash.
445+
- Delivery probe (`--url=…`): two `Accept` HEADs + `Vary: Accept`.
446+
- File deep dive (`--file=<uid>`): metadata + both sibling tables + failed-attempts rows.
447+
448+
**Honest limits:** the probe runs from this machine. CDN behaviour at the edge can differ from what we observe locally. Run the probe from a host inside your CDN's pull zone for the most accurate read.
449+
450+
Useful flags:
451+
452+
| Flag | Purpose |
453+
|---|---|
454+
| `--insecure` | Disable TLS certificate verification on the HTTP probe — for self-signed or otherwise untrusted certs |
455+
| `--probe-timeout=<sec>` | HTTP probe timeout (default: 10) |
456+
429457
## Troubleshooting
430458

431459
Every conversion problem is logged to TYPO3's log (`var/log/typo3_*.log` by default). Start there.

0 commit comments

Comments
 (0)