NHSDigital / DataDictionaryPublication

Apache License 2.0
7 stars 1 forks source link

Server Error #545

Open KatePalmerLilley opened 2 weeks ago

KatePalmerLilley commented 2 weeks ago

The following server error appears when trying to view any item. I have raised with Mike via Zulip:

Image

Server Error

We're sorry, but the server responded with an error message.

Details

{
  "headers": {
    "normalizedNames": {},
    "lazyUpdate": null
  },
  "status": 500,
  "statusText": "OK",
  "url": "https://mauro.dev.dataproducts.nhs.uk/api/tree/folders/dataClasses/45f1f591-b14e-4a0d-a17a-f9fb50415cb9/ancestors",
  "ok": false,
  "name": "HttpErrorResponse",
  "message": "Http failure response for https://mauro.dev.dataproducts.nhs.uk/api/tree/folders/dataClasses/45f1f591-b14e-4a0d-a17a-f9fb50415cb9/ancestors: 500 OK",
  "error": {
    "status": 500,
    "reason": "Internal Server Error",
    "errorCode": "PSXX",
    "message": "No domain found for path node [fo:HODF Data Set] in path [vf:NHS Data Dictionary$2024.8.0|fo:Data Sets|fo:Supporting Data Sets|fo:HODF Data Set]",
    "path": "/api/tree/folders/dataClasses/45f1f591-b14e-4a0d-a17a-f9fb50415cb9/ancestors",
    "version": "5.4.0-SNAPSHOT",
    "exception": {
      "type": "ApiInternalException",
      "message": "No domain found for path node [fo:HODF Data Set] in path [vf:NHS Data Dictionary$2024.8.0|fo:Data Sets|fo:Supporting Data Sets|fo:HODF Data Set]",
      "stacktrace": [
        "uk.ac.ox.softeng.maurodatamapper.core.path.PathService$__tt__findAllResourceIdsInPath_closure18.doCall(PathService.groovy:190)",
        "uk.ac.ox.softeng.maurodatamapper.path.Path.each(Path.groovy:129)",
        "uk.ac.ox.softeng.maurodatamapper.core.path.PathService.$tt__findAllResourceIdsInPath(PathService.groovy:186)",
        "grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:94)",
        "org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)",
        "grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:91)",
        "uk.ac.ox.softeng.maurodatamapper.core.tree.TreeItemService.contextualiseTreeItem(TreeItemService.groovy:947)",
        "uk.ac.ox.softeng.maurodatamapper.core.tree.TreeItemService.createContainerTreeItem(TreeItemService.groovy:939)",
        "uk.ac.ox.softeng.maurodatamapper.core.tree.TreeItemService$_getAllReadableContainerTreeItems_closure34.doCall(TreeItemService.groovy:575)",
        "uk.ac.ox.softeng.maurodatamapper.core.tree.TreeItemService.getAllReadableContainerTreeItems(TreeItemService.groovy:574)",
        "uk.ac.ox.softeng.maurodatamapper.core.tree.TreeItemService.buildContainerTreeForModelTreeItems(TreeItemService.groovy:844)",
        "uk.ac.ox.softeng.maurodatamapper.core.tree.TreeItemService.$tt__buildCatalogueItemTreeWithAncestors(TreeItemService.groovy:351)",
        "grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:94)",
        "org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)",
        "grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:91)",
        "uk.ac.ox.softeng.maurodatamapper.core.tree.TreeItemController.ancestors(TreeItemController.groovy:155)",
        "org.grails.core.DefaultGrailsControllerClass$MethodHandleInvoker.invoke(DefaultGrailsControllerClass.java:223)",
        "org.grails.core.DefaultGrailsControllerClass.invoke(DefaultGrailsControllerClass.java:188)",
        "org.grails.web.mapping.mvc.UrlMappingsInfoHandlerAdapter.handle(UrlMappingsInfoHandlerAdapter.groovy:90)",
        "org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)",
        "org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)",
        "org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)",
        "org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)",
        "org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)",
        "org.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:77)",
        "org.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:67)",
        "org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:126)",
        "org.springframework.boot.web.servlet.support.ErrorPageFilter.access$000(ErrorPageFilter.java:64)",
        "org.springframework.boot.web.servlet.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:101)",
        "org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:119)"
      ]
    }
  }
}
mhocc commented 2 weeks ago

Removing the CR1915 model seems to have fixed the problem in the Mauro UI but we should understand why this problem occurred.

KatePalmerLilley commented 2 weeks ago

Hi @mhocc, we need CR1915 back for the test migration please. See #540

mhocc commented 2 weeks ago

CLASSIFICATION: CONFIDENTIAL - COMMERCIAL IN CONFIDENCE

Hi, Pete tells me he will be re-ingesting CR1915

From: KatePalmerLilley @.> Sent: Tuesday, August 27, 2024 11:57 AM To: NHSDigital/DataDictionaryPublication @.> Cc: Mike at OCC @.>; Mention @.> Subject: Re: [NHSDigital/DataDictionaryPublication] Server Error (Issue #545)

CAUTION: This email originated from outside of the organisation. Do not click links or open attachments unless you recognise the sender and know the content is safe.

Hi @mhocchttps://github.com/mhocc, we need CR1915 back for the test migration please. See #540https://github.com/NHSDigital/DataDictionaryPublication/issues/540

— Reply to this email directly, view it on GitHubhttps://github.com/NHSDigital/DataDictionaryPublication/issues/545#issuecomment-2312204816, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB2QXB467534FZ6TP77WTDDZTRLQZAVCNFSM6AAAAABNAEMJSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJSGIYDIOBRGY. You are receiving this because you were mentioned.Message ID: @.***>


http://www.oxfordcc.co.uk/emaildisclaimer

This email, and any attachments transmitted with it, is confidential and protected by copyright. If you are not the intended recipient you must not use, disseminate, distribute or copy this e-mail or any attachment. If you have received this email in error please notify the sender and delete this email, and any attachments, completely from your system. Any views or opinions expressed within this email are those of the author, and do not necessarily represent those of System C. System C has scanned this email for viruses but does not accept any responsibility once this email has been transmitted. You should scan attachments (if any) for viruses. Registered Address: System C Healthcare Ltd, Arden Court, Arden Street, Stratford-upon-Avon, Warwickshire, CV37 6NT. Registered in England: 1754990

Disclaimer

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more visit the Mimecast website.

KatePalmerLilley commented 2 weeks ago

@mhocc do you know why CR1915 caused this issue? We would like to document this for future reference, thanks.

mhocc commented 2 weeks ago

@mhocc do you know why CR1915 caused this issue? We would like to document this for future reference, thanks.

Not in any great detail; it seems there are version links which got broken when the models were re-ingested, Pete tells me he found a way to recreate the links via an endpoint which is probably not accessible through the user interface.

pjmonks commented 2 weeks ago

After fixing the version links, I am not able to replicate this issue further, so I think it should be closed.

AngelaFaulding commented 1 week ago

@KatePalmerLilley - are you happy for this to be closed?

AngelaFaulding commented 1 week ago

Kate is happy for this to be closed.