EPrints Technical Mailing List Archive

Message: #06715

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

Re: [EP-tech] FW: Issues uploading files

Hi guys,


Okay, so I’ve checked in ps aux and server-status, checked what groups my users are running at.


I’ve tried Apache running under www-data and eprints, both of which are members of the eprints and www-data groups (as far as I can tell running groups <username> from the command line) and I’m getting the issue with both. Server-status isn’t really telling me anything, unless I’m reading it wrong, but ps aux gives me this chunk relating to Apache:


root      2369  9.1  1.5 435440 124976 ?       Ss   14:15   0:01 /usr/sbin/apache2 -k start

www-data  2375  0.0  1.2 435464 104764 ?       S    14:15   0:00 /usr/sbin/apache2 -k start

www-data  2376  0.0  1.2 435464 104764 ?       S    14:15   0:00 /usr/sbin/apache2 -k start

www-data  2377  0.0  1.2 435464 104764 ?       S    14:15   0:00 /usr/sbin/apache2 -k start

www-data  2378  0.0  1.2 435464 104764 ?       S    14:15   0:00 /usr/sbin/apache2 -k start

www-data  2379  0.0  1.2 435464 104764 ?       S    14:15   0:00 /usr/sbin/apache2 -k start


So, I’m currently running apache as www-data and changing this to eprints is reflected in ps aux, however I’m wondering if there is an issue with the entry for root, if that’s somehow overriding the other permissions?


Other than that I’m not sure where to look unless it’s a firewall issue on the server, in which case I’ll need to go talk to our ICT team.




From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Vials Moore, Adam
Sent: 14 July 2017 15:57
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] FW: Issues uploading files




I second what Lizz has just said, also we found that there were initially differences depending on whether start up had been done by an init.d script or by a command line apachectl so that might be worth looking into to . . 


I.e. Check your apache process on both the server level (ps aux) and status (my-server.com/server-status if you’ve got mod.status which I highly recommend)




For example:



From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of "Lizz uk>" <e.jennings@bath.ac.uk>
Reply-To: "
eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Date: Friday, 14 July 2017 at 14:42
To: "
eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Subject: Re: [EP-tech] FW: Issues uploading files


Is the apache user in the eprints group?


We found that for fewest errors, the apache user and the eprints user need to be in each other’s groups.





Lizz Jennings BA MSc ACLIP MCLIP (Revalidated 2017)

Research Data Librarian (Systems)

The Library 4.10, University of Bath, Bath, BA2 7AY UK

Ext. 3570 (External 01225 383570)


Research Data Management: http://www.bath.ac.uk/research/data



From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew Beeken
Sent: 14 July 2017 13:23
Subject: Re: [EP-tech] FW: Issues uploading files


Hmm, I thought it might have been a permissions issue. I checked the folders and saw that the new ones being created under disk0 were being set to user www-data. I checked in the envvars and apache was running as www-data. Changed it to eprints, restarted apache but still nothing. It’s not even creating new folders under disk0. Chowned all the existing folders to eprints:eprints, perms are drwxrwsr-x. Checked the error log and I’m not seeing anything in there. It’s odd, I’m not sure where to look next.


From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Adam Field
Sent: 12 July 2017 11:16
Subject: Re: [EP-tech] FW: Issues uploading files


Things to investigate:


                ls -l <eprints_root>

                ls -l <eprints_root>/archives/<archive_id>/documents

                ls -l <eprints_root>/archives/<archive_id>/documents/<path for the eprint id you’re failing to upload to>


                Check user, group and permissions


                Next, check what user the apache process is running as.  This is in the apache configuration file.  Its location varies depending on what distribution it’s in.  Compare that user to the user in the permissions above.


                Next, use:


                                df -h


                …to check that you have adequate disk space (it’s almost certainly not that -- you’d have other issues if it were).


                Actually, before you even to that, it’s probably a good bet to check the apache error log to see if you can get any clues there.  If apache is complaining at you, it’s probably an issue with the server.  Again, the location of the error log varies by server, but it’s a default anyway and may be overridden by the config.  Check your apache configuration to see where the error log is being stored.  It might be /var/log/apach/error.log -- you’ll probably need to be root to see it.  The ‘tail -f <error_log_full_path>’ command is your friend.  It’ll show you the most recent entries in the log, and then display them as they come in.  Run that command and then try to upload a file, see what the error it.  It’s likely to be lots of lines.  You sorta need to read all of them to see if you can find the critical line that gives you the clue -- it’s likely to be the first or second line, but it might be buried.  Note that a problem like this causes knock-on issues, so there may be lots of sifting to do.







From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Andrew Beeken <anbeeken@lincoln.ac.uk>
Reply-To: <
Date: Wednesday, 12 July 2017 10:45
To: "
eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] FW: Issues uploading files


Any thoughts on this as well? I’ve tested it again and I’m not getting an error through file upload however if I try to add a file from URL I’m getting a “document creation failed” error. I’m not sure if it’s a permissions issue or a server issue (firewall etc)




From: Andrew Beeken
Sent: 23 June 2017 12:15
Subject: Issues uploading files


Hello all,


Another problematic one – I can’t seem to upload files to my new repository. On doing an upload it briefly brings up the progress bar which then promptly vanishes. For info, I’m trying to upload a “test.pdf” file which is fairly small, only containing the word test, that I have in reserve for this kind of occasion. I’ve checked folder permissions and they’re all eprints:eprints, and as I’m not getting an error I’m not sure where the problem may lie. The only thing I can think of is that I notice the EPrint ID index has started at 1 after importing my EPrints (via a direct database import) so I’m not sure if there’s a way to start indexing after the most recent EPrint ID? The document problem seems to be some kind of permissions thing to me, though.



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:

*** 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/