OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Moving journal to new server

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Moving journal to new server

Postby barnes » Mon Aug 13, 2007 8:16 pm

I installed OJS on my desktop to experiment with it. Now we have it installed on a serious server with proper backup and support and I'm moving the journal I created across to the new server. Both installations are OJS 2.1.1.0.

(Seriously, this should be easier... How about an import/export of an entire journal, together with all correspondence, history, issues, date stamps, people/roles and so on? Dump the entire database to XML and then load it all up on another OJS installation. Surely this is something that happens a lot?)

1. I went through the journal administrator pages cutting and pasting all the data across. No problems there, but there's got to be a better way.

2. I did "export users" on the old server and "import users" on the new server. That worked fine.

3. I did "export issue" on the old server, then tried "import issue" on the new server. I end up at a blank page with the following URL:
http://ejournal.anu.edu.au/index.php/bi ... gin/import
As far as I can see, nothing has happened. The issue isn't there.[/list]

So I'm stuck. Help anyone?

Ian Barnes
The Australian National University
barnes
 
Posts: 15
Joined: Mon Aug 13, 2007 8:02 pm

Re: Moving journal to new server

Postby asmecher » Tue Aug 14, 2007 12:03 am

Hi Ian,

To move a journal to a new machine, simply 1) pack up all the installation files (using tar or zip or something similar), and 2) use the mysqldump tool to create a database dump. Then unpack the archive and restore the database onto the new server. There are only two things to watch for:

1) Make sure the configuration file is still correct (i.e. the base_url setting is accurate for the new machine)
2) Double-check your Journal Settings pages to make sure that any URLs referred to there are correct (e.g. the Information for Authors, Librarians, and Readers links on Journal Setup page 5).

I can provide more information on how to do this if you need.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9099
Joined: Wed Aug 10, 2005 12:56 pm

Re: Moving journal to new server

Postby barnes » Tue Aug 14, 2007 8:27 pm

Thanks for the quick answer.

Unfortunately I only have access to the new server through the web interface, so zipping and unzipping files and dumping and restoring databases won't be possible.

But that's OK if I can just import the published issues.

I guess the real question I have is what's going wrong with importing a published issue? I used the import/export articles & issues plugin to export it from the old server. I checked the exported XML file with xmllint and it validates OK. But when I try to import it to the new server, I just get that blank page.
barnes
 
Posts: 15
Joined: Mon Aug 13, 2007 8:02 pm

Re: Moving journal to new server

Postby asmecher » Wed Aug 15, 2007 12:19 am

Hi Ian,

A blank page typically indicates that a PHP error has been logged; during imports, the most common one is the script exceeding the memory limit. Adding the following code:
Code: Select all
ini_set('display_errors', E_ALL);
...near the top of index.php will cause errors to be displayed to the browser rather than logged into oblivion.

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 9099
Joined: Wed Aug 10, 2005 12:56 pm

Re: Moving journal to new server

Postby barnes » Sun Aug 19, 2007 9:00 pm

OK, I am now able to log in and view the log file. Here is the error message from my most recent attempt to upload the exported issue:

[Mon Aug 20 13:27:27 2007] [error] [client 150.203.59.244] PHP Fatal error: Call to a member function getFilePath() on a non-object in /export/web/ejournal/ojs-2.1.1/plugins/importexport/native/NativeImportExportPlugin.inc.php on line 137, referer: http://ejournal.anu.edu.au/index.php/bi ... portPlugin


On some previous attempts, there was an additional message, for example:

[Wed Aug 15 13:11:01 2007] [error] [client 150.203.59.244] PHP Notice: Undefined index: importFile in /export/web/ejournal/ojs-2.1.1/classes/file/FileManager.inc.php on line 95, referer: http://ejournal.anu.edu.au/index.php/bi ... portPlugin
[Wed Aug 15 13:11:01 2007] [error] [client 150.203.59.244] PHP Fatal error: Call to a member function getFilePath() on a non-object in /export/web/ejournal/ojs-2.1.1/plugins/importexport/native/NativeImportExportPlugin.inc.php on line 137, referer: http://ejournal.anu.edu.au/index.php/bi ... portPlugin


I contacted the system administrator. The PHP memory setting has already been increased. He just (perhaps temporarily) increased the upload limit to 24MB, which is larger than the file size for the issue I'm trying to upload (just under 21MB).

Any more suggestions?
barnes
 
Posts: 15
Joined: Mon Aug 13, 2007 8:02 pm

Re: Moving journal to new server

Postby asmecher » Mon Aug 20, 2007 8:40 am

Hi Ian,

Check to make sure that file uploads are enabled in php.ini and that the upload_max_filesize and post_max_size limits are set sufficiently high.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9099
Joined: Wed Aug 10, 2005 12:56 pm

Re: Moving journal to new server

Postby barnes » Mon Aug 27, 2007 8:57 pm

OK, that worked. Eventually. Thanks for all your help.
barnes
 
Posts: 15
Joined: Mon Aug 13, 2007 8:02 pm

Re: Moving journal to new server

Postby emasb » Fri Sep 19, 2008 3:42 pm

How can i move only one of my journals to another computer??
emasb
 
Posts: 2
Joined: Fri Sep 19, 2008 3:15 pm

Re: Moving journal to new server

Postby mcrider » Fri Sep 19, 2008 3:55 pm

mcrider
 
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 10 guests