denshoproject / ddr-cmdln

Command-line tools for automating the Densho Digital Repository's various processes.
Other
0 stars 2 forks source link

Failure after syncing #62

Closed gjost closed 6 years ago

gjost commented 6 years ago

Syncing results in a failure message. Like issue #59, the operation completes successfully, but still results in a failure message.

Could not sync ddr-testing-40052 with the workbench server.
collection_url  /ui/collection/ddr-testing-40052/
status  FAILURE
task_id 434bf6d2-0eea-4a79-9140-c2ec66d84c84
traceback   
Traceback (most recent call last):
  File "/opt/ddr-local/venv/ddrlocal/local/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/opt/ddr-local/venv/ddrlocal/local/lib/python2.7/site-packages/celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "/opt/ddr-local/ddrlocal/webui/tasks.py", line 865, in collection_sync
    log.ok('Updating Elasticsearch')
NameError: global name 'log' is not defined
dismissable True
start   2018-03-12T13:09:36PDT-0700
result  NameError("global name 'log' is not defined",)
action  webui-collection-sync
collection_id   ddr-testing-40052
message Could not sync <b><a href="/ui/collection/ddr-testing-40052/">ddr-testing-40052</a></b> with the workbench server.
startd  March 12, 2018, 1:09 p.m.
gjost commented 6 years ago

Fix is in ddr-local: https://github.com/densho/ddr-local/issues/232