Store_AIP fails with server error 500. How to debug?

23 views
Skip to first unread message

avivace

unread,
Dec 6, 2022, 10:11:30 AM12/6/22
to archivematica
Hello all,

I'm getting a generic 500 on the "Store AIP" microservice, failing for me.

Here's what I see in the logs:

500 Server Error: Internal Server Error for url: <STORAGE_SERVICE_ENDPOINT>/api/v2/file/Traceback (most recent call last):
  File "/src/MCPClient/lib/job.py", line 111, in JobContext
    yield
  File "/src/MCPClient/lib/clientScripts/store_aip.py", line 365, in call
    args.sip_type,
  File "/src/MCPClient/lib/clientScripts/store_aip.py", line 244, in store_aip
    related_package_uuid,
  File "/src/MCPClient/lib/clientScripts/store_aip.py", line 80, in _create_file
    agents=get_agents_from_db(uuid),
  File "/src/archivematicaCommon/lib/storageService.py", line 414, in create_file
    response.raise_for_status()
  File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
HTTPError: 500 Server Error: Internal Server Error for url: <STORAGE_SERVICE_ENDPOINT>/api/v2/file/

What is strange is that the AIP Store is actually succeding, I can see the package from the Storage Service dashboard and I can download it as expected..

Is there a way to debug this further?

avivace

unread,
Dec 6, 2022, 10:17:55 AM12/6/22
to archivematica
(Restarting AM usually fixes this, but I'm looking for a way to further debug this when it happens)
Reply all
Reply to author
Forward
0 new messages