Skip to content

NetCDF: Access failure (NetCDF error code: -77) on OPeNDAP #283

@natgeo-wong

Description

@natgeo-wong

Hi!

I'm having some trouble with using GitHub Actions to create documentation when access Earthdata OPeNDAP servers (see the code blocks (https://georegionsecosystem.github.io/NASAPrecipitation.jl/dev/using/download)[here]).

In the runner log, it gives me the following error:

exception = 
    NetCDF error: NetCDF: Access failure (NetCDF error code: -77)
    Stacktrace:
      [1] check
        @ ~/.julia/packages/NCDatasets/xJGTj/src/errorhandling.jl:25 [inlined]
      [2] nc_get_vars!(ncid::Int32, varid::Int32, startp::Vector{Int64}, countp::Vector{Int64}, stridep::Vector{Int64}, ip::Matrix{Float32})
        @ NCDatasets ~/.julia/packages/NCDatasets/xJGTj/src/netcdf_c.jl:1048

and so on. I've tried googling what exactly is wrong, but I'm not too sure. I can open the dataset to see the metadata information, but I can't access the data itself.

So basically, I can do

hroot = "https://gpm1.gesdisc.eosdis.nasa.gov/opendap/AUXILIARY"
npdnc = "GPM_IMERG_LandSeaMask.2/GPM_IMERG_LandSeaMask.2.nc4"
npdds = NCDataset(joinpath(hroot,npdnc),"r")

But if I try to access the data via npdds["landseamask"][1], the data cannot be access.

Is this a GitHub action error? Or is there something else I'm not seeing?

This is not a critical failure, since I can get the code to work on multiple platforms, macOS and Linux alike. I just can't get it to work on GitHub actions, but I would like to eventually because this error means I cannot showcase examples in the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions