[Archivesspace_Users_Group] Archivematica DIP upload into Archivesspace problem

Kirill Batyuk kbatyuk at whoi.edu
Thu Dec 15 13:04:35 EST 2022


I am sure it is. All the records in public interface in our ASpace are in /repositories/2/

Kirill.

From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> On Behalf Of Blake Carver
Sent: Thursday, December 15, 2022 12:47 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Archivematica DIP upload into Archivesspace problem

Are you sure the repository ID is 2? Could it be 3?

________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Kirill Batyuk <kbatyuk at whoi.edu<mailto:kbatyuk at whoi.edu>>
Sent: Thursday, December 15, 2022 12:24 PM
To: archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org> <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] Archivematica DIP upload into Archivesspace problem


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://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.name-coach.com%2Fkirill-batyuk&data=05%7C01%7Ckbatyuk%40whoi.edu%7Cafc722cd6e9749a6eafd08dadec4567f%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C638067232099054482%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9VJBZp32VNs0O6hWbA1N1ekBXRPIq9Yvwxhrz%2B%2FawY0%3D&reserved=0>

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=05%7C01%7Ckbatyuk%40whoi.edu%7Cafc722cd6e9749a6eafd08dadec4567f%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C638067232099054482%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2B2o%2Bq8I0qvQm1lqIlphNdehZNoEZvchzHgaSHZYYXJI%3D&reserved=0> --- whoi.edu<https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwhoi.edu%2F&data=05%7C01%7Ckbatyuk%40whoi.edu%7Cafc722cd6e9749a6eafd08dadec4567f%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C638067232099054482%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=hoamv71%2FhADuFTjAbHlrfEVWCKu9ymyAqcHID320mek%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=05%7C01%7Ckbatyuk%40whoi.edu%7Cafc722cd6e9749a6eafd08dadec4567f%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C638067232099054482%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2FQhijf%2FSORJdPdFq7qfvqQinG6D3aDXpbXdXpZrDF6g%3D&reserved=0>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20221215/5e39357d/attachment-0001.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/5e39357d/attachment-0001.png>


More information about the Archivesspace_Users_Group mailing list