2013-11-14 01:11:51 à Task #211 started 2013-11-14 01:11:51 à harvesting from selected repositories
2013-11-14 01:11:51 à running in postmode p-r-a-t-u 2013-11-14 01:11:51 à an error occurred while harvesting from source cdsweb for the dates chosen local variable e referenced before assignment 2013-11-14 01:11:51 à An error occurred. Task is configured to stop 2013-11-14 01:11:51 à Task #211 finished. [DONE WITH ERRORS] Hello Genis, Can you also paste the exception stacktrace, probably just before the one you pasted, that is named "Local variable e referenced before assignment"? That would greatly help in tracing down the bug :-) Thanks, Jan Åge Lavik INSPIRE@CERN On Wed, Nov 13, 2013 at 10:47 PM, Genis Musulmanbekov <[email protected]> wrote: Hello! We are using invenio 1.1.2 as test server. Trying to harvest records from cdsweb.cern.ch I received the following messages: In bibsched.log an error occurred while harvesting from source cdsweb for the dates chosen: Local variable e referenced before assignment In invenio.err * 2013-11-14 01:11:55 -> StandardError: BibTask with ERRORS: #211 oaiharvest -> DONE WITH ERRORS (bibsched.py:1239:check_errors) ** User details No client information available ** Traceback details Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/invenio/bibsched.py", line 1302, in watch_loop calculate_rows() File "/usr/lib64/python2.6/site-packages/invenio/bibsched.py", line 1246, in calculate_rows check_errors() File "/usr/lib64/python2.6/site-packages/invenio/bibsched.py", line 1239, in check_errors raise StandardError(msg) StandardError: BibTask with ERRORS: #211 oaiharvest -> DONE WITH ERRORS ** Stack frame details Frame check_errors in /usr/lib64/python2.6/site-packages/invenio/bibsched.py at line 1239 ---------------------------------------------------------------------------- --- 1236 msg = 'BibTask with ERRORS:\n%s' % "\n".join(msg_errors) 1237 err_types = set(e[2] for e in errors if e[2]) 1238 if 'ERROR' in err_types or 'DONE WITH ERRORS' in err_types: ----> 1239 raise StandardError(msg) 1240 else: 1241 raise RecoverableError(msg) 1242 ---------------------------------------------------------------------------- --- err_types = "set(['DONE WITH ERRORS'])" errors = "((211L, 'oaiharvest', 'DONE WITH ERRORS'),)" msg_errors = "[' #211 oaiharvest -> DONE WITH ERRORS']" sql = '"SELECT count(id) FROM schTASK WHERE status=\'ERROR\' OR status=\'DONE WITH ERRORS\' OR STATUS=\'CERROR\'"' msg = "'BibTask with ERRORS:\\n #211 oaiharvest -> DONE WITH ERRORS'" row = "(211L, 'oaiharvest', 'DONE WITH ERRORS')" Frame calculate_rows in /usr/lib64/python2.6/site-packages/invenio/bibsched.py at line 1249 ---------------------------------------------------------------------------- --- 1246 check_errors() 1247 except RecoverableError, msg: 1248 register_emergency('Light emergency from %s: BibTask failed: %s' % (CFG_SITE_URL, msg)) ----> 1249 run_sql("UPDATE schTASK SET status='ERRORS REPORTED' WHERE status='CERROR'") 1250 1251 max_bibupload_priority, min_bibupload_priority = run_sql( 1252 """SELECT MAX(priority), MIN(priority) ---------------------------------------------------------------------------- --- self = '<invenio.bibsched.BibSched object at 0x383dc10>' check_errors = '<function check_errors at 0x35af2a8>' Frame watch_loop in /usr/lib64/python2.6/site-packages/invenio/bibsched.py at line 1322 ---------------------------------------------------------------------------- --- 1319 else: 1320 time.sleep(CFG_BIBSCHED_REFRESHTIME) 1321 except Exception, err: ----> 1322 register_exception(alert_admin=True) 1323 try: 1324 register_emergency('Emergency from %s: BibSched halted: %s' % (CFG_SITE_URL, err)) 1325 except NotImplementedError: ---------------------------------------------------------------------------- --- check_errors = '<function check_errors at 0x35af2a8>' calculate_rows = '<function calculate_rows at 0x384d8c0>' task = "(211L, 'oaiharvest', datetime.datetime(2013, 11, 14, 1, 11, 45), 'WAITING', 0, '', None)" self = '<invenio.bibsched.BibSched object at 0x383dc10>' err = "StandardError('BibTask with ERRORS:\\n #211 oaiharvest -> DONE WITH ERRORS',)" Thanks!

