0
所以我試圖在我的服務器上設置筆記本實例。 Ubuntu 16.04 jupyter筆記本電腦正在從一個帳戶運行到只有這樣做。 Apache 2正在使用ProxyPass將所有請求傳遞到適當的端口。Jupyter筆記本404登錄後
apache2.conf:
ProxyPass /jupyter http://localhost:31415/jupyter
ProxyPass /jupyter/api/kernels/http://localhost:31415/jupyter/api/kernels/
雖然是二線,雖然推薦一些網站上,似乎沒有什麼後果是否我註釋掉的。
關於jupyter配置:
c.NotebookApp.base_url = '/jupyter'
c.NotebookApp.enable_mathjax = True
c.NotebookApp.open_browser = False
c.NotebookApp.password_required = True
c.NotebookApp.port = 31415
密碼已哈希,是在以.json文件。
此日誌顯示我要去https://mydomain/jupyter,嘗試一個不正確的密碼,然後嘗試正確的密碼:
[I 00:33:06.290 NotebookApp] Serving notebooks from local directory: /home/jupyter/.jupyter
[I 00:33:06.290 NotebookApp] 0 active kernels
[I 00:33:06.290 NotebookApp] The Jupyter Notebook is running at:
[I 00:33:06.290 NotebookApp] http://localhost:31415/jupyter/
[I 00:33:06.290 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 00:33:51.782 NotebookApp] 302 GET /jupyter/ (127.0.0.1) 1.10ms
[I 00:33:51.940 NotebookApp] 302 GET /jupyter/tree? (127.0.0.1) 1.48ms
[W 00:34:03.481 NotebookApp] 401 POST /jupyter/login?next=%2Fjupyter%2Ftree%3F (127.0.0.1) 2.68ms referer=http://mydomain/jupyter/login?next=%2Fjupyter%2Ftree%3F
[I 00:34:10.460 NotebookApp] 302 POST /jupyter/login?next=%2Fjupyter%2Ftree%3F (127.0.0.1) 1.82ms
[I 00:34:10.621 NotebookApp] Refusing to serve hidden directory, via 404 Error
[W 00:34:10.634 NotebookApp] 404 GET /jupyter/tree? (127.0.0.1) 14.33ms referer=http://mydomain/jupyter/login?next=%2Fjupyter%2Ftree%3F
你可以看到,主要的404的錯誤。在我的瀏覽器中,結果是: 404
但是我能夠通過登錄提示符進行操作。
有沒有實際的故障,或者你只是想知道日誌中的404?本地目錄'.jupyter'看起來不太好。 IIRC,帶點前綴的目錄被認爲是隱藏的。在/ home/jupyter/notebook /目錄中啓動筆記本服務器,而不是/home/jupyter/.jupyter/,看看是否有所作爲。 –
這是一個較舊的版本,但在後續這是一個隱藏的目錄問題,我沒有考慮到我在執行目錄中運行的筆記本。 – user8314172