EPP (ESSArch Preservation Platform )
EPP (ESSArch Preservation Platform) - an practical implementation of the OAIS (Reference Model for an Open Archival Information System)
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
|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|
Before installing ESSArch you need to verify that the following packages are installed on your platform
|Package||Minimum version||Note||Verified version|
** Centos require extra package: epel-release
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
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:
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.
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
ESSArch is designed to be RDBMS-independent. However the installation package is prepared for MySQL and the following instructions assume that you use 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
[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
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.
By default, for test purpose, the installation has configured the following users:
|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:
##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:
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