-
-
Notifications
You must be signed in to change notification settings - Fork 958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
weblate loaddata,meet problem. #8522
Comments
What is content of the file? |
This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you! |
Hello Sir.
I am testing full backup and recovery .
Data from command 'weblate dumpdata > /tmp/weblate.dump' at docker.
***@***.*** ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e3cceeb109e6 weblate/weblate "/app/bin/start runs…" 05weblate_weblate_1
5e5ef8114a54 redis:6-alpine "docker-entrypoint.s…" 05weblate_cache_1
42f3b6da1f76 postgres:15-alpine "docker-entrypoint.s…" 05weblate_database_1
***@***.*** ~]# docker exec -it 05weblate_weblate_1 bash
***@***.***:/$ weblate dumpdata > /tmp/weblate.dump
在 12/23/22 15:40, Michal Čihař 写道:
…
What is content of the file?
—
Reply to this email directly, view it on GitHub
<#8522 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3ZJAXTMDACXJLEYNNSLOGDWOVJPHANCNFSM6AAAAAATHO3GRQ>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
[{"model": "addons.addon", "pk": 136, "fields": {"component": 40, "name": "weblate.cleanup.blank", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 137, "fields": {"component": 40, "name": "weblate.generate.prefill", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 138, "fields": {"component": 40, "name": "weblate.discovery.discovery", "configuration": "{"match": "(?P.)/src/main/res/values[-](?P[^/])/strings.xml", "file_format": "aresource", "name_template": "Android-git: {{ component }}", "base_file_template": "{{ component }}/src/main/res/values/strings.xml", "new_base_template": "", "intermediate_template": "", "language_regex": "^(.)$", "copy_addons": true, "remove": false, "confirm": true, "preview": true}", "state": "{}", "project_scope": false, "repo_scope": true}}, {"model": "addons.addon", "pk": 140, "fields": {"component": 43, "name": "weblate.cleanup.blank", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 141, "fields": {"component": 43, "name": "weblate.generate.prefill", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 143, "fields": {"component": 41, "name": "weblate.cleanup.blank", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 144, "fields": {"component": 44, "name": "weblate.cleanup.blank", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 145, "fields": {"component": 46, "name": "weblate.cleanup.blank", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 146, "fields": {"component": 41, "name": "weblate.generate.prefill", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 147, "fields": {"component": 45, "name": "weblate.cleanup.blank", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 148, "fields": {"component": 44, "name": "weblate.generate.prefill", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 149, "fields": {"component": 47, "name": "weblate.cleanup.blank", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 150, "fields": {"component": 45, "name": "weblate.generate.prefill", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 151, "fields": {"component": 48, "name": "weblate.cleanup.blank", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 152, "fields": {"component": 46, "name": "weblate.generate.prefill", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 153, "fields": {"component": 47, "name": "weblate.generate.prefill", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 154, "fields": {"component": 48, "name": "weblate.generate.prefill", "configuration": "{}", "state": "{}", "project_scope": false, "repo_scope": false}}, {"model": "addons.addon", "pk": 155, "fields": {"component": 49, "name": "weblate.cleanup.blank", "configuration": "{}", "state": "{}", "project_scope": false, ".... Sir, Can you help me? |
The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.
|
Thank you for your report; the issue you have reported has just been fixed.
|
solved |
Maybe you could share what was the issue? That would be helpful in case somebody else runs into the same issue... |
Using database dumps is way faster and there are better approaches for migration to PostgreSQL. Fixes #8522
Describe the issue
https://docs.weblate.org/en/latest/admin/install.html
Export current data
weblate dumpdata > /tmp/weblate.dump
Import dump
weblate loaddata /tmp/weblate.dump
weblate@e3cceeb109e6:/$ weblate loaddata /tmp/weblate.dump
CommandError: Problem installing fixture '/tmp/weblate': dump is not a known serialization format.
weblate@e3cceeb109e6:/$ weblate version
4.1.4
I already tried
Steps to reproduce the behavior
Expected behavior
No response
Screenshots
No response
Exception traceback
No response
How do you run Weblate?
Docker container
Weblate versions
weblate version
4.1.4
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: