EPrints Technical Mailing List Archive

Message: #07990


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

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


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