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
Execute zammad run rails r Translation.sync without error
Actual behavior:
zammad run rails r Translation.sync
[1mTraceback�[m (most recent call last):
29: from bin/rails:9:in `<main>'
28: from /opt/zammad/ruby-2.7.4/gems/bootsnap-1.10.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
27: from /opt/zammad/ruby-2.7.4/gems/bootsnap-1.10.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
26: from /opt/zammad/ruby-2.7.4/gems/railties-6.0.4.6/lib/rails/commands.rb:18:in `<main>'
25: from /opt/zammad/ruby-2.7.4/gems/railties-6.0.4.6/lib/rails/command.rb:46:in `invoke'
24: from /opt/zammad/ruby-2.7.4/gems/railties-6.0.4.6/lib/rails/command/base.rb:69:in `perform'
23: from /opt/zammad/ruby-2.7.4/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
22: from /opt/zammad/ruby-2.7.4/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
21: from /opt/zammad/ruby-2.7.4/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
20: from /opt/zammad/ruby-2.7.4/gems/railties-6.0.4.6/lib/rails/commands/runner/runner_command.rb:45:in `perform'
19: from /opt/zammad/ruby-2.7.4/gems/railties-6.0.4.6/lib/rails/commands/runner/runner_command.rb:45:in `eval'
18: from /opt/zammad/ruby-2.7.4/gems/railties-6.0.4.6/lib/rails/commands/runner/runner_command.rb:45:in `<main>'
17: from /opt/zammad/app/models/translation/synchronizes_from_po.rb:11:in `sync'
16: from /opt/zammad/ruby-2.7.4/gems/activerecord-6.0.4.6/lib/active_record/relation/delegation.rb:88:in `each'
15: from /opt/zammad/ruby-2.7.4/gems/activerecord-6.0.4.6/lib/active_record/relation/delegation.rb:88:in `each'
14: from /opt/zammad/app/models/translation/synchronizes_from_po.rb:12:in `block in sync'
13: from /opt/zammad/ruby-2.7.4/gems/activerecord-6.0.4.6/lib/active_record/transactions.rb:212:in `transaction'
12: from /opt/zammad/ruby-2.7.4/gems/activerecord-6.0.4.6/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `transaction'
11: from /opt/zammad/ruby-2.7.4/gems/activerecord-6.0.4.6/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `within_new_transaction'
10: from /opt/zammad/ruby-2.7.4/gems/activesupport-6.0.4.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
9: from /opt/zammad/ruby-2.7.4/gems/activesupport-6.0.4.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
8: from /opt/zammad/ruby-2.7.4/gems/activesupport-6.0.4.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
7: from /opt/zammad/ruby-2.7.4/gems/activesupport-6.0.4.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
6: from /opt/zammad/ruby-2.7.4/gems/activesupport-6.0.4.6/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
5: from /opt/zammad/ruby-2.7.4/gems/activerecord-6.0.4.6/lib/active_record/connection_adapters/abstract/transaction.rb:280:in `block in within_new_transaction'
4: from /opt/zammad/ruby-2.7.4/gems/activerecord-6.0.4.6/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `block in transaction'
3: from /opt/zammad/app/models/translation/synchronizes_from_po.rb:13:in `block (2 levels) in sync'
2: from /opt/zammad/app/models/translation/synchronizes_from_po.rb:24:in `sync_locale_from_po'
1: from /opt/zammad/app/models/translation/synchronizes_from_po.rb:70:in `strings_for_locale' /opt/zammad/app/models/translation/synchronizes_from_po.rb:98:in `po_files_for_locale': �[1mNo translation found for locale 'zj-tw'. (�[1;4mRuntimeError�[m�[1m)�
Workaround:
zammad run rails r "Locale.where(locale: 'zj-tw').destroy_all"
zammad run rails r "Translation.where(locale: 'zj-tw').destroy_all"
The text was updated successfully, but these errors were encountered:
Infos:
Expected behavior:
zammad run rails r Translation.sync
without errorActual behavior:
Workaround:
The text was updated successfully, but these errors were encountered: