[index] [prev] [next] [options] [help]

eprints_tech messages

Re: [EP-tech] Error installing IRStats2 from eprints bazaar admin menu

From: David R Newman via Eprints-tech <eprints-tech AT ecs.soton.ac.uk>
Date: Wed, 22 Jul 2020 08:35:59 +0100


Threading: Re: [EP-tech] Error installing IRStats2 from eprints bazaar admin menu from eprints-tech AT ecs.soton.ac.uk
      • This Message


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://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEPrints_and_SELinux&amp;data=01%7C01%7C%7C25b0765a8ee44654d41808d82e11e220%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Xo6fyKfXGSykcoWFq8vaCW373GSqxnm76H%2BFcQKPNv0%3D&amp;reserved=0

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: 
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7C%7C25b0765a8ee44654d41808d82e11e220%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=jFc0%2BDWj5wgGpKgR7Q05waOVoyTlGEZz4gDBXJm2EFU%3D&amp;reserved=0
> *** EPrints community wiki: 
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7C%7C25b0765a8ee44654d41808d82e11e220%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=lM1mihIshwCC6FHHnIi%2F3sPQNGDo779cYmYbwGzlE8M%3D&amp;reserved=0


-- 
This email has been checked for viruses by AVG.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&amp;data=01%7C01%7C%7C25b0765a8ee44654d41808d82e11e220%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=6MHISPBB%2F9tUpI7EbOtemfjIbTnpUzgCtIY8FBFJ1vk%3D&amp;reserved=0

ATTACHMENT: message.html!

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

[index] [prev] [next] [options] [help]