[Archivesspace_Users_Group] Archivematica DIP upload into Archivesspace problem

Kirill Batyuk kbatyuk at whoi.edu
Thu Dec 15 12:24:57 EST 2022


Hello,

Possible I can get some help with setting up DIP upload from Archivematica to ArchivesSpace.
I see to have set everything up per instructions. But, when I try to upload the DIP I get an error. The Archivematica log shows the following:

ERROR     2022-12-15 17:12:53  agentarchives.archivesspace.client:client:_request:165:  Response code: 404
ERROR     2022-12-15 17:12:53  agentarchives.archivesspace.client:client:_request:166:  Response body: {"error":"Sinatra::NotFound"}

ERROR     2022-12-15 17:12:53  django.request:exception:handle_uncaught_exception:135:  Internal Server Error: /ingest/865b46b7-f16f-40a2-af7a-52e0ef433f85/upload/as/
Traceback (most recent call last):
  File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/share/archivematica/dashboard/components/ingest/views_as.py", line 79, in wrapper
    return func(client, *args, **kwargs)
  File "/usr/share/archivematica/dashboard/components/ingest/views_as.py", line 102, in ingest_upload_as
    uuid,
  File "/usr/share/archivematica/dashboard/components/ingest/pair_matcher.py", line 74, in list_records
    page = helpers.pager(resources, PAGE_SIZE, page_number)
  File "/usr/share/archivematica/dashboard/components/helpers.py", line 126, in pager
    page = paginator.page(current_page_number)
  File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/django/core/paginator.py", line 62, in page
    return self._get_page(self.object_list[bottom:top], number, self)
  File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/lazy_paged_sequence.py", line 57, in __getitem__
    return [self.__getitem__(i) for i in range(index.start, index.stop, step)]
  File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/lazy_paged_sequence.py", line 57, in <listcomp>
    return [self.__getitem__(i) for i in range(index.start, index.stop, step)]
  File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/lazy_paged_sequence.py", line 64, in __getitem__
    self.__cache[page_number] = self.page_func(page_number, self.page_size)
  File "/usr/share/archivematica/dashboard/components/ingest/pair_matcher.py", line 69, in <lambda>
    sort_by=sort_by,
  File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/agentarchives/archivesspace/client.py", line 739, in find_collections
    return [format_record(json.loads(r["json"])) for r in hits["results"]]
  File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/agentarchives/archivesspace/client.py", line 739, in <listcomp>
    return [format_record(json.loads(r["json"])) for r in hits["results"]]
  File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/agentarchives/archivesspace/client.py", line 703, in format_record
    self._get(record["uri"] + "/tree", params={"page": 1}).json()[
  File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/agentarchives/archivesspace/client.py", line 185, in _get
    self.session.get, url, params=params, expected_response=expected_response
  File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/agentarchives/archivesspace/client.py", line 167, in _request
    raise CommunicationError(response.status_code, response)
agentarchives.archivesspace.client.CommunicationError: ArchivesSpace server responded 404

What is interesting, is if I change my settings from repository 2 to repository 1 it lets me to continue to next step, but it does not see any titles because repo 1 is empty . Repository 2 is a default and that is what giving me an error.

Any help would be greatly appreciated.

Thank you,



Kirill Batyuk [A button for name playback in email signature] <https://www.name-coach.com/kirill-batyuk>
Systems Librarian
MBLWHOI Library
Data Library and Archives
Woods Hole Oceanographic Institution
508-289-2850
kbatyuk at whoi.edu<mailto:kbatyuk at whoi.edu>
mblwhoilibrary.org<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__http%3A%2Fmblwhoilibrary.org%2F__%3B!!NkSChLMW7qAT!qzl-Bw_htCSDBNQJszDywSpH7dOtkXO9Vs5MFihCtlGhhw559rfEgq-mCQ8O4cqor2tQ47n6Alhw%24&data=02%7C01%7Ckbatyuk%40whoi.edu%7C22c0a3f635574b32bbc708d869775c57%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637375308676908325&sdata=JUxSBfV4tndevzK45XLBwhtOIu6glwiUh4J15EFAEiA%3D&reserved=0> --- whoi.edu<https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwhoi.edu%2F&data=02%7C01%7Ckbatyuk%40whoi.edu%7C22c0a3f635574b32bbc708d869775c57%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637375308676918319&sdata=RKd1NDGHHeIeKE7Fnf%2BT0hgmxfQymHBSR2TdbmL%2Bvqg%3D&reserved=0>
ORCID<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__http%3A%2Forcid.org%2F0000-0003-0240-2209__%3B!!NkSChLMW7qAT!qzl-Bw_htCSDBNQJszDywSpH7dOtkXO9Vs5MFihCtlGhhw559rfEgq-mCQ8O4cqor2tQ46IK8ae6%24&data=02%7C01%7Ckbatyuk%40whoi.edu%7C22c0a3f635574b32bbc708d869775c57%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637375308676918319&sdata=dpSW2YomKCqBKXj4aGam%2BrIpKqFhF2%2FV9hxt9Nu6wGI%3D&reserved=0>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20221215/f570eed3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1734 bytes
Desc: image001.png
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20221215/f570eed3/attachment.png>


More information about the Archivesspace_Users_Group mailing list