Server Maintainance - public-transport/transitous GitHub Wiki
MOTIS updates
MOTIS updates require the imported data to be rebuilt. If this doesn't happen on the CI, MOTIS will rebuild it on startup or fail to start, which increases the downtime.
If done in the following order, that should not happen:
- Run
systemctl disable motis-update-feeds.timer
on the server, so MOTIS doesn't try to start off a newer version of the cache that it can't handle. - Update
ci/container/Containerfile
locallypodman build -t ghcr.io/public-transport/transitous/import:latest .
podman push ghcr.io/public-transport/transitous/import:latest
- Commit and push the changes to the Containerfile and wait for a data import to run through.
- Once it has finished, update
ansible/roles/motis/tasks/main.yml
- Run
ansible-playbook -i hosts motis.yml
in the ansible directory. - Manually trigger a data update on the server:
systemctl start motis-update-feeds.service
The server should now be running the latest MOTIS version.
Feed updates
Feeds are updated automatically every night, by copying the new files from /srv/rsync/transitous/
.
A feed update can be manually triggered using systemctl start motis-update-feeds
.