Notebook: Opera browser: Access to the file was denied after starting

Created on 19 Jan 2019  路  8Comments  路  Source: jupyter/notebook

When starting the notebook in Opera from the terminal, it gives me the message:

Access to the file was denied
The file at file:///run/user/1000/jupyter/nbserver-6407-open.html is not readable. 
It may have been removed, moved, or file permissions may be preventing access.

ERR_ACCESS_DENIED

so I have to copy the link from the terminal with a token.

It looks like it's Opera-linux-specific for me, because I haven't experienced this error anywhere else.

Most helpful comment

Setting c.NotebookApp.use_redirect_file = False solved this issue for me (https://stackoverflow.com/questions/59096651/change-startup-url-in-jupyter-notebook/59578946#59578946)

All 8 comments

I have the same issue with Chrome. Must copy the link from the terminal.

Same here with Chromium. Works only with the http://localhost:8888/?token=XXXXXXXXXXXXX link

Same, Firefox on fresh Ubuntu install. Localhost URL works. Any way to default to opening localhost version?

After playing around for almost a year, I was finally able to find a solution for Ubuntu 18.10 and Chromium/Chrome (should also work with Opera etc):

Usually this only happens if the browser was installed by snap or the software center. They are installed differently.
Solution:
Deinstall your browser and install it manualy, eg Chrome:
open terminal
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb

Please do not play around with different notebook versions or even worse: don't open all doors with chmod!

Setting c.NotebookApp.use_redirect_file = False solved this issue for me (https://stackoverflow.com/questions/59096651/change-startup-url-in-jupyter-notebook/59578946#59578946)

I followed the following steps:

  • I created the configuration file: jupyter notebook --generate-config
  • I edited the file vi ~ / .jupyter / jupyter_notebook_config.py
  • I uncommented the line below and changed it from True to False:
    Before: # c.NotebookApp.use_redirect_file = True
    After: c.NotebookApp.use_redirect_file = False

Excelent!! I have installed Opera Browser via Snap in Manjaro Linux and the solution by @lcmuniz worked for me. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uolter picture uolter  路  3Comments

arbaazsama picture arbaazsama  路  3Comments

md-jamal picture md-jamal  路  3Comments

Foadsf picture Foadsf  路  3Comments

ehossain1982 picture ehossain1982  路  3Comments