Install Archivematica - research-technologies/hull_provisioning GitHub Wiki

Reference: https://www.archivematica.org/en/docs/archivematica-1.6/admin-manual/installation/installation/#install-pkg-ubuntu

Provisioned a new Ubuntu 16.04 ec2 instance in AWS

Install Packages

    1  sudo wget -O - https://packages.archivematica.org/1.6.x/key.asc | sudo apt-key add -
    2  sudo sh -c 'echo "deb [arch=amd64] http://packages.archivematica.org/1.6.x/ubuntu xenial main" >> /etc/apt/sources.list'
    3  sudo sh -c 'echo "deb [arch=amd64] http://packages.archivematica.org/1.6.x/ubuntu-externals xenial main" >> /etc/apt/sources.list'
    4  sudo wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
    5  sudo sh -c 'echo "deb http://packages.elasticsearch.org/elasticsearch/1.7/debian stable main" >> /etc/apt/sources.list'
    6  sudo apt-get update
    7  sudo apt-get upgrade
    8  sudo apt-get install elasticsearch
    9  sudo apt-get install -y archivematica-storage-service
   10  sudo rm -f /etc/nginx/sites-enabled/default
   11  sudo ln -s /etc/nginx/sites-available/storage /etc/nginx/sites-enabled/storage
   12  sudo wget https://bootstrap.pypa.io/get-pip.py
   13  sudo python get-pip.py
   14  sudo apt-get install -y archivematica-mcp-server
   15  sudo apt-get install -y archivematica-dashboard
   16  sudo apt-get install -y archivematica-mcp-client
   17  sudo ln -s /etc/nginx/sites-available/dashboard.conf /etc/nginx/sites-enabled/dashboard.conf
   18  sudo service elasticsearch restart
   19  sudo update-rc.d elasticsearch defaults 95 10
   20  sudo freshclam
   21  ls -l /var/log/clamav/
   22  sudo lsof /var/log/clamav/freshclam.log
   23  sudo /etc/init.d/clamav-freshclam stop
   24  sudo freshclam
   25  sudo /etc/init.d/clamav-freshclam start
   26  sudo service clamav-daemon start
   27  sudo service gearman-job-server restart
   28  sudo service archivematica-mcp-server start
   29  sudo service archivematica-mcp-client start
   30  sudo service archivematica-storage-service start
   31  sudo service archivematica-dashboard start
   32  sudo service nginx restart
   33  sudo service fits start
   34  sudo ufw status
   35  history >> installation.txt
~                                    

Open ports

Opened inbound ports 80 and 8000 for the ec2 instance

Test

  • The storage service can be access at http://ip_address:8000.
    • The login details for the default user is test & test
  • The dashboard can be accessed at http://ip_address

Set password for MySQL user archivematica and reconfigure the dashboard

There was an internal server error when accessing the dashboard MySQL ERROR 1045 (28000): Access denied for user 'archivematica'@'localhost' (using password: YES)

Looks like the password supplied during installation for the user archivematica was not being used

Login as user archivematica using the mysql CLI and test the password supplied is correct

mysql -h localhost -u archivematica -p

If you are able to login to MySQL, change the password in the config files in /etc/archivematica/archivematicaCommon/dbsettings (reference)

sudo vim /etc/archivematica/archivematicaCommon/dbsettings
# change the line password=demo, save the file and exit

Reconfigure archivematica dashboard

sudo dpkg-reconfigure archivematica-dashboard

Start the MCP server

sudo service archivematica-mcp-server start

Restart Nginx

sudo service nginx restart