Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

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