EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #08261
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Error installing IRStats2 from eprints bazaar admin menu
- To: David R Newman via Eprints-tech <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Error installing IRStats2 from eprints bazaar admin menu
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Wed, 22 Jul 2020 08:40:11 +0100
A quick amendment for point 3 below it is safer to run the following command rather than assuming you are already in the /opt/eprints3/ directory where * would be sufficient:
#> chown -R eprints:eprints /opt/eprints3/
Hi Bilal,
Welcome to the mailing list. The error you see suggests there is a file permission issue. Based on your EPrints path being /opt/eprints3, you have installed from source, which means you will have manually needed to do the following things:
1. Created a Unix user with the username eprints
#> adduser eprints
2. Edited either /etc/apache2/envvars (on Debian/Ubuntu) or /etc/httpd/conf/httpd.conf to set the User and Group lines to eprints and after doing this restart the webserver:
User eprints
Group eprints#> apachectl restart
3. Modified the user and group ownership of all files in the /opt/eprints3/ directory path:
#> chown -R eprints:eprints *
If you have done all three of these things you will need to check the permissions of the directory itself (as Yuri suggested in his email):
ls -la /opt/eprints3/lib/epm/irstats2/bin/stats/
The directory (i.e. '.') should ideally have permissions like:
drwxrwsr-x 2 eprints eprints 4096 May 30 2019 .
As long as the first four characters are drwx, then this should be fine. If this is not the case then you should change the permissions as follow:
#> chmod 2775 /opt/eprints3/lib/epm/irstats2/bin/stats
Once, doing this try installing IRStats2 from the Bazaar again. You may need to uninstall before reinstalling. If you are still having problems you may need to check if you have SELinux enabled:
#> getenforce
If the command above say "enforcing", then you should temporarily disabled this will the following command to allow you to install IRStats2 from the Bazaar:
#> setenforce 0
Then once IRStats2 is installed:
#> setenforce 1
SELinux can cause various issues with running EPrints. If you have to run SELinux the approach to installing and running EPrints needs to be a little different. A while back I wrote a page to help people do this:
https://wiki.eprints.org/w/EPrints_and_SELinux
Regards
David Newman
On 22/07/2020 03:17, Perpustakaan Politeknik APP Jakarta via Eprints-tech wrote:
Dear all,
First of all I'm so glad to be connected with you all in this mailing list. I'm Bilal from Polytechnic APP Jakarta in Indonesia. Our institution using Eprints ver. 3.4.1 as institutional repository software. Thank you for all the people that made this software available freely.
Second, I want to ask all of you, that might know, about a problem that I encountered recently. As we are still in the early stage of development, right now I'm trying to install IRStats2 add-on via eprints bazaar menu. But in the process I got an error message: "Error operating on /opt/eprints3/lib/epm/irstats2/bin/stats/: Permission denied" (pic attached). Is this error related to the permission setting in the server or something else?
Many thanks,
Regards,
Bilal
*** 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/
*** 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/
- References:
- [EP-tech] Error installing IRStats2 from eprints bazaar admin menu
- From: Perpustakaan Politeknik APP Jakarta <perpusappjakarta@gmail.com>
- Re: [EP-tech] Error installing IRStats2 from eprints bazaar admin menu
- From: David R Newman <drn@ecs.soton.ac.uk>
- [EP-tech] Error installing IRStats2 from eprints bazaar admin menu
- Prev by Date: Re: [EP-tech] Error installing IRStats2 from eprints bazaar admin menu
- Next by Date: [EP-tech] Ask about CSRF. Always get error when edit phrases Editor
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):