<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Possible I can get some help with setting up DIP upload from Archivematica to ArchivesSpace.<o:p></o:p></p>
<p class="MsoNormal">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:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">ERROR 2022-12-15 17:12:53 agentarchives.archivesspace.client:client:_request:165: Response code: 404<o:p></o:p></p>
<p class="MsoNormal">ERROR 2022-12-15 17:12:53 agentarchives.archivesspace.client:client:_request:166: Response body: {"error":"Sinatra::NotFound"}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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/<o:p></o:p></p>
<p class="MsoNormal">Traceback (most recent call last):<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner<o:p></o:p></p>
<p class="MsoNormal"> response = get_response(request)<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response<o:p></o:p></p>
<p class="MsoNormal"> response = self.process_exception_by_middleware(e, request)<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response<o:p></o:p></p>
<p class="MsoNormal"> response = wrapped_callback(request, *callback_args, **callback_kwargs)<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/dashboard/components/ingest/views_as.py", line 79, in wrapper<o:p></o:p></p>
<p class="MsoNormal"> return func(client, *args, **kwargs)<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/dashboard/components/ingest/views_as.py", line 102, in ingest_upload_as<o:p></o:p></p>
<p class="MsoNormal"> uuid,<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/dashboard/components/ingest/pair_matcher.py", line 74, in list_records<o:p></o:p></p>
<p class="MsoNormal"> page = helpers.pager(resources, PAGE_SIZE, page_number)<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/dashboard/components/helpers.py", line 126, in pager<o:p></o:p></p>
<p class="MsoNormal"> page = paginator.page(current_page_number)<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/django/core/paginator.py", line 62, in page<o:p></o:p></p>
<p class="MsoNormal"> return self._get_page(self.object_list[bottom:top], number, self)<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/lazy_paged_sequence.py", line 57, in __getitem__<o:p></o:p></p>
<p class="MsoNormal"> return [self.__getitem__(i) for i in range(index.start, index.stop, step)]<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/lazy_paged_sequence.py", line 57, in <listcomp><o:p></o:p></p>
<p class="MsoNormal"> return [self.__getitem__(i) for i in range(index.start, index.stop, step)]<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/lazy_paged_sequence.py", line 64, in __getitem__<o:p></o:p></p>
<p class="MsoNormal"> self.__cache[page_number] = self.page_func(page_number, self.page_size)<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/dashboard/components/ingest/pair_matcher.py", line 69, in <lambda><o:p></o:p></p>
<p class="MsoNormal"> sort_by=sort_by,<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/agentarchives/archivesspace/client.py", line 739, in find_collections<o:p></o:p></p>
<p class="MsoNormal"> return [format_record(json.loads(r["json"])) for r in hits["results"]]<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/agentarchives/archivesspace/client.py", line 739, in <listcomp><o:p></o:p></p>
<p class="MsoNormal"> return [format_record(json.loads(r["json"])) for r in hits["results"]]<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/agentarchives/archivesspace/client.py", line 703, in format_record<o:p></o:p></p>
<p class="MsoNormal"> self._get(record["uri"] + "/tree", params={"page": 1}).json()[<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/agentarchives/archivesspace/client.py", line 185, in _get<o:p></o:p></p>
<p class="MsoNormal"> self.session.get, url, params=params, expected_response=expected_response<o:p></o:p></p>
<p class="MsoNormal"> File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/site-packages/agentarchives/archivesspace/client.py", line 167, in _request<o:p></o:p></p>
<p class="MsoNormal"> raise CommunicationError(response.status_code, response)<o:p></o:p></p>
<p class="MsoNormal">agentarchives.archivesspace.client.CommunicationError: ArchivesSpace server responded 404<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help would be greatly appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kirill Batyuk <a href="https://www.name-coach.com/kirill-batyuk">
<span style="color:blue;text-decoration:none"><img border="0" width="19" height="19" style="width:.1979in;height:.1979in" id="Picture_x0020_1" src="cid:image001.png@01D9107F.410DBA50" alt="A button for name playback in email signature"></span></a><o:p></o:p></p>
<p class="MsoNormal">Systems Librarian<o:p></o:p></p>
<p class="MsoNormal">MBLWHOI Library<o:p></o:p></p>
<p class="MsoNormal">Data Library and Archives<o:p></o:p></p>
<p class="MsoNormal">Woods Hole Oceanographic Institution<o:p></o:p></p>
<p class="MsoNormal">508-289-2850<o:p></o:p></p>
<p class="MsoNormal"><a href="mailto:kbatyuk@whoi.edu"><span style="color:#0563C1">kbatyuk@whoi.edu</span></a><o:p></o:p></p>
<p class="MsoNormal"><a href="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"><span style="color:#0563C1">mblwhoilibrary.org</span></a>
--- <a href="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">
<span style="color:#0563C1">whoi.edu</span></a><o:p></o:p></p>
<p class="MsoNormal"><a href="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"><span style="color:#0563C1">ORCID</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>