BlueBrain / nexus

Blue Brain Nexus - A knowledge graph for data-driven science
https://bluebrainnexus.io/
Apache License 2.0
275 stars 73 forks source link

Cannot get Project resource #3790

Open samuel-kerrien opened 1 year ago

samuel-kerrien commented 1 year ago

Environment

MacOS 12.5.1 Chrome 110.0.5481.177 (Official Build) (x86_64) Environment: dev Fusion v1.8.0-M16-1 Delta v1.8.0-M5+11-28ecbf22-SNAPSHOT

Description

Unable to open a project resource in the side panel. Delta appears to return an error.

How to reproduce:

  1. Open Fusion (M16)
  2. Go to Admin > Browse panel
  3. Filter by type: Project, a single resource should be listed
  4. Click on it to open the side panel, you get an error. Below is what's returned by Delta

GET https:///nexus/v1/resources/copies/sscx/_/https%3A%2F%2Fdev.nise.bbp.epfl.ch%2Fnexus%2Fv1%2Fprojects%2Fcopies%2Fsscx

returns HTTP 404 with the following response:

{
    "@context": "https://bluebrain.github.io/nexus/contexts/error.json",
    "@type": "ResourceNotFound",
    "rejections": [
        {
            "@type": "ResourceNotFound",
            "reason": "File 'https://staging.nise.bbp.epfl.ch/nexus/v1/projects/bbp_test/studio_data' not found in project 'bbp_test/studio_data'.",
            "status": 404
        },
        {
            "@type": "ResourceNotFound",
            "reason": "Resource 'https://staging.nise.bbp.epfl.ch/nexus/v1/projects/bbp_test/studio_data' not found in project 'bbp_test/studio_data'.",
            "status": 404
        },
        {
            "@type": "ResourceNotFound",
            "reason": "Storage 'https://staging.nise.bbp.epfl.ch/nexus/v1/projects/bbp_test/studio_data' not found in project 'bbp_test/studio_data'.",
            "status": 404
        },
        {
            "@type": "ResourceNotFound",
            "reason": "ElasticSearch view 'https://staging.nise.bbp.epfl.ch/nexus/v1/projects/bbp_test/studio_data' not found in project 'bbp_test/studio_data'.",
            "status": 404
        },
        {
            "@type": "ResourceNotFound",
            "reason": "Blazegraph view 'https://staging.nise.bbp.epfl.ch/nexus/v1/projects/bbp_test/studio_data' not found in project 'bbp_test/studio_data'.",
            "status": 404
        },
        {
            "@type": "ResourceNotFound",
            "reason": "Composite view 'https://staging.nise.bbp.epfl.ch/nexus/v1/projects/bbp_test/studio_data' not found in project 'bbp_test/studio_data'.",
            "status": 404
        },
        {
            "@type": "ResourceNotFound",
            "reason": "Schema 'https://staging.nise.bbp.epfl.ch/nexus/v1/projects/bbp_test/studio_data' not found in project 'bbp_test/studio_data'.",
            "status": 404
        },
        {
            "@type": "ResourceNotFound",
            "reason": "Resolver 'https://staging.nise.bbp.epfl.ch/nexus/v1/projects/bbp_test/studio_data' not found in project 'bbp_test/studio_data'.",
            "status": 404
        }
    ]
}

Please note that in the reason it speaks of staging even so this was collected from dev. This is likely related to the copy of data from staging to dev. The same has happened in the following dev project: bbp-users/kerrien.

samuel-kerrien commented 1 year ago

After discussion with @imsdu: