From d260b17508cb6be3cf89dcdce4063a67503419f0 Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Wed, 14 Nov 2018 14:34:24 -0600 Subject: [PATCH] Add initial version of maintenance and troubleshooting doc --- docs/README.md | 4 +++- docs/maintenance-and-troubleshooting.md | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 docs/maintenance-and-troubleshooting.md diff --git a/docs/README.md b/docs/README.md index ffa6a1bb7..53ac53983 100644 --- a/docs/README.md +++ b/docs/README.md @@ -18,4 +18,6 @@ - [Maintenance / upgrading PostgreSQL](maintenance-upgrading-postgres.md) -- [Uninstalling](uninstalling.md) \ No newline at end of file +- [Maintenance and Troubleshooting](maintenance-and-troubleshooting.md) + +- [Uninstalling](uninstalling.md) diff --git a/docs/maintenance-and-troubleshooting.md b/docs/maintenance-and-troubleshooting.md new file mode 100644 index 000000000..9ef9d70b4 --- /dev/null +++ b/docs/maintenance-and-troubleshooting.md @@ -0,0 +1,23 @@ +# Maintenance and Troubleshooting + +## How to see the current status of your services + +You can check the status of your services by using `systemctl status`. Example: +``` +sudo systemctl status matrix-nginx-proxy + +● matrix-nginx-proxy.service - Matrix nginx proxy server + Loaded: loaded (/etc/systemd/system/matrix-nginx-proxy.service; enabled; vendor preset: enabled) + Active: active (running) since Wed 2018-11-14 19:38:35 UTC; 49min ago +``` + +You can see the logs by using journalctl. Example: +``` +sudo journalctl -fu matrix-synapse +``` + +## Postgres + +You can access the Postgres command line interface using the script installed on your server at `/usr/local/bin/matrix-postgres-cli`. + +This playbook attempts to preserve the Postgres version it starts with. When you are ready to upgrade to a new Postgres version, read through the [guide for upgrading PostgreSQL](maintenance-upgrading-postgres.md).