Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

ESSArch Preservation Platform - an practical implementation of the OAIS (Reference Model for an Open Archival Information System)

License

Notifications You must be signed in to change notification settings

eark-project/ESSArch_EPP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EPP (ESSArch Preservation Platform )

EPP (ESSArch Preservation Platform) - an practical implementation of the OAIS (Reference Model for an Open Archival Information System)

Installation Guide

Prerequisites

Hardware configuration for server, network and storage architecture is not affected in this guide. Software configurations for server operating systems occur preferably before the installation of ESSArch begins. The installation is expected to be done as user 'root'.

Supported OS platforms

OS Version
CentOS 5.5 (x86_64)
CentOS 6.4 (x86_64) CentOS release 6.6 (Final)
Redhat Enterprise Server 5 (x86_64)
SUSE Linux Enterprise Server 10 (x86_64)
SUSE Linux Enterprise Server 11 (x86_64) SP3
Fedora 11 (x86_64)

OS Packages

Before installing ESSArch you need to verify that the following packages are installed on your platform

Package Minimum version Note Verified version
kernel-devel 2.6.x kernel-devel-2.6.32-504.el6.x86_64
sysstat 7.x sysstat-9.0.4-27.el6.x86_64
make 3.81-15 make-3.81-20.el6.x86_64
patch 2.6.1-1 patch-2.6-6.el6.x86_64
erlang ** R12B-5.8 erlang-R14B-04.3.el6.x86_64
gcc 4.1.2 gcc-4.4.7-11.el6.x86_64
gcc-c++ 4.1.2 gcc-c++-4.4.7-11.el6.x86_64
ppenssl 0.9.8 openssl-1.0.1e-30.el6.x86_64
openssl-devel 0.9.8 openssl-devel-1.0.1e-30.el6.x86_64
openldap 2.3.43 openldap-2.4.39-8.el6.x86_64
openldap-devel 2.3.43 openldap-devel-2.4.39-8.el6.x86_64
mt-st 0.9b mt-st-1.1-5.el6.x86_64
mtx 1.2.18 mtx-1.3.12-5.el6.x86_64
sg3_utils 1.25 sg3_utils-1.28-6.el6.x86_64
sg3_utils-libs 1.25 sg3_utils-libs-1.28-6.el6.x86_64
sg3_utils-devel 1.25 sg3_utils-devel-1.28-6.el6.x86_64
mysql 5.0.77 mysql-5.1.73-3.el6_5.x86_64
mysql-server 5.0.77 mysql-server-5.1.73-3.el6_5.x86_64
mysql-devel 5.0.77 mysql-devel-5.1.73-3.el6_5.x86_64
mysql-libs 5.0.77 mysql-libs-5.1.73-3.el6_5.x86_64
gnutls 1.4.1 gnutls-2.8.5-14.el6_5.x86_64
readline 5.1.3 readline-6.0-4.el6.x86_64
readline-devel 5.1.3 readline-devel-6.0-4.el6.x86_64
unixODBC 2.2.11 unixODBC-2.2.14-14.el6.x86_64
unixODBC-devel 2.2.11 unixODBC-devel-2.2.14-14.el6.x86_64
freetds 0.64 freetds-0.91-2.el6.x86_64
freetds-devel 0.64 freetds-devel-0.91-2.el6.x86_64
pcre 7.8 pcre-7.8-6.el6.x86_64
pcre-devel 7.8 pcre-devel-7.8-6.el6.x86_64
lzo 2.03-2 lzo-2.03-3.1.el6_5.1.x86_64
lzo-devel 2.03-2 lzo-devel-2.03-3.1.el6_5.1.x86_64
xz 4.999.9-0.1 xz-4.999.9-0.5.beta.20091007git.el6.x86_64
bzip2-devel (libbz2-devel) 1.0.5-5 bzip2-devel-1.0.5-7.el6_0.x86_64
libffi-devel 3.0.5-3.2 libffi-devel.x86_64 0:3.0.5-3.2.el6
sqlite-devel 3.6 3.6.20-1.el6.x86_64

** Centos require extra package: epel-release

Prepare Environment

Create user and group

Don't forget to create /home/arch

Please run the following command as user root.
# groupadd arch
# useradd -c "ESSArch System Account" -m -g arch arch

Set password for arch user

Please run the following command as user root.
# passwd arch
Changing password for user arch.
New UNIX password: password
Retype new UNIX password: password

Customize user environment for arch user

Add the following rows to /home/arch/.bash_profile:

### ESSArch start
##
export PATH=/ESSArch/pd/python/bin:$PATH:/usr/sbin
export LANG=en_US.UTF-8
export LD_LIBRARY_PATH=/ESSArch/pd/python/lib:/ESSArch/pd/libxslt/lib:/ESSArch/pd/libxml/lib:$LD_LIBRARY_PATH
export EPP=/ESSArch/pd/python/lib/python2.7/site-packages/ESSArch_EPP
export PYTHONPATH=$EPP:$EPP/workers:/ESSArch/config
export DJANGO_SETTINGS_MODULE=config.settings
alias bin='cd /ESSArch/bin'
alias log='cd /ESSArch/log'
##
### ESSArch end

Create installation directory

Please run the following command as user root.
# mkdir /ESSArch
# chown -R arch:arch /ESSArch

Installation

EPP installation script

Change to user "arch" with the following command.
# su - arch

Download and extract ESSArch_EPP_install tarfile.
[arch@server ~]$ wget http://xxx.xxx.xxx.xxx/ESSArch_EPP_installer_xxxxxxxxxxxx.tar.gz
[arch@server ~]$ tar xvf ESSArch_EPP_installer_xxxxxxxxxxxx.tar.gz
[arch@server ~]$ cd ESSArch_EPP_installer
[arch@server ~]$ ./install

The installation of ESSArch is now running and dependent on hardware configuration, the installation may take some time. To see details of the installation progress please start a new terminal window and run the following command.
[arch@server ~]$ tail -f /ESSArch/install.log

When installation is finished, search in the log file /ESSArch/install.log for any unexpected errors indicating failure of installation of any modules.

Installation of Advanced Message Queuing Protocol

ESSArch is designed to be AMQP (Advanced Message Queuing Protocol) independent. However the installation package is prepared for RabbitMQ and the following instructions assume that you use RabbitMQ.

Follow the instructions below in order to install RabbitMQ required by ESSArch.

Please run the following commands as root user.
# rpm -i /ESSArch/install/packages/rabbitmq-server.rpm
# chkconfig rabbitmq-server on
# service rabbitmq-server start

If startup failed and you see an error message in /var/log/rabbitmq/startup_log after a minute or so like:

ERROR: epmd error for host "yourhostname": timeout (timed out)_

Then you need to update your /etc/hosts file to add your hostname to the list of localhost:

127.0.0.1 yourhostname

Configuring

Apache httpd configuration

Edit file /ESSArch/config/httpd-epp.conf and change the configuration entry for "ServerName" to same as the hostname of the ESSArch server.

For test purpose you can use the existing configuration for SSL certificate, but for production environment and for maximum security we recommend generating your own SSL certificate or if you have your own SSL trusted certificate install them in the apache httpd configuration.

ESSArch configuration

In /ESSArch/config you will find all the configuration files for ESSArch. The main configuration file for ESSArch WEB GUI is local_settings.py.

For ESSArch you will find the configuration in the local database tables. To change the configuration please login as admin user is EPP and select menu MANAGEMENT > Configuration

Database

ESSArch is designed to be RDBMS-independent. However the installation package is prepared for MySQL and the following instructions assume that you use MySQL.

MySQL

Please note that the MySQL JDBC driver provided by the installer requires MySQL version 5.x or higher.

Follow the instructions below in order to create the user and tables required by EPP installation.

To enable MySQL on CentOS 5.5 use the following commands.
/sbin/chkconfig mysqld on
/sbin/service mysqld start
/usr/bin/mysql_secure_installation

The MySQL commands listed below can be run within the mysql program, which may be invoked as follows.
# mysql -u root -p

Create the database. For example, to create a database named "essarch", enter.
mysql> CREATE DATABASE essarch DEFAULT CHARACTER SET utf8;

Set username, password and permissions for the database. For example, to set the permissions for user "arkiv" with password "password" on database "essarch", enter:
mysql> GRANT ALL ON essarch.* TO arkiv@localhost IDENTIFIED BY 'password';

Create default tables in database

Please run the following command as user: arch
[arch@server ~]$ python $EPP/manage.py migrate

Add default configuration data to database

Use only this default configuration for test purpose, do not install this default configuration in production.

For production environment you should first make a copy of this configuration file and update for example site_profile, site_name. After you done all your updates you install it.

Please run the following command as user: arch
[arch@server ~]$ python $EPP/extra/install_config.py

For production/custom installation

[arch@server ~]$ cp $EPP/extra/install_config.py /home/arch/install_config_epp_custom.py

Update /home/arch/install_config_epp_custom.py

Install configuration:

[arch@server ~]$ python /home/arch/install_config_epp_custom.py

Enable automatic startup at system boot

Login as root user and set EPP path variable:
# export EPP=/ESSArch/pd/python/lib/python2.7/site-packages/ESSArch_EPP

