I am facing issue while connecting notebook: websocket connection error: My jupyterhub is in ec2 linux server and when try to open notebook in browser I get ‘connecting to kernel failed’
Also uploading the pip packages:
pip list --local
Package Version
adtlogger 2.0
alembic 1.3.2
argon2-cffi 20.1.0
async-generator 1.10
attrs 19.3.0
autovizwidget 0.17.1
aws-cfn-bootstrap 2.0
backcall 0.1.0
balia 2.7
beautifulsoup4 4.8.1
bleach 3.1.0
boto 2.49.0
boto3 1.10.46
botocore 1.13.50
Brotli 1.0.9
cached-property 1.5.2
certifi 2019.11.28
certipy 0.1.3
cffi 1.13.2
chardet 3.0.4
chart-studio 1.0.0
click 7.1.2
colorama 0.4.1
colorlog 4.6.2
colorlover 0.3.0
confuse 1.3.0
cramjam 2.3.2
crypto 1.4.1
cryptography 2.8
cufflinks 0.17.0
cycler 0.10.0
dash 1.17.0
dash-bootstrap-components 0.11.0
dash-core-components 1.13.0
dash-html-components 1.1.1
dash-renderer 1.8.3
dash-table 4.11.0
decorator 4.4.1
defusedxml 0.6.0
diversipy 0.8
dnf 0.0.1
docutils 0.15.2
entrypoints 0.3
fancycompleter 0.9.1
fastparquet 0.7.0
Flask 1.1.2
Flask-Compress 1.8.0
fsspec 0.7.4
future 0.18.2
ge-toolbox 2.5
gitdb2 2.0.6
githubcommit 0.1.0
GitPython 3.0.5
h2o 3.30.0.2
h5py 3.2.1
hdijupyterutils 0.17.1
htmlmin 0.1.12
idna 2.8
ImageHash 4.1.0
importlib-metadata 1.3.0
ipykernel 5.1.3
ipynb 0.5.1
ipython 7.11.1
ipython-genutils 0.2.0
ipywidgets 7.5.1
itsdangerous 1.1.0
jedi 0.15.2
Jinja2 2.11.2
jmespath 0.9.4
joblib 0.14.1
jsonschema 3.2.0
jupyter 1.0.0
jupyter-client 6.1.7
jupyter-console 6.2.0
jupyter-core 4.6.3
jupyter-telemetry 0.1.0
jupyterhub 1.4.0.dev0
jupyterlab-pygments 0.1.2
kiwisolver 1.3.1
lark-parser 0.5.6
livy 0.8.0
lockfile 0.11.0
lxml 4.4.1
Mako 1.1.0
Markdown 3.1.1
MarkupSafe 1.1.1
matplotlib 3.2.0
mistune 0.8.4
mock 4.0.2
more-itertools 8.0.2
mpld3 0.3
mpmath 1.1.0
multipledispatch 0.6.0
mysqlclient 1.4.2
Naked 0.1.31
nbclient 0.5.1
nbconvert 5.6.1
nbformat 4.4.0
nest-asyncio 1.4.3
networkx 2.5
nltk 3.4.5
nose 1.3.4
notebook 6.0.3
numexpr 2.7.1
numpy 1.19.4
oauthenticator 0.10.0
oauthlib 3.1.0
packaging 19.2
pamela 1.0.0
pandas 1.3.0
pandoc 1.0.2
pandocfilters 1.4.2
parso 0.5.2
patsy 0.5.1
pexpect 4.7.0
pickleshare 0.7.5
Pillow 8.0.1
pip 21.0
plotly 4.14.3
plotly-express 0.4.1
pluggy 0.13.1
ply 3.11
prometheus-client 0.7.1
prompt-toolkit 3.0.2
protobuf 3.11.2
psutil 5.7.3
ptyprocess 0.6.0
py 1.8.1
py-dateutil 2.2
py4j 0.10.9
pyarrow 4.0.1
pyasn1 0.4.8
pycparser 2.19
pycrypto 2.6.1
pycryptodome 3.10.1
pyDOE2 1.1.2
Pygments 2.5.2
PyHive 0.6.1
pykerberos 1.2.1
pyodbc 4.0.32
pyOpenSSL 19.1.0
pyparsing 2.4.6
PyPDF2 1.26.0
pyrepl 0.9.0
pyrsistent 0.15.6
pyspark 3.0.1
pystache 0.5.4
pytest 5.4.1
pytest-runner 5.2
python-daemon 2.2.3
python-dateutil 2.8.1
python-editor 1.0.4
python-json-logger 2.0.1
python37-sagemaker-pyspark 1.2.6
pytz 2019.3
PyWavelets 1.1.1
PyYAML 5.3.1
pyzmq 18.1.1
qtconsole 4.6.0
requests 2.25.0
requests-kerberos 0.12.0
retrying 1.3.3
rise 5.6.0
rsa 3.4.2
ruamel.yaml 0.16.5
ruamel.yaml.clib 0.2.0
s3fs 0.4.0
s3transfer 0.2.1
scikit-learn 0.22.1
scipy 1.5.4
scons 3.1.2
seaborn 0.11.0
semtk-python3 0.0.1
Send2Trash 1.5.0
setuptools 49.1.3
shellescape 3.8.1
simplejson 3.2.0
six 1.14.0
smart-open 1.9.0
smartopen 0.2
smmap2 2.0.5
snowballstemmer 2.0.0
soupsieve 1.9.4
sparkmagic 0.17.1
SQLAlchemy 1.3.12
statsmodels 0.10.2
sympy 1.5
synedix 1.2.4
tables 3.6.1
tabulate 0.8.7
tangled-up-in-unicode 0.0.6
teds 2.0
teds-aeo 2.0.0
teds-balancingtool 1.0.0
teds-core 1.0.2
teds-gte-combustionlab 20.2
teds-ste-liquidfuel 0.0.1
teds-ste-operability 0.0.3
terminado 0.8.3
testpath 0.4.4
thrift 0.13.0
toolz 0.10.0
tornado 6.0.3
tqdm 4.51.0
traitlets 4.3.3
urllib3 1.25.7
visions 0.5.0
wcwidth 0.1.8
webencodings 0.5.1
Werkzeug 1.0.1
wheel 0.36.2
widgetsnbextension 3.5.1
windmill 1.6
zipp 3.4.0
jupyter notebook --no-browser --debug
[D 11:27:02.758 NotebookApp] Searching [’/mnt/jupyterhub’, ‘/root/.jupyter’, ‘/usr/etc/jupyter’, ‘/usr/local/etc/jupyter’, ‘/etc/jupyter’] for config files
[D 11:27:02.758 NotebookApp] Looking for jupyter_config in /etc/jupyter
[D 11:27:02.759 NotebookApp] Looking for jupyter_config in /usr/local/etc/jupyter
[D 11:27:02.759 NotebookApp] Looking for jupyter_config in /usr/etc/jupyter
[D 11:27:02.759 NotebookApp] Looking for jupyter_config in /root/.jupyter
[D 11:27:02.759 NotebookApp] Looking for jupyter_config in /mnt/jupyterhub
[D 11:27:02.760 NotebookApp] Looking for jupyter_notebook_config in /etc/jupyter
[D 11:27:02.760 NotebookApp] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 11:27:02.760 NotebookApp] Looking for jupyter_notebook_config in /usr/etc/jupyter
[D 11:27:02.760 NotebookApp] Looking for jupyter_notebook_config in /root/.jupyter
[D 11:27:02.761 NotebookApp] Loaded config file: /root/.jupyter/jupyter_notebook_config.json
[D 11:27:02.761 NotebookApp] Looking for jupyter_notebook_config in /mnt/jupyterhub
[D 11:27:02.762 NotebookApp] Raising open file limit: soft 1024->4096; hard 4096->4096
[D 11:27:02.766 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 11:27:02.766 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 11:27:02.767 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/usr/etc/jupyter/jupyter_notebook_config.json
[D 11:27:02.767 NotebookApp] Paths used for configuration of jupyter_notebook_config:
/root/.jupyter/jupyter_notebook_config.json
[I 11:27:04.000 NotebookApp] sparkmagic extension enabled!
[C 11:27:04.001 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.
[D 11:27:04.001 NotebookApp] Exiting application: jupyter-notebook