[Loris-dev] Fwd: LORIS Document Repository

Shen Wang wangshen.mcin at gmail.com
Mon Jul 3 14:07:01 EDT 2017


Hi Bonhwang,

I tested Loris 17.0 on my VM, it works fine. It is difficult to debug
without error log.
Could you show me more error log or error message?
1, Run "sudo tail -f /var/log/apache2/loris-error.log" when you add a
category. Please show me the message.
2, Or Run "insert into document_repository_categories
(id,category_name,parent_id,comments) values('777','test','0',null)" in
your loris database. You should see the new test category. Then try upload
a file under test category. Tell me the result.

Best wishes

On 3 July 2017 at 11:08, Shen Wang <wangshen.mcin at gmail.com> wrote:

> Hi Ganesh
> You can get the "Document Repository" module functional without email
> server.
> Could you show me the error log or error message when you want to add a
> category?
>
> Shen
>
> On 3 July 2017 at 10:14, Bonhwang Koo <Bonhwang.Koo at childmind.org> wrote:
>
>> 17.0.3
>>
>>
>>
>> --
>>
>> Bonhwang Koo
>>
>> Research Assistant, CDB
>>
>> Child Mind Institute
>>
>> childmind.org
>>
>> 445 Park Avenue (entrance on 56th Street)
>>
>> New York, NY 10022
>>
>> E: Bonhwang.Koo at childmind.org
>>
>> p: 646.625.4398 <(646)%20625-4398>
>>
>> f: 646.625.4348 <(646)%20625-4348>
>>
>>
>>
>> Facebook: facebook.com/ChildMindInstitute | Follow us on Twitter:
>> twitter.com/ChildMindDotOrg
>>
>>
>>
>> ---
>>
>>
>>
>> This email message, including any attachments, is for the sole use of the
>> intended recipient(s) and may contain information that is proprietary,
>> confidential, and exempt from disclosure under applicable law. Any
>> unauthorized review, use, disclosure, or distribution is prohibited. If you
>> have received this email in error please notify the sender by return email
>> and delete the original message. Please note, the recipient should check
>> this email and any attachments for the presence of viruses. The
>> organization accepts no liability for any damage caused by any virus
>> transmitted by this email.
>>
>>
>>
>> *From: *Shen Wang <wangshen.mcin at gmail.com>
>> *Date: *Monday, July 3, 2017 at 10:04 AM
>> *To: *Bonhwang Koo <Bonhwang.Koo at childmind.org>
>> *Cc: *"Ganesh Chauhan (CBR)" <ganesh.chauhan at cbr.iisc.ac.in>, Samir Das <
>> samir.das at mcgill.ca>, loris-dev <Loris-dev at bic.mni.mcgill.ca>
>>
>> *Subject: *Re: [Loris-dev] Fwd: LORIS Document Repository
>>
>>
>>
>> Hi
>>
>> Could you tell me which version of Loris do you have? I will check it.
>>
>>
>>
>> Best wishes
>>
>> Shen
>>
>>
>>
>> On 29 June 2017 at 17:03, Bonhwang Koo <Bonhwang.Koo at childmind.org>
>> wrote:
>>
>> I followed your suggestion, although I ran the command for a slightly
>> different directory: “sudo chmod 777 /var/www/loris/modules/document_repository/user_uploads”,
>> and I still have the same issue. This isn’t working even though I have a
>> mail server installed via PostFix. I took a look at the console on my
>> browser, and this is the error I’m getting:
>>
>>
>>
>>
>>
>>
>>
>> This is the corresponding code in document_repository_helper.js:89 :
>>
>> $.ajax({
>>
>>     url: loris.BaseURL + "/document_repository/ajax/addCategory.php",
>>
>>     type: "POST",
>>
>>     data: $("#addCategoryForm").serialize(),
>>
>>     success: function() {
>>
>>       $("#addCategoryModal").modal('hide');
>>
>>       $("#addCategoryCategory").removeClass("has-error");
>>
>>       $("#categoryAddError").hide();
>>
>>       $('.add-success').show();
>>
>>       setTimeout(function() {
>>
>>         $('.add-success').hide();
>>
>>       }, 3000);
>>
>>       setTimeout(function() {
>>
>>         location.reload();
>>
>>       }, 3000);
>>
>>     },
>>
>>     error: function(jqXHR, textStatus, errorThrown) {
>>
>>       if (jqXHR.status === 400) {
>>
>>         $("#addCategoryCategory").addClass("has-error");
>>
>>         $("#categoryAddError").show()
>>
>>       }
>>
>>     }
>>
>>   });
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>> Bonhwang Koo
>>
>> Research Assistant, CDB
>>
>> Child Mind Institute
>>
>> childmind.org
>>
>> 445 Park Avenue (entrance on 56th Street)
>>
>> New York, NY 10022
>>
>> E: Bonhwang.Koo at childmind.org
>>
>> p: 646.625.4398 <(646)%20625-4398>
>>
>> f: 646.625.4348 <(646)%20625-4348>
>>
>>
>>
>> Facebook: facebook.com/ChildMindInstitute | Follow us on Twitter:
>> twitter.com/ChildMindDotOrg
>>
>>
>>
>> ---
>>
>>
>>
>> This email message, including any attachments, is for the sole use of the
>> intended recipient(s) and may contain information that is proprietary,
>> confidential, and exempt from disclosure under applicable law. Any
>> unauthorized review, use, disclosure, or distribution is prohibited. If you
>> have received this email in error please notify the sender by return email
>> and delete the original message. Please note, the recipient should check
>> this email and any attachments for the presence of viruses. The
>> organization accepts no liability for any damage caused by any virus
>> transmitted by this email.
>>
>>
>>
>> *From: *"Ganesh Chauhan (CBR)" <ganesh.chauhan at cbr.iisc.ac.in>
>> *Date: *Thursday, June 29, 2017 at 12:21 AM
>> *To: *Shen Wang <wangshen.mcin at gmail.com>
>> *Cc: *Samir Das <samir.das at mcgill.ca>, loris-dev <
>> Loris-dev at bic.mni.mcgill.ca>, Bonhwang Koo <Bonhwang.Koo at childmind.org>
>>
>>
>> *Subject: *Re: [Loris-dev] Fwd: LORIS Document Repository
>>
>>
>>
>> Hi,
>>
>>
>>
>> I have had the same problem of not being able to add a category despite
>> having file permissions.
>>
>> Though I still do not have the email server setup for LORIS. Hence do you
>> think that without the email server we cannot get the "Document Repository"
>> module functional.
>>
>>
>>
>> Thanks for your suggestion.
>>
>>
>>
>> With best regards,
>>
>> Ganesh
>>
>>
>> ------------------------------
>>
>> *From: *"Shen Wang" <wangshen.mcin at gmail.com>
>> *To: *"Samir Das" <samir.das at mcgill.ca>
>> *Cc: *"loris-dev" <Loris-dev at bic.mni.mcgill.ca>, "Bonhwang Koo" <
>> Bonhwang.Koo at childmind.org>
>> *Sent: *Thursday, June 29, 2017 12:52:48 AM
>> *Subject: *Re: [Loris-dev] Fwd: LORIS Document Repository
>>
>>
>>
>> Hello:
>>
>> Maybe you need to have file system permission to create the upload
>> directory.
>>
>> I think It is not a Loris issue.
>>
>> As a quick fix, you can do: "sudo chmod 777 /var/www/loris/
>> document_repository/user_uploads".
>>
>> /var/www/loris/ will be replaced by your loris directory.
>>
>> I hope this can help you.
>>
>>
>>
>> Shen
>>
>>
>>
>> On 27 June 2017 at 16:09, Samir Das <samir.das at mcgill.ca> wrote:
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: *Bonhwang Koo* <Bonhwang.Koo at childmind.org>
>> Date: Mon, Jun 26, 2017 at 8:28 AM
>> Subject: LORIS Document Repository
>> To: "loris.info at mcin.ca" <loris.info at mcin.ca>
>>
>> Hello,
>>
>>
>>
>> I am working with the Child Mind Institute’s Healthy Brain Network
>> initiative, and we created a LORIS instance to allow users query data from
>> our recent data release. I want to use the document repository feature, but
>> it won’t allow me to upload a file without a category, so when I try to add
>> a new category, nothing happens. Can you help me resolve this issue?
>>
>>
>>
>> Best,
>>
>> --
>>
>> Bonhwang Koo
>>
>> Research Assistant, CDB
>>
>> Child Mind Institute
>>
>> childmind.org
>>
>> 445 Park Avenue (entrance on 56th Street)
>>
>> New York, NY 10022
>>
>> E: Bonhwang.Koo at childmind.org
>>
>> p: 646.625.4398 <(646)%20625-4398>
>>
>> f: 646.625.4348 <(646)%20625-4348>
>>
>>
>>
>> Facebook: facebook.com/ChildMindInstitute | Follow us on Twitter:
>> twitter.com/ChildMindDotOrg
>>
>>
>>
>> ---
>>
>>
>>
>> This email message, including any attachments, is for the sole use of the
>> intended recipient(s) and may contain information that is proprietary,
>> confidential, and exempt from disclosure under applicable law. Any
>> unauthorized review, use, disclosure, or distribution is prohibited. If you
>> have received this email in error please notify the sender by return email
>> and delete the original message. Please note, the recipient should check
>> this email and any attachments for the presence of viruses. The
>> organization accepts no liability for any damage caused by any virus
>> transmitted by this email.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Loris-dev mailing list
>> Loris-dev at bic.mni.mcgill.ca
>> http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>>
>>
>>
>>
>> _______________________________________________
>> Loris-dev mailing list
>> Loris-dev at bic.mni.mcgill.ca
>> http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>>
>>
>>
>> --
>>
>> Ganesh Chauhan (PhD)
>> Scientist
>> Centre for Brain Research (CBR)
>> Indian Institute of Science (IISc)
>> Bengaluru, INDIA
>> +91 80 2293 3009 <+91%2080%202293%203009>
>> https://www.cbr.iisc.ac.in
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20170703/14af2088/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 27544 bytes
Desc: not available
URL: <http://www.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20170703/14af2088/attachment-0001.png>


More information about the Loris-dev mailing list