[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Ask about upload progress



CAUTION: This e-mail originated outside the University of Southampton.
Hi Agung,

You should also make sure to check if the upload issue is replicated on different connections - to eliminate the possibility that this is caused by a network issue rather than an EPrints issue. I write this because I observed a similar problem on our system, but the issue only appeared on much larger file sizes and it was not easily reproducible.  It turned out, that there were some internet-throttling equipment/settings limiting file uploads on some of the internet connections on campus, and so the issue was only observed on those workstations, and it was not caused by anything on the EPrints server per se.

In addition, if I remember correctly, there is also an (optional?) max_file_upload size limit that can be set in your configuration files, so I would double check if that isn't set.

Tomasz




________________________________
From: eprints-tech-bounces at ecs.soton.ac.uk <eprints-tech-bounces at ecs.soton.ac.uk> on behalf of Ajunk Pracetio via Eprints-tech <eprints-tech at ecs.soton.ac.uk>
Sent: Sunday, May 2, 2021 6:11 PM
To: EDER Norbert via Eprints-tech <eprints-tech at ecs.soton.ac.uk>; David R Newman <drn at ecs.soton.ac.uk>
Subject: Re: [EP-tech] Ask about upload progress

CAUTION: This e-mail originated outside the University of Southampton.
Hi,

I am running Ubuntu server 18.04 LTS with eprints 3.3.16. I just install new eprints but moving the archive folder and database from other server. when running at previous server it running well without problem.
I already try add script from you but the problem still exist. this is my screenshot. it seems like timeout..but I don't know exactly the problem.

[image.png]

At error.log  there is no error about this, only error about subjsct that not found, it probably because we already edit the subject

Thank you

Regards,

Agung PW

On Sun, May 2, 2021 at 11:41 PM David R Newman via Eprints-tech <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>> wrote:

Hi Agung,

This issue sounds like it could be a problem dealing with files being sent in chunks rather than all in one go.  This is why a 200KB file works fine but slightly larger files do not.  200KB can be sent in a single chunk but that is about the limit for a file that can be sent in a single chunk.

If a file can be uploaded in a single chunk this may mean it does not need to use the /tmp/ directory on the server's file system.  This would suggest that there is a permissions or similar issue with this directory.  It has been found that EPrints cannot use the /tmp/ directory on modern Red Hat based Linux systems.  It may be the case that this is true with other Linux operating systems.  It may even be that new versions of some operating systems now prevent EPrints writing to /tmp/ when old versions did not, (e.g. this may be allowed in Debian 9 but not Debian 10).

The way this has been resolved for Red Hat based Linux operating systems is to edit the archive's cfg/cfg.d/session.pl<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsession.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce24d350de12a4116e40808d90e63a0d8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637556643335583075%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=YYNd7AWFZpU7%2BYrGzLFsQnZX1w%2BWVyE4x%2Bb5w38IL5c%3D&amp;reserved=0> and add the following block of code to the $c->{session_init} configuration function (sub):

        if ( -d "/opt/eprints3/tmp/" )
        {
                $ENV{'TMPDIR'} = '/opt/eprints3/tmp/';
        }

In addition to this you will need to create the /opt/eprints3/tmp/ directory (adjust as appropriate if your EPrints root directory is not /opt/eprints3/) and get its permissions set correctly so it can be written to by the user running the Apache webserver underneath EPrints.  Once you  have done this you can reload the webserver and you should be able to successfully upload larger files.

That all said, you have not really provided enough detail to accurately diagnose the problem.  So I am rather speculating with the above solution, as it is has been the resolution for similar problems in the past.  If this solution does not work it would be useful if you could provide the following information:

1. What operating system and version are you running EPrints on?

2. What version of EPrints are you running?

3. Is this a newly installed EPrints repository or is this an existing EPrints repository that has just suddenly developed this problem?

4. Have you recently upgraded your operating system on which EPrints is running?  Also, check the log files for your package manager (e.g. APT or YUM) to see what packages have been upgraded recently.  As some change here may have led to this problem.

5.  It is worth checking the webserver's error log files to see if there is any more detail about why the files are failing to upload.  If you could share any error messages that seem relevant to this problem, then I may be able to give more specific advice.

Regards

David Newman


On 02/05/2021 16:17, Ajunk Pracetio via Eprints-tech wrote:
CAUTION: This e-mail originated outside the University of Southampton.
Hi,

I'd like to ask about upload process on my eprints. Why the process take so long. This is my error message : Error in file retrieval: failed to get file contents
This is my screenshot
[image.png]
All process running well, except upload file. If I upload below 200kb, it is running well, but if I upload larger that 600kb, it takes very long and then the upload not succesfull.

Please, need help about this problem

Thank you,

Regards,
Agung PW



*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce24d350de12a4116e40808d90e63a0d8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637556643335583075%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=dZmdJk86ilkGwTvyQ%2FXwtXLaTueRXBrhIIZAKGKL1RM%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce24d350de12a4116e40808d90e63a0d8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637556643335583075%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=dZmdJk86ilkGwTvyQ%2FXwtXLaTueRXBrhIIZAKGKL1RM%3D&amp;reserved=0>
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce24d350de12a4116e40808d90e63a0d8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637556643335583075%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=XO2U5qX%2FJgh%2FId2nFqahJYQOJV4JyQVASoGUCc%2Bftjk%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce24d350de12a4116e40808d90e63a0d8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637556643335583075%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=XO2U5qX%2FJgh%2FId2nFqahJYQOJV4JyQVASoGUCc%2Bftjk%3D&amp;reserved=0>

[https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fipmcdn.avast.com%2Fimages%2Ficons%2Ficon-envelope-tick-green-avg-v1.png&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce24d350de12a4116e40808d90e63a0d8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637556643335583075%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=7MGTT3sh4pqbbhxoEUl1R5GQRKS9i3R6pypGtU8fG%2Fo%3D&amp;reserved=0]<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce24d350de12a4116e40808d90e63a0d8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637556643335593031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Ri8i5aHeWw7%2FlnZYT2sPjepR0koQUfaqWLGx8mOK5jM%3D&amp;reserved=0>        Virus-free. https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce24d350de12a4116e40808d90e63a0d8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637556643335593031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=gGyuNGTdO0NTquZ4ILnuAtkzhsrmLf7GlBqbdT6L5mU%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce24d350de12a4116e40808d90e63a0d8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637556643335593031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Ri8i5aHeWw7%2FlnZYT2sPjepR0koQUfaqWLGx8mOK5jM%3D&amp;reserved=0>
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce24d350de12a4116e40808d90e63a0d8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637556643335593031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=%2FFmB1qe5C%2FmE3Ud3Zg625MH%2F%2BPFkHUUIYscIi7yKnqw%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce24d350de12a4116e40808d90e63a0d8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637556643335593031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=%2FFmB1qe5C%2FmE3Ud3Zg625MH%2F%2BPFkHUUIYscIi7yKnqw%3D&amp;reserved=0>
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce24d350de12a4116e40808d90e63a0d8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637556643335593031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ySQwubyFIZWO%2Fe7QG7wkI0Uip76m%2F2aeppE40UyMJ0M%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce24d350de12a4116e40808d90e63a0d8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637556643335593031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ySQwubyFIZWO%2Fe7QG7wkI0Uip76m%2F2aeppE40UyMJ0M%3D&amp;reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20210503/ab3beb71/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-image.png.png
Type: image/png
Size: 83156 bytes
Desc: Outlook-image.png.png
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20210503/ab3beb71/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-image.png.png
Type: image/png
Size: 94759 bytes
Desc: Outlook-image.png.png
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20210503/ab3beb71/attachment-0003.png