-
Notifications
You must be signed in to change notification settings - Fork 50
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
Error when downloading with HSDS Local Server: IncompleteRead #31
Comments
Thanks for pointing this out. I'll see if I can find a solution. In the meantime, I have run this notebook successfully using GitHub Codespaces (instructions are in the README). |
I was going to run in Codespaces but will need the downloaded data stored locally and didn't think I would be able to do that through Codespaces. Is that not the case? |
@hawbecker, I just tested running the notebook 03_NSRDB_introduction using the Setup a Local HSDS Server instructions. The notebook ran okay for me. I did run into a very similar error that you are getting when running the notebook via the NREL developer API which is due to rate limitations. I'm not sure why you're getting this error while running via a Local HSDS Server. I believe there are methods to retrieve output files from Codespaces though I've not attempted this yet. I will see if I can figure this out and add instructions to the README. |
Ok, great - thanks a lot. I look forward to any workaround that helps me get some NSRDB data. I do feel that this local HSDS server route is very easy to use, so if there is a fix on that end that would be really nice. I understand if that's a bigger ask, though. |
@hawbecker, downloading the output files from Codespaces might not be the best option. It might be better to try and resolve the issue you're getting from the local HSDS server setup. Would you share the output you get from step 7 in the setup instructions... |
No problem! hsinfo output:
|
It looks like you have things setup to use the NREL developer API rather then a local HSDS server. The developer API is rate limited and is probably why you are getting that error. If you have things setup for the local server, the output of
Try double checking the steps in these instructions. |
Ahhh great catch - thank you! I believe I went through those steps and then overwrote the .hscfg file with the developer lines. I'm now seeing the correct output:
Trying the download again as it is in the tutorial, I now get a more explicit "timeout" error. This happens after 3 minutes. The command: The error:
When trying again with downloading every 1000th cell, it also timed out which was not the case before when using the dev API. Using every 5000 cell worked. In the instructions for setting up the local server it mentions using rex to download the data. Should I switch to using that? |
@hawbecker, I'm not sure what the issue is at this point but I am also getting this. You can definitely try using rex and see if that helps. Notebook 08 gives an introduction to using rex. I'm going to reach out to some people to try and resolve this timeout issue. Thanks for pointing this out and sorry if it's holding you up. I was able to get at that data in chunks and then merging, but that did take quite a long time so not the best solution...
|
@hawbecker, after talking to @jreadey about this issue he got me to retry downloading from Codespaces and it does seem to be working just fine. Codespaces might be the best option for cases where you are accessing very large amounts of data (like in notebook 3). In your Codespace you can right click a file and then select download. |
I tried out downloading from Codespaces as well and it was no problem. Here's a short sample of how to create an HDF5 within codespaces:
When the file shows up in the explorer side-panel, you can right-click on it and select download. This will copy it to your Downloads folder. In general this will be faster than running HSDS locally since the codespace environment runs in the cloud and will have faster access to the S3 store (when you create the codespace, selecting "US West" as the region will help). |
Ok great - thanks a lot to you both for the help on this - I really appreciate it! |
I created a new conda environment and installed the necessary modules for HSDS, h5pyd, and the others required in the tutorial notebook. I then started a local HSDS server following the steps in the guide and everything up to this point seems to be working fine.
I am running through the NSRDB tutorial (notebook 3) and everything is going well until cell 19 where it downloads a time slice for every 10 points. I then get the following error after almost exactly 1 minute (and 1-2 seconds):
If I change the stride to be every 1000 points instead of every 10, I can successfully download the data. So it seems like there is a limit to the request size or time that I'm hitting with this.
The exact line that is failing is:
Are you aware of any limits for this, or is there a way that I can extend the limits?
Thanks a lot for any help you can provide.
The text was updated successfully, but these errors were encountered: