Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

150 行
6.4 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: 2025-01-27 09:54+0200\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 "Importing an existing Postgres database from another installation (optional)"
  24. msgstr ""
  25. #: ../../../docs/importing-postgres.md:3
  26. msgid "Run this if you'd like to import your database from a previous installation. (don't forget to import your Synapse `media_store` files as well — see [the importing-synape-media-store guide](importing-synapse-media-store.md))."
  27. msgstr ""
  28. #: ../../../docs/importing-postgres.md:6
  29. msgid "Prerequisites"
  30. msgstr ""
  31. #: ../../../docs/importing-postgres.md:8
  32. msgid "For this to work, **the database name in Postgres must match** what this playbook uses. This playbook uses a Postgres database name of `synapse` by default (controlled by the `matrix_synapse_database_database` variable). If your database name differs, be sure to change `matrix_synapse_database_database` to your desired name and to re-run the playbook before proceeding."
  33. msgstr ""
  34. #: ../../../docs/importing-postgres.md:10
  35. msgid "The playbook supports importing Postgres dump files in **text** (e.g. `pg_dump > dump.sql`) or **gzipped** formats (e.g. `pg_dump | gzip -c > dump.sql.gz`). Importing multiple databases (as dumped by `pg_dumpall`) is also supported."
  36. msgstr ""
  37. #: ../../../docs/importing-postgres.md:12
  38. msgid "The migration might be a good moment, to \"reset\" a not properly working bridge. Be aware, that it might affect all users (new link to bridge, new rooms, …)"
  39. msgstr ""
  40. #: ../../../docs/importing-postgres.md:14
  41. msgid "Before doing the actual import, **you need to upload your Postgres dump file to the server** (any path is okay)."
  42. msgstr ""
  43. #: ../../../docs/importing-postgres.md:16
  44. msgid "Importing"
  45. msgstr ""
  46. #: ../../../docs/importing-postgres.md:18
  47. msgid "To import, run this command (make sure to replace `SERVER_PATH_TO_POSTGRES_DUMP_FILE` with a file path on your server):"
  48. msgstr ""
  49. #: ../../../docs/importing-postgres.md:26
  50. msgid "**Notes**:"
  51. msgstr ""
  52. #: ../../../docs/importing-postgres.md:28
  53. msgid "`SERVER_PATH_TO_POSTGRES_DUMP_FILE` must be a file path to a Postgres dump file on the server (not on your local machine!)"
  54. msgstr ""
  55. #: ../../../docs/importing-postgres.md:29
  56. msgid "`postgres_default_import_database` defaults to `matrix`, which is useful for importing multiple databases (for dumps made with `pg_dumpall`). If you're importing a single database (e.g. `synapse`), consider changing `postgres_default_import_database` accordingly"
  57. msgstr ""
  58. #: ../../../docs/importing-postgres.md:30
  59. msgid "after importing a large database, it's a good idea to run [an `ANALYZE` operation](https://www.postgresql.org/docs/current/sql-analyze.html) to make Postgres rebuild its database statistics and optimize its query planner. You can easily do this via the playbook by running `just run-tags run-postgres-vacuum -e postgres_vacuum_preset=analyze` (see [Vacuuming PostgreSQL](maintenance-postgres.md#vacuuming-postgresql) for more details)."
  60. msgstr ""
  61. #: ../../../docs/importing-postgres.md:32
  62. msgid "Troubleshooting"
  63. msgstr ""
  64. #: ../../../docs/importing-postgres.md:34
  65. msgid "Table Ownership"
  66. msgstr ""
  67. #: ../../../docs/importing-postgres.md:36
  68. msgid "A table ownership issue can occur if you are importing from a Synapse installation which was both:"
  69. msgstr ""
  70. #: ../../../docs/importing-postgres.md:38
  71. msgid "migrated from SQLite to Postgres, and"
  72. msgstr ""
  73. #: ../../../docs/importing-postgres.md:39
  74. msgid "used a username other than 'synapse'"
  75. msgstr ""
  76. #: ../../../docs/importing-postgres.md:41
  77. msgid "In this case you may run into the following error during the import task:"
  78. msgstr ""
  79. #: ../../../docs/importing-postgres.md:47
  80. msgid "where `synapse_user` is the database username from the previous Synapse installation."
  81. msgstr ""
  82. #: ../../../docs/importing-postgres.md:49
  83. msgid "This can be verified by examining the dump for ALTER TABLE statements which set OWNER TO that username:"
  84. msgstr ""
  85. #: ../../../docs/importing-postgres.md:61
  86. msgid "It can be worked around by changing the username to `synapse`, for example by using `sed`:"
  87. msgstr ""
  88. #: ../../../docs/importing-postgres.md:67
  89. msgid "This uses sed to perform an 'in-place' (`-i`) replacement globally (`/g`), searching for `synapse_user` and replacing with `synapse` (`s/synapse_user/synapse`). If your database username was different, change `synapse_user` to that username instead. Expand search/replace statement as shown in example above, in case of old user name like `matrix` — replacing `matrix` only would… well — you can imagine."
  90. msgstr ""
  91. #: ../../../docs/importing-postgres.md:69
  92. msgid "Note that if the previous import failed with an error it may have made changes which are incompatible with re-running the import task right away; if you do so it may fail with an error such as:"
  93. msgstr ""
  94. #: ../../../docs/importing-postgres.md:75
  95. msgid "Repeat import"
  96. msgstr ""
  97. #: ../../../docs/importing-postgres.md:77
  98. msgid "In this case you can use the command suggested in the import task to clear the database before retrying the import:"
  99. msgstr ""
  100. #: ../../../docs/importing-postgres.md:85
  101. msgid "Now on your local machine run `just run-tags setup-postgres` to prepare the database roles etc."
  102. msgstr ""
  103. #: ../../../docs/importing-postgres.md:87
  104. msgid "If not, you probably get this error. `synapse` is the correct table owner, but the role is missing in database."
  105. msgstr ""
  106. #: ../../../docs/importing-postgres.md:93
  107. msgid "Once the database is clear and the ownership of the tables has been fixed in the SQL file, the import task should succeed."
  108. msgstr ""
  109. #: ../../../docs/importing-postgres.md:95
  110. msgid "Check, if `--dbname` is set to `synapse` (not `matrix`) and replace paths (or even better, copy this line from your terminal)"
  111. msgstr ""
  112. #: ../../../docs/importing-postgres.md:101
  113. msgid "Hints"
  114. msgstr ""
  115. #: ../../../docs/importing-postgres.md:103
  116. msgid "To open psql terminal run `/matrix/postgres/bin/cli`"
  117. msgstr ""