-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Several error cases when reading from opendap #1136
Comments
There is a known problem with the dap code not reporting lost connections. |
I will assume the suggestion solved the problem. |
I tried setting
but ncdump (version 4.6.0) does not seem to care about this. Should this not also fix the issue? |
The timeout is utilized deep inside the netcdf-c library, so it is probable |
Ok, I did a check and that .dodsrc value is being picked up |
If I make my dap server sleep for more than 10 seconds it fails with
symptoms described above. If I compile latest master it works. I am not
able to recompile 4.6.0 from git at Ubuntu now, because of hdf5 issues.
tor. 9. jan. 2020, 18:40 skrev Dennis Heimbigner <notifications@github.com>:
… Ok, I did a check and that .dodsrc value is being picked up
and applied to the curl connection via CURL_TIMEOUT.
What makes you think it is not working?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1136?email_source=notifications&email_token=AAAN365QPBRVZYDKTB6JVA3Q45OSRA5CNFSM4FTSDRQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIRERIA#issuecomment-572672160>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAN36YCPQJVKY4AFUNDWO3Q45OSRANCNFSM4FTSDRQA>
.
|
Http.verbose is picked up by python netcdf (probably a conda lib), but I
don't see any effect of this when using ncdump
tor. 9. jan. 2020, 19:03 skrev Gaute Hope <eg@gaute.vetsj.com>:
… If I make my dap server sleep for more than 10 seconds it fails with
symptoms described above. If I compile latest master it works. I am not
able to recompile 4.6.0 from git at Ubuntu now, because of hdf5 issues.
tor. 9. jan. 2020, 18:40 skrev Dennis Heimbigner ***@***.***
>:
> Ok, I did a check and that .dodsrc value is being picked up
> and applied to the curl connection via CURL_TIMEOUT.
> What makes you think it is not working?
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#1136?email_source=notifications&email_token=AAAN365QPBRVZYDKTB6JVA3Q45OSRA5CNFSM4FTSDRQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIRERIA#issuecomment-572672160>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAAN36YCPQJVKY4AFUNDWO3Q45OSRANCNFSM4FTSDRQA>
> .
>
|
Did you spell it as Http.verbose or HTTP.VERBOSE |
HTTP.VERBOSE=1
this did not cause additional output with ncdump. But did with python
netcdf.
Not redirected unless ncdump does.
tor. 9. jan. 2020, 19:12 skrev Dennis Heimbigner <notifications@github.com>:
… Did you spell it as Http.verbose or HTTP.VERBOSE
In any case, this just should set the CURLOPT_VERBOSE
flag to 1. Is stderr being redirected by any chance?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1136?email_source=notifications&email_token=AAAN3647CQLP6AP4P7K63ATQ45SIDA5CNFSM4FTSDRQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIRHSVA#issuecomment-572684628>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAN363AQMUGKKLMFCQXW6DQ45SIDANCNFSM4FTSDRQA>
.
|
It is working for me. For example this command: Produces this output:
|
Is this with ncdump version 4.6.0? But, the main issue is the timeout / zeroes returned. This was mostly for debugging the issue. It is especially worrisome that zeroes are returned without any error. This could remain an error for even though the timeout is increased. It is not entirely unlikely that the timeout will be reached with large datasets. Note that this happens even if the DAP server is streaming data, it is just that the request is not completed. ncdump then breaks the connection. I see the same behaviour with ncks. Ubuntu bug for upgrading: https://bugs.launchpad.net/ubuntu/+source/netcdf/+bug/1859070 |
But the underlying problem of timeouts is still there, correct? |
Yes, I believe so. If the timeout cannot be avoided I think it would be useful with an error. |
I agree; This will be primarily determined by what libcurl can do. |
Environment Information
configure
)C
code to recreate the issue?Summary of Issue
When reading large amounts of data I randomly get one out of two errors:
I have tested with both versions 4.6.1 (which fails) and 4.4, which does not fail.
With my test dataset, failures always occur after 10-20 seconds. When running version 4.4 I get a seemingly correct result after around 10 minutes (I am on a slow internet connection). Fast-loading grids seem not to cause this error.
Steps to reproduce the behavior
Compile and run the code below, like this:
You should either get "Data contains only zeros" or "DAP failure".
Retry with 4.4 and get a correct result.
I have tested with several datasets. If you do too, please note that the source code below is hardcoded to read float values only.
The text was updated successfully, but these errors were encountered: