Open fqiang opened 8 years ago
I find out that if I remove the last two lines and only keep 127.0.0.1 localhost
in /etc/hosts
file. I can load the login page successfully.
Then hostname -f
gives juliabox.c.genuine-synapse-144322.internal
which is not resolvable by DNS.
Later on, a julia notebook fail to connect to the kernel because of the unresolvable hostname. The web browser gives the error
Firefox can’t establish a connection to the server at ws://juliabox.c.genuine-synapse-144322.internal/api/kernels/38fe195a-cacb-4083-bbbe-46d9c8effd78/channels?session_id=A8CCCA256EEE4BF0873959E81002429E.
I tried the suggestion mentioned by @tanmaykm in #307, but no success yet. Just wondering if anyone can see the problems in my configuration or other stuff that I might neglected. Thanks.
Found out that if I manually change the websocket url in the user profile (/jboxengine/data/configs/username_xxxxx/.ipython/profile_default/ipython_notebook_config.py
)
i.e. making c.NotebookApp.websocket_url = 'ws://juliabox.xxxxx.com'
, then the julia notebook can successfully connect to the kernel.
I deployed the juliabox on google computing engine instance. I got a blank page once I configured the hostname. The blank page source is
hostname -f
givesjuliabox.ermiaolive.com
. And/etc/hosts
asThe log file at
/JuliaBox/webserver/logs/error.log
gives following connection refused error.Just wondering if anyone has a clue to fix or debug this problem?
Thanks.