[Archivesspace_Users_Group] [EXT] Re: can't view collections on the backend

Custer, Mark mark.custer at yale.edu
Fri Sep 22 09:15:49 EDT 2017


Does this error happen in the PUI view?  Based on this error:

INFO: F, [2017-09-20T16:39:38.043402 #18373] FATAL -- : [7f48c48b-7c0a-4a31-9625-d88b32bb353e]     1: <% if @result && @result.respond_to?(:metadata) %>
[7f48c48b-7c0a-4a31-9625-d88b32bb353e]     2:
[7f48c48b-7c0a-4a31-9625-d88b32bb353e]     3: <script type="application/ld+json">
[7f48c48b-7c0a-4a31-9625-d88b32bb353e]     4: <%= JSON.pretty_generate(@result.metadata).html_safe %>
[7f48c48b-7c0a-4a31-9625-d88b32bb353e]     5: </script>
[7f48c48b-7c0a-4a31-9625-d88b32bb353e]     6: <% end %>

My first guess would be that there’s a problem with how the JSON-LD metadata is being created in the HTML view.   So, I wonder if there’s a problem happening along the lines here: https://github.com/archivesspace/archivesspace/blob/81875d98a7764f0ed94826a2b2b7a85e39778885/public/app/models/resource.rb#L37-L109 ?

I know that you mentioned a problem on the backend, via port 8089, but I’m not sure why that would display the above error.


Mark

p.s. here’s an example of what that metadata section could look like, taken from the LYRASIS sandbox website:

<script type="application/ld+json">
{
  "@context": [
    "http://schema.org/",
    {
      "library": "http://purl.org/library/"
    }
  ],
  "@type": [
    "schema:CreativeWorkSeries",
    "library:ArchiveMaterial"
  ],
  "name": "Ghostbusters Records",
  "url": "http://public.archivesspace.org/repositories/202/resources/910",
  "identifier": "ECTO 001",
  "description": [

  ],
  "creator": [

  ],
  "about": [

  ],
  "genre": [

  ],
  "inLanguage": {
    "@type": "Language",
    "name": "English"
  },
  "provider": {
    "@id": null,
    "url": "http://public.archivesspace.org/repositories/202",
    "@type": "Organization",
    "name": "collection_control_test_repo"
  }
}
</script>


From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Jason Loeffler
Sent: Thursday, 21 September, 2017 6:57 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] [EXT] Re: can't view collections on the backend

Are you making an external http request to an endpoint, resulting in the log output above? Or are you somehow issuing the POST method internally?

What do you mean by "I simply clicked collections and then clicked on the first one"?

Can you refer us to the other user report for this error?

On Thu, Sep 21, 2017 at 6:13 PM, Jones, Jeremy <Jeremy.Jones at unt.edu<mailto:Jeremy.Jones at unt.edu>> wrote:
I saw another person got this error but for a different request.  Any ideas on what can cause this is appreciated.

thanks

From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>] On Behalf Of Jones, Jeremy
Sent: Wednesday, September 20, 2017 5:10 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] [EXT] Re: can't view collections on the backend


This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing<https://urldefense.proofpoint.com/v2/url?u=http-3A__aka.ms_LearnAboutSpoofing&d=DwMFaQ&c=cjytLXgP8ixuoHflwc-poQ&r=7Ez68qVcrmRD6nn1FqwoHBDEOxeRUCPm3xGvnFT0zjU&m=7mg7Zhaa7symM7xu9ykMCx0V8pL0N8FnWZPlp0FhiPw&s=d9kGCaCVtIbeZVo6MFhGWCisNWd3sHtPWI9wpQMMe9A&e=>

Feedback<https://urldefense.proofpoint.com/v2/url?u=http-3A__aka.ms_SafetyTipsFeedback&d=DwMFaQ&c=cjytLXgP8ixuoHflwc-poQ&r=7Ez68qVcrmRD6nn1FqwoHBDEOxeRUCPm3xGvnFT0zjU&m=7mg7Zhaa7symM7xu9ykMCx0V8pL0N8FnWZPlp0FhiPw&s=DpmfWeCSmGjxYC5BGAuOmTbbNecerYbVyxnPd8nzq0w&e=>

Sure,  I think this is what the log captured:

Sep 20, 2017 4:39:37 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp= path=/select params={q=(id:("\/repositories\/3\/resources\/243\/tree\/root"))&csv.escape=\&csv.header=true&start=0&csv.encapsulator="&fq=-exclude_by_default:true&fq=publish:true&rows=1&wt=json&facet=true} hits=0 status=0 QTime=1

Sep 20, 2017 4:39:37 PM org.eclipse.jetty.server.handler.ContextHandler$Context log
INFO: D, [2017-09-20T16:39:37.564842 #18373] DEBUG -- : [7f48c48b-7c0a-4a31-9625-d88b32bb353e] POST Search url: http://localhost:8089/search?publish=true&page_size=10&q=collection_uri_u_sstr%3A%22%2Frepositories%2F3%2Fresources%2F243%22+AND+%28types%3Apui+AND+types%3Apui_container%29&page=1<https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8089_search-3Fpublish-3Dtrue-26page-5Fsize-3D10-26q-3Dcollection-5Furi-5Fu-5Fsstr-253A-2522-252Frepositories-252F3-252Fresources-252F243-2522-2BAND-2B-2528types-253Apui-2BAND-2Btypes-253Apui-5Fcontainer-2529-26page-3D1&d=DwMFaQ&c=cjytLXgP8ixuoHflwc-poQ&r=7Ez68qVcrmRD6nn1FqwoHBDEOxeRUCPm3xGvnFT0zjU&m=7mg7Zhaa7symM7xu9ykMCx0V8pL0N8FnWZPlp0FhiPw&s=l2LwpmyNrRitLrxsk-1mKJAyGipNkPmpDeOUUBylmlM&e=>

I simply clicked collections and then clicked on the first one.  Repositories/3/resource/243.  I hope this helps.

jeremy


From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Donald Mennerich
Sent: Wednesday, September 20, 2017 4:59 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: [EXT] Re: [Archivesspace_Users_Group] can't view collections on the backend

Jeremy,
Can you share the http requests you made to generate the error?
Don


On Wed, Sep 20, 2017 at 5:53 PM, Jones, Jeremy <Jeremy.Jones at unt.edu<mailto:Jeremy.Jones at unt.edu>> wrote:
Hello,

I’m having a few issues with Archivesspace.  First, I cannot view the contents of a collection on the backend view (:8089).  I can view them on the front end and edit them.  But the backend view says (We're sorry, but something went wrong.
If you are the application owner check the logs for more information.

The logs say:



Sep 20, 2017 4:39:38 PM org.eclipse.jetty.server.handler.ContextHandler$Context log
INFO: I, [2017-09-20T16:39:38.022275 #18373]  INFO -- : [7f48c48b-7c0a-4a31-9625-d88b32bb353e] Completed 500 Internal Server Error in 507ms

Sep 20, 2017 4:39:38 PM org.eclipse.jetty.server.handler.ContextHandler$Context log
INFO: F, [2017-09-20T16:39:38.041159 #18373] FATAL -- : [7f48c48b-7c0a-4a31-9625-d88b32bb353e]

Sep 20, 2017 4:39:38 PM org.eclipse.jetty.server.handler.ContextHandler$Context log
INFO: F, [2017-09-20T16:39:38.041735 #18373] FATAL -- : [7f48c48b-7c0a-4a31-9625-d88b32bb353e] ActionView::Template::Error (undefined method `[]' for nil:NilClass):

Sep 20, 2017 4:39:38 PM org.eclipse.jetty.server.handler.ContextHandler$Context log
INFO: F, [2017-09-20T16:39:38.043402 #18373] FATAL -- : [7f48c48b-7c0a-4a31-9625-d88b32bb353e]     1: <% if @result && @result.respond_to?(:metadata) %>
[7f48c48b-7c0a-4a31-9625-d88b32bb353e]     2:
[7f48c48b-7c0a-4a31-9625-d88b32bb353e]     3: <script type="application/ld+json">
[7f48c48b-7c0a-4a31-9625-d88b32bb353e]     4: <%= JSON.pretty_generate(@result.metadata).html_safe %>
[7f48c48b-7c0a-4a31-9625-d88b32bb353e]     5: </script>
[7f48c48b-7c0a-4a31-9625-d88b32bb353e]     6: <% end %>

Sep 20, 2017 4:39:38 PM org.eclipse.jetty.server.handler.ContextHandler$Context log
INFO: F, [2017-09-20T16:39:38.043859 #18373] FATAL -- : [7f48c48b-7c0a-4a31-9625-d88b32bb353e]

Sep 20, 2017 4:39:38 PM org.eclipse.jetty.server.handler.ContextHandler$Context log
INFO: F, [2017-09-20T16:39:38.044331 #18373] FATAL -- : [7f48c48b-7c0a-4a31-9625-d88b32bb353e] app/models/resource.rb:101:in `metadata'
[7f48c48b-7c0a-4a31-9625-d88b32bb353e] app/views/shared/_metadata.html.erb:4:in `_app_views_shared__metadata_html_erb__1424742346_2312'
[7f48c48b-7c0a-4a31-9625-d88b32bb353e] app/views/layouts/application.html.erb:19:in `_app_views_layouts_application_html_erb___1292011715_2310'

I cannot make much from this log entry other than there was a fatal error.  Any ideas what could be causing this?

Thank you
jeremy

_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=DwMFaQ&c=cjytLXgP8ixuoHflwc-poQ&r=7Ez68qVcrmRD6nn1FqwoHBDEOxeRUCPm3xGvnFT0zjU&m=7mg7Zhaa7symM7xu9ykMCx0V8pL0N8FnWZPlp0FhiPw&s=R4fzJBUfMghFha0Z2f1xA98s0DF3q0ISngS5RAX5yOg&e=>


_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=DwMFaQ&c=cjytLXgP8ixuoHflwc-poQ&r=7Ez68qVcrmRD6nn1FqwoHBDEOxeRUCPm3xGvnFT0zjU&m=7mg7Zhaa7symM7xu9ykMCx0V8pL0N8FnWZPlp0FhiPw&s=R4fzJBUfMghFha0Z2f1xA98s0DF3q0ISngS5RAX5yOg&e=>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20170922/0ea9df9e/attachment.html>


More information about the Archivesspace_Users_Group mailing list