DSpace Version Update with data Migration : Solution

Dear All, Please find here a compiled document which described the Up-gradation/Installation process of DSpace along with the old data. Please note that this document is compiled with special reference to data migration and up-gradation of very old DSpace 1.2.1 to latest version 4.2. Some tips and solutions of the common problem is given in the document. Please note that solutions has been discovered from the various Internet sources and mailing lists and fully tested. Please feel free to contact for up-gradation if you have old version or if you want to implement the same. https://drive.google.com/file/d/0B2Cmcc6xutSgeW1kS19oSWF1Rms/view?usp=sharin... Thanking You. With regards, Vinod Kumar Mishra, Assistant Librarian, Biju Patnaik Central Library, NIT Rourkela, Mob:91+9439420860 91+6612462103 (O) email: vinod_librarian@rediffmail.com : mishravk79@gmail.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

Greetings. That document is quite exhaustive, but also makes the upgrade process look more complicated than it actually is in some cases. Last we upgraded one DSpace installation from 1.6 to 4.x within couple of hours. Following are the steps in a nutshell: 1. Install latest DSpace as per documented procedure in a fresh location (e.g. '/opt/dspace'). Shutdown Tomcat. 2. Copy the backup of old DSpace 'assetstore' in new location ('/opt/dspace/assetstore') with same permissions. 3. Upgrade the database with these steps: a) Take backup of old dspace database: pg_dump dspace > old-dspace-backup.sql b) Create new database: createdb -U dspace -E UNICODE dspace4 c) Import old dspace backup: psql dspace4 < old-dspace-backup.sql d) Upgrade database schema to the latest (from 1.6 to 4.x): cd /opt/dspace/etc/postgres psql dspace4 < database_schema_16-17.sql psql dspace4 < database_schema_17-18.sql psql dspace4 < database_schema_18-3.sql psql dspace4 < database_schema_3-4.sql 4. Make necessary changes in 'dspace.cfg' (e.g. to change database name to 'dspace4') and start Tomcat. 5. Re-index the collection: cd /opt/dspace bin/dspace index-discovery -f 6. Install cron for the dspace 4.x (old cron will not work) as given in this page: https://wiki.duraspace.org/display/DSDOC4x/Scheduled+Tasks+via+Cron All old user logins and content downloads will work in the new version. Best regards, Saiful Amin +91-9343826438 On Wed, Nov 5, 2014 at 1:33 AM, Vinod Kumar Mishra < vinod_librarian@rediffmail.com> wrote:
Dear All,
Please find here a compiled document which described the Up-gradation/Installation process of DSpace along with the old data. Please note that this document is compiled with special reference to data migration and up-gradation of very old DSpace 1.2.1 to latest version 4.2.
Some tips and solutions of the common problem is given in the document. Please note that solutions has been discovered from the various Internet sources and mailing lists and fully tested. Please feel free to contact for up-gradation if you have old version or if you want to implement the same.
https://drive.google.com/file/d/0B2Cmcc6xutSgeW1kS19oSWF1Rms/view?usp=sharin...
Thanking You.
With regards, Vinod Kumar Mishra, Assistant Librarian, Biju Patnaik Central Library, NIT Rourkela, Mob:91+9439420860 91+6612462103 (O) email: vinod_librarian@rediffmail.com : mishravk79@gmail.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

Dear Dr. Amin, Please explain how it is different from the instructions recommended by developers which is available at : ( https://wiki.duraspace.org/display/DSDOC4x/Multi-Version+Upgrade+Tips+and+Tr... ) under the topic " Install Fresh and Upgrade your Data " . The same thing i have mentioned in document, further that document contains installation on production environment recommended by developers as well as the solutions of the problem which i faced after migration from 1.2.1 to 4.2 . Further can you solve my one problem which i am facing after that migration? i.e xmlui search/discovery is not working but browse works fine, at the same time jspui all features work brilliantly, the problem which i get after clicking the advance search of xmlui is: An error has occurred Go to DSpace home java.lang.NullPointerException: Cocoon stacktrace [show] Java stacktrace [show] Java full stacktrace [show] Please keep me replying with solution on forum because many will be benefited which coulod not be resolved by even dspace mailing list. I hope to get solution as you have good experience on DSpace i think? On Fri, 07 Nov 2014 13:47:22 +0530 "Dr. Saiful Amin" wrote
Greetings.
That document is quite exhaustive, but also makes the upgrade process look more complicated than it actually is in some cases. Last we upgraded one DSpace installation from 1.6 to 4.x within couple of hours. Following are the steps in a nutshell: 1. Install latest DSpace as per documented procedure in a fresh location (e.g. ';/opt/dspace';). Shutdown Tomcat. 2. Copy the backup of old DSpace ';assetstore'; in new location (';/opt/dspace/assetstore';) with same permissions. 3. Upgrade the database with these steps: a) Take backup of old dspace database: pg_dump dspace > old-dspace-backup.sql b) Create new database: createdb -U dspace -E UNICODE dspace4 c) Import old dspace backup: psql dspace4 < old-dspace-backup.sql d) Upgrade database schema to the latest (from 1.6 to 4.x): cd /opt/dspace/etc/postgres psql dspace4 < database_schema_16-17.sql psql dspace4 < database_schema_17-18.sql psql dspace4 < database_schema_18-3.sql psql dspace4 < database_schema_3-4.sql 4. Make necessary changes in ';dspace.cfg'; (e.g. to change database name to ';dspace4';) and start Tomcat. 5. Re-index the collection: cd /opt/dspace bin/dspace index-discovery -f 6. Install cron for the dspace 4.x (old cron will not work) as given in this page: https://wiki.duraspace.org/display/DSDOC4x/Scheduled+Tasks+via+Cron All old user logins and content downloads will work in the new version. Best regards, Saiful Amin +91-9343826438 On Wed, Nov 5, 2014 at 1:33 AM, Vinod Kumar Mishra wrote: Dear All, Please find here a compiled document which described the Up-gradation/Installation process of DSpace along with the old data. Please note that this document is compiled with special reference to data migration and up-gradation of very old DSpace 1.2.1 to latest version 4.2. Some tips and solutions of the common problem is given in the document. Please note that solutions has been discovered from the various Internet sources and mailing lists and fully tested. Please feel free to contact for up-gradation if you have old version or if you want to implement the same. https://drive.google.com/file/d/0B2Cmcc6xutSgeW1kS19oSWF1Rms/view?usp=sharin... Thanking You. With regards, Vinod Kumar Mishra, Assistant Librarian, Biju Patnaik Central Library, NIT Rourkela, Mob:91+9439420860 91+6612462103 (O) email: vinod_librarian@rediffmail.com : mishravk79@gmail.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -------------- next part -------------- An HTML attachment was scrubbed... URL: _______________________________________________ LIS-Forum mailing list LIS-Forum@ncsi.iisc.ernet.in http://ncsi.iisc.ernet.in/mailman/listinfo/lis-forum With regards, Vinod Kumar Mishra, Assistant Librarian, Biju Patnaik Central Library, NIT Rourkela, Mob:91+9439420860 91+6612462103 (O) email: vinod_librarian@rediffmail.com : mishravk79@gmail.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
participants (2)
-
Dr. Saiful Amin
-
Vinod Kumar Mishra