Cannot Upload File Under Manage Deposits

298 views
Skip to first unread message

YEAT YEE LEE

unread,
Jun 26, 2018, 4:28:16 AM6/26/18
to EPrints UK User Group
Sorry but I am very new to eprints system. 
I have been trying to setup eprints in Centos 64bit since early June. However, I have encountered many issues during installation and configuration steps. Worse is, I am not familiar with Perl and XML.
When I finally managed to start eprints service and can login via eprints website, I cannot upload file under Manage Deposits. I check the error_log in /var/log/httpd, and saw the following:

Failed to mkdir /opt/eprints3/archives/eprints/documents/disk0/00: Permission denied
Unable to write to /opt/eprints3/archives/eprints/documents/disk0/00/00/00/09/01/unnamed.png: No such file or directory
EPrints::Storage: No plugins available to store file/28
file/28::set_file(unnamed.png) failed: No storage plugins succeeded
document.15 failed to create subdataobj on document.files at /opt/eprints3/perl_lib/EPrints/DataObj.pm line 313.

I am very sure I have created user and group eprints, and the permission of /opt/eprints3/ is set to eprints:eprints. Please advise. 


Thank you very much.
Untitled.jpg

Adam Field

unread,
Jun 26, 2018, 5:32:44 PM6/26/18
to YEAT YEE LEE, EPrints UK User Group


What happens when you run:

ls -ld /opt/eprints3/archives/eprints/
ls -ld /opt/eprints3/archives/eprints/documents/

Who owns these directories?

Try:

sudo chown -R eprints:eprints /opt/eprints3


Let us know how it goes

Adam




The content in this e-mail and any attachments are intended solely for the addressee or addressees and any disclosure of such contents to other parties is unauthorized, not condoned by the TAR UC and may be unlawful. If you are not the intended recipient, please delete the message and any attachments and notify the sender. No undertaking, guarantee or other obligation contained in this e-mail shall be binding upon the TAR UC unless confirmed in writing under our letterhead. Any views and or representations expressed by any individual within this e-mail shall not be deemed as reflecting the stand of the TAR UC. All liabilities arising as a result of, or consequential upon any cyber security breach, including but not limited to computer viruses, is excluded to the fullest extent permissible by law.



--
You received this message because you are subscribed to the Google Groups "EPrints UK User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eprints-uk-user-...@googlegroups.com.
To post to this group, send email to eprints-uk...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/eprints-uk-user-group/15442f55-b29d-4583-bd31-27ef9c9bc39d%40googlegroups.com.
<Untitled.jpg>

YEAT YEE LEE

unread,
Jun 28, 2018, 12:21:45 AM6/28/18
to Adam Field, EPrints UK User Group
Hi,
    Sorry for late reply.
    Following is the result:



   For the chown command, I have already run it, but the result is the same. Please advise.


    If you have any inquiries, please do not hesitate to contact me.
    Thank you.


Regards,
Lee Yeat Yee
CIT Centre
Tunku Abdul Rahman University College
Tel: 03-41450123 ext 3511
Fax: 03-41438980


To unsubscribe from this group and stop receiving emails from it, send an email to eprints-uk-user-group+unsub...@googlegroups.com.
To post to this group, send email to eprints-uk-user-group@googlegroups.com.
<Untitled.jpg>


John Salter

unread,
Jun 28, 2018, 2:39:32 AM6/28/18
to YEAT YEE LEE, Adam Field, EPrints UK User Group

Hi Yeat Yee Lee,

Which user is your Apache webserver running as?


I think in CentOS it's in:

/etc/httpd/conf/httpd.conf


Look for the lines: 

User  apache
Group apache

If this server will only be used for EPrints, change these to:
User  eprints
Group eprints

If you are installing EPrints on a server that is already used for other things, then another approach may be needed. Let us know if this is the case and we will help!

Cheers,
John


From: eprints-uk...@googlegroups.com <eprints-uk...@googlegroups.com> on behalf of YEAT YEE LEE <le...@tarc.edu.my>
Sent: 28 June 2018 05:21:41
To: Adam Field
Cc: EPrints UK User Group
Subject: Re: Cannot Upload File Under Manage Deposits
 
