# Running into issue with starting service getting error 500

**URL:** <https://discourse.jupyter.org/t/running-into-issue-with-starting-service-getting-error-500/15647>\
**Category:** JupyterHub\
**Created:** [September 6, 2022, 1:11pm UTC](https://discourse.jupyter.org/t/running-into-issue-with-starting-service-getting-error-500/15647 "2022-09-06T13:11:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![whositwhatnow](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/whositwhatnow/32/4740_2.png) [@whositwhatnow](https://discourse.jupyter.org/u/whositwhatnow)\
**Post date:** [September 6, 2022, 1:11pm UTC](https://discourse.jupyter.org/t/running-into-issue-with-starting-service-getting-error-500/15647/1 "2022-09-06T13:11:29Z")

</div>

I have no issues with my other courses but for some reason I ma having an issue with this on course.

I am using nbgrader and Jupyterhub for multicourse.

The error I am getting is a JH error. I try to login to the course service and when I do I get the error

# 500 : Internal Server Error

The error was:

Failed to check authorization: invalid\_client

In logs:  
[JupyterHub provider:64] Client secret mismatch for service-XXX

---

<div class="post-metadata">

**Author:** ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)\
**Post date:** [September 6, 2022, 5:15pm UTC](https://discourse.jupyter.org/t/running-into-issue-with-starting-service-getting-error-500/15647/2 "2022-09-06T17:15:10Z")

</div>

You haven’t given us much information, but some general things you can try include restarting JupyterHub, logging out and back in, and clearing your browser cookies or cache.

If you need more help you’ll need to give us more information, such as how you’ve setup JupyterHub, your configuration, and your debug logs.

---

<div class="post-metadata">

**Author:** ![whositwhatnow](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/whositwhatnow/32/4740_2.png) [@whositwhatnow](https://discourse.jupyter.org/u/whositwhatnow)\
**Post date:** [September 6, 2022, 6:37pm UTC](https://discourse.jupyter.org/t/running-into-issue-with-starting-service-getting-error-500/15647/3 "2022-09-06T18:37:22Z")

</div>

Jupyterhub setup:

DB using PostgreSQL  
JH version 1.4.2  
Using systemd spawner  
nbgrader 0.6.1

This only happened when I switched instructors so i modified the name and api token.  
It was working previously.

jupyterhub\_config.py  
{  
‘name’: ‘course’,  
‘url’: ‘[http://127.0.0.1:9993](http://127.0.0.1:9993)’,  
‘command’: [  
‘jupyterhub-singleuser’,  
‘–group=formgrade-course’,  
‘–debug’,  
],  
‘user’: ‘username’,  
‘cwd’: ‘/home/username/course’,  
‘api\_token’: ‘usertoken’ # include api token from admin user

restarting JH doesnt work recreating the nbgrader config files doesnt work either. Im not sure what section that error would be found in the db.

---

<div class="post-metadata">

**Author:** ![whositwhatnow](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/whositwhatnow/32/4740_2.png) [@whositwhatnow](https://discourse.jupyter.org/u/whositwhatnow)\
**Post date:** [September 7, 2022, 6:01pm UTC](https://discourse.jupyter.org/t/running-into-issue-with-starting-service-getting-error-500/15647/4 "2022-09-07T18:01:18Z")

</div>

This can be closed, I figured out the issue. I had a zombie process from the previous service that was causing the issue.
