Task #6081

Update to get sharedDirectory from Storage Service

Added by Holly Becker over 8 years ago. Updated about 5 years ago.

Status:In progressStart date:
Priority:MediumDue date:
Assignee:-% Done:


Target version:Release 1.7.0
Google Code Legacy ID: Requires documentation:


Currently, the sharedDirectory path is defined in /etc/archivematica/MCPServer/serverConfig.conf, as well as assumptions about it scattered around the codebase.

The Storage Service assigns each pipeline a Currently Processing Space.

Archivematica should get it's sharedDirectory path from the storage service. Also, the shared directory structure (watched directories, currently processing, etc) should be created dynamically from entries in the database (eg watched directories) and known paths (eg. failed, rejected).


#1 Updated by Holly Becker over 8 years ago

  • Status changed from New to In progress

Updated all hardcoded references to /var/archivematica/ to refer to the serverConfig.conf file. On boot, the MCPServer queries the storage service for the currently processing location, and creates the shared directory structure at that path. The currently processing space can be changed by updating it in the storage service and restarting Archivematica twice.

Existing problems:
  • To change the currently processing location, Archivematica must be restarted twice.

This is because the MCPServer and dashboard start at the same time and read the config file once on boot. The MCPServer updates its config by querying the SS and writing the new value to the config file, but has no way of updating the dashboard's cached value. The second restart updates the value in the dashboard.

A possible solution is to not cache the config values, but then any change to the config would be immediately reflected in the runtime behaviour - possibly not a good thing.

  • SIP arrangement JS uses hardcoded /var/archivematica/

This was commented out in the 1.0 branch and is under active development currently. Will need to be fixed when these branches are merged.

#2 Updated by Nick Wilkinson about 5 years ago

  • Assignee changed from Holly Becker to Jesús García Crespo
  • Priority changed from Low to Medium

Hi Jesús, assigning to you to make sure the work you're currently doing on Jisc apply to this use case.

#3 Updated by Holly Becker about 5 years ago

The old work on this is in branch dev/issue-6081-currently-processing I doubt anything in that branch is mergeable at this point, but it may have some useful ideas for making changes.

#4 Updated by Nick Wilkinson about 5 years ago

  • Assignee deleted (Jesús García Crespo)
  • Target version set to Release 1.7.0

Taking this off Jesús' plate for now, but tagging for the 1.7 release just so this doesn't fall through the cracks.

Also available in: Atom PDF