Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. c = get_config()
  2.  
  3. # Notebook config this is where you saved your pem cert
  4. c.NotebookApp.certfile = u'/home/ubuntu/certs/mycert.pem'
  5. # Run on all IP addresses of your instance
  6. c.NotebookApp.ip = '*'
  7. # Don't open browser by default
  8. c.NotebookApp.open_browser = False
  9. # Fix port to 8888
  10. c.NotebookApp.port = 8888
  11.  
  12. mkdir certs
  13. cd certs
  14.  
  15. sudo openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem
  16.  
  17. Writing notebook server cookie secret to /run/user/1000/jupyter/notebook_cookie_secret
  18. Traceback (most recent call last):
  19. File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/traitlets/traitlets.py", line 528, in get
  20. value = obj._trait_values[self.name]
  21. KeyError: 'allow_remote_access'
  22.  
  23. During handling of the above exception, another exception occurred:
  24.  
  25. Traceback (most recent call last):
  26. File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 864, in _default_allow_remote
  27. addr = ipaddress.ip_address(self.ip)
  28. File "/home/ubuntu/anaconda3/lib/python3.7/ipaddress.py", line 54, in ip_address
  29. address)
  30. ValueError: '' does not appear to be an IPv4 or IPv6 address
  31.  
  32. During handling of the above exception, another exception occurred:
  33.  
  34. Traceback (most recent call last):
  35. File "/home/ubuntu/anaconda3/bin/jupyter-notebook", line 11, in <module>
  36. sys.exit(main())
  37. File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/jupyter_core/application.py", line 266, in launch_instance
  38. return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  39. File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/traitlets/config/application.py", line 657, in launch_instance
  40. app.initialize(argv)
  41. File "</home/ubuntu/anaconda3/lib/python3.7/site-packages/decorator.py:decorator-gen-7>", line 2, in initialize
  42. File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error
  43. return method(app, *args, **kwargs)
  44. File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 1630, in initialize
  45. self.init_webapp()
  46. File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 1378, in init_webapp
  47. self.jinja_environment_options,
  48. File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 159, in __init__
  49. default_url, settings_overrides, jinja_env_options)
  50. File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 252, in init_settings
  51. allow_remote_access=jupyter_app.allow_remote_access,
  52. File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/traitlets/traitlets.py", line 556, in __get__
  53. return self.get(obj, cls)
  54. File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/traitlets/traitlets.py", line 535, in get
  55. value = self._validate(obj, dynamic_default())
  56. File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 867, in _default_allow_remote
  57. for info in socket.getaddrinfo(self.ip, self.port, 0, socket.SOCK_STREAM):
  58. File "/home/ubuntu/anaconda3/lib/python3.7/socket.py", line 748, in getaddrinfo
  59. for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
  60. socket.gaierror: [Errno -2] Name or service not known
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement