Edit me

Stop services

  • esshttpd
  • celeryd
  • celerydetp
  • rabbitmq-server
  • redis

Verify that a backup of the database exists at /ESSArch/backup

Move old installation

# cd /ESSArch
# mkdir old
# mv config install install*.log pd old/

Install new ESSArch Tools Producer

# su - arch
[arch@server ~]$ tar xvf ESSArch_TP_installer-x.x.x.tar.gz
[arch@server ~]$ cd ESSArch_TP_installer-x.x.x
[arch@server ~]$ ./install

Collect static files to be served by apache httpd

[arch@server ~]$ python $ETP/manage.py collectstatic

Upgrade database schema

[arch@server ~]$ python $ETP/manage.py migrate
SELECT table_schema, table_name, engine FROM INFORMATION_SCHEMA.TABLES where table_schema = ”etp”;
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'etp',
        'USER': 'arkiv',
        'PASSWORD': 'password',
        'HOST': '',
        'PORT': '',
        'OPTIONS': {
           #"init_command": "SET storage_engine=MyISAM",  # MySQL (<= 5.5.2)
           "init_command": "SET default_storage_engine=MyISAM",  # MySQL (>= 5.5.3)
        }
    }
}

Add default configuration data to database

[arch@server ~]$ python $ETP/install/install_default_config_etp.py

Compare and restore configuration files at /ESSArch/config from old directory

# diff -qr /ESSArch/config old

Start services

  • esshttpd
  • celeryd
  • celerydetp
  • rabbitmq-server
  • redis