UPGRADE.rst 6.3 KB

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