UPGRADE.rst 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716
  1. Upgrading Synapse
  2. =================
  3. Before upgrading check if any special steps are required to upgrade from the
  4. what you currently have installed to current version of Synapse. The extra
  5. instructions that may be required are listed later in this document.
  6. * If Synapse was installed using `prebuilt packages
  7. <INSTALL.md#prebuilt-packages>`_, you will need to follow the normal process
  8. for upgrading those packages.
  9. * If Synapse was installed from source, then:
  10. 1. Activate the virtualenv before upgrading. For example, if Synapse is
  11. installed in a virtualenv in ``~/synapse/env`` then run:
  12. .. code:: bash
  13. source ~/synapse/env/bin/activate
  14. 2. If Synapse was installed using pip then upgrade to the latest version by
  15. running:
  16. .. code:: bash
  17. pip install --upgrade matrix-synapse
  18. If Synapse was installed using git then upgrade to the latest version by
  19. running:
  20. .. code:: bash
  21. git pull
  22. pip install --upgrade .
  23. 3. Restart Synapse:
  24. .. code:: bash
  25. ./synctl restart
  26. To check whether your update was successful, you can check the running server
  27. version with:
  28. .. code:: bash
  29. # you may need to replace 'localhost:8008' if synapse is not configured
  30. # to listen on port 8008.
  31. curl http://localhost:8008/_synapse/admin/v1/server_version
  32. Rolling back to older versions
  33. ------------------------------
  34. Rolling back to previous releases can be difficult, due to database schema
  35. changes between releases. Where we have been able to test the rollback process,
  36. this will be noted below.
  37. In general, you will need to undo any changes made during the upgrade process,
  38. for example:
  39. * pip:
  40. .. code:: bash
  41. source env/bin/activate
  42. # replace `1.3.0` accordingly:
  43. pip install matrix-synapse==1.3.0
  44. * Debian:
  45. .. code:: bash
  46. # replace `1.3.0` and `stretch` accordingly:
  47. wget https://packages.matrix.org/debian/pool/main/m/matrix-synapse-py3/matrix-synapse-py3_1.3.0+stretch1_amd64.deb
  48. dpkg -i matrix-synapse-py3_1.3.0+stretch1_amd64.deb
  49. Upgrading to v1.4.0
  50. ===================
  51. New custom templates
  52. --------------------
  53. If you have configured a custom template directory with the
  54. ``email.template_dir`` option, be aware that there are new templates regarding
  55. registration and threepid management (see below) that must be included.
  56. * ``registration.html`` and ``registration.txt``
  57. * ``registration_success.html`` and ``registration_failure.html``
  58. * ``add_threepid.html`` and ``add_threepid.txt``
  59. * ``add_threepid_failure.html`` and ``add_threepid_success.html``
  60. Synapse will expect these files to exist inside the configured template
  61. directory, and **will fail to start** if they are absent.
  62. To view the default templates, see `synapse/res/templates
  63. <https://github.com/matrix-org/synapse/tree/master/synapse/res/templates>`_.
  64. 3pid verification changes
  65. -------------------------
  66. **Note: As of this release, users will be unable to add phone numbers or email
  67. addresses to their accounts, without changes to the Synapse configuration. This
  68. includes adding an email address during registration.**
  69. It is possible for a user to associate an email address or phone number
  70. with their account, for a number of reasons:
  71. * for use when logging in, as an alternative to the user id.
  72. * in the case of email, as an alternative contact to help with account recovery.
  73. * in the case of email, to receive notifications of missed messages.
  74. Before an email address or phone number can be added to a user's account,
  75. or before such an address is used to carry out a password-reset, Synapse must
  76. confirm the operation with the owner of the email address or phone number.
  77. It does this by sending an email or text giving the user a link or token to confirm
  78. receipt. This process is known as '3pid verification'. ('3pid', or 'threepid',
  79. stands for third-party identifier, and we use it to refer to external
  80. identifiers such as email addresses and phone numbers.)
  81. Previous versions of Synapse delegated the task of 3pid verification to an
  82. identity server by default. In most cases this server is ``vector.im`` or
  83. ``matrix.org``.
  84. In Synapse 1.4.0, for security and privacy reasons, the homeserver will no
  85. longer delegate this task to an identity server by default. Instead,
  86. the server administrator will need to explicitly decide how they would like the
  87. verification messages to be sent.
  88. In the medium term, the ``vector.im`` and ``matrix.org`` identity servers will
  89. disable support for delegated 3pid verification entirely. However, in order to
  90. ease the transition, they will retain the capability for a limited
  91. period. Delegated email verification will be disabled on Monday 2nd December
  92. 2019 (giving roughly 2 months notice). Disabling delegated SMS verification
  93. will follow some time after that once SMS verification support lands in
  94. Synapse.
  95. Once delegated 3pid verification support has been disabled in the ``vector.im`` and
  96. ``matrix.org`` identity servers, all Synapse versions that depend on those
  97. instances will be unable to verify email and phone numbers through them. There
  98. are no imminent plans to remove delegated 3pid verification from Sydent
  99. generally. (Sydent is the identity server project that backs the ``vector.im`` and
  100. ``matrix.org`` instances).
  101. Email
  102. ~~~~~
  103. Following upgrade, to continue verifying email (e.g. as part of the
  104. registration process), admins can either:-
  105. * Configure Synapse to use an email server.
  106. * Run or choose an identity server which allows delegated email verification
  107. and delegate to it.
  108. Configure SMTP in Synapse
  109. +++++++++++++++++++++++++
  110. To configure an SMTP server for Synapse, modify the configuration section
  111. headed ``email``, and be sure to have at least the ``smtp_host, smtp_port``
  112. and ``notif_from`` fields filled out.
  113. You may also need to set ``smtp_user``, ``smtp_pass``, and
  114. ``require_transport_security``.
  115. See the `sample configuration file <docs/sample_config.yaml>`_ for more details
  116. on these settings.
  117. Delegate email to an identity server
  118. ++++++++++++++++++++++++++++++++++++
  119. Some admins will wish to continue using email verification as part of the
  120. registration process, but will not immediately have an appropriate SMTP server
  121. at hand.
  122. To this end, we will continue to support email verification delegation via the
  123. ``vector.im`` and ``matrix.org`` identity servers for two months. Support for
  124. delegated email verification will be disabled on Monday 2nd December.
  125. The ``account_threepid_delegates`` dictionary defines whether the homeserver
  126. should delegate an external server (typically an `identity server
  127. <https://matrix.org/docs/spec/identity_service/r0.2.1>`_) to handle sending
  128. confirmation messages via email and SMS.
  129. So to delegate email verification, in ``homeserver.yaml``, set
  130. ``account_threepid_delegates.email`` to the base URL of an identity server. For
  131. example:
  132. .. code:: yaml
  133. account_threepid_delegates:
  134. email: https://example.com # Delegate email sending to example.com
  135. Note that ``account_threepid_delegates.email`` replaces the deprecated
  136. ``email.trust_identity_server_for_password_resets``: if
  137. ``email.trust_identity_server_for_password_resets`` is set to ``true``, and
  138. ``account_threepid_delegates.email`` is not set, then the first entry in
  139. ``trusted_third_party_id_servers`` will be used as the
  140. ``account_threepid_delegate`` for email. This is to ensure compatibility with
  141. existing Synapse installs that set up external server handling for these tasks
  142. before v1.4.0. If ``email.trust_identity_server_for_password_resets`` is
  143. ``true`` and no trusted identity server domains are configured, Synapse will
  144. report an error and refuse to start.
  145. If ``email.trust_identity_server_for_password_resets`` is ``false`` or absent
  146. and no ``email`` delegate is configured in ``account_threepid_delegates``,
  147. then Synapse will send email verification messages itself, using the configured
  148. SMTP server (see above).
  149. that type.
  150. Phone numbers
  151. ~~~~~~~~~~~~~
  152. Synapse does not support phone-number verification itself, so the only way to
  153. maintain the ability for users to add phone numbers to their accounts will be
  154. by continuing to delegate phone number verification to the ``matrix.org`` and
  155. ``vector.im`` identity servers (or another identity server that supports SMS
  156. sending).
  157. The ``account_threepid_delegates`` dictionary defines whether the homeserver
  158. should delegate an external server (typically an `identity server
  159. <https://matrix.org/docs/spec/identity_service/r0.2.1>`_) to handle sending
  160. confirmation messages via email and SMS.
  161. So to delegate phone number verification, in ``homeserver.yaml``, set
  162. ``account_threepid_delegates.msisdn`` to the base URL of an identity
  163. server. For example:
  164. .. code:: yaml
  165. account_threepid_delegates:
  166. msisdn: https://example.com # Delegate sms sending to example.com
  167. The ``matrix.org`` and ``vector.im`` identity servers will continue to support
  168. delegated phone number verification via SMS until such time as it is possible
  169. for admins to configure their servers to perform phone number verification
  170. directly. More details will follow in a future release.
  171. Rolling back to v1.3.1
  172. ----------------------
  173. If you encounter problems with v1.4.0, it should be possible to roll back to
  174. v1.3.1, subject to the following:
  175. * The 'room statistics' engine was heavily reworked in this release (see
  176. `#5971 <https://github.com/matrix-org/synapse/pull/5971>`_), including
  177. significant changes to the database schema, which are not easily
  178. reverted. This will cause the room statistics engine to stop updating when
  179. you downgrade.
  180. The room statistics are essentially unused in v1.3.1 (in future versions of
  181. Synapse, they will be used to populate the room directory), so there should
  182. be no loss of functionality. However, the statistics engine will write errors
  183. to the logs, which can be avoided by setting the following in
  184. `homeserver.yaml`:
  185. .. code:: yaml
  186. stats:
  187. enabled: false
  188. Don't forget to re-enable it when you upgrade again, in preparation for its
  189. use in the room directory!
  190. Upgrading to v1.2.0
  191. ===================
  192. Some counter metrics have been renamed, with the old names deprecated. See
  193. `the metrics documentation <docs/metrics-howto.md#renaming-of-metrics--deprecation-of-old-names-in-12>`_
  194. for details.
  195. Upgrading to v1.1.0
  196. ===================
  197. Synapse v1.1.0 removes support for older Python and PostgreSQL versions, as
  198. outlined in `our deprecation notice <https://matrix.org/blog/2019/04/08/synapse-deprecating-postgres-9-4-and-python-2-x>`_.
  199. Minimum Python Version
  200. ----------------------
  201. Synapse v1.1.0 has a minimum Python requirement of Python 3.5. Python 3.6 or
  202. Python 3.7 are recommended as they have improved internal string handling,
  203. significantly reducing memory usage.
  204. If you use current versions of the Matrix.org-distributed Debian packages or
  205. Docker images, action is not required.
  206. If you install Synapse in a Python virtual environment, please see "Upgrading to
  207. v0.34.0" for notes on setting up a new virtualenv under Python 3.
  208. Minimum PostgreSQL Version
  209. --------------------------
  210. If using PostgreSQL under Synapse, you will need to use PostgreSQL 9.5 or above.
  211. Please see the
  212. `PostgreSQL documentation <https://www.postgresql.org/docs/11/upgrading.html>`_
  213. for more details on upgrading your database.
  214. Upgrading to v1.0
  215. =================
  216. Validation of TLS certificates
  217. ------------------------------
  218. Synapse v1.0 is the first release to enforce
  219. validation of TLS certificates for the federation API. It is therefore
  220. essential that your certificates are correctly configured. See the `FAQ
  221. <docs/MSC1711_certificates_FAQ.md>`_ for more information.
  222. Note, v1.0 installations will also no longer be able to federate with servers
  223. that have not correctly configured their certificates.
  224. In rare cases, it may be desirable to disable certificate checking: for
  225. example, it might be essential to be able to federate with a given legacy
  226. server in a closed federation. This can be done in one of two ways:-
  227. * Configure the global switch ``federation_verify_certificates`` to ``false``.
  228. * Configure a whitelist of server domains to trust via ``federation_certificate_verification_whitelist``.
  229. See the `sample configuration file <docs/sample_config.yaml>`_
  230. for more details on these settings.
  231. Email
  232. -----
  233. When a user requests a password reset, Synapse will send an email to the
  234. user to confirm the request.
  235. Previous versions of Synapse delegated the job of sending this email to an
  236. identity server. If the identity server was somehow malicious or became
  237. compromised, it would be theoretically possible to hijack an account through
  238. this means.
  239. Therefore, by default, Synapse v1.0 will send the confirmation email itself. If
  240. Synapse is not configured with an SMTP server, password reset via email will be
  241. disabled.
  242. To configure an SMTP server for Synapse, modify the configuration section
  243. headed ``email``, and be sure to have at least the ``smtp_host``, ``smtp_port``
  244. and ``notif_from`` fields filled out. You may also need to set ``smtp_user``,
  245. ``smtp_pass``, and ``require_transport_security``.
  246. If you are absolutely certain that you wish to continue using an identity
  247. server for password resets, set ``trust_identity_server_for_password_resets`` to ``true``.
  248. See the `sample configuration file <docs/sample_config.yaml>`_
  249. for more details on these settings.
  250. New email templates
  251. ---------------
  252. Some new templates have been added to the default template directory for the purpose of the
  253. homeserver sending its own password reset emails. If you have configured a custom
  254. ``template_dir`` in your Synapse config, these files will need to be added.
  255. ``password_reset.html`` and ``password_reset.txt`` are HTML and plain text templates
  256. respectively that contain the contents of what will be emailed to the user upon attempting to
  257. reset their password via email. ``password_reset_success.html`` and
  258. ``password_reset_failure.html`` are HTML files that the content of which (assuming no redirect
  259. URL is set) will be shown to the user after they attempt to click the link in the email sent
  260. to them.
  261. Upgrading to v0.99.0
  262. ====================
  263. Please be aware that, before Synapse v1.0 is released around March 2019, you
  264. will need to replace any self-signed certificates with those verified by a
  265. root CA. Information on how to do so can be found at `the ACME docs
  266. <docs/ACME.md>`_.
  267. For more information on configuring TLS certificates see the `FAQ <docs/MSC1711_certificates_FAQ.md>`_.
  268. Upgrading to v0.34.0
  269. ====================
  270. 1. This release is the first to fully support Python 3. Synapse will now run on
  271. Python versions 3.5, or 3.6 (as well as 2.7). We recommend switching to
  272. Python 3, as it has been shown to give performance improvements.
  273. For users who have installed Synapse into a virtualenv, we recommend doing
  274. this by creating a new virtualenv. For example::
  275. virtualenv -p python3 ~/synapse/env3
  276. source ~/synapse/env3/bin/activate
  277. pip install matrix-synapse
  278. You can then start synapse as normal, having activated the new virtualenv::
  279. cd ~/synapse
  280. source env3/bin/activate
  281. synctl start
  282. Users who have installed from distribution packages should see the relevant
  283. package documentation. See below for notes on Debian packages.
  284. * When upgrading to Python 3, you **must** make sure that your log files are
  285. configured as UTF-8, by adding ``encoding: utf8`` to the
  286. ``RotatingFileHandler`` configuration (if you have one) in your
  287. ``<server>.log.config`` file. For example, if your ``log.config`` file
  288. contains::
  289. handlers:
  290. file:
  291. class: logging.handlers.RotatingFileHandler
  292. formatter: precise
  293. filename: homeserver.log
  294. maxBytes: 104857600
  295. backupCount: 10
  296. filters: [context]
  297. console:
  298. class: logging.StreamHandler
  299. formatter: precise
  300. filters: [context]
  301. Then you should update this to be::
  302. handlers:
  303. file:
  304. class: logging.handlers.RotatingFileHandler
  305. formatter: precise
  306. filename: homeserver.log
  307. maxBytes: 104857600
  308. backupCount: 10
  309. filters: [context]
  310. encoding: utf8
  311. console:
  312. class: logging.StreamHandler
  313. formatter: precise
  314. filters: [context]
  315. There is no need to revert this change if downgrading to Python 2.
  316. We are also making available Debian packages which will run Synapse on
  317. Python 3. You can switch to these packages with ``apt-get install
  318. matrix-synapse-py3``, however, please read `debian/NEWS
  319. <https://github.com/matrix-org/synapse/blob/release-v0.34.0/debian/NEWS>`_
  320. before doing so. The existing ``matrix-synapse`` packages will continue to
  321. use Python 2 for the time being.
  322. 2. This release removes the ``riot.im`` from the default list of trusted
  323. identity servers.
  324. If ``riot.im`` is in your homeserver's list of
  325. ``trusted_third_party_id_servers``, you should remove it. It was added in
  326. case a hypothetical future identity server was put there. If you don't
  327. remove it, users may be unable to deactivate their accounts.
  328. 3. This release no longer installs the (unmaintained) Matrix Console web client
  329. as part of the default installation. It is possible to re-enable it by
  330. installing it separately and setting the ``web_client_location`` config
  331. option, but please consider switching to another client.
  332. Upgrading to v0.33.7
  333. ====================
  334. This release removes the example email notification templates from
  335. ``res/templates`` (they are now internal to the python package). This should
  336. only affect you if you (a) deploy your Synapse instance from a git checkout or
  337. a github snapshot URL, and (b) have email notifications enabled.
  338. If you have email notifications enabled, you should ensure that
  339. ``email.template_dir`` is either configured to point at a directory where you
  340. have installed customised templates, or leave it unset to use the default
  341. templates.
  342. Upgrading to v0.27.3
  343. ====================
  344. This release expands the anonymous usage stats sent if the opt-in
  345. ``report_stats`` configuration is set to ``true``. We now capture RSS memory
  346. and cpu use at a very coarse level. This requires administrators to install
  347. the optional ``psutil`` python module.
  348. We would appreciate it if you could assist by ensuring this module is available
  349. and ``report_stats`` is enabled. This will let us see if performance changes to
  350. synapse are having an impact to the general community.
  351. Upgrading to v0.15.0
  352. ====================
  353. If you want to use the new URL previewing API (/_matrix/media/r0/preview_url)
  354. then you have to explicitly enable it in the config and update your dependencies
  355. dependencies. See README.rst for details.
  356. Upgrading to v0.11.0
  357. ====================
  358. This release includes the option to send anonymous usage stats to matrix.org,
  359. and requires that administrators explictly opt in or out by setting the
  360. ``report_stats`` option to either ``true`` or ``false``.
  361. We would really appreciate it if you could help our project out by reporting
  362. anonymized usage statistics from your homeserver. Only very basic aggregate
  363. data (e.g. number of users) will be reported, but it helps us to track the
  364. growth of the Matrix community, and helps us to make Matrix a success, as well
  365. as to convince other networks that they should peer with us.
  366. Upgrading to v0.9.0
  367. ===================
  368. Application services have had a breaking API change in this version.
  369. They can no longer register themselves with a home server using the AS HTTP API. This
  370. decision was made because a compromised application service with free reign to register
  371. any regex in effect grants full read/write access to the home server if a regex of ``.*``
  372. is used. An attack where a compromised AS re-registers itself with ``.*`` was deemed too
  373. big of a security risk to ignore, and so the ability to register with the HS remotely has
  374. been removed.
  375. It has been replaced by specifying a list of application service registrations in
  376. ``homeserver.yaml``::
  377. app_service_config_files: ["registration-01.yaml", "registration-02.yaml"]
  378. Where ``registration-01.yaml`` looks like::
  379. url: <String> # e.g. "https://my.application.service.com"
  380. as_token: <String>
  381. hs_token: <String>
  382. sender_localpart: <String> # This is a new field which denotes the user_id localpart when using the AS token
  383. namespaces:
  384. users:
  385. - exclusive: <Boolean>
  386. regex: <String> # e.g. "@prefix_.*"
  387. aliases:
  388. - exclusive: <Boolean>
  389. regex: <String>
  390. rooms:
  391. - exclusive: <Boolean>
  392. regex: <String>
  393. Upgrading to v0.8.0
  394. ===================
  395. Servers which use captchas will need to add their public key to::
  396. static/client/register/register_config.js
  397. window.matrixRegistrationConfig = {
  398. recaptcha_public_key: "YOUR_PUBLIC_KEY"
  399. };
  400. This is required in order to support registration fallback (typically used on
  401. mobile devices).
  402. Upgrading to v0.7.0
  403. ===================
  404. New dependencies are:
  405. - pydenticon
  406. - simplejson
  407. - syutil
  408. - matrix-angular-sdk
  409. To pull in these dependencies in a virtual env, run::
  410. python synapse/python_dependencies.py | xargs -n 1 pip install
  411. Upgrading to v0.6.0
  412. ===================
  413. To pull in new dependencies, run::
  414. python setup.py develop --user
  415. This update includes a change to the database schema. To upgrade you first need
  416. to upgrade the database by running::
  417. python scripts/upgrade_db_to_v0.6.0.py <db> <server_name> <signing_key>
  418. Where `<db>` is the location of the database, `<server_name>` is the
  419. server name as specified in the synapse configuration, and `<signing_key>` is
  420. the location of the signing key as specified in the synapse configuration.
  421. This may take some time to complete. Failures of signatures and content hashes
  422. can safely be ignored.
  423. Upgrading to v0.5.1
  424. ===================
  425. Depending on precisely when you installed v0.5.0 you may have ended up with
  426. a stale release of the reference matrix webclient installed as a python module.
  427. To uninstall it and ensure you are depending on the latest module, please run::
  428. $ pip uninstall syweb
  429. Upgrading to v0.5.0
  430. ===================
  431. The webclient has been split out into a seperate repository/pacakage in this
  432. release. Before you restart your homeserver you will need to pull in the
  433. webclient package by running::
  434. python setup.py develop --user
  435. This release completely changes the database schema and so requires upgrading
  436. it before starting the new version of the homeserver.
  437. The script "database-prepare-for-0.5.0.sh" should be used to upgrade the
  438. database. This will save all user information, such as logins and profiles,
  439. but will otherwise purge the database. This includes messages, which
  440. rooms the home server was a member of and room alias mappings.
  441. If you would like to keep your history, please take a copy of your database
  442. file and ask for help in #matrix:matrix.org. The upgrade process is,
  443. unfortunately, non trivial and requires human intervention to resolve any
  444. resulting conflicts during the upgrade process.
  445. Before running the command the homeserver should be first completely
  446. shutdown. To run it, simply specify the location of the database, e.g.:
  447. ./scripts/database-prepare-for-0.5.0.sh "homeserver.db"
  448. Once this has successfully completed it will be safe to restart the
  449. homeserver. You may notice that the homeserver takes a few seconds longer to
  450. restart than usual as it reinitializes the database.
  451. On startup of the new version, users can either rejoin remote rooms using room
  452. aliases or by being reinvited. Alternatively, if any other homeserver sends a
  453. message to a room that the homeserver was previously in the local HS will
  454. automatically rejoin the room.
  455. Upgrading to v0.4.0
  456. ===================
  457. This release needs an updated syutil version. Run::
  458. python setup.py develop
  459. You will also need to upgrade your configuration as the signing key format has
  460. changed. Run::
  461. python -m synapse.app.homeserver --config-path <CONFIG> --generate-config
  462. Upgrading to v0.3.0
  463. ===================
  464. This registration API now closely matches the login API. This introduces a bit
  465. more backwards and forwards between the HS and the client, but this improves
  466. the overall flexibility of the API. You can now GET on /register to retrieve a list
  467. of valid registration flows. Upon choosing one, they are submitted in the same
  468. way as login, e.g::
  469. {
  470. type: m.login.password,
  471. user: foo,
  472. password: bar
  473. }
  474. The default HS supports 2 flows, with and without Identity Server email
  475. authentication. Enabling captcha on the HS will add in an extra step to all
  476. flows: ``m.login.recaptcha`` which must be completed before you can transition
  477. to the next stage. There is a new login type: ``m.login.email.identity`` which
  478. contains the ``threepidCreds`` key which were previously sent in the original
  479. register request. For more information on this, see the specification.
  480. Web Client
  481. ----------
  482. The VoIP specification has changed between v0.2.0 and v0.3.0. Users should
  483. refresh any browser tabs to get the latest web client code. Users on
  484. v0.2.0 of the web client will not be able to call those on v0.3.0 and
  485. vice versa.
  486. Upgrading to v0.2.0
  487. ===================
  488. The home server now requires setting up of SSL config before it can run. To
  489. automatically generate default config use::
  490. $ python synapse/app/homeserver.py \
  491. --server-name machine.my.domain.name \
  492. --bind-port 8448 \
  493. --config-path homeserver.config \
  494. --generate-config
  495. This config can be edited if desired, for example to specify a different SSL
  496. certificate to use. Once done you can run the home server using::
  497. $ python synapse/app/homeserver.py --config-path homeserver.config
  498. See the README.rst for more information.
  499. Also note that some config options have been renamed, including:
  500. - "host" to "server-name"
  501. - "database" to "database-path"
  502. - "port" to "bind-port" and "unsecure-port"
  503. Upgrading to v0.0.1
  504. ===================
  505. This release completely changes the database schema and so requires upgrading
  506. it before starting the new version of the homeserver.
  507. The script "database-prepare-for-0.0.1.sh" should be used to upgrade the
  508. database. This will save all user information, such as logins and profiles,
  509. but will otherwise purge the database. This includes messages, which
  510. rooms the home server was a member of and room alias mappings.
  511. Before running the command the homeserver should be first completely
  512. shutdown. To run it, simply specify the location of the database, e.g.:
  513. ./scripts/database-prepare-for-0.0.1.sh "homeserver.db"
  514. Once this has successfully completed it will be safe to restart the
  515. homeserver. You may notice that the homeserver takes a few seconds longer to
  516. restart than usual as it reinitializes the database.
  517. On startup of the new version, users can either rejoin remote rooms using room
  518. aliases or by being reinvited. Alternatively, if any other homeserver sends a
  519. message to a room that the homeserver was previously in the local HS will
  520. automatically rejoin the room.