Open gladwig2 opened 3 years ago
Can you paste the output on the command line from where the notebook is run? It's not clear to me what exactly the error is, so if you are able to find an error somewhere else like on the command line or the javascript console that would be helpful, thanks!
Thanks for taking the time to look at this
Here is a log of a case where the GUI generates the error message above. It appears nbgrader succeeds in generating, but the GUI is unhappy https://1drv.ms/u/s!AkigcRTTiq2Eh8VuD78skbkP8RVdbA?e=hp9htk
Here is a log of a case where the GUI does not generate the error message The nbgrader log appears nearly the same. https://1drv.ms/u/s!AkigcRTTiq2Eh8Vvj8R0uwNKHaXR-Q?e=DaeVZw
To generate the 2nd case, I cut out all markdown and non-graded cells to get the file size down to speed execution of the generate.
They both are unable to write to /srv/nbgrader/exchange, but this does not appear to impact their success.
From the web-page console when it fails: [HTTP/2 503 Service Unavailable 20039ms]
no output when it succeeds.
Thanks again.
Thanks @gladwig2 for providing the logs. It's still not clear to me what the issue could be though---would you mind including all the command line and js console output after doing the following:
And paste all logs from step 2 onwards (even if they don't seem nbgrader related)?
Thanks @jhamrick. Unfortunately, I am not an administrator on this service. I will try to setup my own version and get the logs you are describing. That's probably not something that will happen short term. At the moment, my solution is just to shrink the size of the file so that it gets under what seems to be a 20 second timeout in the GUI. Or, I can run from the command line successfully. Thanks for you efforts.
@jhamrick I am having this same problem. could i may be get your help?
Environment:
Python version 3.11.7 (main, Dec 15 2023, 18:12:31) [GCC 11.2.0] nbgrader version 0.9.2
conda 24.5.0
jupyter --version Selected Jupyter core packages... IPython : 8.20.0 ipykernel : 6.28.0 ipywidgets : 7.6.5 jupyter_client : 8.6.0 jupyter_core : 5.5.0 jupyter_server : 2.10.0 jupyterlab : 4.1.8 nbclient : 0.8.0 nbconvert : 7.10.0 nbformat : 5.9.2 notebook : 7.1.3 qtconsole : 5.4.2 traitlets : 5.7.1
jupyterhub --version --> 4.0.2
npm --version --> 9.8.1 node --version --> v18.18.2
Running in an Ubuntu container.
Thanks!
Linux
0.6.1
jupyterhub --version
(if used with JupyterHub)jupyter notebook --version
Expected behavior
Generate
Actual behavior
produces error message
Steps to reproduce the behavior
I get an error popup "there was an error creating the student version of < assigment> " in a pop after clicking 'generate' in the manage assigment menu. Hopefully, the image above is visible and the context is clear.
I can see this error message in the code "/nbgrader/server_extensions/formgrader/static/js/manage_assignments.js" I can run nbgrader generate_assigment -f successfully from the command line
I can run nbgrader assign -f successfully from the command line
When I time this " time nbgrader assign -f ", it takes 31 seconds.. so I wonder about a timeout.
I set c.ExecutePreprocessor.timeout = 360 in the nbgrader_config.py file, but that does not seem to change behavior.
Its not clear to me if that will impact the formgrader.
The error message pops up after about 20 seconds after clicking 'generate'.
The menu refreshes after 30 seconds.
Thanks.