Task #11418

AM Demo - refresh it and review system for keeping it refreshed

Added by Darren Craze almost 3 years ago. Updated almost 3 years ago.

Status:VerifiedStart date:08/11/2017
Priority:MediumDue date:
Assignee:-% Done:

0%

Category:Sample data
Target version:1.6.1
Google Code Legacy ID: Requires documentation:
Sponsored:No

Description

We need to get the curent public Archivematica demo instance refreshed regularly to clear out test stuff entered. We also need to make sure it is using the current public release 1.6.1.

If there is a process where it automatically is refreshed every X days then review to confirm that is working; if not see how we could implement something to do that.

History

#1 Updated by Darren Craze almost 3 years ago

  • Assignee set to Miguel Angel Medinilla Luque

#2 Updated by Justin Simpson almost 3 years ago

This is for http://sandbox.archivematica.org.

I looked now and the transfers and sips have all been hidden in the dashboard, but the vm does not look like it was refreshed. I noticed 66 transfers listed in the Transfers table in the database, and when I used the mcp-cli tool, it listed an old dip, and that tool is not able to properly reject the dip.

I think the process we want is to recreate the vm from a snapshot - I am not sure if we have a snapshot saved in digital ocean for this vm, with Archivematica 1.6.1 installed?

#3 Updated by Miguel Angel Medinilla Luque almost 3 years ago

  • Status changed from New to QA/Review
  • Assignee changed from Miguel Angel Medinilla Luque to Darren Craze

I have cleaned and reset all data on amdemo.artefactual.com and sandbox.archivematica.org. Both using AM 1.6.1

sandbox uses Ubuntu 14 and amdemo Ubuntu 16.

I have configured 2 jobs on jenkins (shinsei) to refresh the data every 2 days at 1:00 AM.

This is the script run on both VMs to refresh data:

#!/bin/bash
#set -x
# shutdown services

service nginx stop
sudo service gearman-job-server stop
service archivematica-storage-service stop
service archivematica-dashboard stop
service archivematica-mcp-client stop
service archivematica-mcp-server stop

# restore MCP database to clean one
mysql -u archivematica -pdemo -h localhost MCP < /root/sandbox-restore/MCP_refresh.sql

# restore /var/archivematica dir to clean one
cd /var
rm -rf archivematica
tar -zxf /root/sandbox-restore/var_archivematica_dir.tgz

# clear elasticsearch indexes
curl -XDELETE 'http://localhost:9200/aips/' > /dev/null 2>&1
curl -XDELETE 'http://localhost:9200/transfers/' > /dev/null 2>&1

#  start services
sudo service gearman-job-server start
service archivematica-mcp-server start
service archivematica-mcp-client start
service archivematica-storage-service start
service archivematica-dashboard start
service nginx start

Where MCP_refresh.sql and var_archivematica_dir.tgz have a clean install without data.

#4 Updated by Darren Craze almost 3 years ago

  • Assignee changed from Darren Craze to Justin Simpson

Justin to confirm

#5 Updated by Justin Simpson almost 3 years ago

  • Status changed from QA/Review to Verified
  • Assignee deleted (Justin Simpson)

looks good!

Also available in: Atom PDF