Naar inhoud springen

PdfHandler Debugging

Uit CostaSano-Wiki
Versie door Mngr (overleg | bijdragen) op 9 dec 2025 om 19:01 (Nieuwe pagina aangemaakt met '== PdfHandler Troubleshooting: Restart Routine == When adjusting PdfHandler prerequisites (Entware binaries, PATH updates, or MediaWiki configuration), make sure to restart both WebStation and the MediaWiki package. === Steps === # Verify prerequisites are installed and callable: <pre> which gs which pdftoppm which magick </pre> # Restart **WebStation**: <pre> Control Panel → Web Services → WebStation → Restart </pre> # Restart **MediaWiki package**…')
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)

PdfHandler Troubleshooting: Restart Routine

When adjusting PdfHandler prerequisites (Entware binaries, PATH updates, or MediaWiki configuration), make sure to restart both WebStation and the MediaWiki package.

Steps

  1. Verify prerequisites are installed and callable:
which gs
which pdftoppm
which magick
  1. Restart **WebStation**:
Control Panel → Web Services → WebStation → Restart
  1. Restart **MediaWiki package**:
Package Center → Installed → MediaWiki → Restart
  1. Clear cached test files if needed:
rm /volume1/web/mediawiki/images/*.pdf
rm /volume1/web/mediawiki/images/thumb/*.pdf
  1. Upload a fresh PDF and confirm thumbnails are generated.

Notes

  • Restarting WebStation alone may not reload MediaWiki’s environment variables.
  • Restarting MediaWiki ensures new PATH and handler settings are applied.
  • Always document the rationale for successors: “Restart both packages after changes.”