question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validation fails - possible timeout issue

See original GitHub issue

Operating 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:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ocanevetcommented, Jan 14, 2020

I cannot make the c.ExecutePreprocessor.timeout work. My /home/jovyan/.jupyter/nbgrader_config.py contains

c = get_config()
c.CourseDirectory.course_id = "maths"
c.ExecutePreprocessor.timeout = -1

and running the following cell:

x = 3
for i in range(45):
    print(i)
    time.sleep(1)
# Set x = 10
### BEGIN SOLUTION
x = 10
### END SOLUTION

followed by a test:

assert x == 10, f"should be 10 and i is {i}"

produce the following validation output

The following cell failed:

assert x == 10, f"should be 10 and i is {i}"
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-5-d2ec54bfcf63> in <module>
----> 1 assert x == 10, f"should be 10 and i is {i}"

AssertionError: should be 10 and i is 29

showing that my timeout it still 30 seconds. Could you help? Thanks.

1reaction
lgpagecommented, Feb 16, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found