You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading the docker image from 5.0.2 (I'm certain it was running on 5.0.2) to 5.2 I'm running into the following issue:
Starting...
System check identified no issues (1 silenced).
Postgres 150005 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, django_celery_beat, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
Applying trans.0003_alter_project_access_control... OK
Applying trans.0004_alter_change_action... OK
Applying trans.0005_alter_change_alert_alter_change_announcement_and_more... OK
Applying trans.0006_alter_change_action... OK
Applying accounts.0002_new_string_notification... OK
Applying accounts.0003_alter_auditlog_activity... OK
Applying accounts.0004_alter_profile_twitter... OK
Applying trans.0007_alter_change_action... OK
Applying trans.0008_workflowsetting... OK
[2023-11-22 08:02:52,643: INFO/68] Acquired Lock('lock:lock:gitlock').
CommandError: User exists, specify --update to update existing
Refreshing stats...
[2023-11-22 08:02:59,345: WARNING/110] Handled exception: KeyError: 'unapproved_words'
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/runner.py", line 19, in main
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/base.py", line 27, in execute
return super().execute(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/commands/ensure_stats.py", line 18, in handle
all_strings = GlobalStats().all
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 237, in __getattr__
self.calculate_by_name(name)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 248, in calculate_by_name
self.calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 311, in calculate_basic
self._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 1220, in _calculate_basic
super()._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 805, in _calculate_basic
stats[item] = sum(values)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 788, in <genexpr>
values = (stats_obj.aggregate_get(item) for stats_obj in all_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 211, in aggregate_get
return self._data[name]
~~~~~~~~~~^^^^^^
KeyError: 'unapproved_words'
Starting...
System check identified no issues (1 silenced).
Postgres 150005 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, django_celery_beat, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
No migrations to apply.
[2023-11-22 08:03:16,263: INFO/70] Acquired Lock('lock:lock:gitlock').
CommandError: User exists, specify --update to update existing
Refreshing stats...
[2023-11-22 08:03:23,001: WARNING/111] Handled exception: KeyError: 'total_changes'
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/runner.py", line 19, in main
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/base.py", line 27, in execute
return super().execute(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/commands/ensure_stats.py", line 18, in handle
all_strings = GlobalStats().all
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 237, in __getattr__
self.calculate_by_name(name)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 248, in calculate_by_name
self.calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 311, in calculate_basic
self._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 1220, in _calculate_basic
super()._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 805, in _calculate_basic
stats[item] = sum(values)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 788, in <genexpr>
values = (stats_obj.aggregate_get(item) for stats_obj in all_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 211, in aggregate_get
return self._data[name]
~~~~~~~~~~^^^^^^
KeyError: 'total_changes'
Starting...
System check identified no issues (1 silenced).
Postgres 150005 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, django_celery_beat, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
No migrations to apply.
[2023-11-22 08:03:39,885: INFO/69] Acquired Lock('lock:lock:gitlock').
CommandError: User exists, specify --update to update existing
Refreshing stats...
[2023-11-22 08:03:46,766: WARNING/110] Handled exception: KeyError: 'unapproved'
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/runner.py", line 19, in main
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/base.py", line 27, in execute
return super().execute(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/commands/ensure_stats.py", line 18, in handle
all_strings = GlobalStats().all
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 237, in __getattr__
self.calculate_by_name(name)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 248, in calculate_by_name
self.calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 311, in calculate_basic
self._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 1220, in _calculate_basic
super()._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 805, in _calculate_basic
stats[item] = sum(values)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 788, in <genexpr>
values = (stats_obj.aggregate_get(item) for stats_obj in all_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 211, in aggregate_get
return self._data[name]
~~~~~~~~~~^^^^^^
KeyError: 'unapproved'
Starting...
System check identified no issues (1 silenced).
Postgres 150005 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, django_celery_beat, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
No migrations to apply.
[2023-11-22 08:04:03,599: INFO/69] Acquired Lock('lock:lock:gitlock').
CommandError: User exists, specify --update to update existing
Refreshing stats...
[2023-11-22 08:04:10,328: WARNING/110] Handled exception: KeyError: 'unapproved_words'
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/runner.py", line 19, in main
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/base.py", line 27, in execute
return super().execute(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/commands/ensure_stats.py", line 18, in handle
all_strings = GlobalStats().all
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 237, in __getattr__
self.calculate_by_name(name)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 248, in calculate_by_name
self.calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 311, in calculate_basic
self._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 1220, in _calculate_basic
super()._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 805, in _calculate_basic
stats[item] = sum(values)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 788, in <genexpr>
values = (stats_obj.aggregate_get(item) for stats_obj in all_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 211, in aggregate_get
return self._data[name]
~~~~~~~~~~^^^^^^
KeyError: 'unapproved_words'
Starting...
System check identified no issues (1 silenced).
Postgres 150005 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, django_celery_beat, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
No migrations to apply.
[2023-11-22 08:04:27,153: INFO/69] Acquired Lock('lock:lock:gitlock').
CommandError: User exists, specify --update to update existing
Refreshing stats...
[2023-11-22 08:04:33,963: WARNING/110] Handled exception: KeyError: 'monthly_changes'
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/runner.py", line 19, in main
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/base.py", line 27, in execute
return super().execute(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/commands/ensure_stats.py", line 18, in handle
all_strings = GlobalStats().all
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 237, in __getattr__
self.calculate_by_name(name)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 248, in calculate_by_name
self.calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 311, in calculate_basic
self._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 1220, in _calculate_basic
super()._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 805, in _calculate_basic
stats[item] = sum(values)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 788, in <genexpr>
values = (stats_obj.aggregate_get(item) for stats_obj in all_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 211, in aggregate_get
return self._data[name]
~~~~~~~~~~^^^^^^
KeyError: 'monthly_changes'
Starting...
System check identified no issues (1 silenced).
Postgres 150005 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, django_celery_beat, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
No migrations to apply.
[2023-11-22 08:04:50,885: INFO/69] Acquired Lock('lock:lock:gitlock').
CommandError: User exists, specify --update to update existing
Refreshing stats...
[2023-11-22 08:04:57,746: WARNING/110] Handled exception: KeyError: 'unapproved_chars'
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/runner.py", line 19, in main
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/base.py", line 27, in execute
return super().execute(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/commands/ensure_stats.py", line 18, in handle
all_strings = GlobalStats().all
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 237, in __getattr__
self.calculate_by_name(name)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 248, in calculate_by_name
self.calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 311, in calculate_basic
self._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 1220, in _calculate_basic
super()._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 805, in _calculate_basic
stats[item] = sum(values)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 788, in <genexpr>
values = (stats_obj.aggregate_get(item) for stats_obj in all_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 211, in aggregate_get
return self._data[name]
~~~~~~~~~~^^^^^^
KeyError: 'unapproved_chars'
Starting...
System check identified no issues (1 silenced).
Postgres 150005 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, django_celery_beat, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
No migrations to apply.
[2023-11-22 08:05:14,663: INFO/68] Acquired Lock('lock:lock:gitlock').
CommandError: User exists, specify --update to update existing
Refreshing stats...
[2023-11-22 08:05:21,304: WARNING/109] Handled exception: KeyError: 'unapproved_words'
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/runner.py", line 19, in main
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/base.py", line 27, in execute
return super().execute(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/commands/ensure_stats.py", line 18, in handle
all_strings = GlobalStats().all
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 237, in __getattr__
self.calculate_by_name(name)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 248, in calculate_by_name
self.calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 311, in calculate_basic
self._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 1220, in _calculate_basic
super()._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 805, in _calculate_basic
stats[item] = sum(values)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 788, in <genexpr>
values = (stats_obj.aggregate_get(item) for stats_obj in all_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 211, in aggregate_get
return self._data[name]
~~~~~~~~~~^^^^^^
KeyError: 'unapproved_words'
Starting...
System check identified no issues (1 silenced).
Postgres 150005 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, django_celery_beat, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
No migrations to apply.
[2023-11-22 08:05:37,887: INFO/69] Acquired Lock('lock:lock:gitlock').
CommandError: User exists, specify --update to update existing
Refreshing stats...
[2023-11-22 08:05:44,548: WARNING/110] Handled exception: KeyError: 'unapproved'
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/runner.py", line 19, in main
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/base.py", line 27, in execute
return super().execute(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/commands/ensure_stats.py", line 18, in handle
all_strings = GlobalStats().all
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 237, in __getattr__
self.calculate_by_name(name)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 248, in calculate_by_name
self.calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 311, in calculate_basic
self._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 1220, in _calculate_basic
super()._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 805, in _calculate_basic
stats[item] = sum(values)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 788, in <genexpr>
values = (stats_obj.aggregate_get(item) for stats_obj in all_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 211, in aggregate_get
return self._data[name]
~~~~~~~~~~^^^^^^
KeyError: 'unapproved'
Starting...
System check identified no issues (1 silenced).
Postgres 150005 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, django_celery_beat, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
No migrations to apply.
[2023-11-22 08:06:01,189: INFO/69] Acquired Lock('lock:lock:gitlock').
CommandError: User exists, specify --update to update existing
Refreshing stats...
[2023-11-22 08:06:07,816: WARNING/110] Handled exception: KeyError: 'monthly_changes'
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/runner.py", line 19, in main
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/base.py", line 27, in execute
return super().execute(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/commands/ensure_stats.py", line 18, in handle
all_strings = GlobalStats().all
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 237, in __getattr__
self.calculate_by_name(name)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 248, in calculate_by_name
self.calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 311, in calculate_basic
self._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 1220, in _calculate_basic
super()._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 805, in _calculate_basic
stats[item] = sum(values)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 788, in <genexpr>
values = (stats_obj.aggregate_get(item) for stats_obj in all_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 211, in aggregate_get
return self._data[name]
~~~~~~~~~~^^^^^^
KeyError: 'monthly_changes'
Starting...
System check identified no issues (1 silenced).
Postgres 150005 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, django_celery_beat, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
No migrations to apply.
[2023-11-22 08:06:24,697: INFO/69] Acquired Lock('lock:lock:gitlock').
CommandError: User exists, specify --update to update existing
Refreshing stats...
[2023-11-22 08:06:31,435: WARNING/110] Handled exception: KeyError: 'total_changes'
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/runner.py", line 19, in main
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/base.py", line 27, in execute
return super().execute(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/commands/ensure_stats.py", line 18, in handle
all_strings = GlobalStats().all
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 237, in __getattr__
self.calculate_by_name(name)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 248, in calculate_by_name
self.calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 311, in calculate_basic
self._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 1220, in _calculate_basic
super()._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 805, in _calculate_basic
stats[item] = sum(values)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 788, in <genexpr>
values = (stats_obj.aggregate_get(item) for stats_obj in all_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 211, in aggregate_get
return self._data[name]
~~~~~~~~~~^^^^^^
KeyError: 'total_changes'
Starting...
System check identified no issues (1 silenced).
Postgres 150005 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, django_celery_beat, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
No migrations to apply.
[2023-11-22 08:06:47,915: INFO/68] Acquired Lock('lock:lock:gitlock').
CommandError: User exists, specify --update to update existing
Refreshing stats...
[2023-11-22 08:06:54,738: WARNING/109] Handled exception: KeyError: 'recent_changes'
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/runner.py", line 19, in main
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/base.py", line 27, in execute
return super().execute(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/commands/ensure_stats.py", line 18, in handle
all_strings = GlobalStats().all
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 237, in __getattr__
self.calculate_by_name(name)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 248, in calculate_by_name
self.calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 311, in calculate_basic
self._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 1220, in _calculate_basic
super()._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 805, in _calculate_basic
stats[item] = sum(values)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 788, in <genexpr>
values = (stats_obj.aggregate_get(item) for stats_obj in all_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 211, in aggregate_get
return self._data[name]
~~~~~~~~~~^^^^^^
KeyError: 'recent_changes'
Starting...
System check identified no issues (1 silenced).
Postgres 150005 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, django_celery_beat, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
No migrations to apply.
[2023-11-22 08:07:11,521: INFO/69] Acquired Lock('lock:lock:gitlock').
CommandError: User exists, specify --update to update existing
Refreshing stats...
[2023-11-22 08:07:18,260: WARNING/110] Handled exception: KeyError: 'monthly_changes'
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/runner.py", line 19, in main
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/base.py", line 27, in execute
return super().execute(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/commands/ensure_stats.py", line 18, in handle
all_strings = GlobalStats().all
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 237, in __getattr__
self.calculate_by_name(name)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 248, in calculate_by_name
self.calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 311, in calculate_basic
self._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 1220, in _calculate_basic
super()._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 805, in _calculate_basic
stats[item] = sum(values)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 788, in <genexpr>
values = (stats_obj.aggregate_get(item) for stats_obj in all_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 211, in aggregate_get
return self._data[name]
~~~~~~~~~~^^^^^^
KeyError: 'monthly_changes'
Starting...
System check identified no issues (1 silenced).
Postgres 150005 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, django_celery_beat, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
No migrations to apply.
[2023-11-22 08:07:34,968: INFO/69] Acquired Lock('lock:lock:gitlock').
CommandError: User exists, specify --update to update existing
Refreshing stats...
[2023-11-22 08:07:41,713: WARNING/110] Handled exception: KeyError: 'unapproved_chars'
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/runner.py", line 19, in main
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/base.py", line 27, in execute
return super().execute(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/commands/ensure_stats.py", line 18, in handle
all_strings = GlobalStats().all
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 237, in __getattr__
self.calculate_by_name(name)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 248, in calculate_by_name
self.calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 311, in calculate_basic
self._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 1220, in _calculate_basic
super()._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 805, in _calculate_basic
stats[item] = sum(values)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 788, in <genexpr>
values = (stats_obj.aggregate_get(item) for stats_obj in all_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 211, in aggregate_get
return self._data[name]
~~~~~~~~~~^^^^^^
KeyError: 'unapproved_chars'
Starting...
System check identified no issues (1 silenced).
Postgres 150005 is up
Starting database migration...
Operations to perform:
Apply all migrations: accounts, addons, admin, auth, authtoken, checks, configuration, contenttypes, django_celery_beat, fonts, gitexport, glossary, lang, memory, metrics, screenshots, sessions, social_django, trans, utils, vcs, weblate_auth, wladmin
Running migrations:
No migrations to apply.
[2023-11-22 08:07:58,326: INFO/69] Acquired Lock('lock:lock:gitlock').
CommandError: User exists, specify --update to update existing
Refreshing stats...
[2023-11-22 08:08:05,141: WARNING/110] Handled exception: KeyError: 'recent_changes'
Traceback (most recent call last):
File "/usr/local/bin/weblate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/runner.py", line 19, in main
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/base.py", line 27, in execute
return super().execute(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/management/commands/ensure_stats.py", line 18, in handle
all_strings = GlobalStats().all
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 237, in __getattr__
self.calculate_by_name(name)
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 248, in calculate_by_name
self.calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 311, in calculate_basic
self._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 1220, in _calculate_basic
super()._calculate_basic()
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 805, in _calculate_basic
stats[item] = sum(values)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 788, in <genexpr>
values = (stats_obj.aggregate_get(item) for stats_obj in all_stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/weblate/utils/stats.py", line 211, in aggregate_get
return self._data[name]
~~~~~~~~~~^^^^^^
KeyError: 'recent_changes'
Not really sure what's going on as an upgrade from 5.0.2 should work according to the docs.
I just reverted to 5.0.2, first upgraded to 5.1.1 and then to 5.2 and now everything is working fine. Not sure if this is expected, but I'm not complaining :)
edit: actually no, while the initial startup works, I still run into the exception at runtime. Had to revert back to 5.1.1 for now.
Describe the issue
When upgrading the docker image from
5.0.2
(I'm certain it was running on5.0.2
) to5.2
I'm running into the following issue:Not really sure what's going on as an upgrade from 5.0.2 should work according to the docs.
I already tried
Steps to reproduce the behavior
Expected behavior
No response
Screenshots
No response
Exception traceback
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: