All Versions
- DSpace 7.x (Current Release)
- DSpace 8.x (Unreleased)
- DSpace 6.x (EOL)
- DSpace 5.x (EOL)
- More Versions...
Unsupported Release
This documentation relates to an old, unsupported version of DSpace, version 1.7.x. Looking for another version? See all documentation.
As of January 2014, the DSpace 1.7.x platform is no longer supported. We recommend upgrading to a more recent version of DSpace.
A complete DSpace installation consists of three separate directory trees:
The source directory:: This is where (surprise!) the source code lives. Note that the config files here are used only during the initial install process. After the install, config files should be changed in the install directory. It is referred to in this document as [dspace-source].
The install directory:: This directory is populated during the install process and also by DSpace as it runs. It contains config files, command-line tools (and the libraries necessary to run them), and usually-although not necessarily-the contents of the DSpace archive (depending on how DSpace is configured). After the initial build and install, changes to config files should be made in this directory. It is referred to in this document as [dspace].
The web deployment directory:: This directory is generated by the web server the first time it finds a dspace.war file in its webapps directory. It contains the unpacked contents of dspace.war, i.e. the JSPs and java classes and libraries necessary to run DSpace. Files in this directory should never be edited directly; if you wish to modify your DSpace installation, you should edit files in the source directory and then rebuild. The contents of this directory aren't listed here since its creation is completely automatic. It is usually referred to in this document as [tomcat]/webapps/dspace.
[dspace-source]
src/main/resources/ - The overlay for JSPUI Resources. This is the location to place any custom Messages.properties files. (Previously this file had been stored at: _[dspace-source]/config/language-packs/Messages.properties_
dspace-[version].dir - The location of the DSpace Installation Package (which can then be installed by running ant update)
Below is the basic layout of a DSpace installation using the default configuration. These paths can be configured if necessary.
[dspace]
DSpace's Ant build file creates a dspace-jspui-webapp/ directory with the following structure:
DSpace's Ant build file creates a dspace-xmlui-webapp/ directory with the following structure:
The first source of potential confusion is the log files. Since DSpace uses a number of third-party tools, problems can occur in a variety of places. Below is a table listing the main log files used in a typical DSpace setup. The locations given are defaults, and might be different for your system depending on where you installed DSpace and the third-party tools. The ordering of the list is roughly the recommended order for searching them for the details about a particular problem or error.
Log File |
What's In It |
||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="40173758-9b11-4a3b-b8ce-97ccce7be93b"><ac:plain-text-body><![CDATA[ |
[dspace]/log/dspace.log |
Main DSpace log file. This is where the DSpace code writes a simple log of events and errors that occur within the DSpace code. You can control the verbosity of this by editing the [dspace-source]/config/templates/log4j.properties file and then running "ant init_configs". |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c637fc7c-455c-4ba6-9a23-114f31fa3eef"><ac:plain-text-body><![CDATA[ |
[tomcat]/logs/catalina.out |
This is where Tomcat's standard output is written. Many errors that occur within the Tomcat code are logged here. For example, if Tomcat can't find the DSpace code (dspace.jar), it would be logged in catalina.out. |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ab4125fe-717d-40cf-8828-e6c88a6d6a35"><ac:plain-text-body><![CDATA[ |
[tomcat]/logs/hostname_log.yyyy-mm-dd.txt |
If you're running Tomcat stand-alone (without Apache), it logs some information and errors for specific Web applications to this log file. hostname will be your host name (e.g. dspace.myu.edu) and yyyy-mm-dd will be the date. |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="0acacd6e-aeac-48bb-9dab-ccdec7fb326e"><ac:plain-text-body><![CDATA[ |
[tomcat]/logs/apache_log.yyyy-mm-dd.txt |
If you're using Apache, Tomcat logs information about Web applications running through Apache (mod_webapp) in this log file (yyyy-mm-dd being the date.) |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="800edd91-06cf-4d37-b2fa-289854a705bb"><ac:plain-text-body><![CDATA[ |
[apache]/error_log |
Apache logs to this file. If there is a problem with getting mod_webapp working, this is a good place to look for clues. Apache also writes to several other log files, though error_log tends to contain the most useful information for tracking down problems. |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="29b5bad1-d4c3-4901-a59a-27f4265fb744"><ac:plain-text-body><![CDATA[ |
[dspace]/log/handle-plug.log |
The Handle server runs as a separate process from the DSpace Web UI (which runs under Tomcat's JVM). Due to a limitation of log4j's 'rolling file appenders', the DSpace code running in the Handle server's JVM must use a separate log file. The DSpace code that is run as part of a Handle resolution request writes log information to this file. You can control the verbosity of this by editing [dspace-source]/config/templates/log4j-handle-plugin.properties. |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b9a3e2d3-2efa-4585-8eda-fb3e5c2d536f"><ac:plain-text-body><![CDATA[ |
[dspace]/log/handle-server.log |
This is the log file for CNRI's Handle server code. If a problem occurs within the Handle server code, before DSpace's plug-in is invoked, this is where it may be logged. |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="02000fc6-a99b-41ca-aa02-ab5ebeea0d76"><ac:plain-text-body><![CDATA[ |
[dspace]/handle-server/error.log |
On the other hand, a problem with CNRI's Handle server code might be logged here. |
]]></ac:plain-text-body></ac:structured-macro> |
PostgreSQL log |
PostgreSQL also writes a log file. This one doesn't seem to have a default location, you probably had to specify it yourself at some point during installation. In general, this log file rarely contains pertinent information--PostgreSQL is pretty stable, you're more likely to encounter problems with connecting via JDBC, and these problems will be logged in dspace.log. |
the file [dspace]/config/log4j.properties controls how and where log files are created. There are three sets of configurations in that file, called A1, A2, and A3. These are used to control the logs for DSpace, the checksum checker, and the XMLUI respectively. The important settings in this file are:
log4j.rootCategory=INFO,A log4j.logger.org.dspace=INFO,A1 |
These lines control what level of logging takes place. Normally they should be set to INFO, but if you need to see more information in the logs, set them to dEBUG and restart your web server |
log4j.appender.A1=org.dspace.app.util.DailyFileAppender |
This is the name of the log file creation method used. The DailyFileAppender creates a new date-stamped file every day or month. |
log4j.appender.A1.File=${log.dir}/dspace.log |
This sets the filename and location of where the log file will be stored. It iwll have a date stamp appended to the file name. |
log4j.appender.A1.DatePattern=yyy-MM-DD |
This defines the format for the date stamp that is appended to the log file names. If you wish to have log files created monthyl instead of daily, change this to yyyy-MM |
log4j.appender.A1.MaxLogs=0 |
This defines how many log files will be created. You may wish to define a retention period for log files. If you set this to 365, logs older than a year will be deleted. By default this is set to 0 so that no logs are ever deleted. Ensure that you monitor the disk space used by the logs to make sure that you have enough space for them. It is often important to keep the log files for a long time in case you want to rebuild your statistics. |