[Archivesspace_Users_Group] ASpace 3.2.0: ArgumentError (wrong number of arguments (given 1, expected 2)):

Jesse Martinez jesse.martinez at bc.edu
Mon Aug 1 16:20:41 EDT 2022


Hi Mark,

By any chance do you have customizations for your ASpace instance? The logs
you shared refer to this file:
https://github.com/archivesspace/archivesspace/blob/v3.2.0/public/app/models/concerns/tree_nodes.rb
but at line 213, which doesn't exist in the core repo.

If you do have customizations then you may also need to check the
plugins_init.rb file in your plugins directory, since that's the only way
to override a model or controller in ASpace. (See for instance our
customizations
<https://github.com/BCDigLib/bostoncollege-branding/blob/main/public/plugin_init.rb>
here at BC.)

I suspect there's some issue at this line:
https://github.com/archivesspace/archivesspace/blob/v3.2.0/public/app/models/concerns/tree_nodes.rb#L21
where the "primary_type" variable isn't being set somewhere.

Jesse


On Thu, Jul 28, 2022 at 2:01 PM Mark Cyzyk <mcyzyk at gmail.com> wrote:

>
> Thanks, Jesse,
>
> I turned on full Debug output in the error log and booted up ASpace in my
> Vagrant box.
>
> Attached is the log from boot through hitting Refresh (twice) on that
> erroring Archival Object.
>
> Much appreciated,
>
> Mark
>
> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
> Mark Cyzyk, M.A., M.L.S.
> Library Applications Group
> The Sheridan Libraries
> The Johns Hopkins Universitymcyzyk at jhu.edu
>
> Verba volant, scripta manent.
>
> On 7/28/22 11:33, Jesse Martinez wrote:
>
> Hi Mark,
>
> Could you share more of the error log? That may help indicate where in the
> breadcrumb view template file that is getting some incomplete data from the
> objects_controller.
>
> Thanks,
> Jesse
>
> On Thu, Jul 28, 2022 at 11:20 AM Mark Cyzyk <mcyzyk at gmail.com> wrote:
>
>>
>> Dear Aspace List,
>>
>> We've found another issue in our recent ASpace upgrade to 3.2.0, and this
>> one affects our Prod instance, Dev instance, and my personal Vagrant
>> instance:
>>
>> Drilling down on Archival Objects errors out:
>>
>> https://aspace.library.jhu.edu/repositories/3/archival_objects/30091
>>
>> From log in my Vagrant version:
>> I, [2022-07-28T14:23:05.216039 #2200]  INFO -- :
>> [2a38bc08-bb6a-4c63-bd4f-08524e5f205a] Started GET
>> "/repositories/3/archival_objects/30091" for 10.0.2.2 at 2022-07-28
>> 14:23:05 +0000
>> I, [2022-07-28T14:23:05.237131 #2200]  INFO -- :
>> [2a38bc08-bb6a-4c63-bd4f-08524e5f205a] Processing by ObjectsController#show
>> as HTML
>> I, [2022-07-28T14:23:05.238808 #2200]  INFO -- :
>> [2a38bc08-bb6a-4c63-bd4f-08524e5f205a]   Parameters: {"repo_slug"=>"3",
>> "obj_type"=>"archival_objects", "slug_or_id"=>"30091"}
>> D, [2022-07-28T14:23:05.260721 #2200] DEBUG -- :
>> [2a38bc08-bb6a-4c63-bd4f-08524e5f205a] POST Search url:
>> http://localhost:8089/search/records?publish=true&page_size=10&resolve%5B%5D=repository%3Aid&resolve%5B%5
>> >
>> D, [2022-07-28T14:23:05.429279 #2200] DEBUG -- :
>> [2a38bc08-bb6a-4c63-bd4f-08524e5f205a] POST Search url:
>> http://localhost:8089/search/records?publish=true&page_size=10&uri%5B%5D=%2Frepositories%2F3%2Fresources%
>> >
>> D, [2022-07-28T14:23:05.483432 #2200] DEBUG -- :
>> [2a38bc08-bb6a-4c63-bd4f-08524e5f205a] POST Search url:
>> http://localhost:8089/search/records?publish=true&page_size=10&uri%5B%5D=%2Frepositories%2F3%2Fresources%
>> >
>> I, [2022-07-28T14:23:05.568721 #2200]  INFO -- :
>> [2a38bc08-bb6a-4c63-bd4f-08524e5f205a] Completed 500 Internal Server Error
>> in 329ms
>> F, [2022-07-28T14:23:05.574794 #2200] FATAL -- :
>> [2a38bc08-bb6a-4c63-bd4f-08524e5f205a]
>> F, [2022-07-28T14:23:05.575216 #2200] FATAL -- :
>> [2a38bc08-bb6a-4c63-bd4f-08524e5f205a] ArgumentError (wrong number of
>> arguments (given 1, expected 2)):
>> F, [2022-07-28T14:23:05.575577 #2200] FATAL -- :
>> [2a38bc08-bb6a-4c63-bd4f-08524e5f205a]
>> F, [2022-07-28T14:23:05.575867 #2200] FATAL -- :
>> [2a38bc08-bb6a-4c63-bd4f-08524e5f205a]
>> app/models/concerns/tree_nodes.rb:213:in `breadcrumb_identifier'
>> [2a38bc08-bb6a-4c63-bd4f-08524e5f205a]
>> app/controllers/objects_controller.rb:103:in `show'
>>
>>
>> Not sure what to do.
>>
>> Looks like this is an exception being caught by Ruby:
>>
>> https://ruby-doc.org/core-2.5.3/ArgumentError.html
>>
>>
>> Not finding anything in our User Group list archive on this.
>>
>> Advice appreciated!
>>
>> Mark
>>
>> --
>> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
>> Mark Cyzyk, M.A., M.L.S.
>> Library Applications Group
>> The Sheridan Libraries
>> The Johns Hopkins Universitymcyzyk at jhu.edu
>>
>> Verba volant, scripta manent.
>>
>> _______________________________________________
>> Archivesspace_Users_Group mailing list
>> Archivesspace_Users_Group at lyralists.lyrasis.org
>> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>>
>
>
> --
> Jesse Martinez
> Senior Library Applications Developer
> O'Neill Library, Boston College
> jesse.martinez at bc.edu
> 617-552-2509
> he/him/his
>
>
>

-- 
Jesse Martinez
Senior Library Applications Developer
O'Neill Library, Boston College
jesse.martinez at bc.edu
617-552-2509
he/him/his
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20220801/e2d4f516/attachment.html>


More information about the Archivesspace_Users_Group mailing list