-
Notifications
You must be signed in to change notification settings - Fork 288
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
Failed to add new language to the Templates #6885
Comments
Could you check the rq and redis version? Your error log is very hard to read, but it seems to be a job queue problem. |
I got this same error and fixed it by running:
Things work now. In case it's helpful, here's the output of
I'm running on Ubuntu 18 using sqlite. Here's the output of
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
I just setup Pootle on my server and create a new project and update the template file. Everything is fine until I'm going to add language to my template. When I add a new language to the templates on my website there will be a problem appear in my server console.
Results (Expected/Actual):
default: pootle_project.forms.update_translation_project(<TranslationProject: /ach/tutorial/>, True, 'http://this is url/') (7369a175-e21e-40a6-88f5-4d484da6291e) Traceback (most recent call last): File "/root/env/bin/pootle", line 11, in <module> sys.exit(main()) File "/root/env/local/lib/python2.7/site-packages/pootle/runner.py", line 357, in main run_app(project='pootle', django_settings_module='pootle.settings') File "/root/env/local/lib/python2.7/site-packages/pootle/runner.py", line 338, in run_app management.execute_from_command_line(command) File "/root/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/root/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/root/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv self.execute(*args, **cmd_options) File "/root/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute output = self.handle(*args, **options) File "/root/env/local/lib/python2.7/site-packages/django_rq/management/commands/rqworker.py", line 95, in handle w.work(burst=options.get('burst', False)) File "/root/env/local/lib/python2.7/site-packages/rq/worker.py", line 474, in work self.execute_job(job, queue) File "/root/env/local/lib/python2.7/site-packages/rq/worker.py", line 592, in execute_job self.fork_work_horse(job, queue) File "/root/env/local/lib/python2.7/site-packages/rq/worker.py", line 538, in fork_work_horse self.main_work_horse(job, queue) File "/root/env/local/lib/python2.7/site-packages/rq/worker.py", line 607, in main_work_horse success = self.perform_job(job, queue) File "/root/env/local/lib/python2.7/site-packages/rq/worker.py", line 703, in perform_job self.prepare_job_execution(job) File "/root/env/local/lib/python2.7/site-packages/rq/worker.py", line 636, in prepare_job_execution registry.add(job, timeout, pipeline=pipeline) File "/root/env/local/lib/python2.7/site-packages/rq/registry.py", line 38, in add return pipeline.zadd(self.key, score, job.id) File "/root/env/local/lib/python2.7/site-packages/redis/client.py", line 2263, in zadd for pair in iteritems(mapping): File "/root/env/local/lib/python2.7/site-packages/redis/_compat.py", line 94, in iteritems return x.iteritems() AttributeError: 'int' object has no attribute 'iteritems' [2019-01-03T08:29:46] Moving job to u'failed' queue (work-horse terminated unexpectedly; waitpid returned 256) [2019-01-03T08:29:46] [2019-01-03T08:29:46] *** Listening on default...
And on the website, there is new language appear without any string to translate.
Environment (i.e. 'pootle --version', DB, OS, Browser):
Pootle 2.8.2 (Django 1.10.8, Translate Toolkit 2.2.5)
Using MySQL
Ubuntu 16.04.5 x64
Chrome
This is the first time I'm trying to build a website like this. I'm not sure if there is any mistake done during deploy the pootle to my server.
The text was updated successfully, but these errors were encountered: