Refusing to run JupyterHub with invalid cookie_secret_file

Hello everyone,

When i am trying to run jupyterhub from the terminal i am facing an error: “Refusing to run JupyterHub with invalid cookie_secret_file. /home/nak4si/jupyterhub_cookie_secret error was: cookie_secret_file can be read or written by anybody”

Does any one know what could be the reason for this issue and how it can be solved?

As per another source regarding the same issue, there was no exact solution to it other than re-install jupyterhub.

source: Refusing to run JupyterHub with invalid cookie_secret_file · Issue #1787 · jupyterhub/jupyterhub · GitHub

I hope there must be a fix without re-install of jupyterhub.

Thanks!

The issue was fixed by setting the file permissions of the cookie_secret_file to 600.