Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

214 строки
6.6 KiB

  1. # SOME DESCRIPTIVE TITLE.
  2. # Copyright (C) 2018-2024, Slavi Pantaleev, Aine Etke, MDAD community
  3. # members
  4. # This file is distributed under the same license as the
  5. # matrix-docker-ansible-deploy package.
  6. # FIRST AUTHOR <EMAIL@ADDRESS>, 2024.
  7. #
  8. #, fuzzy
  9. msgid ""
  10. msgstr ""
  11. "Project-Id-Version: matrix-docker-ansible-deploy \n"
  12. "Report-Msgid-Bugs-To: \n"
  13. "POT-Creation-Date: 2024-12-16 12:05+0900\n"
  14. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  15. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  16. "Language: jp\n"
  17. "Language-Team: jp <LL@li.org>\n"
  18. "MIME-Version: 1.0\n"
  19. "Content-Type: text/plain; charset=utf-8\n"
  20. "Content-Transfer-Encoding: 8bit\n"
  21. "Generated-By: Babel 2.16.0\n"
  22. #: ../../../docs/importing-postgres.md:1
  23. msgid ""
  24. "Importing an existing Postgres database from another installation "
  25. "(optional)"
  26. msgstr ""
  27. #: ../../../docs/importing-postgres.md:3
  28. msgid ""
  29. "Run this if you'd like to import your database from a previous "
  30. "installation. (don't forget to import your Synapse `media_store` files as"
  31. " well - see [the importing-synape-media-store guide](importing-synapse-"
  32. "media-store.md))."
  33. msgstr ""
  34. #: ../../../docs/importing-postgres.md:6
  35. msgid "Prerequisites"
  36. msgstr ""
  37. #: ../../../docs/importing-postgres.md:8
  38. msgid ""
  39. "For this to work, **the database name in Postgres must match** what this "
  40. "playbook uses. This playbook uses a Postgres database name of `synapse` "
  41. "by default (controlled by the `matrix_synapse_database_database` "
  42. "variable). If your database name differs, be sure to change "
  43. "`matrix_synapse_database_database` to your desired name and to re-run the"
  44. " playbook before proceeding."
  45. msgstr ""
  46. #: ../../../docs/importing-postgres.md:10
  47. msgid ""
  48. "The playbook supports importing Postgres dump files in **text** (e.g. "
  49. "`pg_dump > dump.sql`) or **gzipped** formats (e.g. `pg_dump | gzip -c > "
  50. "dump.sql.gz`). Importing multiple databases (as dumped by `pg_dumpall`) "
  51. "is also supported."
  52. msgstr ""
  53. #: ../../../docs/importing-postgres.md:12
  54. msgid ""
  55. "The migration might be a good moment, to \"reset\" a not properly working"
  56. " bridge. Be aware, that it might affect all users (new link to bridge, "
  57. "new rooms, …)"
  58. msgstr ""
  59. #: ../../../docs/importing-postgres.md:14
  60. msgid ""
  61. "Before doing the actual import, **you need to upload your Postgres dump "
  62. "file to the server** (any path is okay)."
  63. msgstr ""
  64. #: ../../../docs/importing-postgres.md:16
  65. msgid "Importing"
  66. msgstr ""
  67. #: ../../../docs/importing-postgres.md:18
  68. msgid ""
  69. "To import, run this command (make sure to replace "
  70. "`SERVER_PATH_TO_POSTGRES_DUMP_FILE` with a file path on your server):"
  71. msgstr ""
  72. #: ../../../docs/importing-postgres.md:26
  73. msgid "**Notes**:"
  74. msgstr ""
  75. #: ../../../docs/importing-postgres.md:28
  76. msgid ""
  77. "`SERVER_PATH_TO_POSTGRES_DUMP_FILE` must be a file path to a Postgres "
  78. "dump file on the server (not on your local machine!)"
  79. msgstr ""
  80. #: ../../../docs/importing-postgres.md:29
  81. msgid ""
  82. "`postgres_default_import_database` defaults to `matrix`, which is useful "
  83. "for importing multiple databases (for dumps made with `pg_dumpall`). If "
  84. "you're importing a single database (e.g. `synapse`), consider changing "
  85. "`postgres_default_import_database` accordingly"
  86. msgstr ""
  87. #: ../../../docs/importing-postgres.md:30
  88. msgid ""
  89. "after importing a large database, it's a good idea to run [an `ANALYZE` "
  90. "operation](https://www.postgresql.org/docs/current/sql-analyze.html) to "
  91. "make Postgres rebuild its database statistics and optimize its query "
  92. "planner. You can easily do this via the playbook by running `just run-"
  93. "tags run-postgres-vacuum -e postgres_vacuum_preset=analyze` (see "
  94. "[Vacuuming PostgreSQL](maintenance-postgres.md#vacuuming-postgresql) for "
  95. "more details)."
  96. msgstr ""
  97. #: ../../../docs/importing-postgres.md:32
  98. msgid "Troubleshooting"
  99. msgstr ""
  100. #: ../../../docs/importing-postgres.md:34
  101. msgid "Table Ownership"
  102. msgstr ""
  103. #: ../../../docs/importing-postgres.md:36
  104. msgid ""
  105. "A table ownership issue can occur if you are importing from a Synapse "
  106. "installation which was both:"
  107. msgstr ""
  108. #: ../../../docs/importing-postgres.md:38
  109. msgid "migrated from SQLite to Postgres, and"
  110. msgstr ""
  111. #: ../../../docs/importing-postgres.md:39
  112. msgid "used a username other than 'synapse'"
  113. msgstr ""
  114. #: ../../../docs/importing-postgres.md:41
  115. msgid "In this case you may run into the following error during the import task:"
  116. msgstr ""
  117. #: ../../../docs/importing-postgres.md:47
  118. msgid ""
  119. "where `synapse_user` is the database username from the previous Synapse "
  120. "installation."
  121. msgstr ""
  122. #: ../../../docs/importing-postgres.md:49
  123. msgid ""
  124. "This can be verified by examining the dump for ALTER TABLE statements "
  125. "which set OWNER TO that username:"
  126. msgstr ""
  127. #: ../../../docs/importing-postgres.md:61
  128. msgid ""
  129. "It can be worked around by changing the username to `synapse`, for "
  130. "example by using `sed`:"
  131. msgstr ""
  132. #: ../../../docs/importing-postgres.md:67
  133. msgid ""
  134. "This uses sed to perform an 'in-place' (`-i`) replacement globally "
  135. "(`/g`), searching for `synapse_user` and replacing with `synapse` "
  136. "(`s/synapse_user/synapse`). If your database username was different, "
  137. "change `synapse_user` to that username instead. Expand search/replace "
  138. "statement as shown in example above, in case of old user name like "
  139. "`matrix` - replacing `matrix` only would… well - you can imagine."
  140. msgstr ""
  141. #: ../../../docs/importing-postgres.md:69
  142. msgid ""
  143. "Note that if the previous import failed with an error it may have made "
  144. "changes which are incompatible with re-running the import task right "
  145. "away; if you do so it may fail with an error such as:"
  146. msgstr ""
  147. #: ../../../docs/importing-postgres.md:75
  148. msgid "Repeat import"
  149. msgstr ""
  150. #: ../../../docs/importing-postgres.md:77
  151. msgid ""
  152. "In this case you can use the command suggested in the import task to "
  153. "clear the database before retrying the import:"
  154. msgstr ""
  155. #: ../../../docs/importing-postgres.md:85
  156. msgid ""
  157. "Now on your local machine run `just run-tags setup-postgres` to prepare "
  158. "the database roles etc."
  159. msgstr ""
  160. #: ../../../docs/importing-postgres.md:87
  161. msgid ""
  162. "If not, you probably get this error. `synapse` is the correct table "
  163. "owner, but the role is missing in database."
  164. msgstr ""
  165. #: ../../../docs/importing-postgres.md:93
  166. msgid ""
  167. "Once the database is clear and the ownership of the tables has been fixed"
  168. " in the SQL file, the import task should succeed."
  169. msgstr ""
  170. #: ../../../docs/importing-postgres.md:95
  171. msgid ""
  172. "Check, if `--dbname` is set to `synapse` (not `matrix`) and replace paths"
  173. " (or even better, copy this line from your terminal)"
  174. msgstr ""
  175. #: ../../../docs/importing-postgres.md:101
  176. msgid "Hints"
  177. msgstr ""
  178. #: ../../../docs/importing-postgres.md:103
  179. msgid "To open psql terminal run `/matrix/postgres/bin/cli`"
  180. msgstr ""