UPGRADE.rst 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. Upgrading to vx.xx
  2. ==================
  3. Servers which use captchas will need to add their public key to::
  4. static/client/register/register_config.js
  5. window.matrixRegistrationConfig = {
  6. recaptcha_public_key: "YOUR_PUBLIC_KEY"
  7. };
  8. This is required in order to support registration fallback (typically used on
  9. mobile devices).
  10. The format of stored application services has changed in Synapse. You will need
  11. to run ``PYTHONPATH=. python scripts/upgrade_appservice_db.py <database file path>``
  12. to convert to the new format.
  13. Upgrading to v0.7.0
  14. ===================
  15. New dependencies are:
  16. - pydenticon
  17. - simplejson
  18. - syutil
  19. - matrix-angular-sdk
  20. To pull in these dependencies in a virtual env, run::
  21. python synapse/python_dependencies.py | xargs -n 1 pip install
  22. Upgrading to v0.6.0
  23. ===================
  24. To pull in new dependencies, run::
  25. python setup.py develop --user
  26. This update includes a change to the database schema. To upgrade you first need
  27. to upgrade the database by running::
  28. python scripts/upgrade_db_to_v0.6.0.py <db> <server_name> <signing_key>
  29. Where `<db>` is the location of the database, `<server_name>` is the
  30. server name as specified in the synapse configuration, and `<signing_key>` is
  31. the location of the signing key as specified in the synapse configuration.
  32. This may take some time to complete. Failures of signatures and content hashes
  33. can safely be ignored.
  34. Upgrading to v0.5.1
  35. ===================
  36. Depending on precisely when you installed v0.5.0 you may have ended up with
  37. a stale release of the reference matrix webclient installed as a python module.
  38. To uninstall it and ensure you are depending on the latest module, please run::
  39. $ pip uninstall syweb
  40. Upgrading to v0.5.0
  41. ===================
  42. The webclient has been split out into a seperate repository/pacakage in this
  43. release. Before you restart your homeserver you will need to pull in the
  44. webclient package by running::
  45. python setup.py develop --user
  46. This release completely changes the database schema and so requires upgrading
  47. it before starting the new version of the homeserver.
  48. The script "database-prepare-for-0.5.0.sh" should be used to upgrade the
  49. database. This will save all user information, such as logins and profiles,
  50. but will otherwise purge the database. This includes messages, which
  51. rooms the home server was a member of and room alias mappings.
  52. If you would like to keep your history, please take a copy of your database
  53. file and ask for help in #matrix:matrix.org. The upgrade process is,
  54. unfortunately, non trivial and requires human intervention to resolve any
  55. resulting conflicts during the upgrade process.
  56. Before running the command the homeserver should be first completely
  57. shutdown. To run it, simply specify the location of the database, e.g.:
  58. ./scripts/database-prepare-for-0.5.0.sh "homeserver.db"
  59. Once this has successfully completed it will be safe to restart the
  60. homeserver. You may notice that the homeserver takes a few seconds longer to
  61. restart than usual as it reinitializes the database.
  62. On startup of the new version, users can either rejoin remote rooms using room
  63. aliases or by being reinvited. Alternatively, if any other homeserver sends a
  64. message to a room that the homeserver was previously in the local HS will
  65. automatically rejoin the room.
  66. Upgrading to v0.4.0
  67. ===================
  68. This release needs an updated syutil version. Run::
  69. python setup.py develop
  70. You will also need to upgrade your configuration as the signing key format has
  71. changed. Run::
  72. python -m synapse.app.homeserver --config-path <CONFIG> --generate-config
  73. Upgrading to v0.3.0
  74. ===================
  75. This registration API now closely matches the login API. This introduces a bit
  76. more backwards and forwards between the HS and the client, but this improves
  77. the overall flexibility of the API. You can now GET on /register to retrieve a list
  78. of valid registration flows. Upon choosing one, they are submitted in the same
  79. way as login, e.g::
  80. {
  81. type: m.login.password,
  82. user: foo,
  83. password: bar
  84. }
  85. The default HS supports 2 flows, with and without Identity Server email
  86. authentication. Enabling captcha on the HS will add in an extra step to all
  87. flows: ``m.login.recaptcha`` which must be completed before you can transition
  88. to the next stage. There is a new login type: ``m.login.email.identity`` which
  89. contains the ``threepidCreds`` key which were previously sent in the original
  90. register request. For more information on this, see the specification.
  91. Web Client
  92. ----------
  93. The VoIP specification has changed between v0.2.0 and v0.3.0. Users should
  94. refresh any browser tabs to get the latest web client code. Users on
  95. v0.2.0 of the web client will not be able to call those on v0.3.0 and
  96. vice versa.
  97. Upgrading to v0.2.0
  98. ===================
  99. The home server now requires setting up of SSL config before it can run. To
  100. automatically generate default config use::
  101. $ python synapse/app/homeserver.py \
  102. --server-name machine.my.domain.name \
  103. --bind-port 8448 \
  104. --config-path homeserver.config \
  105. --generate-config
  106. This config can be edited if desired, for example to specify a different SSL
  107. certificate to use. Once done you can run the home server using::
  108. $ python synapse/app/homeserver.py --config-path homeserver.config
  109. See the README.rst for more information.
  110. Also note that some config options have been renamed, including:
  111. - "host" to "server-name"
  112. - "database" to "database-path"
  113. - "port" to "bind-port" and "unsecure-port"
  114. Upgrading to v0.0.1
  115. ===================
  116. This release completely changes the database schema and so requires upgrading
  117. it before starting the new version of the homeserver.
  118. The script "database-prepare-for-0.0.1.sh" should be used to upgrade the
  119. database. This will save all user information, such as logins and profiles,
  120. but will otherwise purge the database. This includes messages, which
  121. rooms the home server was a member of and room alias mappings.
  122. Before running the command the homeserver should be first completely
  123. shutdown. To run it, simply specify the location of the database, e.g.:
  124. ./scripts/database-prepare-for-0.0.1.sh "homeserver.db"
  125. Once this has successfully completed it will be safe to restart the
  126. homeserver. You may notice that the homeserver takes a few seconds longer to
  127. restart than usual as it reinitializes the database.
  128. On startup of the new version, users can either rejoin remote rooms using room
  129. aliases or by being reinvited. Alternatively, if any other homeserver sends a
  130. message to a room that the homeserver was previously in the local HS will
  131. automatically rejoin the room.