Jupyter : 500 Internal Server on Ubuntu 16.04




While accessing Juptyer Notebook we got “500: Internal Server Error” in the Web browser and get the error ( IOError) in command prompt like below:

 IOError: [Errno 2] No such file or directory: '/home/sreekanth/.jupyter/jupyter_notebook_config.json'

Solution 1:

Step 1: Stop the Jupyter Notebook  services on command prompt

Step 2:  Clear cache, browser history in the Web browser.

Step3:  After that Restart the Ubunutu 16.04 operating system

Step 4: Again start the Jupyter Notebook on command prompt using below command:

jupyter notebook

Step 5: Then it will take automatically browsing, otherwise open your localhost with the port on your command prompt.

localhost:8888/tree

Solution 2:

Step 1: In this solution, we provide update the Jupyter Hub, using below command:

pip install --upgrade jupyterhub

Step 2: After that update the “nbconvert” user in Jupyter Notebook. It may cause the internal server error on Web-UI:

pip install --upgrade  --user nbconvert

Step 3: Clear cache, browser history of your web browser before accessing the localhost.

Step 4: Start the Jupyter notebook in the command prompt on Ubuntu 16.04 using the “Jupyter notebook” command.

Step 5: Then verify on the Web browser using localhost, if it is accessing or not. Then access the Jupyter access, logout from Jupyter notebook on your web browser.




Step 6: Open again localhost on your web browser with a specific port number on your command prompt.

After completion of the above steps, I opened my Jupyter on the browser. Now its working fine for me