EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #05649
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Copy live EPrints to staging server
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Copy live EPrints to staging server
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- Date: Thu, 28 Apr 2016 14:30:41 +0000
Ah yes, this is an older version from our live which is HORRIFICALLY shakey and hasn’t been updated for a while because last time we did, everything fell over! From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Adam Field What version of EPrints do you have installed? Have a look here: It looks like this is a bug that's been fixed. From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Andrew Beeken <anbeeken@lincoln.ac.uk> Right – it’s probably not, the system was set up vanilla. I shall try to add it to Apache and see if that helps. From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Alan.Stiles CPAN reckons the remote_ip method is in the Apache2::Connection package – is it there on your test system? Is the system actually finding the package to load it? What version of Apache do you have installed?
From:eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Andrew Beeken Any further thoughts on this? From:eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Andrew Beeken Okay, the error log is throwing: [Wed Apr 27 13:19:26.693735 2016] [perl:error] [pid 2876] [client 127.0.0.1:57412] Can't locate object method "remote_ip" via package "Apache2::Connection" at /lirolem-dev/perl_lib/EPrints/DataObj/LoginTicket.pm
line 143.\n From:eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Adam Field From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Andrew Beeken <anbeeken@lincoln.ac.uk> Okay, so I’m now done with that but it’s throwing a very unhelpful internal server error. Is there anything I need to run from the command line to rebuild things, or any way of seeing a more helpful indication
of where its falling over? From:eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Adam Field From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Andrew Beeken <anbeeken@lincoln.ac.uk> Okay, so I can get as far as step 7 – now, I’m running this from the development tree (that I copied from live), rather than the installed tree. Is this right? Likewise, I presume I need to change the 10_core
file in the development tree? From:eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Andrew Beeken Thanks Adam – step 11 is pretty much why I’m doing this
J I did have a dev build on an old Macbook but the VM wouldn’t restore itself on my new Windows machine so, starting from scratch! (yay!) From:eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Adam Field 1) install a fresh copy of EPrints and configure it to work on the dev server (to make sure all prerequisites are ship-shape). It'll make things simpler if you use the same database name, username
and password as the live repository. Test that you can raise it in a browser, log in, create a record, etc. There's a training video for this. 2) Dump the live database into the EPrint tree somewhere (perhaps <eprints_root>/archives/<foo>/db_dump/<timestamped_filename>.mysqldump) 3) Create an tarball of the EPrints tree (tar cvzf live_eprints<datestamp>.tar.gz <eprints_root>) 4) Copy the tarball to dev 5) tar xvzf the file to somewhere appropriate, check file permissions for the apache user on dev 6) undump the database dump (cat filename | mysql -u username -p) -- easy if you have used the same username and password as all the permissions are set up. Still easy if you didn't and know how
to create users and set permissions in mysql. 7) edit the 10_core.pl file in the archive directory to use the URL of the dev server. Then run generate apacheconf (I think with the --replace flag, but that's from memory). 8) Change your apache configuration to point to where you unpacked the eprint tree. 9) restart apache. 10) Debug the above process and document it on the wiki. 11) Think about getting your repository into source control to make this easier. From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Andrew Beeken <anbeeken@lincoln.ac.uk> Hi folks, I’m trying to bring our live EPrints install over to a staging server to do some work on it, but I’m struggling to do this in an elegant way. What’s the best approach? I tried bringing the archive files down and
repopulating the database; there are also a few core changes to our install in Perl-Lib which need bringing down however most times I pull all these across and restart apache it screws things over. I’m pretty sure I need to tweak some config settings and possibly
run a few things from the command line but I was wondering if anyone could digest the procedure for me or point me in the direction of one if it’s already been written! Cheers! Andrew
-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The
Open University is authorised and regulated by the Financial Conduct Authority.
|
- References:
- Re: [EP-tech] Copy live EPrints to staging server
- From: Adam Field <Adam.Field@jisc.ac.uk>
- Re: [EP-tech] Copy live EPrints to staging server
- Prev by Date: Re: [EP-tech] Copy live EPrints to staging server
- Next by Date: Re: [EP-tech] Copy live EPrints to staging server
- Previous by thread: Re: [EP-tech] Copy live EPrints to staging server
- Next by thread: Re: [EP-tech] Copy live EPrints to staging server
- Index(es):