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

[EP-tech] Upgrading to 3.4.3 - an experience



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

Thank you very much for looking into this issue and for your instructive reply.

Best wishes,
Ravi

On Tue, 11 May 2021 at 03:17, David R Newman <drn at ecs.soton.ac.uk<mailto:drn at ecs.soton.ac.uk>> wrote:

Hi Ravi,

I have looked into this and determined that if there is no structural changes to the database between versions, then additional fields are not added to user, eprint, etc. data objects through "epadmin upgrade <ARCHIVE_NAME>" and you would also need run "epadmin update <ARCHIVE_NAME>" to do this.  Therefore, I have modified the upgrade call to add fields to data objects when no structural changes need to made to upgrade to the new database version, which would normally do this field adding whilst making the structural changes.

Here is the GitHub issue that relates to this bug (and fix):

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fissues%2F148&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C2ba8fd86d365490bfb7f08d91ab6c7aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637570194603216789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=HetjU0FlOnKdnqJSDxpj6hO1%2FmIm2tTMhClmtZSWe84%3D&amp;reserved=0

Obviously, this will not help until 3.4.4 is released, so upgrades to 3.4.3 will still need "epadmin update ..." to be run.  I will see if there is somewhere appropriate on the wiki to make it clear that this is required as part of the upgrade process.

Regards

David Newman

On 10/05/2021 11:59, David R Newman wrote:

Hi Ravi,

I will look into why the upgrade did not do an update as well.  The reason why you won't have been able to login is that various new fields have been added to the user data object / record.  These are mainly to provide better security to temporarily lock accounts when there have been too many failed password attempts in a set period of time.

I would generally say that EPrints from APT or YUM/DNF package management is generally not advised for production repositories.  Packages are more intended for installing EPrints for testing and evaluation purposes.  If you have a fairly vanilla repository updates are unlikely to cause any significant problems but the more bespoke your repository the more likely upgrading through the package manager is to cause you repository to fail.  This is especially the case if parts of the core codebase have been modified on your installation.  Although the package manager should warn you, if you choose not to use the latest version of a file being installed, it is likely this will leave you with an inconsistent version of EPrints that cannot be run.

Regards

David Newman

On 10/05/2021 11:41, Ravi M via Eprints-tech wrote:
CAUTION: This e-mail originated outside the University of Southampton.
Hello,

Just wanted to share my experience upgrading from version 3.4.2 to 3.4.3, in case it's useful to anyone.

I run EPrints on an Ubuntu server, and https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdeb.eprints-hosting.org%2F3.4%2Fstable%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C2ba8fd86d365490bfb7f08d91ab6c7aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637570194603216789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=JIxJTIOsZ94yHQ4z4e%2BFmtKoxhsbi7dGON%2BxsywQjnE%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdeb.eprints-hosting.org%2F3.4%2Fstable%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C2ba8fd86d365490bfb7f08d91ab6c7aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637570194603216789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=JIxJTIOsZ94yHQ4z4e%2BFmtKoxhsbi7dGON%2BxsywQjnE%3D&amp;reserved=0> is in my PPA. Over the weekend I did the usual update/upgrade tasks via the command line, and I noticed that there was a new version of EPrints. I installed it and ran '/bin/epadmin upgrade <repository>' as advised at the end of the install. Everything seemed okay on the command line (unless I overlooked some piece of advice), but I couldn't sign into the EPrints site with any of my accounts -- I got 'Incorrect username or password' every time. Thankfully '/bin/epadmin update <repository>' sorted things out.

Best wishes,
Ravi
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Faurorepo.in%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C2ba8fd86d365490bfb7f08d91ab6c7aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637570194603216789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Rm%2Fw8vKZTx%2BpeloIZ%2F8rI6fVWlHqxIogDqNQWC51t4o%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Faurorepo.in%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C2ba8fd86d365490bfb7f08d91ab6c7aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637570194603216789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Rm%2Fw8vKZTx%2BpeloIZ%2F8rI6fVWlHqxIogDqNQWC51t4o%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%7C2ba8fd86d365490bfb7f08d91ab6c7aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637570194603216789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=vlHi%2BEj0Li0JIrMJjCLSWq4f8MLtiVGct9B0KffRbSw%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%7C2ba8fd86d365490bfb7f08d91ab6c7aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637570194603216789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=tJ%2FOALxPP7CxIvm4KdMg6jdTd7BqwJpVI23E9TOuzAw%3D&amp;reserved=0

[X]<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%7C2ba8fd86d365490bfb7f08d91ab6c7aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637570194603216789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Ot1GmYbPvxhVz1b8ZxEnl%2BBD1AmC3F0uwqatVwHjkkM%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%7C2ba8fd86d365490bfb7f08d91ab6c7aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637570194603226734%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=bohEAnh7d5C5HnnTQtvJJe62MStdNPlKY60dC6YFNrw%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%7C2ba8fd86d365490bfb7f08d91ab6c7aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637570194603226734%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=F3BsKEhmtkk0drrvYZzm%2BJFxiWpjv3uSdRprzZS5C5E%3D&amp;reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20210519/23d10047/attachment.html