Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIP Storage Location - the full path is not taken? #229

Open
remileduc opened this issue Aug 11, 2017 · 0 comments
Open

AIP Storage Location - the full path is not taken? #229

remileduc opened this issue Aug 11, 2017 · 0 comments

Comments

@remileduc
Copy link
Contributor

remileduc commented Aug 11, 2017

I have a really weird behavior here... the storage is on a local pipeline setup like this:

  • space (local pipeline)
    • path: /
    • staging path: /
  • location (AIP storage)
    • relative path: path/to/storage/

The ingest fails to archive the AIP with this error:

locations.models.space:space:create_local_directory:482: Could not create storage directory: [Errno 13] Permission denied: '/c5fc'

From what I saw, the location path is not taken in account and it tries to put the AIP directly in the staging path of the space.
https://github.com/remileduc/archivematica-storage-service/blob/stable/0.10.x/storage_service/locations/models/space.py#L276
with destination_path coming from https://github.com/remileduc/archivematica-storage-service/blob/stable/0.10.x/storage_service/locations/models/package.py#L412
(from what I can understand, none of them contain the location path)


So, I created a new space just for the AIP storage:

  • space (local pipeline)
    • path: /
    • staging path: /path/to/storage-SPACE/
  • location (AIP storage)
    • relative path: path/to/storage-LOCATION/

and it works, with this really weird log message:

locations.models.space:space:move_rsync:421: Moving from /path/to/storage-LOCATION/.../aip.7z to /path/to/storage-SPACE/.../aip.7z

This trick kind of works but in a really strange way... I don't understand the last move in the logs. There is something that doesn't make sense oO

Note: the lines given in the logs may be a bit different from the ones in master as I've added some lines to log more stuff.
Aslo, the logs are all from /var/log/archivematica/storage-service/storage_service.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant