# Can not start jupyterhub after upgrade to 5.0 with using Postgresql

**URL:** <https://discourse.jupyter.org/t/can-not-start-jupyterhub-after-upgrade-to-5-0-with-using-postgresql/25950>\
**Category:** JupyterHub\
**Created:** [May 28, 2024, 3:07am UTC](https://discourse.jupyter.org/t/can-not-start-jupyterhub-after-upgrade-to-5-0-with-using-postgresql/25950 "2024-05-28T03:07:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![licongy](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/licongy/32/10474_2.png) [@licongy](https://discourse.jupyter.org/u/licongy)\
**Post date:** [May 28, 2024, 3:07am UTC](https://discourse.jupyter.org/t/can-not-start-jupyterhub-after-upgrade-to-5-0-with-using-postgresql/25950/1 "2024-05-28T03:07:29Z")

</div>

I can not start jupyterhub after upgrade to 5.0, I have already run `jupyterhub upgrade-db` before start it but error message still:  
`Found database schema version 0eee8c825d24 != 4621fec11365. Backup your database and run `jupyterhub upgrade-db` to upgrade to the latest schema.`  
I am using postgresql for jupyterhub, but from db upgrade message, it seems that the upgrade tool works on mySQL ☹  
So hub 5.0 doesn’t support postgresql yet?

---

<div class="post-metadata">

**Author:** ![consideRatio](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/consideratio/32/1033_2.png) [@consideRatio](https://discourse.jupyter.org/u/consideRatio)\
**Post date:** [May 28, 2024, 5:39am UTC](https://discourse.jupyter.org/t/can-not-start-jupyterhub-after-upgrade-to-5-0-with-using-postgresql/25950/2 "2024-05-28T05:39:32Z")

</div>

jupyterhub upgrade-db

Was something reported from running this command? Was the exit code 0?

* * *

Jupyterhub is tested with mysql and postgres, so it is supported.

---

<div class="post-metadata">

**Author:** ![licongy](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/licongy/32/10474_2.png) [@licongy](https://discourse.jupyter.org/u/licongy)\
**Post date:** [May 28, 2024, 9:35am UTC](https://discourse.jupyter.org/t/can-not-start-jupyterhub-after-upgrade-to-5-0-with-using-postgresql/25950/3 "2024-05-28T09:35:01Z")

</div>

‘jupyterhub upgrade-db’ command reported some processes when running, I didn’t copy that message, but as I recall it was something like from 0eee8c825d24 to another code and then from that code to 4621fec11365. no error message and no exit code 0.  
I ran this command again after jupyterhub failed to start, but then nothing was returned.

---

<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:** [May 28, 2024, 6:46pm UTC](https://discourse.jupyter.org/t/can-not-start-jupyterhub-after-upgrade-to-5-0-with-using-postgresql/25950/4 "2024-05-28T18:46:56Z")

</div>

Which directory are you in when you run `‘jupyterhub upgrade-db`? Which operating system user are you running it as? If you run it again can you paste _all_ of the output?

What was your previous version of JupyterHub?

Is the error message in your original post the entire output of JupyterHub when starting it? If not could you paste everything?

Can you show us your `jupyterhub_config.py` file?

Please try and give us as much information as possible!
