89 lines
5.8 KiB
Markdown
89 lines
5.8 KiB
Markdown
# Traviorel on Unraid
|
||
|
||
Optional external MCP service; it is not a dependency of native Athena Deck.
|
||
Provider: https://github.com/lesecuritae/FareWeave (documentation/image labels use the new name Traviorel).
|
||
Version 0.3.2; source revision and actually pulled image digests are recorded in `upstream.json`.
|
||
`compose.yml` is an unchanged upstream snapshot at that revision; `environment.json` records the deployment settings without secrets.
|
||
|
||
## Installation
|
||
|
||
Two provider-published images are required:
|
||
- `ghcr.io/lesecuritae/traviorel-app:latest`
|
||
- `ghcr.io/lesecuritae/traviorel-db-api:latest`
|
||
|
||
Copy both `my-*.xml` files into `/boot/config/plugins/dockerMan/templates-user/`.
|
||
Run `initialize.sh` on the Unraid host once before creating the containers.
|
||
It creates the network and persistent internal token with the provider's own initialization program.
|
||
Then create `traviorel-db-api` and `traviorel-app` from the templates using Unraid's Add Container interface.
|
||
The backend has no published host port; the application exposes container port 8000 at host port 8222.
|
||
The provider's shared Docker network, read-only token mount, non-root users and security settings are retained.
|
||
No application source or OpenWebUI frontend is patched.
|
||
|
||
Addresses:
|
||
- Web interface: http://192.168.1.2:8222
|
||
- MCP: http://192.168.1.2:8222/mcp (Streamable HTTP)
|
||
- Health: http://192.168.1.2:8222/api/health
|
||
|
||
OpenWebUI's existing connection ID `db-timetable` remains stable. The URL is unchanged.
|
||
The new tool names are `search_ground`, `find_station`, `live_delays`, etc.; old tool-name references in task text must be checked separately.
|
||
|
||
## Deliberate configuration adjustment
|
||
|
||
`SEARCH_DEPARTURE_TOLERANCE_MINUTES=0` makes "after 07:21" exclude departures before 07:21.
|
||
The provider default is 15 minutes. Changing this setting does not invalidate existing cached journeys;
|
||
clear only known test entries on a fresh installation or wait for expiry before testing the changed setting.
|
||
|
||
## Credentials and rollback
|
||
|
||
Traviorel's journey search does not consume the old DB Timetables client ID/API key.
|
||
There is no corresponding supported configuration field in this provider version. Do not invent one.
|
||
The previous credentials were preserved privately on Unraid under
|
||
`/mnt/user/appdata/traviorel/legacy-backup/bahn-api-credentials.json` (mode 0600, parent 0700).
|
||
The same directory retains the old container inspection and Unraid XML; these also contain secrets.
|
||
None of those files belongs in Git, chat output or an unencrypted public backup.
|
||
|
||
The old `DB-Timetable-MCP` container and active Unraid XML were deleted at the user's request after another health/backup check.
|
||
Private credentials, inspection data and its XML remain in `legacy-backup`. To roll back, stop `traviorel-app`,
|
||
restore the old XML from the private backup and recreate the old container in Unraid;
|
||
restore its previous restart/autostart settings and the OpenWebUI settings backup if required.
|
||
Both cannot bind port 8222 simultaneously.
|
||
|
||
## Persistence, backup, restore and update
|
||
|
||
Back up `/mnt/user/appdata/traviorel/` privately (state, internal token and legacy credentials), both XMLs,
|
||
and the OpenWebUI data/configuration. Stop the two Traviorel containers while making a filesystem backup,
|
||
or use consistent SQLite backup methods. The internal token directory must remain shared by both containers.
|
||
The OpenWebUI migration backup is `/app/backend/data/settings-backups/traviorel-migration/webui.db`.
|
||
|
||
On a replacement Unraid/Docker host: restore appdata and XMLs, run `initialize.sh` (valid existing tokens are retained),
|
||
then create the backend and application containers. Restore OpenWebUI separately. Inspect health and MCP tools,
|
||
then test a journey with departure/arrival/duration. Update both provider images together and retest.
|
||
The templates track `latest`; the recorded digests document this deployment, not a promise of future compatibility.
|
||
|
||
This external Unraid integration does not alter the Debian native Deck installer. Full fresh-host restoration
|
||
of the combined Unraid/OpenWebUI/Deck installation has not been exercised by this change.
|
||
|
||
## Known quality limits
|
||
|
||
The provider aggregates DB and Transitous. The initial test included very long Transitous detours alongside
|
||
normal direct DB trains; complete results are not automatically useful recommendations.
|
||
`prefer="fastest"` gives the model a short-journey ordering. Verify exact stations and use the actual returned times.
|
||
Documentation/source inspection and live MCP tests do not establish long-term reliability.
|
||
|
||
## Acceptance on 2026-10-07
|
||
|
||
Both provider images were actually pulled and both containers reported healthy.
|
||
MCP initialization from the OpenWebUI container reported `traviorel`, version `0.3.2`, with 12 tools.
|
||
A live `search_ground` for Rastatt to Karlsruhe Hbf on 2026-10-08 after 07:21,
|
||
with `include_flix=false`, `prefer=fastest`, `limit=5`, returned complete DB journeys.
|
||
Every returned departure was at/after 07:21; departure-to-arrival differences matched every reported duration.
|
||
Examples from this response: 07:22–07:46 (24 minutes), 07:32–07:48 (16 minutes).
|
||
These are observed test responses, not independently verified guarantees about the actual timetable.
|
||
The first attempt after changing tolerance reused a cached result; the new installation's
|
||
one test journey and three component-cache entries were removed before repeating the test successfully.
|
||
All 14 OpenWebUI tool-server connections were retained; only the existing Bahn entry's display name/description changed.
|
||
OpenWebUI's own `/api/v1/configs/tool_servers/verify` also returned `status=true` for the final endpoint.
|
||
Final health inspection: both new containers healthy; old container exited with restart policy `no`.
|
||
|
||
Subsequent cleanup: old container and active XML removed on 2026-10-07; both new containers healthy and private credentials verified before deletion.
|