Renduva documentation
Troubleshooting and FAQ
When a document fails, the answer has two parts: an HTTP status with a message for the caller, and one line in the server's log with a fixed reason word. This page lists both, the usual causes, and how to fix them.
Error responses
Every error body is {"error": "<message>", "request_id": "<id>"}. From PL/SQL it arrives as
ORA-20100: renduva: HTTP <status>: <message> (request <id>). The message says what is wrong
and names the tag, field, record or tier involved; it never repeats your data.
| Status | Reason in the log | Typical cause | Fix |
|---|---|---|---|
| 400 | bad_json |
The body is not valid JSON, often a value built by string concatenation without escaping | Build the JSON with json_object in SQL, or your language's JSON library |
| 400 | bad_template |
template is not a valid name (only letters, digits, _, -) or not { "type", "source" }, or the base64 is broken |
Send the stored name without its extension ("invoice"), or standard base64 without a data: prefix |
| 400 | bad_data |
data is a string, a number, or a list holding something other than objects |
Send one object, or a list of objects |
| 400 | bad_request |
output.type or data is missing; the printer takes another type; print.copies is not 1 to 100 |
Add the missing field; leave output.type out when printing |
| 401 | auth |
No Authorization header, a typo in the key, a revoked key, or a keys file the server cannot read |
See 401 with a key that should work |
| 403 | not_licensed |
The template uses a feature, template type, PDF option, printing or APEX data source above the server's tier, or the server runs without a license | Check the tier the message names; see Licensing |
| 403 | too_many_servers |
More servers run on one installation (one data folder) than the license allows | Stop the extra server, or give each server its own data folder and license; see Several servers on one installation |
| 404 | template_not_found |
No file with that name in the templates folder | The message lists the names the server has; check the spelling and the folder |
| 404 | printer_not_found |
No printer with that name, or none set up | renduva printer list; see Printers |
| 409 | bad_template |
Two stored templates share a name, e.g. invoice.docx and invoice.pdf |
Rename or remove one |
| 409 | printer_paper_out, printer_head_open, ... |
The printer cannot print now | Fix the printer and send again; the full list is in Printing |
| 413 | too_large |
The request is above the size limit, 50 MB by default; large pictures and attached PDFs count, in base64 | Make pictures smaller, or raise -max-body (or the admin UI's Settings) |
| 422 | render_failed |
The template and the data do not fit: a tag error, a value of the wrong kind, an unknown locale, an output the template type cannot give, several records for a one-record output, a broken PDF option | Read the message: it names the tag or option. See Errors |
| 500 | converter_failed |
LibreOffice or Chromium is not installed, crashed, or wrote no file | See LibreOffice or Chromium missing |
| 500 | bad_template |
The stored template exists but the server cannot read it (file permissions) | Make the file readable by the server's user |
| 502 | printer_unreachable |
The printer does not answer at its address | Check the address, the network and the printer's power |
| 504 | timeout |
The document took longer than the time limit, 2 minutes by default | Send fewer records per request, or raise -timeout (or the admin UI's Settings) |
The log also shows client_gone (status 499) when the caller gave up while its request was
waiting for a free worker. Nothing was answered; if it happens often, the server has more
work than workers (-workers) or a caller's own timeout is too short.
The request ID
Every answer from /generate, /templates and /printers carries an X-Request-Id header,
and every error body a request_id. The PL/SQL error message ends with it:
ORA-20100: renduva: HTTP 504: the document took longer than the time limit (2m0s) (request 5aaff834a30f715c)
The same ID starts the request's line in the server's log:
generate id=5aaff834a30f715c status=504 reason=timeout key=apex-prod from=docx to=pdf records=1 ms=120004
To find it:
- Admin UI: the Logs page shows the newest lines and finds a request ID or a reason word.
- Log files: one file per day in the
logsfolder (/data/logsin the container,/var/lib/renduva/logswith the RPM), e.g.grep 5aaff834a30f715c logs/renduva-*.log. - Container or service log:
podman logs renduva,docker logs renduvaorjournalctl -u renduva.
The log line holds metadata only: status, reason, API key name, template and output type, number of records and time. Error messages are not logged, because they can quote the template, so keep the message the caller received together with the ID.
The diagnostics bundle
For a support request, attach the diagnostics bundle. Make it on the admin UI's Logs page (Download diagnostics) or from the command line:
renduva support bundle # renduva-diagnostics-<date>.zip
podman exec renduva renduva support bundle -o /data/diagnostics.zip # in the container
It holds the version, platform, LibreOffice version, license state, settings, API key names,
usage totals for this month and last, and the last 1,000 log lines. It holds no key values,
passwords, templates or data. renduva version prints the release alone. Logs, usage and
the admin UI are described in Administration.
401 with a key that should work
- The header. It must be exactly
Authorization: Bearer <key>. In an APEX Web Credential the secret isBearer rdv_..., with the wordBearerand a space, and the credential name isAuthorization. - The key was created as root (RPM). A keys file made by
sudo renduva key createbelongs to root, the service cannot read it, and every request fails with 401. Create keys as the service user, in its folder:cd /var/lib/renduva && sudo -u renduva renduva key create apex-prod. To repair an existing file, give it back to that user (sudo chown renduva: /var/lib/renduva/renduva-keys.txt). - The key was revoked or belongs to another server.
renduva key listshows the names the server knows. A key is shown only once, at creation; if it is lost, create a new one and revoke the old one. - The container. Keys live in the
/datavolume. A key created in one container is not in another container with a different volume.
LibreOffice or Chromium missing
The slim image and the RPM do not include the converters. When a request needs one that the
server cannot find, it fails with 500 and a message such as:
PDF output needs LibreOffice on the Renduva server, and "soffice" is not installed there; see the install guide, "LibreOffice and Chromium"
HTML templates need Chromium on the Renduva server, and "chromium" is not installed there; ...
- Container: run the office image (
localhost/renduva-office), which has both. - RPM: install LibreOffice (see With the RPM). If it is not
on the service's path, give its program with
-sofficein/etc/renduva/renduva.env. - Chromium on RHEL-family systems (from EPEL) is called
chromium-browser: start the server with-chrome chromium-browser. See Requirements.
Word, PowerPoint, Excel, HTML, text, Markdown, ZPL and PNG output need neither program.
PL/SQL network errors
The database makes the HTTP call, so it needs permission to reach the server.
| Error | Cause | Fix |
|---|---|---|
ORA-29273: HTTP request failed with ORA-24247: network access denied by access control list (ACL) |
No network ACL for the Renduva host and port | Grant it, as in Install, to both the schema that owns the package and the APEX schema (APEX_240200 or your release) |
ORA-29273 with ORA-12541 or ORA-12535 |
The host or port is wrong, or a firewall blocks it | Test from the database host, e.g. curl http://renduva.internal:8080/templates (a 401 there means the server is reachable) |
ORA-29273 with ORA-29024: Certificate validation failure |
An https:// server whose certificate the wallet does not trust |
Add the certificate to the wallet APEX uses (Instance Settings → Wallet) |
ORA-20100: renduva: call renduva.set_server first |
No server set in this database session | Call renduva.set_server in an application process (Before Header) or at the start of the job |
The REST and GraphQL data sources of the APEX plug-in reach their own hosts from the database, and need ACLs for those hosts too.
Word authoring quirks
Renduva joins a tag that Word has split into several pieces inside one paragraph (spell check, autocorrect, a formatting change in the middle). These still break a tag:
- A paragraph break inside the tag. A tag must be on one line of one paragraph. The error
names the start of the tag:
a tag starting "{{cust" is split across paragraphs. - Quote marks. Word's curly double quotes (
“…”) work in formats and comparisons, such as{{due | date “DD Mon YYYY”}}. German„…“, French«…»and single quotes do not; type straight quotes, or change AutoCorrect's quote setting. - Capital letters. Names are case-sensitive: a field that Word or a typo turned into
{{Customer}}reads another field and prints nothing. Undo the change (Ctrl+Z right after AutoCorrect) or fix the case. - Text boxes, footnotes and comments. Tags work in the body, tables, headers and footers. Move them out of text boxes, footnotes, endnotes and comments.
- Picture alt text. The tag must be the whole alt text, in the Description field (older Word versions also show a Title field). Ticking Mark as decorative removes the alt text, and with it the tag.
- A tag's look. A value takes the formatting of the tag's first character. If the first brace is bold and the rest is not, the whole value is bold.
The full list of tag errors is in Errors.
FAQ
Do I need Microsoft Office on the server? No. Renduva fills Word, PowerPoint and Excel files itself, and LibreOffice turns them into PDF. You need Word, PowerPoint or Excel only to design the templates.
Does my data leave my network? No. The server runs on your machine and makes no connection to us; the license file is checked on the server, without internet access. HTML templates cannot load anything from the network, and label previews are drawn by Renduva itself. The only outside connections are the ones you set up: printers you name, and REST or GraphQL sources in the APEX plug-in.
Can I use it without APEX?
Yes. Any program that can make an HTTP request can call the HTTP API. The
PL/SQL package uses APEX_WEB_SERVICE, so it needs APEX installed in the
database, but not an APEX application: it works from scheduler jobs and plain PL/SQL.
How do I repeat a table's header row on every page?
With Word's own setting: select the header row, open Table Properties → Row, and tick
Repeat as header row at the top of each page. Renduva leaves the setting as it is, and
LibreOffice repeats the row in the PDF. Keep the header row outside the {{#items}} loop.
How do I get page numbers, or "Page 2 of 5"? Insert Word's own page number fields in the header or footer. Renduva does not touch them. With several records in one PDF, each record has its own numbering.
How do I put a month of invoices in one PDF?
Send data as a list, one object per invoice. Each one starts on a new page; see
PDF output.
Can I get one Word file with several records? No. Word output takes one record. Call once per record, or ask for PDF.
Why does a field print nothing? Its name is not in the data, is spelled with a different case, or its value is null. Oracle's JSON functions leave null columns out by default; a missing field prints nothing rather than failing. Check the JSON your query returns.
Why does 1234.5 not print as 1,234.50?
Values print exactly as sent. Add a format to the tag, {{total | number 2}}, and the
request's locale decides the separators; see Formats and totals.
Why do the fonts or line breaks differ in the PDF? The server lacks the font the template uses, so LibreOffice substitutes one. See Fonts.
Can I keep templates in my database?
Yes. Send the template with each request: renduva.generate takes it as a BLOB, and the APEX
plug-in reads it from a static file or a SQL query. Templates can also be stored on the server,
in its templates folder.
Do changes to templates, keys or the license need a restart?
No. Stored templates and API keys are read on every request, and a new license.json applies
to the next request.
How long and how large can a request be?
By default 2 minutes and 50 MB. Both can be changed with -timeout and -max-body, or on the
admin UI's Settings page. Requests beyond the number of workers wait for a free one; there is
no asynchronous API.
Can I print {{ and }} as text?
No. Text between double braces in a template is always read as a tag.
Which tier do I need for a feature?
See Licensing. A request that needs a higher tier fails with 403 and a
message naming that tier, so nothing is silently left out.