Re: [EP-tech] Eprints not working after migration to a new server

th.lauke--- via Eprints-tech <[email protected]>
Newsgroups gmane.comp.web.eprints.devel
Message-ID <EMEW3|79afb923b5087865e17be98795a7acb9v96EEO14eprints-tech-bounces|ecs.soton.ac.uk|[email protected]>
Hi Norbert,

> ... pronom_internal.pl is from preservation toolkit at eprints bazaar.
I fear your error(s) are caused by a somehow outdated bazaar plugin:
Following https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F6265673%2Fperl-using-a-hash-as-a-reference-is-deprecated&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccb22201c058b490224a508d74b283e58%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Pu7o%2FHzU39suWVfv59XXyf80XCNvKvYOjqKojRjnrRo%3D&amp;reserved=0 I modified some lines in your configuration file to get all(?) running for EPrints 3.4.0 basing on perl 5.24.1 at Debian 9.8, but hope that someone from ECS will check for further updating!

Here are my modifications:
diff pronom_internal.pl_mod pronom_internal.pl_org
56c56
<       my ( $params ) = @_;
---
>       my ( %params ) = @_;
58c58
<       my $repository = $params->{repository};
---
>       my $repository = %params->{repository};
62,63c62,63
<       if (defined $params->{dataobj}) {
<               my $doc = $params->{dataobj};
---
>       if (defined %params->{dataobj}) {
>               my $doc = %params->{dataobj};

> ... or maybe this plugins not compatible with new debian.
Obviously the new perl is more strict. BTW: Do you have all necessary modules updated?

> When I deactivate all, migrate to the new server, activate all plugins,
> are there some data lost?
Without _any_ guarantee I recommend to just install the _modified_ plugin:
1. Move all remaining files listed in origin:EPrintsRoot/lib/epm/preservation_toolkit/preservation_toolkit.epmi to new server using /usr/share/eprints3/lib/ as prefix for all file paths.
2. Put the modified pronom_internal.pl into EPrintsRoot/archives/repoID/cfg/cfg.d/, but don't forget the original pronom.pl in the same directory.
3. restart apache

> I found out, that the /usr/share/eprints3/lib/plugins is missing.
yes, but after action item 1 this will be healed!? Or are there still some unmoved files on the origin server?

Hth
Thomas
*** 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/
*** EPrints developers Forum: http://forum.eprints.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.