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.

nbgrader formgrader tab gives vague error: "Sorry, the formgrader encountered an error. Please contact the administrator of the formgrader for further assistance.

See original GitHub issue

I’m running nbgrader + JupyterHub with 1 course and 1 instructor (me). The first assignment was due yesterday; I successfully collected and autograded it (on the command line), then went to the formgrader to finish assigning the grades, but when I click the tab (and any of the subtabs) I get the same message:

Sorry, the formgrader encountered an error. Please contact the administrator of the formgrader for further assistance.

I’ve put both the nbgrader and jupyterhub logs on DEBUG to try and suss out the problem but neither seem inclined to give any details. The closest I get is in the jupyterhub logs, which give 304s for the formgrader elements instead of the expected 200s:

[D 2020-01-24 13:39:56.510 SingleUserNotebookApp auth:871] Allowing whitelisted Hub user magsol
[D 2020-01-24 13:39:56.511 SingleUserNotebookApp log:174] 304 GET /user/magsol/formgrader (magsol@::ffff:128.192.241.125) 1.54ms
[D 2020-01-24 13:39:57.849 SingleUserNotebookApp auth:871] Allowing whitelisted Hub user magsol
[D 2020-01-24 13:39:57.849 SingleUserNotebookApp log:174] 304 GET /user/magsol/formgrader/gradebook (magsol@::ffff:128.192.241.125) 1.57ms
[D 2020-01-24 13:39:58.331 SingleUserNotebookApp auth:871] Allowing whitelisted Hub user magsol
[D 2020-01-24 13:39:58.332 SingleUserNotebookApp log:174] 304 GET /user/magsol/formgrader/manage_students (magsol@::ffff:128.192.241.125) 1.17ms
[D 2020-01-24 13:39:58.967 SingleUserNotebookApp auth:871] Allowing whitelisted Hub user magsol
[D 2020-01-24 13:39:58.968 SingleUserNotebookApp log:174] 304 GET /user/magsol/formgrader/manage_assignments (magsol@::ffff:128.192.241.125) 1.56ms

I’ve been beating my head for a couple hours now and haven’t managed to change the response of the formgrader, so I thought I’d ping the experts.

Operating system

Ubuntu 16.04

nbgrader --version

0.6.1

jupyterhub --version (if used with JupyterHub)

1.0.0 (though I get a very, very strange ERROR:asyncio:Task exception was never retrieved when I run this version command)

jupyter notebook --version

6.0.3

Expected behavior

See the formgrader UI on the web.

Actual behavior

Simply getting the error message.

Steps to reproduce the behavior

This was the first time since setting up the environment that I’ve run the formgrader tab. I’ve run (and re-run) all the jupyter extension install commands in the demos, also with the --overwrite flag, and have re-started the jupyterhub instance multiple times; no change in behavior.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

1reaction
magsolcommented, Feb 12, 2020

Ok, I figured it out, but it doesn’t make any sense.

After staring at these error messages, the only idea I came up with that made any sense was that JupyterHub/nbgrader truly thought they existed under the “one course, many instructors” environment. It’s not at all the case–I’m the only instructor, teaching only one course–but I shrugged anyway and implemented the formgrader as a JupyterHub service in the config.

I followed the instructions here on the nbgrader website to the letter, and voila. Formgrader works.

As for why JupyterHub seems to think it’s in a multi-instructor setting: I’ve no idea. But it works, so…

I’ll close this issue.

0reactions
LukasMueller187commented, Oct 4, 2022

Unfortunately my certificate chain is still rejected. I’m specifying my cert in the config file. This, however, seems like a tornado issue. I ended up using validate_cert=False as a kwarg in the check_for_local_formgrader function.

Read more comments on GitHub >

github_iconTop Results From Across the Web

manual grading error - Google Groups
"Sorry, the formgrader encountered an error. Please contact the administrator of the formgrader for further assistance." Thanks for anyone's suggestions!
Read more >
Nbgrader notes - Earlham CS Department
In the formgrader, choose “Manual Grading” on the left. Then, select the labs and assignments you wish to manually grade. You can also...
Read more >
Changelog — nbgrader 0.7.2.dev documentation
Changelog¶. A summary of changes to nbgrader. 0.7.x¶. 0.7.1¶. The following PRs were merged for the 0.7.1 milestone: PR #1607: More informative error...
Read more >
Using Noteable for Assignments | The University of Edinburgh
You can set up Noteable assignment, allocate them to students, ... and then during grading run nbgrader autograde and the formgrader as ...
Read more >
Aalto scientific computing guide - Read the Docs
Aalto Scientific Computing maintains these pages with the help of the ... You can use the Formgrader tab at the top to manage...
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