Re: [LIS-Forum] DSpace Version Update with data Migration : Solution
![](https://secure.gravatar.com/avatar/313888a8ddb82f89a307015186524e15.jpg?s=120&d=mm&r=g)
Dear Mr. Vinod, You have made quite an exhaustive document and it is quite helpful in dealing specific scenarios which you have already explained. There's nothing much wrong with that (except for some typos in cron job section). Actually it's so detailed that it should be part of some wiki/web page which you can keep updating. People who have similar scenarios like you (same OS, DSpace version) can benefit from it. If the official documentation doesn't work they can look up to your web-page than searching through these mails. I just wanted to put my two cents to the fact that there are many scenarios which are not that complicated, where the official documentation just works. In fact, the official documentation (which you provided the link) has always worked for me (I run a professional consulting service). The motto should be to keep things simple, so that many people can give it a try. It may or may not work, but giving a try is key to getting things done. Coming to your specific issues, there are just too many variables in any DSpace installation (OS version/architecture, Java version/vendor, Java container in use, Java libraries path, permissions, etc.). DSpace-Tech forum is the correct place to look for more technical help. Every installation is different in a way. That's why it's difficult to give any immediate solution to your problems without going through various logs and systems settings. If you want to discuss further on any specific issue, please send me direct email. Best regards, Saiful Amin +91-9343826438 Skype: saiful.amin On Fri, Nov 7, 2014 at 2:58 PM, Vinod Kumar Mishra < vinod_librarian@rediffmail.com> wrote:
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.
participants (1)
-
Dr. Saiful Amin