Skip to content
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 adding student multicourse #1364

Open
whositwhatnow opened this issue Sep 3, 2020 · 2 comments
Open

Error adding student multicourse #1364

whositwhatnow opened this issue Sep 3, 2020 · 2 comments

Comments

@whositwhatnow
Copy link

whositwhatnow commented Sep 3, 2020

Operating system

CentOS7

nbgrader --version

0.6.1

jupyterhub --version (if used with JupyterHub)

1.1.0

Expected behavior

user gets added to student list DB

Actual behavior

get following error:

[DbStudentAddApp | ERROR] user NOT added to the Jupyterhub group nbgrader-course1: JupyterhubAPI returned a status code of: 400 for api_path: /groups/nbgrader-course1/users
[DbStudentAddApp | ERROR] Make sure you set a valid admin_user 'api_token' in your config file before starting the service

Steps to reproduce the behavior

I have the correct admin token listed services start no problem, students show up in the formgrader.

@rushfly
Copy link

rushfly commented Nov 21, 2020

I have same problem.

grader-cpp@jupyterhub-jupyterhub1:~$ nbgrader db student add test1
[DbStudentAddApp | INFO] Creating/updating student with ID 'test1': {'last_name': None, 'first_name': None, 'email': None, 'lms_user_id': None}
[DbStudentAddApp | ERROR] Student test1 NOT added to the Jupyterhub group nbgrader-cpp: JupyterhubAPI returned a status code of: 400 for api_path: /groups/nbgrader-cpp/users
[DbStudentAddApp | ERROR] Make sure you set a valid admin_user 'api_token' in your config file before starting the service

I saw "400" error, it's likely same with #issue-747962293 .
nbgrader turned https into http?

@rushfly
Copy link

rushfly commented Nov 21, 2020

That doesn't seem to be the case. I still got the same error when I changed it to HTTP.

It seems that nbgrader cannot automatically add system users to the jupyterhub user database.

To successfully add a user to the nbgrader database and jupyterhub groups, the user must exist in both the system and the jupyterhub user database. What a hassle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants