Ok, great. That is strange that you had this permission issue. What is specific to your machine or is it more general in suse ? How did you fix it might be of interest for other !
Thanks ! -- M On 22 January 2018 at 08:45, Karthik Pitchaimani <[email protected]> wrote: > Hi Matthias, > > Thank you so much. It's permission issues with /etc/../clock file and also > given ip6 information on hosts file. > It is working fine now. > > > On Saturday, January 20, 2018 at 8:50:00 PM UTC+8, Karthik Pitchaimani > wrote: >> >> Yes, I can able to import below libs from python shell. >> import babel >> import sys >> import pytz >> import time >> from datetime import timedelta >> from datetime import tzinfo >> from threading import RLock >> >> if sys.platform == 'win32': >> from babel.localtime._win32 import _get_localzone >> else: >> from babel.localtime._unix import _get_localzone >> >> JupyterHub spawners failed due to babel - _get_localzone? or any other >> issues. >> >> I am checking the other permission issue. >> >> Thanks. >> >> >> On Friday, January 19, 2018 at 11:24:12 PM UTC+8, Matthias Bussonnier >> wrote: >>> >>> Are you able to just "import babel" from a Python shell ? >>> >>> It looks like (on my machine) babel is doing: >>> >>> try: >>> LOCALTZ = get_localzone() >>> except pytz.UnknownTimeZoneError: >>> LOCALTZ = _FallbackLocalTimezone() >>> >>> Where get_localzone() trigger the error. >>> I'm guessing it may need to also catch *PermissionError.* >>> - >>> Matthias >>> >>> >>> On 19 January 2018 at 00:33, Karthik Pitchaimani <[email protected]> >>> wrote: >>> >>>> Hi Team, >>>> >>>> I was getting the below exception. I have not created any specific >>>> jupyterusergroup, created a Linux user and added them to shadow and wheel >>>> group. >>>> >>>> Should we need to create a separate group or? >>>> OS: SUSE Linux 11 SP3 and JupyterHub 0.8.1 >>>> Kindly help me to fix this issues. >>>> >>>> >>>> **For ubuntu VM no issues, I can be able to login without issues. >>>> >>>> >>>> 500 : Internal Server >>>> [D 2018-01-14 21:11:47.760 JupyterHub user:184] Creating <class >>>> 'jupyterhub.spawner.LocalProcessSpawner'> for lta-uat-jupyter: >>>> [D 2018-01-14 21:11:47.761 JupyterHub app:1211] Loading state for >>>> lta-uat-jupyter from db >>>> [D 2018-01-14 21:11:47.761 JupyterHub app:1236] lta-uat-jupyter not >>>> running >>>> [D 2018-01-14 21:11:47.763 JupyterHub app:1241] Loaded users: >>>> lta-uat-jupyter >>>> [I 2018-01-14 21:11:47.767 JupyterHub app:1528] Hub API listening on >>>> http://0.0.0.0:8081/hub/ >>>> [W 2018-01-14 21:11:47.768 JupyterHub proxy:415] >>>> Generating CONFIGPROXY_AUTH_TOKEN. Restarting the Hub will require >>>> restarting the proxy. >>>> Set CONFIGPROXY_AUTH_TOKEN env or JupyterHub.proxy_auth_token config to >>>> avoid this message. >>>> >>>> [W 2018-01-14 21:11:47.768 JupyterHub proxy:456] Running JupyterHub >>>> without SSL. I hope there is SSL termination happening somewhere else... >>>> [I 2018-01-14 21:11:47.768 JupyterHub proxy:458] Starting proxy @ >>>> http://0.0.0.0:8000/ >>>> [D 2018-01-14 21:11:47.768 JupyterHub proxy:459] Proxy cmd: >>>> ['configurable-http-proxy', '--ip', '0.0.0.0', '--port', '8000', >>>> '--api-ip', '127.0.0.1', '--api-port', '8001', '--error-target', ' >>>> http://pxthdd07:8081/hub/error'] >>>> 21:11:47.929 - info: [ConfigProxy] Proxying http://0.0.0.0:8000 to (no >>>> default) >>>> 21:11:47.932 - info: [ConfigProxy] Proxy API at >>>> http://127.0.0.1:8001/api/routes >>>> [D 2018-01-14 21:11:48.676 JupyterHub proxy:491] Proxy started and >>>> appears to be up >>>> [D 2018-01-14 21:11:48.678 JupyterHub proxy:552] Proxy: Fetching GET >>>> http://127.0.0.1:8001/api/routes >>>> [W 2018-01-14 21:11:48.688 JupyterHub proxy:304] Adding missing default >>>> route >>>> [I 2018-01-14 21:11:48.688 JupyterHub proxy:370] Adding default route >>>> for Hub: / => http://pxthdd07:8081 >>>> [D 2018-01-14 21:11:48.689 JupyterHub proxy:552] Proxy: Fetching POST >>>> http://127.0.0.1:8001/api/routes/ >>>> 21:11:48.689 - info: [ConfigProxy] 200 GET /api/routes >>>> 21:11:48.693 - info: [ConfigProxy] Adding route / -> >>>> http://pxthdd07:8081 >>>> 21:11:48.694 - info: [ConfigProxy] 201 POST /api/routes/ >>>> [I 2018-01-14 21:11:48.694 JupyterHub app:1581] JupyterHub is now >>>> running at http://0.0.0.0:8000/ >>>> [I 2018-01-14 21:12:03.948 JupyterHub log:122] 200 GET /hub/home ( >>>> [email protected]) 22.47ms >>>> [I 2018-01-14 21:12:05.052 JupyterHub log:122] 302 GET /hub/spawn â >>>> /user/lta-uat-jupyter/ ([email protected]) 2.08ms >>>> [I 2018-01-14 21:12:05.061 JupyterHub log:122] 302 GET >>>> /user/lta-uat-jupyter/ â /hub/user/lta-uat-jupyter/ (@10.8.95.244) >>>> 0.33ms >>>> [D 2018-01-14 21:12:05.071 JupyterHub base:421] Initiating spawn for >>>> lta-uat-jupyter >>>> [I 2018-01-14 21:12:05.250 JupyterHub spawner:978] Spawning >>>> jupyterhub-singleuser --port=52731 --debug >>>> [D 2018-01-14 21:12:05.256 JupyterHub spawner:727] Polling subprocess >>>> every 30s >>>> [D 2018-01-14 21:12:05.300 JupyterHub base:427] 0/100 concurrent spawns >>>> [D 2018-01-14 21:12:05.300 JupyterHub base:430] 0 active servers >>>> Traceback (most recent call last): >>>> File "/var/opt/teradata/anaconda3/bin/jupyterhub-singleuser", line 6, >>>> in >>>> main() >>>> File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jupyterhub/singleuser.py", >>>> line 455, in main >>>> return SingleUserNotebookApp.launch_instance(argv) >>>> File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jupyter_core/application.py", >>>> line 267, in launch_instance >>>> return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs) >>>> File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py", >>>> line 657, in launch_instance >>>> app.initialize(argv) >>>> File "", line 2, in initialize >>>> File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py", >>>> line 87, in catch_config_error >>>> return method(app, >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> *args, **kwargs)File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", >>>> line 1290, in initializesuper(NotebookApp, self).initialize(argv)File "", >>>> line 2, in initializeFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py", >>>> line 87, in catch_config_errorreturn method(app, args, **kwargs)File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jupyter_core/application.py", >>>> line 243, in initializeself.migrate_config()File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jupyterhub/singleuser.py", >>>> line 314, in migrate_configsuper(SingleUserNotebookApp, >>>> self).migrate_config()File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jupyter_core/application.py", >>>> line 162, in migrate_configfrom .migrate import get_ipython_dir, >>>> migrateFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jupyter_core/migrate.py", >>>> line 35, in from IPython.paths import get_ipython_dirFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/IPython/init.py", >>>> line 55, in from .terminal.embed import embedFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/IPython/terminal/embed.py", >>>> line 16, in from IPython.terminal.interactiveshell import >>>> TerminalInteractiveShellFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/IPython/terminal/interactiveshell.py", >>>> line 32, in from .debugger import TerminalPdb, PdbFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/IPython/terminal/debugger.py", >>>> line 6, in from IPython.core.completer import IPCompleterFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/IPython/core/completer.py", >>>> line 146, in import jediFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jedi/init.py", >>>> line 41, in from jedi.api import Script, Interpreter, NotFoundError, >>>> set_debug_functionFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jedi/api/init.py", >>>> line 23, in from jedi.api import classesFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jedi/api/classes.py", >>>> line 14, in from jedi.evaluate import representation as erFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jedi/evaluate/init.py", >>>> line 69, in from jedi.evaluate import representation as erFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jedi/evaluate/representation.py", >>>> line 52, in from jedi.evaluate import docstringsFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jedi/evaluate/docstrings.py", >>>> line 46, in from numpydoc.docscrape import NumpyDocStringFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/numpydoc/init.py", >>>> line 5, in from .numpydoc import setupFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/numpydoc/numpydoc.py", >>>> line 31, in from .docscrape_sphinx import get_doc_object, >>>> SphinxDocStringFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/numpydoc/docscrape_sphinx.py", >>>> line 14, in from sphinx.jinja2glue import BuiltinTemplateLoaderFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/sphinx/jinja2glue.py", >>>> line 22, in from sphinx.application import TemplateBridgeFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/sphinx/application.py", >>>> line 30, in from sphinx.config import ConfigFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/sphinx/config.py", >>>> line 21, in from sphinx.util.i18n import format_dateFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/sphinx/util/i18n.py", >>>> line 19, in import babel.datesFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/babel/dates.py", >>>> line 29, in from babel.util import UTC, LOCALTZFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/babel/util.py", >>>> line 19, in from babel import localtimeFile >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/babel/localtime/init.py", >>>> line 74, in LOCALTZ = get_localzone()File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/babel/localtime/init.py", >>>> line 70, in get_localzonereturn _get_localzone()File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/babel/localtime/_unix.py", >>>> line 111, in _get_localzonewith open(tzpath, 'rt') as >>>> tzfile:PermissionError: [Errno 13] Permission denied: >>>> '/etc/sysconfig/clock'[W 2018-01-14 21:12:15.304 JupyterHub web:1587] 500 >>>> GET /hub/user/lta-uat-jupyter/ (10.8.95.244): Spawner failed to start >>>> [status=1]. The logs for lta-uat-jupyter may contain details.[D 2018-01-14 >>>> 21:12:15.305 JupyterHub base:633] No template for 500[E 2018-01-14 >>>> 21:12:15.312 JupyterHub log:114] {"X-Forwarded-Host": "10.8.104.243:8000 >>>> <http://10.8.104.243:8000>","X-Forwarded-Proto": "http","X-Forwarded-Port": >>>> "8000","X-Forwarded-For": "10.8.95.244","Cookie": >>>> "jupyter-hub-token="2|1:0|10:1515926469|17:jupyter-hub-token|44:ODAwNDdmYjE4Mzk2NGJjN2EwMGM2YjE4MzMwYTg1YzE=|f2851d4faab14bbc7acd3a1be2929b34141a99ebf58649f2655a441c1a1a4430"","Accept-Language": >>>> "en-US,en;q=0.8","Accept-Encoding": "gzip, deflate","Referer": >>>> "http://10.8.104.243:8000/hub/home >>>> <http://10.8.104.243:8000/hub/home>","Accept": >>>> "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/* >>>> ;q=0.8", >>>> "User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) >>>> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36", >>>> "Upgrade-Insecure-Requests": "1", >>>> "Connection": "close", >>>> "Host": "10.8.104.243:8000" >>>> } >>>> [E 2018-01-14 21:12:15.312 JupyterHub log:122] 500 GET >>>> /hub/user/lta-uat-jupyter/ ([email protected]) 10241.18ms >>>> [W 2018-01-14 21:12:34.672 JupyterHub user:458] lta-uat-jupyter's >>>> server never showed up at http://127.0.0.1:52731/user/lta-uat-jupyter/ >>>> after >>>> 30 seconds. Giving up >>>> [E 2018-01-14 21:12:34.756 JupyterHub gen:914] Exception in Future >>>> <tornado.concurrent.Future object at 0x7fc6a70361d0> after timeout >>>> Traceback (most recent call last): >>>> File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/tornado/gen.py", >>>> line 910, in error_callback >>>> future.result() >>>> File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jupyterhub/handlers/base.py", >>>> line 445, in finish_user_spawn >>>> yield spawn_future >>>> File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jupyterhub/user.py", >>>> line 476, in spawn >>>> raise e >>>> File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jupyterhub/user.py", >>>> line 450, in spawn >>>> resp = yield server.wait_up(http=True, timeout=spawner.http_timeout) >>>> File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jupyterhub/utils.py", >>>> line 180, in wait_for_http_server >>>> timeout=timeout >>>> File >>>> "/var/opt/teradata/anaconda3/lib/python3.6/site-packages/jupyterhub/utils.py", >>>> line 135, in exponential_backoff >>>> raise TimeoutError(fail_message) >>>> TimeoutError: Server at http://127.0.0.1:52731/user/lta-uat-jupyter/ didn't >>>> respond in 30 seconds >>>> >>>> [D 2018-01-14 21:16:48.695 JupyterHub proxy:552] Proxy: Fetching GET >>>> http://127.0.0.1:8001/api/routes >>>> 21:16:48.697 - info: [ConfigProxy] 200 GET /api/routes >>>> >>>> >>>> Thanks. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Project Jupyter" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To post to this group, send email to [email protected]. >>>> To view this discussion on the web visit https://groups.google.com/d/ms >>>> gid/jupyter/858f91a0-c9fc-48b6-afa3-6ef50216a43a%40googlegroups.com >>>> <https://groups.google.com/d/msgid/jupyter/858f91a0-c9fc-48b6-afa3-6ef50216a43a%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jupyter/2a3cc7de-47e2-4f07-88a7-ea556514dc85%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/2a3cc7de-47e2-4f07-88a7-ea556514dc85%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CANJQusV-%2BcKYfY8%3D7ODjXhZXQEUdsbCDB92ruvK14CVRP%3DunEg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
