All Versions
DSpace Documentation
Unreleased Documentation
This documentation is unreleased and still in development. It may describe features which are not yet released in DSpace.
Looking for another version? See all documentation
This page provides guidance for upgrading to the latest version of DSpace from an unsupported or older release, such as DSpace 1.x.x, 3.x, 4.x, 5.x or 6.x.
If you are using SOLR Statistics and wish to retain your statistical data in the latest version of DSpace, then you MUST export your old Solr statistics data from your existing site.
From your old version of DSpace, dump your authority and statistics Solr cores. (Only necessary if you want to keep both your authority records and/or SOLR Statistics)
[dspace]/bin/dspace solr-export-statistics -i authority [dspace]/bin/dspace solr-export-statistics -i statistics
The dumps will be written to the directory [dspace]/solr-export. This may take a long time and require quite a lot of storage. In particular, the statistics core is likely to be huge, perhaps double the size of the content of solr/statistics/data. You should ensure that you have sufficient free storage.
This is not the same as the disaster-recovery backup that was done above. These dumps will be reloaded into new, reconfigured cores later.
If you were sharding your statistics data, you will need to dump each shard separately. The index names for prior years will be statistics-YYYY (for example: statistics-2017 statistics-2018 etc.) The current year's statistics shard is named statistics and you should dump that one too.
Perform the DSpace upgrade or migration based on your preferred upgrade method. There are two main options:
In most situations, you may find it easier to follow the steps in Migrating DSpace to a new server because it will allow you to work with a fresh installation of the new DSpace release before migrating your data into that installation. That process is often easier if you plan to upgrade from a very old DSpace release.
If you choose option two (the manual upgrade), please keep in mind that you will need to remove/modify some of your existing DSpace configuration. These are some of the configurations that used to exist in DSpace 6.x which are no longer valid in DSpace 7 or later:
config directory, and its subdirectories, concentrating on configurations your previously customized in your local.cfg. See also the Configuration Reference.[dspace]/config/spring/api/bte.xml Spring Configuration. This file is no longer needed as the BTE framework was removed in favor of Live Import from external sources.First, create a temporary folder to copy your old v6 configurations into
# Example of creating a [dspace]/config/temp folder for this migration # You must replace [dspace] with the full path of your DSpace 7 installation. cd [dspace]/config mkdir temp
Run the command-line migration script to migrate them to v7 configuration files
# This example uses [dspace] as a placeholder for all paths. # Replace it with either the absolute or relative path of these files [dspace]/bin/dspace submission-forms-migrate -s [dspace]/config/temp/item-submission.xml -f [dspace]/config/temp/input-forms.xml
[dspace]/config/item-submission.xml.migrated [dspace]/config/submission-forms.xml.migrated [dspace]/config/ folder, therefore retaining the inline comments in those default files.[dspace]/config/GeoLiteCity.dat file is no longer maintained by its provider. You can delete it. The new file is named GeoLite2-City.mmdb by default. If you have configured a different name and/or location for this file, you should check the setting of usage-statistics.dbfile in [dspace]/config/modules/usage-statistics.cfg (and perhaps move your custom setting to local.cfg).dspace.cfg and/or local.cfg all lines referencing org.dspace.app.mediafilter.WordFilter and uncomment all lines referencing org.dspace.app.mediafilter.PoiWordFilter.solr.server to point at your new Solr external service. It will probably become something like solr.server = https://localhost:8983/solr. Solr only needs to be accessible to the DSpace backend, and should not be publicly available on the web. It can either be run on localhost or via a hostname (if run on a separate server from the backend). Also review the values ofdiscovery.search.serveroai.solr.urlsolr.authority.serversolr-statistics.serversitemap.cron setting exists in the dspace.cfg which controls when Sitemaps are generated. By default they are enabled to update once per day, for optimal SEO. See Search Engine Optimization docs for more detail./dspace generate-sitemaps", this system cron job can be removed in favor of the new sitemap.cron setting.If you are using SOLR Statistics and wish to retain your statistical data in the latest version of DSpace, then you MUST import your old Solr statistics data from your existing site. (This step is using the same data that you exported above)
Load authority and statistics from the CSV dumps that you made earlier in Step 2 above.
[dspace]/bin/dspace solr-import-statistics -i authority [dspace]/bin/dspace solr-import-statistics -i statistics
This could take quite some time.
If you had sharded your statistics, you will need to load the dump of each shard separately into the "statistics" core. DSpace 7 does not support Solr shards at this time. Unfortunately, this will involve renaming all CSV export files to remove the year (e.g. rename "statistics-2012_export_2013-12_5.csv" to "statistics_export_2013-12_5.csv") and rerunning "[dspace]/bin/dspace solr-import-statistics -i statistics". More advice on this process can be found in this dspace-tech mailing list thread.
For the Statistics core(s) only, upgrade legacy DSpace Object Identifiers (pre-6.4 statistics) to UUID Identifiers.
[dspace]/bin/dspace solr-upgrade-statistics-6x -i statistics
Again If you had sharded your statistics, you will need to run this for each shard separately. See also SOLR Statistics Maintenance#UpgradeLegacyDSpaceObjectIdentifiers(pre-6xstatistics)toDSpace6xUUIDIdentifiers
geoipupdate tool directly via their package manager. You will still need to configure your license key prior to usage.usage-statistics.dbfile in your local.cfg configuration file . config/ directory (if they exist).usage-statistics.dbfile in your local.cfg configuration file . Older versions of DSpace used an older Handle Server. If you are using the built-in Handle Server with hdl.handle.net URLs, then you'll need to add the follow to the end of the server_config section of your [dspace]/handle-server/config.dct file (the only new line is the "enable_txn_queue" line)
"case_sensitive" = "no" "storage_type" = "CUSTOM" "storage_class" = "org.dspace.handle.HandlePlugin" "enable_txn_queue" = "no"
Alternatively, you could re-run the ./dspace make-handle-config script, which is in charge of updating this config.dct file.