Dear Rita,

Il Wednesday 22 October 2008 13:08:15 Rita Ricceri ha scritto:
> I still have errors, can you help me?
>
>
> 1)
> web361:/opt/local/cds-invenio/bin admin$ ./bibindex
> BibIndex Task Submission
> ========================
> Username: [email protected]
> Password:
> /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/s
>ite-packages/invenio/dbquery.py:227: Warning: Field 'host' doesn't have a
> default value
>   rc = cur.execute(sql, param)
> 2008-10-22 13:01:45 --> Task #30664 submitted.
> web361:/opt/local/cds-invenio/bin admin$

this is just a harmless warning, you can safely ignore it. For the next 
release we will take care to make it disappear.

> 2)
> run ./bibsched
>
> 30653  bibupload      websubmit.Insert_Record2008-10-22 12:06:49
> ERROR
>
> 30658  bibupload [5]            2008-10-22 12:11:01         ERROR
> 30659  bibupload                2008-10-22 12:11:33         ERROR
> 30661  bibupload      websubmit.Insert_Record2008-10-22 12:32:14
> ERROR
> 30662  bibupload      websubmit.Insert_Record2008-10-22 12:47:23
> ERROR      None
> ****************
> less /var/log/bibsched_task_
> ----------------------------
> 2008-10-22 11:59:10 --> Error: The task #30649 is DONE.  I expected
> WAITING or SCHEDULED.
> 2008-10-22 11:59:10 --> Error occurred.  Exiting.
> -------------------------------
>
> 2008-10-22 12:51:59 --> Error: Cannot parse MARCXML file.
> 2008-10-22 12:51:59 --> Exiting.
> ******************

It's not exactly clear what task log are you displaying. But the 
sentence "Error: The task #30649 is DONE.  I expected WAITING or SCHEDULED." 
is a symptom that your running your tasks both manually (e.g. by typing 
bibupload 30649) and through bibsched daemon in automatic mode. Note that 
when bibsched is running in automatic mode it will take care of running 
automatically every task that enters the queue. 
A second possibility is that you are trying to run twice a bibtask. Once a 
bibtask has been executed, if you have not used the --sleeptime/-s option and 
you want to reexecute it, you have either to reinitialize it in the bibsched 
monitor interface, o resubmit it. Note also that normally you can't reexecute 
a "bibupload --insert" command because in most cases it will complain about 
record already existing.

Moreover: Error: "Cannot parse MARCXML file." could mean that either the 
MARCXML is empty or it contains garbage. In order to discover what it 
contains, you can press "O" in the bibsched monitor interface to discover the 
options with which the bibupload task was executed. Among them you will see 
the original .xml file containing the MARCXML. Just look into it and 
hopefully you will see if it's empty or it contains garbage...

> 3)
> less invenio.err
>
>
>  No client information available
> Traceback:
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
>site-packages/invenio/mailutils.py", line 114, in send_email
>     server = smtplib.SMTP(CFG_MISCUTIL_SMTP_HOST, CFG_MISCUTIL_SMTP_PORT)
>
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
>smtplib.py", line 244, in __init__
>     (code, msg) = self.connect(host, port)
>
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
>smtplib.py", line 296, in connect
>     for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):

Invenio expect an SMTP server for sending out different kind of automatic 
emails (including errors information). You can install this server locally 
(by installing e.g. postfix) or refer to an external SMTP server (you have to 
update then your invenio-local.conf variable to refer to the SMTP 
configuration).

Best regards,
        Samuele

-- 
.O.
..O
OOO

Reply via email to