To unsubscribe from this group and stop receiving emails from it, send an email to eprints-uk-user-...@googlegroups.com.
To post to this group, send email to eprints-uk...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/eprints-uk-user-group/CAFh1ZVBd9-MXm4ebQUc%3D1fXxE1aTBZ-4QMVxK%3Dvwp5m%3D2kZ%3DsA%40mail.gmail.com.

YEAT YEE LEE

unread,
Jun 28, 2018, 2:50:12 AM6/28/18
to John Salter, Adam Field, EPrints UK User Group
Hi,
    This server solely use by eprints.
    Refer to the below for the configuration:



   I have restarted the httpd service and even the server few times.

    If you have any inquiries, please do not hesitate to contact me.
    Thank you.


Regards,
Lee Yeat Yee
CIT Centre
Tunku Abdul Rahman University College
Tel: 03-41450123 ext 3511
Fax: 03-41438980


On Thu, Jun 28, 2018 at 2:39 PM, John Salter <J.Sa...@leeds.ac.uk> wrote:

Hi Yeat Yee Lee,

Which user is your Apache webserver running as?


I think in CentOS it's in:

/etc/httpd/conf/httpd.conf


Look for the lines: 

User  apache
Group apache

If this server will only be used for EPrints, change these to:
User  eprints
Group eprints

If you are installing EPrints on a server that is already used for other things, then another approach may be needed. Let us know if this is the case and we will help!

Cheers,
John


To unsubscribe from this group and stop receiving emails from it, send an email to eprints-uk-user-group+unsubscri...@googlegroups.com.


The content in this e-mail and any attachments are intended solely for the addressee or addressees and any disclosure of such contents to other parties is unauthorized, not condoned by the TAR UC and may be unlawful. If you are not the intended recipient, please delete the message and any attachments and notify the sender. No undertaking, guarantee or other obligation contained in this e-mail shall be binding upon the TAR UC unless confirmed in writing under our letterhead. Any views and or representations expressed by any individual within this e-mail shall not be deemed as reflecting the stand of the TAR UC. All liabilities arising as a result of, or consequential upon any cyber security breach, including but not limited to computer viruses, is excluded to the fullest extent permissible by law.


--
You received this message because you are subscribed to the Google Groups "EPrints UK User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eprints-uk-user-group+unsub...@googlegroups.com.
To post to this group, send email to eprints-uk-user-group@googlegroups.com.

John Salter

unread,
Jun 28, 2018, 3:07:19 AM6/28/18
to YEAT YEE LEE, Adam Field, EPrints UK User Group

Hi,

On CentOS there is also SELinux - which may be stopping Apache from writing to the directories.


If you run:

> sestatus

the output might contain:

SELinux status: enabled


