This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Update the upgrade notes #6050
Merged
Merged
Update the upgrade notes #6050
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,52 +2,78 @@ Upgrading Synapse | |
================= | ||
|
||
Before upgrading check if any special steps are required to upgrade from the | ||
what you currently have installed to current version of synapse. The extra | ||
what you currently have installed to current version of Synapse. The extra | ||
instructions that may be required are listed later in this document. | ||
|
||
1. If synapse was installed in a virtualenv then activate that virtualenv before | ||
upgrading. If synapse is installed in a virtualenv in ``~/synapse/env`` then | ||
run: | ||
* If Synapse was installed using `prebuilt packages | ||
<INSTALL.md#prebuilt-packages>`_, you will need to follow the normal process | ||
for upgrading those packages. | ||
|
||
.. code:: bash | ||
* If Synapse was installed from source, then: | ||
|
||
source ~/synapse/env/bin/activate | ||
|
||
2. If synapse was installed using pip then upgrade to the latest version by | ||
running: | ||
1. Activate the virtualenv before upgrading. For example, if Synapse is | ||
installed in a virtualenv in ``~/synapse/env`` then run: | ||
|
||
.. code:: bash | ||
.. code:: bash | ||
|
||
pip install --upgrade matrix-synapse[all] | ||
source ~/synapse/env/bin/activate | ||
|
||
# restart synapse | ||
synctl restart | ||
2. If Synapse was installed using pip then upgrade to the latest version by | ||
running: | ||
|
||
.. code:: bash | ||
|
||
If synapse was installed using git then upgrade to the latest version by | ||
running: | ||
pip install --upgrade matrix-synapse | ||
|
||
.. code:: bash | ||
If Synapse was installed using git then upgrade to the latest version by | ||
running: | ||
|
||
# Pull the latest version of the master branch. | ||
.. code:: bash | ||
|
||
git pull | ||
pip install --upgrade . | ||
|
||
# Update synapse and its python dependencies. | ||
pip install --upgrade .[all] | ||
3. Restart Synapse: | ||
|
||
# restart synapse | ||
./synctl restart | ||
.. code:: bash | ||
|
||
./synctl restart | ||
|
||
To check whether your update was successful, you can check the Server header | ||
returned by the Client-Server API: | ||
To check whether your update was successful, you can check the running server | ||
version with: | ||
|
||
.. code:: bash | ||
|
||
# replace <host.name> with the hostname of your synapse homeserver. | ||
# You may need to specify a port (eg, :8448) if your server is not | ||
# configured on port 443. | ||
curl -kv https://<host.name>/_matrix/client/versions 2>&1 | grep "Server:" | ||
# you may need to replace 'localhost:8008' if synapse is not configured | ||
# to listen on port 8008. | ||
|
||
curl http://localhost:8008/_synapse/admin/v1/server_version | ||
|
||
Rolling back to older versions | ||
------------------------------ | ||
|
||
Rolling back to previous releases can be difficult, due to database schema | ||
changes between releases. Where we have been able to test the rollback process, | ||
this will be noted below. | ||
|
||
In general, you will need to undo any changes made during the upgrade process, | ||
for example: | ||
|
||
* pip: | ||
|
||
.. code:: bash | ||
|
||
source env/bin/activate | ||
# replace `1.3.0` accordingly: | ||
pip install matrix-synapse==1.3.0 | ||
|
||
* Debian: | ||
|
||
.. code:: bash | ||
|
||
# replace `1.3.0` and `stretch` accordingly: | ||
wget https://packages.matrix.org/debian/pool/main/m/matrix-synapse-py3/matrix-synapse-py3_1.3.0+stretch1_amd64.deb | ||
dpkg -i matrix-synapse-py3_1.3.0+stretch1_amd64.deb | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be nice to add the git version. I assume it's just a:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm kinda assuming that if you've installed from git in the first place, you know how to go back to an earlier tag. |
||
|
||
Upgrading to v1.4.0 | ||
=================== | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Update the upgrade notes. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.