Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAIHarvest: Error during first run of harvest #1727

Closed
frecar opened this issue May 6, 2014 · 3 comments
Closed

OAIHarvest: Error during first run of harvest #1727

frecar opened this issue May 6, 2014 · 3 comments

Comments

@frecar
Copy link
Member

frecar commented May 6, 2014

The problem is that it tries to parse the timestamp value, the default value for the timestamp is ''

Quickfix is to set the value for last_run in the database to an arbitrary old date.

Unexpected error occurred: time data '' does not match format '%Y-%m-%d %H:%M:%S'.
2014-05-05 23:38:03 --> Traceback is:
2014-05-05 23:38:03 -->   File "/usr/local/lib/python2.7/dist-packages/invenio/bibtask.py", line 606, in task_init
2014-05-05 23:38:03 -->     ret = _task_run(task_run_fnc)
2014-05-05 23:38:03 -->   File "/usr/local/lib/python2.7/dist-packages/invenio/bibtask.py", line 1146, in _task_run
2014-05-05 23:38:03 -->     if callable(task_run_fnc) and task_run_fnc():
2014-05-05 23:38:03 -->   File "/usr/local/lib/python2.7/dist-packages/invenio/oai_harvest_daemon.py", line 158, in task_run_core
2014-05-05 23:38:03 -->     harvested_files_list, error_code = harvest_step(repository, harvestpath, identifiers, datelist, current_progress)
2014-05-05 23:38:03 -->   File "/usr/local/lib/python2.7/dist-packages/invenio/oai_harvest_daemon.py", line 401, in harvest_step
2014-05-05 23:38:03 -->     updatedue = add_timestamp_and_timelag(lastrundate, timeinsec)
2014-05-05 23:38:03 -->   File "/usr/local/lib/python2.7/dist-packages/invenio/oai_harvest_utils.py", line 184, in add_timestamp_and_timelag
2014-05-05 23:38:03 -->     "%Y-%m-%d %H:%M:%S"))
2014-05-05 23:38:03 -->   File "/usr/lib/python2.7/_strptime.py", line 454, in _strptime_time
2014-05-05 23:38:03 -->     return _strptime(data_string, format)[0]
2014-05-05 23:38:03 -->   File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
2014-05-05 23:38:03 -->     (data_string, format))
2014-05-05 23:38:03 --> Exiting.
@tiborsimko tiborsimko added this to the v1.x milestone Jun 20, 2014
@tiborsimko
Copy link
Member

@Kennethhole Do you have a PR for this issue in the TIND overlay?

@jalavik
Copy link
Contributor

jalavik commented Sep 22, 2015

@tiborsimko This was fixed by #2793

@tiborsimko
Copy link
Member

Thanks, closing this then, since PR #2793 was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants