Skip to content
Rudolf Kvašňovský edited this page Oct 19, 2018 · 1 revision

Make sure that

  • tmp folder exists on the path specified in application.yml and that the application can read/write from/to it. Typically the path in application.yml is relative to workspace of the system service and the user running the service is owner of the tmp folder.

Cleaning of database

If the user does not exist yet:

sudo -u postgres psql postgres
CREATE USER arcstorage;
ALTER USER arcstorage WITH PASSWORD 'vuji61oilo';
\q
sudo systemctl stop archival-storage
sudo -u postgres psql postgres
drop database arcstorage;
create database arcstorage owner arcstorage;
\q
sudo cp /home/user/archival-storage-1.0-SNAPSHOT.jar /opt/archival-storage/archival-storage.jar
sudo systemctl start archival-storage

Refresh of test packages saved at local storage ARCStorage at staging

sudo rm -rf /opt/archival-storage/data/arclib/*
sudo cp -r /opt/archival-storage/initdata/* /opt/archival-storage/data/arclib
sudo chmod -R 777 /opt/archival-storage/data/arclib

Clone this wiki locally