mediagoblin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TypeError: main_task() got multiple values for argument 'medium_size


From: Fernando Gutierrez
Subject: Re: TypeError: main_task() got multiple values for argument 'medium_size'
Date: Tue, 26 May 2020 17:43:55 -0500

Sending again to the list:

If after a while means when you restart the celery process then it may be the same bug: https://issues.mediagoblin.org/ticket/5608

In my case I don't see any transcoding issues. Actually videos survive a reboot but images get marked as failed.

Someone suggested a workaround for the bug in the ticket.

On Tue, May 26, 2020 at 5:35 PM Olivier Mehani <address@hidden> wrote:
Hi all,

Since upgrading to 0.10.0, it seems all my media gets marked as failed
to upload... But only after a while. It processes, gets a thumbnail and
shows properly on the main page. Then it disappears, and gets added to
the failed upload.

I'm seeing this message from the separate celery process when trying to
manually re-transcode the videos.

        WARNING:mediagoblin.processing:No idea what happened here, but it failed: TypeError("main_task() got multiple values for argument 'medium_size'")
        Traceback (most recent call last):
          File "/srv/spawn.cuthbert.mehani.name/mediagoblin/bin/gmg", line 11, in <module>
            load_entry_point('mediagoblin', 'console_scripts', 'gmg')()
          File "/srv/spawn.cuthbert.mehani.name/mediagoblin-v0.10.0/mediagoblin/gmg_commands/__init__.py", line 149, in main_cli
            args.func(args)
          File "/srv/spawn.cuthbert.mehani.name/mediagoblin-v0.10.0/mediagoblin/gmg_commands/reprocess.py", line 293, in reprocess
            run(args)
          File "/srv/spawn.cuthbert.mehani.name/mediagoblin-v0.10.0/mediagoblin/gmg_commands/reprocess.py", line 202, in run
            run_process_media(
          File "/srv/spawn.cuthbert.mehani.name/mediagoblin-v0.10.0/mediagoblin/submit/lib.py", line 277, in run_process_media
            chord(wf[0])(wf[1])
          File "/srv/spawn.cuthbert.mehani.name/mediagoblin-v0.10.0/lib/python3.8/site-packages/celery-4.2.2-py3.8.egg/celery/canvas.py", line 1189, in __call__
            return self.apply_async((), {'body': body} if body else {}, **options)
          File "/srv/spawn.cuthbert.mehani.name/mediagoblin-v0.10.0/lib/python3.8/site-packages/celery-4.2.2-py3.8.egg/celery/canvas.py", line 1232, in apply_async
            return self.run(tasks, body, args, task_id=task_id, **options)
          File "/srv/spawn.cuthbert.mehani.name/mediagoblin-v0.10.0/lib/python3.8/site-packages/celery-4.2.2-py3.8.egg/celery/canvas.py", line 1277, in run
            header_result = header(*partial_args, task_id=group_id, **options)
          File "/srv/spawn.cuthbert.mehani.name/mediagoblin-v0.10.0/lib/python3.8/site-packages/celery-4.2.2-py3.8.egg/celery/canvas.py", line 953, in __call__
            return self.apply_async(partial_args, **options)
          File "/srv/spawn.cuthbert.mehani.name/mediagoblin-v0.10.0/lib/python3.8/site-packages/celery-4.2.2-py3.8.egg/celery/canvas.py", line 977, in apply_async
            results = list(self._apply_tasks(tasks, producer, app, p,
          File "/srv/spawn.cuthbert.mehani.name/mediagoblin-v0.10.0/lib/python3.8/site-packages/celery-4.2.2-py3.8.egg/celery/canvas.py", line 1051, in _apply_tasks
            sig.apply_async(producer=producer, add_to_parent=False,
          File "/srv/spawn.cuthbert.mehani.name/mediagoblin-v0.10.0/lib/python3.8/site-packages/celery-4.2.2-py3.8.egg/celery/canvas.py", line 218, in apply_async
            return _apply(args, kwargs, **options)
          File "/srv/spawn.cuthbert.mehani.name/mediagoblin-v0.10.0/lib/python3.8/site-packages/celery-4.2.2-py3.8.egg/celery/app/task.py", line 513, in apply_async
            check_arguments(*(args or ()), **(kwargs or {}))
        TypeError: main_task() got multiple values for argument 'medium_size'

Note that just changing the status in the DB from failed to processed
just fixes the issue. This also affects images (though not sure the
transcoding warning above would occur).

Does that sound familiar to someone? Is there a known fix? I suspect it
might be the config, but I don't recall setting a 'medium_size'
anywhere.

--
Olivier Mehani <address@hidden>
PGP fingerprint: 4435 CF6A 7C8D DD9B E2DE  F5F9 F012 A6E2 98C6 6655
Confidentiality cannot be guaranteed on emails sent or received unencrypted.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]