To run a quick check (don't do this on a production system), run:

> setenforce 0


And try uploading a document (you might need to restart Apache too).


If this does solve the problem, the 'real' fix (to use on production servers) is documented here:


https://wiki.eprints.org/w/Installing_EPrints_on_RHEL/Fedora/CentOS#Using_SELinux

Cheers,

John



From: YEAT YEE LEE <le...@tarc.edu.my>
Sent: 28 June 2018 07:50:09
To: John Salter
Cc: Adam Field; EPrints UK User Group

YEAT YEE LEE

unread,
Jun 28, 2018, 3:49:31 AM6/28/18
to John Salter, Adam Field, EPrints UK User Group
Hi,
    It works. Thank you very much!

    If you have any inquiries, please do not hesitate to contact me.
    Thank you.


Regards,
Lee Yeat Yee
CIT Centre
Tunku Abdul Rahman University College
Tel: 03-41450123 ext 3511
Fax: 03-41438980




The content in this e-mail and any attachments are intended solely for the addressee or addressees and any disclosure of such contents to other parties is unauthorized, not condoned by the TAR UC and may be unlawful. If you are not the intended recipient, please delete the message and any attachments and notify the sender. No undertaking, guarantee or other obligation contained in this e-mail shall be binding upon the TAR UC unless confirmed in writing under our letterhead. Any views and or representations expressed by any individual within this e-mail shall not be deemed as reflecting the stand of the TAR UC. All liabilities arising as a result of, or consequential upon any cyber security breach, including but not limited to computer viruses, is excluded to the fullest extent permissible by law.


YEAT YEE LEE

unread,
Jun 28, 2018, 4:00:32 AM6/28/18
to John Salter, Adam Field, EPrints UK User Group
Hi,
    Sorry but I have another problem.
    I can upload the file after follow the steps in the link. Following is the sample that I have uploaded:



   I can download the document. But when clicked the URL, I got the following:



   I got the same error message either logged in or without login. Please advise.



    If you have any inquiries, please do not hesitate to contact me.
    Thank you.


Regards,
Lee Yeat Yee
CIT Centre
Tunku Abdul Rahman University College
Tel: 03-41450123 ext 3511
Fax: 03-41438980


John Salter

unread,
Jun 28, 2018, 5:01:18 AM6/28/18
to YEAT YEE LEE, Adam Field, EPrints UK User Group

Aaah, this is the same problem - but the directory isn't listed on the wiki page.

But there may also be other directories that need permission too.

 

From a message on the eprints tech list (http://threader.ecs.soton.ac.uk/lists/eprints_tech/21145.html), it might be best to apply the permission to the whole EPrints installation directory:

chcon -R -t httpd_sys_content_rw_t /opt/eprints3

 

But this might be too 'open' (hopefully other people on this list running EPrints on CentOS can provide some thoughts!).

 

 

Also, the EPrints Tech list might be a better place to ask technical questions (see details here: https://wiki.eprints.org/w/Contact#eprints-tech_Mailing_List).

 

Hope that helps a bit more!

John

 

From: YEAT YEE LEE [mailto:le...@tarc.edu.my]
Sent: 28 June 2018 09:00
To: John Salter <J.Sa...@leeds.ac.uk>
Cc: Adam Field <adamstr...@gmail.com>; EPrints UK User Group <eprints-uk...@googlegroups.com>
Subject: Re: Cannot Upload File Under Manage Deposits

 

Hi,

    Sorry but I have another problem.

Image removed by sender.

 

Thank you very much.

 


The content in this e-mail and any attachments are intended solely for the addressee or addressees and any disclosure of such contents to other parties is unauthorized, not condoned by the TAR UC and may be unlawful. If you are not the intended recipient, please delete the message and any attachments and notify the sender. No undertaking, guarantee or other obligation contained in this e-mail shall be binding upon the TAR UC unless confirmed in writing under our letterhead. Any views and or representations expressed by any individual within this e-mail shall not be deemed as reflecting the stand of the TAR UC. All liabilities arising as a result of, or consequential upon any cyber security breach, including but not limited to computer viruses, is excluded to the fullest extent permissible by law.

 


Image removed by sender.

 

--
You received this message because you are subscribed to the Google Groups "EPrints UK User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to eprints-uk-user-...@googlegroups.com.
To post to this group, send email to eprints-uk...@googlegroups.com.

 


The content in this e-mail and any attachments are intended solely for the addressee or addressees and any disclosure of such contents to other parties is unauthorized, not condoned by the TAR UC and may be unlawful. If you are not the intended recipient, please delete the message and any attachments and notify the sender. No undertaking, guarantee or other obligation contained in this e-mail shall be binding upon the TAR UC unless confirmed in writing under our letterhead. Any views and or representations expressed by any individual within this e-mail shall not be deemed as reflecting the stand of the TAR UC. All liabilities arising as a result of, or consequential upon any cyber security breach, including but not limited to computer viruses, is excluded to the fullest extent permissible by law.

 


Image removed by sender.

--
You received this message because you are subscribed to the Google Groups "EPrints UK User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to eprints-uk-user-...@googlegroups.com.
To post to this group, send email to eprints-uk...@googlegroups.com.

 


The content in this e-mail and any attachments are intended solely for the addressee or addressees and any disclosure of such contents to other parties is unauthorized, not condoned by the TAR UC and may be unlawful. If you are not the intended recipient, please delete the message and any attachments and notify the sender. No undertaking, guarantee or other obligation contained in this e-mail shall be binding upon the TAR UC unless confirmed in writing under our letterhead. Any views and or representations expressed by any individual within this e-mail shall not be deemed as reflecting the stand of the TAR UC. All liabilities arising as a result of, or consequential upon any cyber security breach, including but not limited to computer viruses, is excluded to the fullest extent permissible by law.

 


Image removed by sender.

 

 

 


The content in this e-mail and any attachments are intended solely for the addressee or addressees and any disclosure of such contents to other parties is unauthorized, not condoned by the TAR UC and may be unlawful. If you are not the intended recipient, please delete the message and any attachments and notify the sender. No undertaking, guarantee or other obligation contained in this e-mail shall be binding upon the TAR UC unless confirmed in writing under our letterhead. Any views and or representations expressed by any individual within this e-mail shall not be deemed as reflecting the stand of the TAR UC. All liabilities arising as a result of, or consequential upon any cyber security breach, including but not limited to computer viruses, is excluded to the fullest extent permissible by law.

 


Image removed by sender.

YEAT YEE LEE

unread,
Jun 28, 2018, 5:10:39 AM6/28/18
to John Salter, Adam Field, EPrints UK User Group
Hi,
    I run the command to open all access and it is accessible now. 
    Thank you for your advice. I will further study on any risk to open whole directory.

    If you have any inquiries, please do not hesitate to contact me.
    Thank you.


Regards,
Lee Yeat Yee
CIT Centre
Tunku Abdul Rahman University College
Tel: 03-41450123 ext 3511
Fax: 03-41438980


To unsubscribe from this group and stop receiving emails from it, send an email to eprints-uk-user-group+unsub...@googlegroups.com.
To post to this group, send email to eprints-uk-user-group@googlegroups.com.

 


The content in this e-mail and any attachments are intended solely for the addressee or addressees and any disclosure of such contents to other parties is unauthorized, not condoned by the TAR UC and may be unlawful. If you are not the intended recipient, please delete the message and any attachments and notify the sender. No undertaking, guarantee or other obligation contained in this e-mail shall be binding upon the TAR UC unless confirmed in writing under our letterhead. Any views and or representations expressed by any individual within this e-mail shall not be deemed as reflecting the stand of the TAR UC. All liabilities arising as a result of, or consequential upon any cyber security breach, including but not limited to computer viruses, is excluded to the fullest extent permissible by law.

 


Image removed by sender.

--
You received this message because you are subscribed to the Google Groups "EPrints UK User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to eprints-uk-user-group+unsub...@googlegroups.com.
To post to this group, send email to eprints-uk-user-group@googlegroups.com.

 


The content in this e-mail and any attachments are intended solely for the addressee or addressees and any disclosure of such contents to other parties is unauthorized, not condoned by the TAR UC and may be unlawful. If you are not the intended recipient, please delete the message and any attachments and notify the sender. No undertaking, guarantee or other obligation contained in this e-mail shall be binding upon the TAR UC unless confirmed in writing under our letterhead. Any views and or representations expressed by any individual within this e-mail shall not be deemed as reflecting the stand of the TAR UC. All liabilities arising as a result of, or consequential upon any cyber security breach, including but not limited to computer viruses, is excluded to the fullest extent permissible by law.

 


Image removed by sender.

 


The content in this e-mail and any attachments are intended solely for the addressee or addressees and any disclosure of such contents to other parties is unauthorized, not condoned by the TAR UC and may be unlawful. If you are not the intended recipient, please delete the message and any attachments and notify the sender. No undertaking, guarantee or other obligation contained in this e-mail shall be binding upon the TAR UC unless confirmed in writing under our letterhead. Any views and or representations expressed by any individual within this e-mail shall not be deemed as reflecting the stand of the TAR UC. All liabilities arising as a result of, or consequential upon any cyber security breach, including but not limited to computer viruses, is excluded to the fullest extent permissible by law.

 


Image removed by sender.



The content in this e-mail and any attachments are intended solely for the addressee or addressees and any disclosure of such contents to other parties is unauthorized, not condoned by the TAR UC and may be unlawful. If you are not the intended recipient, please delete the message and any attachments and notify the sender. No undertaking, guarantee or other obligation contained in this e-mail shall be binding upon the TAR UC unless confirmed in writing under our letterhead. Any views and or representations expressed by any individual within this e-mail shall not be deemed as reflecting the stand of the TAR UC. All liabilities arising as a result of, or consequential upon any cyber security breach, including but not limited to computer viruses, is excluded to the fullest extent permissible by law.


Reply all
Reply to author
Forward
0 new messages