[Archivesspace_Users_Group] Error creating a new resource

Blake Carver blake.carver at lyrasis.org
Wed Jul 1 12:56:32 EDT 2020


So I think the problem is the migration mapping changed during upgrades and if it's in a note it didn't update, and that breaks things.
You'll need to find where that is being used in the notes and update it in the db, copyright and institutional became other.

You can see the changes here:

https://github.com/archivesspace/archivesspace/blob/master/common/db/migrations/088_rights_management.rb#L297-L311


So  you'll need to find those with the old value and change that to the new.

________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Matthew Baya <mjb9 at williams.edu>
Sent: Wednesday, July 1, 2020 12:08 PM
To: archivesspace_users_group at lyralists.lyrasis.org <archivesspace_users_group at lyralists.lyrasis.org>
Subject: [Archivesspace_Users_Group] Error creating a new resource

I'm including the logs below of what happens when we try to create a resource. All the user sees is a message in red letters saying "We're sorry but something went wrong"

I think the key error in the logs is this;

F, [2020-06-30T08:55:35.268000 #437747500] FATAL -- : ActionView::Template::Error (No such template: "rights_type_intellectual_property"):

but I'm not sure what it means or where to fix it. This was working up until recently

My only guess is that maybe this is some kind of setting we had set in the older version of Archivesspace and now that we're running the new one it's causing problems.

Does anyone have any suggestions on how we can remedy this?

Thanks
-Matt

I, [2020-06-30T08:55:34.021000 #437747500]  INFO -- : Started GET "/resources/new" for 137.165.101.126 at 2020-06-30 08:55:34 -0400
I, [2020-06-30T08:55:34.023000 #437747500]  INFO -- : Processing by ResourcesController#new as HTML
I, [2020-06-30T08:55:34.142000 #437747500]  INFO -- :   Rendering resources/new.html.erb within layouts/application
I, [2020-06-30T08:55:34.152000 #437747500]  INFO -- :   Rendered shared/_breadcrumb.html.erb (9.0ms)
I, [2020-06-30T08:55:34.155000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.155000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.156000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.156000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.156000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.157000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.157000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.157000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.158000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.158000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.158000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.159000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.159000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.159000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.160000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (1.0ms)
I, [2020-06-30T08:55:34.160000 #437747500]  INFO -- :   Rendered shared/_sidebar_entry.html.erb (0.0ms)
I, [2020-06-30T08:55:34.160000 #437747500]  INFO -- :   Rendered shared/_sidebar.html.erb (6.0ms)
I, [2020-06-30T08:55:34.160000 #437747500]  INFO -- :   Rendered resources/_sidebar.html.erb (6.0ms)
I, [2020-06-30T08:55:34.161000 #437747500]  INFO -- :   Rendered shared/_toolbar_new_records.html.erb (0.0ms)
I, [2020-06-30T08:55:34.162000 #437747500]  INFO -- :   Rendered shared/_flash_messages.html.erb (0.0ms)
I, [2020-06-30T08:55:34.162000 #437747500]  INFO -- :   Rendered shared/_form_messages.html.erb (1.0ms)
I, [2020-06-30T08:55:34.248000 #437747500]  INFO -- : Started GET "/" for 137.165.12.1 at 2020-06-30 08:55:34 -0400
I, [2020-06-30T08:55:34.250000 #437747500]  INFO -- : Processing by WelcomeController#index as HTML
I, [2020-06-30T08:55:34.300000 #437747500]  INFO -- :   Rendering welcome/index.html.erb within layouts/application
I, [2020-06-30T08:55:34.300000 #437747500]  INFO -- :   Rendered shared/_flash_messages.html.erb (0.0ms)
I, [2020-06-30T08:55:34.300000 #437747500]  INFO -- :   Rendered welcome/index.html.erb within layouts/application (0.0ms)
I, [2020-06-30T08:55:34.303000 #437747500]  INFO -- :   Rendering /opt/archivesspace/prod/archivesspace/plugins/aspace-import-excel/frontend/views/layout_head.html.erb
I, [2020-06-30T08:55:34.303000 #437747500]  INFO -- :   Rendered /opt/archivesspace/prod/archivesspace/plugins/aspace-import-excel/frontend/views/layout_head.html.erb (0.0ms)
I, [2020-06-30T08:55:34.304000 #437747500]  INFO -- :   Rendered shared/_login.html.erb (1.0ms)
I, [2020-06-30T08:55:34.304000 #437747500]  INFO -- :   Rendered shared/_header_user.html.erb (1.0ms)
I, [2020-06-30T08:55:34.305000 #437747500]  INFO -- :   Rendered shared/_header_global.html.erb (2.0ms)
I, [2020-06-30T08:55:34.305000 #437747500]  INFO -- :   Rendered site/_branding.html.erb (0.0ms)
I, [2020-06-30T08:55:34.305000 #437747500]  INFO -- :   Rendered site/_footer.html.erb (0.0ms)
I, [2020-06-30T08:55:34.307000 #437747500]  INFO -- :   Rendered shared/_templates.html.erb (2.0ms)
I, [2020-06-30T08:55:34.307000 #437747500]  INFO -- : Completed 200 OK in 57ms (Views: 7.9ms)
I, [2020-06-30T08:55:35.064000 #437747500]  INFO -- :   Rendered language_and_scripts/_template.html.erb (0.0ms)
I, [2020-06-30T08:55:35.065000 #437747500]  INFO -- :   Rendered lang_materials/_template.html.erb (1.0ms)
I, [2020-06-30T08:55:35.065000 #437747500]  INFO -- :   Rendered lang_materials/_subrecord_form_action.html.erb (0.0ms)
I, [2020-06-30T08:55:35.102000 #437747500]  INFO -- :   Rendered shared/_subrecord_form.html.erb (39.0ms)
I, [2020-06-30T08:55:35.103000 #437747500]  INFO -- :   Rendered dates/_template.html.erb (0.0ms)
I, [2020-06-30T08:55:35.110000 #437747500]  INFO -- :   Rendered shared/_subrecord_form.html.erb (8.0ms)
I, [2020-06-30T08:55:35.111000 #437747500]  INFO -- :   Rendered extents/_template.html.erb (1.0ms)
I, [2020-06-30T08:55:35.117000 #437747500]  INFO -- :   Rendered shared/_subrecord_form.html.erb (7.0ms)
I, [2020-06-30T08:55:35.164000 #437747500]  INFO -- :   Rendered revision_statements/_template.html.erb (0.0ms)
I, [2020-06-30T08:55:35.165000 #437747500]  INFO -- :   Rendered shared/_subrecord_form.html.erb (1.0ms)
I, [2020-06-30T08:55:35.166000 #437747500]  INFO -- :   Rendered related_accessions/_template.html.erb (1.0ms)
I, [2020-06-30T08:55:35.166000 #437747500]  INFO -- :   Rendered shared/_subrecord_form.html.erb (1.0ms)
I, [2020-06-30T08:55:35.168000 #437747500]  INFO -- :   Rendered terms/_template.html.erb (0.0ms)
I, [2020-06-30T08:55:35.169000 #437747500]  INFO -- :   Rendered linked_agents/_template.html.erb (1.0ms)
I, [2020-06-30T08:55:35.170000 #437747500]  INFO -- :   Rendered shared/_subrecord_form.html.erb (3.0ms)
I, [2020-06-30T08:55:35.176000 #437747500]  INFO -- :   Rendered subjects/_template.html.erb (0.0ms)
I, [2020-06-30T08:55:35.178000 #437747500]  INFO -- :   Rendered shared/_subrecord_form.html.erb (7.0ms)
I, [2020-06-30T08:55:35.197000 #437747500]  INFO -- :   Rendered notes/_template.html.erb (19.0ms)
I, [2020-06-30T08:55:35.244000 #437747500]  INFO -- :   Rendered notes/_form.html.erb (66.0ms)
I, [2020-06-30T08:55:35.245000 #437747500]  INFO -- :   Rendered external_documents/_template.html.erb (0.0ms)
I, [2020-06-30T08:55:35.246000 #437747500]  INFO -- :   Rendered shared/_subrecord_form.html.erb (2.0ms)
I, [2020-06-30T08:55:35.247000 #437747500]  INFO -- :   Rendered rights_statements/_template.html.erb (0.0ms)
I, [2020-06-30T08:55:35.257000 #437747500]  INFO -- :   Rendered shared/_subrecord_form.html.erb (11.0ms)
I, [2020-06-30T08:55:35.257000 #437747500]  INFO -- :   Rendered resources/_form_container.html.erb (1096.0ms)
I, [2020-06-30T08:55:35.257000 #437747500]  INFO -- :   Rendered resources/new.html.erb within layouts/application (1114.0ms)
I, [2020-06-30T08:55:35.261000 #437747500]  INFO -- : Completed 500 Internal Server Error in 1237ms
F, [2020-06-30T08:55:35.268000 #437747500] FATAL -- :
F, [2020-06-30T08:55:35.268000 #437747500] FATAL -- : ActionView::Template::Error (No such template: "rights_type_intellectual_property"):
F, [2020-06-30T08:55:35.268000 #437747500] FATAL -- :     45:       <% end %>
    46:     <% else %>
    47:       <%= form.list_for(form[name], "#{name}[]") do |item| %>
    48:         <% form.emit_template(template, item) %>
    49:       <% end %>
    50:     <% end %>
    51:   </div>
F, [2020-06-30T08:55:35.268000 #437747500] FATAL -- :
F, [2020-06-30T08:55:35.268000 #437747500] FATAL -- : app/helpers/aspace_form_helper.rb:487:in `emit_template'
app/views/rights_statements/_template.html.erb:57:in `block in _app_views_rights_statements__template_html_erb__2098435309_2698'
app/helpers/aspace_form_helper.rb:492:in `emit_template'
app/views/shared/_subrecord_form.html.erb:48:in `block in _app_views_shared__subrecord_form_html_erb__1528586581_2670'
app/helpers/aspace_form_helper.rb:136:in `block in list_for'
app/helpers/aspace_form_helper.rb:232:in `push'
app/helpers/aspace_form_helper.rb:133:in `block in list_for'
app/helpers/aspace_form_helper.rb:132:in `list_for'
app/views/shared/_subrecord_form.html.erb:47:in `_app_views_shared__subrecord_form_html_erb__1528586581_2670'
app/helpers/application_helper.rb:307:in `render_aspace_partial'
app/views/resources/_form_container.html.erb:83:in `_app_views_resources__form_container_html_erb__1484080424_2976'
app/helpers/application_helper.rb:307:in `render_aspace_partial'
app/views/resources/new.html.erb:14:in `block in _app_views_resources_new_html_erb___934010705_2972'
app/helpers/aspace_form_helper.rb:848:in `form_context'
app/views/resources/new.html.erb:5:in `block in _app_views_resources_new_html_erb___934010705_2972'
app/views/resources/new.html.erb:4:in `_app_views_resources_new_html_erb___934010705_2972'

Matthew Baya
Williams College OIT, Networks & Systems

413-597-3567<tel:413-597-3567>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200701/d975b06d/attachment.html>


More information about the Archivesspace_Users_Group mailing list