Fedora commons installation

For version Fedora Commons 3.4.2 on CentOS 5.5 and possibly 5.6

Official Documentation
https://wiki.duraspace.org/display/FCR30/Fedora+Repository+3.4.2+Documentation

/usr/local/fedora/tomcat/logs/catalina.out
is a good place to view error message.

== installation
Follow this guide
https://wiki.duraspace.org/display/FCR30/Installation+and+Configuration+Guide
To install jdk
yum install java-1.6.0-openjdk

To add environment variable use the following commands
export FEDORA_HOME=”/usr/local/fedora”
export JAVA_HOME=”/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre”
export JAVA_OPTS=”-Djavax.net.ssl.trustStore=$FEDORA_HOME/server/truststore -Djavax.net.ssl.trustStorePassword=changeme”

To make env var appear when startup, create a file called fedoracommons.sh in /etc/profiles.d and put the commands above in to that file.

If only for testing purpose, Do NOT use SSL. It is complicated… To config SSL please see below.

== replication
Please config journaling first…

== enable journaling
https://wiki.duraspace.org/display/FCR30/Journaling
The page contains many old setting syntax.
If you copy and paste, you will see
“fedora.server.management.ManagementModule” could not be found
“fedora.server.journal.Journaler” could not be found
This problem consumed me 3 days…
For every occurance of fedora.server.management.Management or similar, change it to org.fcrepo.server.management.Management
In other word, replace fedora to org.fcrepo
You also need to create the folders
mkdir /usr/local/ndr-content
mkdir /usr/local/ndr-content/journals
mkdir /usr/local/ndr-content/journals/journalFiles
mkdir /usr/local/ndr-content/journals/archiveFiles

For Fedora Commons version 3.4 running in Linux… The Journal receiver can run and everything looks normally when start up but just no file is writing to the journal folder. This can cause error if you maark the follower server crucial.

Finally.. figured out that need to add -Djava.rmi.server.hostname=192.168.11.11 to the command to start journal receiver.

java -Djava.rmi.server.hostname=192.168.11.11 -jar fcrepo-server-3.4-rmi-journal-recv.jar “/usr/local/ndr-content/journals/journalFiles”

 

Leave a Reply