Dear Yihua Zheng,

When submitting new records into CDS Invenio, there are a few things to be aware of.

CDS Invenio has a scheduler utility called "bibsched" whose job is to schedule and manage the execution of the various tasks that manipulate the database. Bibsched creates a "queue" of tasks to be executed and then executes them one at a time, so that they do not clash with each other.

When you submit a new record into CDS Invenio via the WebSubmit interface, the system uses a tool called "bibupload" to upload the new record into the database. The bibupload task is put into the queue that is managed by the bibsched scheduler. The scheduler then decides when to execute the task.

On your CDS Invenio machine, you can view the bibsched queue like this:

$ /path-to-cds-invenio/bin/bibsched

(**
Note: You may need to run it as the same user as your web-server, e.g.
$ sudo -u apache /path-to-cds-invenio/bin/bibsched
**)

When you have run this command, you will see a list of the processes currently in the bibsched queue. You will find that with the up and down arrows, you can move the cursor line over a given task, and if you want you can run it by pressing "r". Running it will actually insert the record into the database.

After a record bas been inserted into the database you can view it if you know the record ID. For example:

<http://cdsware.cern.ch:8000/record/74>

In the above record, 74 is the record ID.

However, it won't yet show up when you search for it because it needs to be indexed and the web-collection cache needs to be recreated. For this, you ought to have "bibindex", "bibreformat" and "webcoll" jobs scheduled. As an example, you could set them up as jobs to be run every hour:

$ /path-to-cds-invenio/bin/bibindex -f50000 -s1h
$ /path-to-cds-invenio/bin/bibreformat -oHB -s1h
$ /path-to-cds-invenio/bin/webcoll -v0 -s1h

It is bibsched's job to execute these tasks, so it's best to have bibsched running as a daemon on your server (otherwise you have to run the jobs manually.)

To start bibsched as a daemon:

$ sudo -u apache /path-to-cds-invenio/bin/bibsched start


So, to recap, you need to:

1. Schedule bibindex, bibreformat webcoll (and bibrank if ranking interests you):

     $ /path-to-cds-invenio/bin/bibindex -f50000 -s1h
     $ /path-to-cds-invenio/bin/bibreformat -oHB -s1h
     $ /path-to-cds-invenio/bin/webcoll -v0 -s1h
     $ /path-to-cds-invenio/bin/bibrank -f50000 -s1h

2. Start the bibsched daemon:
     $ sudo -u apache /path-to-cds-invenio/bin/bibsched start


Now your records will be integrated automatically.

You can read more about it here:

<http://cdsware.cern.ch:8000/admin/howto/run.html>

The page is also available in your local installation:

<http://your-cds-invenio-installation/admin/howto/run.html>

I hope this helps.

Best wishes,
Nick.

On 31 Jul 2007, at 13:38, CDS Support Team wrote:


        Dear Yihua,
        Your question is being forwarded to the cdsware developer mailing
list.
        With best regards,
                CDS Support

ps- You should check in BibSched that all processes are running well
(BibUpload, BibIndex and Webcoll).


---------- Forwarded message ----------
Date: Tue, 31 Jul 2007 18:41:58 +0800
From: Yihua Zheng <[email protected]>
To: [email protected]
Subject: Why I can't submit new file!

Hi,

I am sorry to bother you. I have a question about Invenio.

I download cds-invenio from you CVS, and I setup the cds-Invenio, alse I create the demo-site, I can search with the demo data. But when I create a new record, upload my files. But I can't search, Also I can't '"upload
new files", there are always show below information, I am the
administrator of invenio, but I don't know what I shall to do? Can you
help me? Thank you very much!!

Error:

The document with report-number[TEST-ARTICLE-2007-006] cannot be found
in our database. Perhaps it has not yes been integrated? You can choose
another report number or retry this action in a few minutes.

Just like below picture shows:

Click "finish selection" button, show below information.(I think
TEST-ARTICLE-2007-006 is right)


But I don't know hot to integrate.


Best Regards!


-Yihua Zheng







Reply via email to