Page MenuHomeSoftware Heritage
Paste P494

Error while running gnu lister
ActivePublic

Authored by nahimilega on Aug 9 2019, 7:35 AM.
swh-lister_1 | [2019-08-09 05:32:01,482: ERROR/ForkPoolWorker-1] Task swh.lister.gnu.tasks.GNUListerTask[e997c3cf-0dfc-423e-9460-3e8d685321b7] raised unexpected: NotNullViolation('null value in column "retries_left" violates not-null constraint\nDETAIL: Failing row contains (225791, load-tar, {"args": ["gcal", "https://ftp.gnu.org/gnu/gcal/"], "kwargs": {"..., 2019-08-09 05:32:01.13707+00, null, next_run_not_scheduled, recurring, null, null).\nCONTEXT: SQL statement "insert into task (type, arguments, next_run, status, current_interval, policy,\n retries_left, priority)\n select type, arguments, next_run, status, current_interval, policy,\n retries_left, priority\n from tmp_task t\n where not exists(select 1\n from task\n where type = t.type and\n arguments->\'args\' = t.arguments->\'args\' and\n arguments->\'kwargs\' = t.arguments->\'kwargs\' and\n policy = t.policy and\n priority is not distinct from t.priority and\n status = t.status)"\nPL/pgSQL function swh_scheduler_create_tasks_from_temp() line 12 at SQL statement\n')
swh-lister_1 | Traceback (most recent call last):
swh-lister_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/celery/app/trace.py", line 385, in trace_task
swh-lister_1 | R = retval = fun(*args, **kwargs)
swh-lister_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/scheduler/task.py", line 45, in __call__
swh-lister_1 | return super().__call__(*args, **kwargs)
swh-lister_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/celery/app/trace.py", line 648, in __protected_call__
swh-lister_1 | return self.run(*args, **kwargs)
swh-lister_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/lister/gnu/tasks.py", line 12, in gnu_lister
swh-lister_1 | GNULister(**lister_args).run()
swh-lister_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/lister/core/simple_lister.py", line 72, in run
swh-lister_1 | response, injected_repos = self.ingest_data(dump_not_used_identifier)
swh-lister_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/lister/core/simple_lister.py", line 54, in ingest_data
swh-lister_1 | self.schedule_missing_tasks(models, injected)
swh-lister_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/lister/core/lister_base.py", line 467, in schedule_missing_tasks
swh-lister_1 | (task_dicts for (_, _, task_dicts) in tasks.values()))
swh-lister_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/scheduler/api/client.py", line 31, in create_tasks
swh-lister_1 | return self.post('create_tasks', {'tasks': tasks})
swh-lister_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/core/api/__init__.py", line 198, in post
swh-lister_1 | return self._decode_response(response)
swh-lister_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/core/api/__init__.py", line 230, in _decode_response
swh-lister_1 | raise pickle.loads(decode_response(response))
swh-lister_1 | psycopg2.errors.NotNullViolation: null value in column "retries_left" violates not-null constraint
swh-lister_1 | DETAIL: Failing row contains (225791, load-tar, {"args": ["gcal", "https://ftp.gnu.org/gnu/gcal/"], "kwargs": {"..., 2019-08-09 05:32:01.13707+00, null, next_run_not_scheduled, recurring, null, null).
swh-lister_1 | CONTEXT: SQL statement "insert into task (type, arguments, next_run, status, current_interval, policy,
swh-lister_1 | retries_left, priority)
swh-lister_1 | select type, arguments, next_run, status, current_interval, policy,
swh-lister_1 | retries_left, priority
swh-lister_1 | from tmp_task t
swh-lister_1 | where not exists(select 1
swh-lister_1 | from task
swh-lister_1 | where type = t.type and
swh-lister_1 | arguments->'args' = t.arguments->'args' and
swh-lister_1 | arguments->'kwargs' = t.arguments->'kwargs' and
swh-lister_1 | policy = t.policy and
swh-lister_1 | priority is not distinct from t.priority and
swh-lister_1 | status = t.status)"
swh-lister_1 | PL/pgSQL function swh_scheduler_create_tasks_from_temp() line 12 at SQL statement
swh-lister_1 |
(swh) archit@work-pc:~/swh-environment$

Event Timeline

nahimilega created this paste.Aug 9 2019, 7:35 AM
nahimilega created this object in space S1 Public.