EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09590
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Eprints with Nginx Proxy Manager as Load Balancer
- To: <eprints-tech@ecs.soton.ac.uk>, zen zenitram <quickfire28@gmail.com>
- Subject: Re: [EP-tech] Eprints with Nginx Proxy Manager as Load Balancer
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Wed, 31 Jan 2024 13:52:54 +0000
Hi Zen,
It is difficult to debug an issue when you have a proxy sitting in front of your EPrints repository with no information about how that proxy has been configured. However, I have taken a look at the Upload stage on my EPrints test repository running the latest version of EPrints and I can see a request that is locally blocked that relates to the iframe generated by _javascript_ to provide the upload progress*. To avoid getting this blocked request (which may be causing your error message and upload issues) I would recommend commenting out the following line from EPRINTS_PATH/lib/static/_javascript_/auto/88_uploadmethod_file.js:
hidden_iframe.setAttribute( 'src', '#' );
So that it becomes:
// hidden_iframe.setAttribute( 'src', '#' );
This is on around line 314 for 88_uploadmethod_file.js. Once you have done this you will need to hard reload (e.g. Ctrl+Shift+R) the Upload stage of the workflow in your web browser and this should update your main _javascript_ file. Then try uploading a file again. If this does not work do you get the same error message. If you get the same error message, it is worth taking a look at https://thesis.dlsud.edu.ph/_javascript_/auto-VERSION.js (substituting VERSION for you version, e.g. 3.4.5) to make sure this line above is now commented out there. If it is not commented out, try using a private/incognito browser window to test this to try to avoid any caching of the old _javascript_.
Regards
David Newman
*This is a very ugly way of managing upload but was needed when
the uploader was first written. We plan to completely overhaul
how the uploader works for the next major version of EPrints.
CAUTION: This e-mail originated outside the University of Southampton.CAUTION: This e-mail originated outside the University of Southampton.Good day!
Our eprints repository works fine with it, you can log in and search and open attached documents. The Problem occurs when we try to add new title to repository and upload pdf files. attached are the errors shows when we upload documents.
and also when we try to delete the attached pdf file it only gives black page instead of the delete option.
Thank you!
*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List *** Archive: https://www.eprints.org/tech.php/ *** EPrints community wiki: https://wiki.eprints.org/
- Follow-Ups:
- Re: [EP-tech] Eprints with Nginx Proxy Manager as Load Balancer
- From: zen zenitram <quickfire28@gmail.com>
- Re: [EP-tech] Eprints with Nginx Proxy Manager as Load Balancer
- From: "Alan.Stiles [He/Him/They]" <alan.stiles@open.ac.uk>
- Re: [EP-tech] Eprints with Nginx Proxy Manager as Load Balancer
- References:
- [EP-tech] Eprints with Nginx Proxy Manager as Load Balancer
- From: zen zenitram <quickfire28@gmail.com>
- [EP-tech] Eprints with Nginx Proxy Manager as Load Balancer
- Prev by Date: Re: [EP-tech] Error on BibTeX importer
- Next by Date: Re: [EP-tech] Eprints with Nginx Proxy Manager as Load Balancer
- Previous by thread: [EP-tech] Eprints with Nginx Proxy Manager as Load Balancer
- Next by thread: Re: [EP-tech] Eprints with Nginx Proxy Manager as Load Balancer
- Index(es):