Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P882
swh-indexer-journal-client error on origin_visit
Active
Public
Actions
Authored by
vsellier
on Nov 26 2020, 3:17 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
ardumont
root@journal0:~# swh indexer --config-file=/etc/softwareheritage/indexer/journal_client.yml journal-client
Traceback (most recent call last):
File "/usr/bin/swh", line 11, in <module>
load_entry_point('swh.core==0.9.1', 'console_scripts', 'swh')()
File "/usr/lib/python3/dist-packages/swh/core/cli/__init__.py", line 135, in main
return swh(auto_envvar_prefix="SWH")
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python3/dist-packages/swh/indexer/cli.py", line 281, in journal_client
client.process(worker_fn)
File "/usr/lib/python3/dist-packages/swh/journal/client.py", line 265, in process
batch_processed, at_eof = self.handle_messages(messages, worker_fn)
File "/usr/lib/python3/dist-packages/swh/journal/client.py", line 292, in handle_messages
worker_fn(dict(objects))
File "/usr/lib/python3/dist-packages/swh/indexer/journal_client.py", line 18, in process_journal_objects
process_origin_visits(messages["origin_visit"], scheduler, task_names)
File "/usr/lib/python3/dist-packages/swh/indexer/journal_client.py", line 25, in process_origin_visits
visits = [visit for visit in visits if visit["status"] == "full"]
File "/usr/lib/python3/dist-packages/swh/indexer/journal_client.py", line 25, in <listcomp>
visits = [visit for visit in visits if visit["status"] == "full"]
KeyError: 'status'
Event Timeline
vsellier
created this paste.
Nov 26 2020, 3:17 PM
2020-11-26 15:17:12 (UTC+1)
ardumont
mentioned this in
D4605: indexer.journal_client: Subscribe to OriginVisitStatus topic
.
Nov 26 2020, 3:17 PM
2020-11-26 15:17:59 (UTC+1)
ardumont
added a subscriber:
ardumont
.
Nov 26 2020, 3:18 PM
2020-11-26 15:18:25 (UTC+1)
Comment Actions
Related to
T2814
ardumont
mentioned this in
rDCIDX7e03cc687c00: indexer.journal_client: Subscribe to OriginVisitStatus topic
.
Nov 26 2020, 4:58 PM
2020-11-26 16:58:55 (UTC+1)
Log In to Comment