Re: How adding slave formates to record works?
On Tue, 25 Mar 2014, Tibor Simko wrote: Thanks; so it is cleared for maint-1.1, but I'll wait for your master inspections before merge. Thanks for the review. Merged. http://invenio-software.org/ticket/1647 Best regards -- Tibor Simko
Re: How adding slave formates to record works?
Hi Filip, On 03/25/2014 11:18 AM, Filip wrote: Hi all, so I read this thread https://www.mail-archive.com/project-invenio-general@cern.ch/msg00533.html because we have the same problem. Right now we have rights for user root and not www-data, but I still dont understand how adding works, because the only place where _sync_to_db is called is in bibdocfileclu.py in cli_fix_bibdocfsinfo_cache and in cli_update_md5. After I run bibdocfile --fix-bibdocfsinfo-cache everything is linked and videos are running in browser. I think that this all should be running when a record is added(not for all of them of course), but I cannot find out when/where or how it is trigged. Or db syncing is also at some other place ? thank you regards Filip Tuhy I'm not sure I understand exactly your question, but this issue should be solved with this patch (soon to be integrated into Invenio maint-1.1) http://invenio-software.org/repo/personal/invenio-jerome/commit/?h=maint-1.1-1647-BibEncode-fix-video-file-synchro-to-dbid=26b9002a01df0695b21300a613ddeeeb47f44623 The corresponding ticket: http://invenio-software.org/ticket/1647 After applying this patch, you still have the same problems? Best regards, Ludmila -- Ludmila Marian Software Engineer CERN, IT Department, Digital Library Service Section
Re: How adding slave formates to record works?
Hi Filip, I'm glad it works! The video is a special case for bibdocfile as files are not added via the API, but are placed in the bibdoc folder, directly on disk, and then the update procedure is called, which indeed, in some cases is not correctly synchronising the db. Cheers, Ludmila On 03/25/2014 12:20 PM, Filip wrote: Hi Ludmila that patch seems to work, that was actually exactly my question, because I was not able to found, in source code, place where database is synchronized other than manually. thank you for your help Filip Tuhy On 25/03/14 11:42 AM, Ludmila Marian wrote: Hi Filip, On 03/25/2014 11:18 AM, Filip wrote: Hi all, so I read this thread https://www.mail-archive.com/project-invenio-general@cern.ch/msg00533.html because we have the same problem. Right now we have rights for user root and not www-data, but I still dont understand how adding works, because the only place where _sync_to_db is called is in bibdocfileclu.py in cli_fix_bibdocfsinfo_cache and in cli_update_md5. After I run bibdocfile --fix-bibdocfsinfo-cache everything is linked and videos are running in browser. I think that this all should be running when a record is added(not for all of them of course), but I cannot find out when/where or how it is trigged. Or db syncing is also at some other place ? thank you regards Filip Tuhy I'm not sure I understand exactly your question, but this issue should be solved with this patch (soon to be integrated into Invenio maint-1.1) http://invenio-software.org/repo/personal/invenio-jerome/commit/?h=maint-1.1-1647-BibEncode-fix-video-file-synchro-to-dbid=26b9002a01df0695b21300a613ddeeeb47f44623 The corresponding ticket: http://invenio-software.org/ticket/1647 After applying this patch, you still have the same problems? Best regards, Ludmila -- Ludmila Marian Software Engineer CERN, IT Department, Digital Library Service Section
Re: How adding slave formates to record works?
On Tue, 25 Mar 2014, Ludmila Marian wrote: I'm glad it works! BTW is this patch ready to go in? Ticket #1647 does not seem to have been requested for merge, and I did not see it mentioned under CDS specific pages either. Perhaps because it is not applicable to master? Best regards -- Tibor Simko
Re: How adding slave formates to record works?
Hi Tibor, I think Jerome was only waiting for a ack from Sam, but the patch should be ready for maint-1.1. Best regards, Ludmila On 03/25/2014 02:16 PM, Tibor Simko wrote: On Tue, 25 Mar 2014, Ludmila Marian wrote: I'm glad it works! BTW is this patch ready to go in? Ticket #1647 does not seem to have been requested for merge, and I did not see it mentioned under CDS specific pages either. Perhaps because it is not applicable to master? Best regards
Re: How adding slave formates to record works?
In data martedì 25 marzo 2014 14:19:03, Ludmila Marian ha scritto: I think Jerome was only waiting for a ack from Sam, but the patch should be ready for maint-1.1. Oh! I haven't noticed that ticket. I see now that I am in CC for it but was not assigned as reviewer... I'll check it. Cheers! Sam -- Samuele Kaplun Invenio Developer ** http://invenio-software.org/ INSPIRE Service Manager ** http://inspirehep.net/
Re: How adding slave formates to record works?
On Tue, 25 Mar 2014, Samuele Kaplun wrote: I'll check it. Thanks; so it is cleared for maint-1.1, but I'll wait for your master inspections before merge. Best regards -- Tibor Simko