EPrints Technical Mailing List Archive
Message: #09508
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Installing Eprints 3.4.5 using GIT
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Installing Eprints 3.4.5 using GIT
- From: Andrew Mehta <A.J.Mehta@soton.ac.uk>
- Date: Mon, 11 Dec 2023 14:23:51 +0000
My immediate thought would be whether the file at... /cgi/saved_search ...has permission to be executed. Now normally, the permission bits for the actual file do not need to be set to execute, as long as the cgi folder itself is set in the apache config to be able to execute perl scripts or cgi files. EPrints provides a utility that will automatically set up your apache config for you. It is normally ran when you first create your repository - so you might have ran this already. If it's not an apache config issue, it could be database-related, since saved searches get saved to the database. To make sure your code and database are talking together nicely, there's a command to automatically update your database to ensure it has the relevant datasets and fields that EPrint needs it to have. So here are the commands I've spoken of: Most people install eprints to the /opt/eprints3/ directory, so that is what I'm assuming with the commands examples below - feel free to change the path if you have installed it somewhere else. Am also using "archive_id" as the name of the archive/repository - this should be changed to the name of your archive. To generate the default apache configuration files: /opt/eprints3/bin/generate_apacheconf --verbose archive_id These are the flags that command can take too: --replace Replace existing configuration files, overwriting any changes made. --system Update the system configuration file, overwriting any changes made. --help Print a brief help message and exit. --man Print the full manual page and then exit. --quiet Be vewwy vewwy quiet. This option will suppress all output unless an error occurs. --verbose Explain in detail what is going on. May be repeated for greater effect. --version Output version information and exit. And here is some advice from the wiki to be done afterwards unless you've already done it of course: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FInstalling_EPrints_on_RHEL%2FFedora%2FCentOS%23getting_started_and_apache&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C92e62a511e1749ac83db08dbfa54cc3d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638379014371845843%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=GzVp5gf1P3p94K4Gqm0Ur%2B4J3GoJ%2Bn05ap8cQzoZE3w%3D&reserved=0 Remember - any changes to apache configuration will also require a restart of apache before taking effect. To update your database anytime you are adding new datasets or fields, there is this command: Dry run that shows you what would happen, without actually doing anything: /opt/eprints3/bin/epadmin update_dry_run archive_id Actual update, when you're happy to go ahead: /opt/eprints3/bin/epadmin update archive_id Of course, maybe your problem is neither of these things. You can also run: /opt/eprints3/bin/epadmin test --verbose ...which will test starting up your archive (typically it checks configuration and database connection), and will report any problems it is encountering. I'm new to EPrints this year, so others with more experience may have further to advice to add. Am also interested in hearing of your experience(s) - and how you get on trying these potential solutions. ________________________________________ From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of zen zenitram <quickfire28@gmail.com> Sent: 11 December 2023 04:26 To: David Newman Cc: eprints-tech@ecs.soton.ac.uk Subject: Re: [EP-tech] Installing Eprints 3.4.5 using GIT CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Good day! Thank you for your help, i successfully migrated my eprints 3.3.16 to 3.4.5 version. my only problem now is when i click save searches it give's internal server error. ( Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at mcmartinez@dlsud.edu.ph<mailto:mcmartinez@dlsud.edu.ph> to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. ________________________________ Apache/2.4.52 (Ubuntu) Server at thesis.dlsud.edu.ph<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fthesis.dlsud.edu.ph%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C92e62a511e1749ac83db08dbfa54cc3d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638379014371845843%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=RbR0WrObY7%2BcA2cMp2V7XhEs5RQttUw5shAFiM5tsQo%3D&reserved=0> Port 80) Thank you again On Thu, Dec 7, 2023 at 6:13 PM David R Newman <drn@ecs.soton.ac.uk<mailto:drn@ecs.soton.ac.uk>> wrote: Hi, I think the issues is that the /usr/share/eprints3/perl_lib/EPrints/SystemSettings.pm that you have hard codes the path of EPrints as /opt/eprints3 but you have checked out the codebase to /usr/share/eprints3. You either need to follow the instructions again and check out to /opt/eprints3 or edit your SystemSettings.pm and change the line: 'base_path' => '/opt/eprints3', to: 'base_path' => '/usr/share/eprints3', Regards David Newman On 07/12/2023 09:50, zen zenitram wrote: CAUTION: This e-mail originated outside the University of Southampton. here is the file inside flavours root@eprints:/usr/share/eprints3/flavours/pub_lib# ls cfg.d citations defaultcfg inc lang namedsets plugins static workflows root@eprints:/usr/share/eprints3/flavours/pub_lib# ls -l total 36 drwxrwsr-x 2 eprints eprints 4096 Dec 7 09:30 cfg.d drwxrwsr-x 3 eprints eprints 4096 Dec 7 09:30 citations drwxrwsr-x 5 eprints eprints 4096 Dec 7 09:30 defaultcfg -rw-rw-r-- 1 eprints eprints 845 Dec 7 09:30 inc drwxrwsr-x 3 eprints eprints 4096 Dec 7 09:30 lang drwxrwsr-x 2 eprints eprints 4096 Dec 7 09:30 namedsets drwxrwsr-x 7 eprints eprints 4096 Dec 7 09:30 plugins drwxrwsr-x 3 eprints eprints 4096 Dec 7 09:30 static drwxrwsr-x 3 eprints eprints 4096 Dec 7 09:30 workflows root@eprints:/usr/share/eprints3/flavours/pub_lib# ^C root@eprints:/usr/share/eprints3/flavours/pub_lib# On Thu, Dec 7, 2023 at 4:33 AM David R Newman <drn@ecs.soton.ac.uk<mailto:drn@ecs.soton.ac.uk>> wrote: Hi, This is a Git rather than EPrints related issue. It basically means you are in a directory which does not contain a .git sub-directory and neither does any of the parent directories (up to the / directory) contains a .git sub-directory. If you clone EPrints 3.4.5 you would do something like: su root mkdir /opt/eprints3 chmod 2775 /opt/eprints3 chown eprints:eprints /opt/eprints3 su eprints git clone https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4.git&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C92e62a511e1749ac83db08dbfa54cc3d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638379014371845843%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KA6PWSkLPeqMboXocflK4DK7vlTCbOXbctccQ%2BCTrxk%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4.git&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C92e62a511e1749ac83db08dbfa54cc3d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638379014371845843%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KA6PWSkLPeqMboXocflK4DK7vlTCbOXbctccQ%2BCTrxk%3D&reserved=0> /opt/eprints3 cd /opt/eprints3/ git checkout tags/3.4.5 I can see from the instructions on https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FInstalling_EPrints_on_RHEL%2FFedora%2FCentOS%23Installing_EPrints_3.4.x_from_Source&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C92e62a511e1749ac83db08dbfa54cc3d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638379014372002108%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=xBPwExWW8DGZUW3qJicp2t63Py2uCmcqZenGr%2BDJKn8%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FInstalling_EPrints_on_RHEL%2FFedora%2FCentOS%23Installing_EPrints_3.4.x_from_Source&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C92e62a511e1749ac83db08dbfa54cc3d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638379014372002108%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=xBPwExWW8DGZUW3qJicp2t63Py2uCmcqZenGr%2BDJKn8%3D&reserved=0> has been missing the penultimate (cd /opt/eprints3/) instruction, so I have added this. If you make sure you are in the /opt/eprints3/ directory before running "git checkout tags/3.4.5", this command should work and not return the error you reported. Regards David Newman On 05/12/2023 4:45 am, zen zenitram wrote: CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Good day! Im trying to install eprints 3.4.5 using git and i encounter this error Solving “Fatal: Not A Git Repository” (Or Any Of The Parent Directories) Error Any help with this? *** Options: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEprints-tech_Mailing_List&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C92e62a511e1749ac83db08dbfa54cc3d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638379014372002108%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=p9pPJjF566oM5Jh1LjsjdZrjDoiskZPKBHaXd11Z17Q%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEprints-tech_Mailing_List&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C92e62a511e1749ac83db08dbfa54cc3d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638379014372002108%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=p9pPJjF566oM5Jh1LjsjdZrjDoiskZPKBHaXd11Z17Q%3D&reserved=0> *** Archive: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C92e62a511e1749ac83db08dbfa54cc3d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638379014372002108%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=WzVbcYxeVkA6qBmFpqvDT3FcDXFV6UZVtXkC1eQpt4s%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C92e62a511e1749ac83db08dbfa54cc3d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638379014372002108%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=WzVbcYxeVkA6qBmFpqvDT3FcDXFV6UZVtXkC1eQpt4s%3D&reserved=0> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C92e62a511e1749ac83db08dbfa54cc3d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638379014372002108%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=GZWmhr4RPQoOwDG5cXFrSba9o0hhYrU3pW3ld1EmvXs%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C92e62a511e1749ac83db08dbfa54cc3d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638379014372002108%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=GZWmhr4RPQoOwDG5cXFrSba9o0hhYrU3pW3ld1EmvXs%3D&reserved=0>
- Follow-Ups:
- Re: [EP-tech] Installing Eprints 3.4.5 using GIT
- From: zen zenitram <quickfire28@gmail.com>
- Re: [EP-tech] Installing Eprints 3.4.5 using GIT
- References:
- [EP-tech] Installing Eprints 3.4.5 using GIT
- From: zen zenitram <quickfire28@gmail.com>
- Re: [EP-tech] Installing Eprints 3.4.5 using GIT
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] Installing Eprints 3.4.5 using GIT
- From: zen zenitram <quickfire28@gmail.com>
- Re: [EP-tech] Installing Eprints 3.4.5 using GIT
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] Installing Eprints 3.4.5 using GIT
- From: zen zenitram <quickfire28@gmail.com>
- [EP-tech] Installing Eprints 3.4.5 using GIT
- Prev by Date: Re: [EP-tech] Installing Eprints 3.4.5 using GIT
- Next by Date: Re: [EP-tech] Installing Eprints 3.4.5 using GIT
- Previous by thread: Re: [EP-tech] Installing Eprints 3.4.5 using GIT
- Next by thread: Re: [EP-tech] Installing Eprints 3.4.5 using GIT
- Index(es):