Validation fails - possible timeout issue
See original GitHub issueOperating system
Mac 10.11.6
nbgrader --version
0.5.4
jupyterhub --version
(if used with JupyterHub)
jupyter notebook --version
5.30
Expected behavior
I am trying to run a notebook which requires loading text data and running code to process it. Overall it takes around 2 minutes to run on my machine. It works fine when I run all the cells in the notebook and the grading also works. I therefore expect it to validate.
Actual behavior
Validation fails. I get an eror message, reproduced below.
(test-env) Tom$ nbgrader validate source/A0/*.ipynb
[ValidateApp | INFO] Validating 'PATH_TO_NOTEBOOK/source/A0/a0notebook.ipynb'
[ValidateApp | INFO] Executing notebook with kernel: python3
[ValidateApp | ERROR] Timeout waiting for execute reply (30s).
[ValidateApp | ERROR] Interrupting kernel
When I run this in the notebook I get the same error, along with the message that tests have failed. I have tried editing nbgrader_config.py
to suppress any timeouts but to no avail.
Does anyone know why a notebook that otherwise runs fine would be failing the validation step?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
"Request Timeout" during validation. What does this mean?
It could be a connection failure between Gauge core and language runner. This looks very likely. · The fact that this occurs intermittently...
Read more >ADF - Can validation activity timeout be suppressed and not ...
I have a pipeline which process based on the availability of files in a folder. I have a validation activity, which validates whether...
Read more >Session timeout at 5 or 20 minutes or "Validation of viewstate ...
ASP or ASP.net: Application or Session values timeout after 5 minutes or 20 minutes; ASP.net generates error: Validation of viewstate MAC failed.
Read more >Backup Destination is Showing a Timeout Error.
Symptoms When attempting to validate a remote backup destination you may see an error such as: Error Validation for transport...
Read more >May not change username during timeout re-validation
The validation error message is expected when you try to provide different operator id for an existing timed out session.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I cannot make the
c.ExecutePreprocessor.timeout
work. My/home/jovyan/.jupyter/nbgrader_config.py
containsand running the following cell:
followed by a test:
produce the following validation output
showing that my timeout it still 30 seconds. Could you help? Thanks.
Can you try changing the
c.ExecutePreprocessor.timeout
config option (see http://nbgrader.readthedocs.io/en/stable/configuration/config_options.html). It looks like the default is 30 seconds, which might be a bit slower than you want.