willingc

chatlog-jhub

Jul 27th, 2017
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 0 0
  1. Andrew Berger @rueberger Jul 26 16:06
  2. I've been hit with the following error trying to run DockerSpawner:
  3. ' traitlets.traitlets.TraitError: The 'port' trait of a Server instance must be an int, but a value of '32769' <class 'str'> was specified'
  4. Does anyone know what config this is referring to? I could not find a relevant field in the jupyter config of the used image jupyterhub/singleuser
  5.  
  6. Carol Willing @willingc Jul 26 16:15
  7. @rueberger What version of jupyterhub and the DockerSpawner are you using? Feel free to open an issue too if you want to share more details logs.
  8.  
  9. Andrew Berger @rueberger Jul 26 16:17
  10. 0.7.0 for both. will open issue if necessary
  11.  
  12. Carol Willing @willingc Jul 26 16:18
  13. I would go with 0.7.2 with jupyterhub and the latest stable on the spawner
  14. Thanks!
  15. @rueberger Scratch that use latest (master) on DockerSpawner as a fix was merged in early June jupyterhub/dockerspawner#164
  16.  
  17. i Panda @yuvipanda Jul 26 22:37
  18. hahaha, I just hadn't updated the image I was running
  19. the PR works, but might be missing stuff
  20. I'll play with nginx settings - it helps us do rate limiting, but without complicating the code too much for now!
  21. and since the most busy tics seem to be just when we get a ton fo HTTP requests, it might be enough for us to cross 5k :)
  22.  
  23. Yuvi Panda @yuvipanda Jul 26 22:42
  24. http://nginx.org/en/docs/http/ngx_http_limit_req_module.html for nginx docs
  25.  
  26. Andrew Berger @rueberger Jul 26 23:23
  27. got a little farther... this time i'm met with the following error:
  28. docker.errors.DeprecatedMethod: Providing configuration in the start() method is no longer supported. Use the host_config param in create_container instead.
  29. ring any bells?
  30. I feel my situation here may be a very weird one so if not I will file an issue tomorrow
  31.  
  32. Min RK @minrk 00:41
  33. @rueberger there have been some fixes in DockerSpawner master that we should release soon.
  34.  
  35. Andrew Berger @rueberger 07:46
  36. @minrk do you mean release to pip? or to master? I installed from master yesterday. Any idea what the timeline is? I basically need to get my deployment working today
  37.  
  38. Min RK @minrk 07:49
  39. I mean releasing master to PyPI
  40. Installing DockerSpawner from master for now should be safe. You can pin a specific commit if you want to be extra safe while waiting for a release
  41. We might be able to get it onto PyPI tomorrow, but do report any issues you have with master.
  42. Did you figure out your host_config issue?
  43.  
  44. Andrew Berger @rueberger 09:17
  45. @minrk I just tried rebuilding my image to make sure it was up to do date with master and was met with the same error
  46. here's the output of pip list:
  47. 'alembic (0.9.3)
  48. asn1crypto (0.22.0)
  49. backports.weakref (1.0rc1)
  50. bkcharts (0.2)
  51. bleach (1.5.0)
  52. bokeh (0.12.6)
  53. certifi (2017.4.17)
  54. cffi (1.10.0)
  55. chardet (3.0.2)
  56. conda (4.3.22)
  57. cryptography (1.9)
  58. cycler (0.10.0)
  59. decorator (4.1.1)
  60. docker (2.4.2)
  61. docker-pycreds (0.2.1)
  62. dockerspawner (0.7.0)
  63. escapism (0.0.1)
  64. html5lib (0.9999999)
  65. idna (2.5)
  66. ipython-genutils (0.2.0)
  67. Jinja2 (2.9.5)
  68. jupyterhub (0.8.0.dev0)
  69. jupyterhub-ldapauthenticator (1.1)
  70. Keras (2.0.6)
  71. ldap3 (2.2.4)
  72. Mako (1.0.7)
  73. Markdown (2.6.8)
  74. MarkupSafe (1.0)
  75. matplotlib (2.0.2)
  76. numpy (1.13.1)
  77. pamela (0.3.0)
  78. pip (9.0.1)
  79. protobuf (3.3.0)
  80. pyasn1 (0.3.1)
  81. pycosat (0.6.1)
  82. pycparser (2.18)
  83. pycrypto (2.6.1)
  84. pycurl (7.43.0)
  85. pyOpenSSL (16.2.0)
  86. pyparsing (2.2.0)
  87. PySocks (1.6.7)
  88. python-dateutil (2.6.1)
  89. python-editor (1.0.3)
  90. python-oauth2 (1.0.1)
  91. pytz (2017.2)
  92. PyYAML (3.12)
  93. requests (2.18.1)
  94. ruamel-yaml (-VERSION)
  95. scipy (0.19.1)
  96. setuptools (27.2.0)
  97. six (1.10.0)
  98. SQLAlchemy (1.1.11)
  99. tensorflow (1.2.1)
  100. Theano (0.9.0)
  101. tornado (4.5.1)
  102. traitlets (4.3.2)
  103. urllib3 (1.21.1)
  104. websocket-client (0.44.0)
  105. Werkzeug (0.12.2)
  106. wheel (0.29.0)'
  107.  
  108. Carol Willing @willingc 09:33
  109. @rueberger Just an FYI on jupyterhub 0.8.0dev, you need to make sure your container image for the single user servers also installs jupyterhub. I will be afk for a bit, but others may be able to help.
  110.  
  111. Yuvi Panda @yuvipanda 09:46
  112. @rueberger jfyi, it'd be nice to use something like gist.github.com for pasting large blobs of text like that. easier to refer to and link to from issues later :grinning:
  113. (can't help with dockerspawner tho, sorry!)
  114.  
  115. Andrew Berger @rueberger 09:47
  116. @yuvipanda good suggestion, sorry :stuck_out_tongue_winking_eye:
  117.  
  118. Yuvi Panda @yuvipanda 09:49
  119. @rueberger also there's https://z2jh.jupyter.org for setting up JupyterHub :smiley: Unrelated to docker spawner tho.
  120.  
  121. Andrew Berger @rueberger 10:20
  122. @willingc i'm using jupyterhub/singleuser for the container image which I double checked has jupyterhub installed. I also just tried using jupyterhub/jupyterhub:0.7.2 as my base image and was met with the same error.
  123.  
  124. Carol Willing @willingc 10:46
  125. @rueberger can you open an issue on the Jupyter hub repo with debug log and error message? I think it will be easier to troubleshoot there.
  126.  
  127. Andrew Berger @rueberger 10:46
  128. will do
  129.  
  130. Carol Willing @willingc 10:46
  131. Thanks!
  132.  
  133. Andrew Berger @rueberger 10:46
  134. thanks for your help!
  135.  
  136. Carol Willing @willingc 10:47
  137. I will be back in the office later today.
Advertisement
Add Comment
Please, Sign In to add comment