EPrints Technical Mailing List Archive

Message: #06763


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Document upload folder permissions


Well I’ve figured out what my issue is (although I want to do some more testing before I’m 100% sure)

 

In bringing old data over from our current live server, I missed the “counters” table in the database which tells the system what ID to give the next record, user, document upload etc. Where the records were gracefully negating this by finding a valid ID if one was already taken, the documents seemingly were not and simply failing without error on upload. It’s an interesting gotcha as it was all seemingly related to permissions but was actually data!

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Rees Prakasa
Sent: 11 August 2017 07:10
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Document upload folder permissions

 

Well i have same problem with you if i use https

 

On Thu, Aug 10, 2017 at 11:06 PM, Andrew Beeken <anbeeken@lincoln.ac.uk> wrote:

It sounds like it SHOULD be but I’ve tried various combinations of various permissions, I’ve tried changing the user that is running Apache, I’ve tried changing the tmp directory location yet still not files will upload! If I try to add a file from URL I actually get an error on the page (but not in the error log) stating that Document Creation Failed, but I’m at an absolute loss. This is the only think stopping us from moving full steam ahead on fully migrating our repository (because of course you can’t have a repository if you can’t upload files!)

 

I think I’ll start a fresh tomorrow and roll a new repository, see if that makes any difference. At the moment my head is sore from bashing it against this brick wall!

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of dago
Sent: 10 August 2017 14:24
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Document upload folder permissions

 

Sounds like permissions issue:

 

 

1.- Check user:group in eprints directory

2.- Check /tmp

3.- User Apache and Eprints same groups:

uid=122(eprints) gid=130(eprints) groups=130(eprints),33(www-data)

uid=33(www-data) gid=33(www-data) groups=33(www-data),130(eprints)

4.- For me, eprints:www-data works fine, no problems.

Good Luck!

 

On Thu, Aug 10, 2017 at 7:31 AM, Andrew Beeken <anbeeken@lincoln.ac.uk> wrote:

Hmm, I've taken a look and disabled AppArmor (fully, including performing a teardown on the running processes) but I'm still getting the same problem - the progress bar appears, vanishes seemingly at 100% completion, and I get no metadata fields to complete. It's odd.

-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Matthew Kerwin
Sent: 10 August 2017 11:36
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Document upload folder permissions

On 10 August 2017 at 19:49, Andrew Beeken <anbeeken@lincoln.ac.uk> wrote:
> No, I'm running Ubuntu 14.04. I've checked and it looks like selinux isn't installed. Is there an equivalent on Ubuntu?
>

Ubuntu uses apparmor [https://help.ubuntu.com/community/AppArmor] instead.

I'm not an expert, but hopefully the Ubuntu wiki is a useful starting point.

Cheers
--
  Matthew Kerwin
  http://matthew.kerwin.net.au/
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/

[TEF Gold]<http://www.lincoln.ac.uk/opendays>

The University of Lincoln, located in the heart of the city of Lincoln, has established an international reputation based on high student satisfaction, excellent graduate employment and world-class research.

The information in this e-mail and any attachments may be confidential. If you have received this email in error please notify the sender immediately and remove it from your system. Do not disclose the contents to another person or take copies.

Email is not secure and may contain viruses. The University of Lincoln makes every effort to ensure email is sent without viruses, but cannot guarantee this and recommends recipients take appropriate precautions.

The University may monitor email traffic data and content in accordance with its policies and English law. Further information can be found at: http://www.lincoln.ac.uk/legal.



 

--

Dagoberto Salas
dago.salas@gmail.com


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/