weblate
weblate copied to clipboard
Migration failure when updating to 4.14.1
Describe the issue
Hi all,
We are running Weblate deployed into Kubernetes and tried to update from 4.3.1-1 to 4.14.1. On startup Weblate tries to run the migration which fails with a weird git error.
Starting...
Postgres 120008 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
Applying trans.0116_migrate_glossaries...Migrating glossaries 0% [0/1]...Homologation
[2022-09-21 08:59:58,757: WARNING/53] Handled exception: RepositoryException: Author identity unknown
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
I do not really understand what is going wrong here and how to fix it. Seems like git configuration is incorrect, but I have no idea why it is broken now and how to fix it (git integration worked fine in previous version). Maybe you have any advise? Is there any configuration missing maybe?
I tried to configure git by adding a .gitconfig file in /app/data/home/.git/.gitconfig with a user and email address included but that didn't change anything.
Thanks
I already tried
- [X] I've read and searched the documentation.
- [X] I've searched for similar issues in this repository.
Steps to reproduce the behavior
no idea
Expected behavior
Migration runs fine
Screenshots
No response
Exception traceback
fatal: unable to auto-detect email address (got 'weblate@weblate-878856b99-cmmd2.(none)')
(128)
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/weblate/runner.py", line 34, in main
utility.execute()
File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 402, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 448, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 96, in wrapped
res = handle_func(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/core/management/commands/migrate.py", line 349, in handle
post_migrate_state = executor.migrate(
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/executor.py", line 135, in migrate
state = self._migrate_all_forwards(
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/executor.py", line 167, in _migrate_all_forwards
state = self.apply_migration(
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/executor.py", line 252, in apply_migration
state = migration.apply(state, schema_editor)
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/migration.py", line 130, in apply
operation.database_forwards(
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/operations/special.py", line 193, in database_forwards
self.code(from_state.apps, schema_editor)
File "/usr/local/lib/python3.10/site-packages/weblate/trans/migrations/0116_migrate_glossaries.py", line 83, in migrate_glossaries
repo = LocalRepository.from_files(repo_path, {})
File "/usr/local/lib/python3.10/site-packages/weblate/vcs/git.py", line 1152, in from_files
cls._clone("local:", target, cls.default_branch)
File "/usr/local/lib/python3.10/site-packages/weblate/vcs/git.py", line 1123, in _clone
cls._init(target)
File "/usr/local/lib/python3.10/site-packages/weblate/vcs/git.py", line 1117, in _init
cls._popen(["commit", "--message", "Repository created by Weblate"], path)
File "/usr/local/lib/python3.10/site-packages/weblate/vcs/base.py", line 213, in _popen
raise RepositoryException(
weblate.vcs.base.RepositoryException: Author identity unknown
How do you run Weblate?
Docker container
Weblate versions
No response
Weblate deploy checks
No response
Additional context
No response