AM Demo - refresh it and review system for keeping it refreshed
|Google Code Legacy ID:||Requires documentation:|
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.
#2 Updated by Justin Simpson over 2 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 over 2 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.