Enable workerprocess

Please run the following commands as root user.
# cp $EPP/extra/celeryd.sh /etc/init.d/celeryd
# chmod 744 /etc/init.d/celeryd
# chkconfig celeryd on
# cp $EPP/extra/celerybeat.sh /etc/init.d/celerybeat
# chmod 744 /etc/init.d/celerybeat
# chkconfig celerybeat on

Enable automatic startup of Apache HTTPD

Please run the following command as user root.
# cp $EPP/extra/httpd.sh /etc/init.d/httpd
# chmod 744 /etc/init.d/httpd
# chkconfig httpd on

Enable EPP server processes

Please run the following command as user root.
# cp $EPP/extra/ESSArch.sh /etc/init.d/essarch
# chmod 744 /etc/init.d/essarch
# chkconfig essarch on

Enable automatic backup of MySQL

Please run the following command as user root.
# cp /ESSArch/config/automysqlbackup/runmysqlbackup /etc/cron.daily/runmysqlbackup
# chmod 744 /etc/cron.daily/runmysqlbackup

Running the EPP Server

Start EPP server

Note that a startup or shutdown of EPP should always be controlled.

Please run the following command as user root to start EPP.
# service celeryd start
# service celerybeat start
# service essarch start
# service httpd start

Stop EPP server

Please run the following command as user root to stop EPP.
# service httpd stop
# service essarch stop
# service celeryd stop
# service celerybeat stop

Start EPP WEB interface

Start your preferable web browser and connect to EPP Server name or IP address.

URL: https://xxxxxxxx

By default, for test purpose, the installation has configured the following users:

Username Password Role/Permissions
user user ingest, access, storage
admin admin ingest, access, storage, admin
sysadmin sysadmin System admin, configuration, users

Important files to backup

Important data in ESSArch to backup is the configuration, log files and database. All areas which are mounted from external file servers should be backed up.

Everything in the file area /ESSArch should be backed up before and after configuration changes or changes in ESSArch system installation, for example when upgrading and software patches.

Areas that need to be backed up to an external "backup system" daily is the following:

  • /ESSArch/backups_mysql
  • /ESSArch/config
  • /ESSArch/log
  • /ESSArch/data

##Events and log information

Different types of events are logged both in physical files and tables in ESSArch database. Log entries are tagged with the log level - Debug, Critical, Error, Warning, Info. These log levels can be felt by the EPP's system logs:

  • /ESSArch/log
  • /ESSArch/log/AccessEngine.log
  • /ESSArch/log/administration.log
  • /ESSArch/log/AIPChecksum.log
  • /ESSArch/log/AIPCreator.log
  • /ESSArch/log/AIPPurge.log
  • /ESSArch/log/AIPValidate.log
  • /ESSArch/log/AIPWriter.log
  • /ESSArch/log/celerybeat.log
  • /ESSArch/log/celery_smdisk1.log
  • /ESSArch/log/celery_smtape1.log
  • /ESSArch/log/celery_worker1.log
  • /ESSArch/log/controlarea.log
  • /ESSArch/log/db_sync_ais.log
  • /ESSArch/log/ESSArch_db.log
  • /ESSArch/log/ESSArch.log
  • /ESSArch/log/ESSArch_request.log
  • /ESSArch/log/ESSArch.log
  • /ESSArch/log/ESSlogging.log
  • /ESSArch/log/FTPServer.log
  • /ESSArch/log/httpd_access.log
  • /ESSArch/log/httpd_error.log
  • /ESSArch/log/httpd_ssl_request.log
  • /ESSArch/log/install.log
  • /ESSArch/log/monitoring.log
  • /ESSArch/log/SIPReceiver.log
  • /ESSArch/log/SIPRemove.log
  • /ESSArch/log/SIPValidateAIS.log
  • /ESSArch/log/SIPValidateApproval.log
  • /ESSArch/log/SIPValidateFormat.log
  • /ESSArch/log/Storage.log
  • /ESSArch/log/storageLogistics.log
  • /ESSArch/log/storagemaintenance.log
  • /ESSArch/log/StorageMethodDisk.log
  • /ESSArch/log/StorageMethodTape.log
  • /ESSArch/log/TLD.log

Service och support

Service and support on EPP is regulated in maintenance contract with ES Solutions AB. A case is registered on the support portal http://projects.essolutions.se

About

ESSArch Preservation Platform - an practical implementation of the OAIS (Reference Model for an Open Archival Information System)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 58.3%
  • Python 30.2%
  • HTML 7.0%
  • CSS 3.9%
  • Other 0.6%