#384 Traceback in cleanup
Closed 3 years ago by lsedlar. Opened 3 years ago by lsedlar.

[2020-04-03 02:36:33,961: ERROR/ForkPoolWorker-56] Task odcs.server.celery_tasks.run_cleanup[8368aadd-17d7-448c-b5fa-94509ff15f9f] raised unexpected: TypeError('coercing to Unicode: need string or buffer, NoneType found',)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 382, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 641, in __protected_call__
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/odcs/server/celery_tasks.py", line 211, in run_cleanup
    remove_expired_compose_thread.do_work()
  File "/usr/lib/python2.7/site-packages/odcs/server/backend.py", line 212, in do_work
    if not os.path.exists(compose.target_dir):
  File "/usr/lib64/python2.7/genericpath.py", line 18, in exists
    os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found

Looking at the code, this is almost impossible with a valid configuration: the target_dir attribute of a compose will either use a non-empty value from database or fall back to configuration, which should generally be non-empty.

The time when this happened coincides with an upgrade. Possibly the code/configuration was in some mismatched state.

Metadata Update from @lsedlar:
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata