Hello everyone,
I apologize if this question has a readily available answer somewhere, but I've been looking for a solution for a while without any luck. I have jupyterhub working and can create and run notebooks without any issue. My problem is that I can't seem to get jupyterhub to write to the log file that I entered in the config file. Here are all of the lines I have in my jupyterhub_config.py file:
c = get_config()
c.JupyterHub.hub_ip = '172.16.2.1'
c.JupyterHub.proxy_api_port = 5432
c.JupyterHub.hub_port = 54321
c.JupyterHub.port = 443
c.JupyterHub.proxy_api_ip = '172.16.2.1'
c.JupyterHub.log_file = '/var/log/jupyterhub.log'
I'm logged in as root when I run jupyterhub, so permissions shouldn't be an issue. When I run jupyterhub, this is what I get:
[root@head jupyterhub]# jupyterhub --debug -f /etc/jupyterhub/jupyterhub_config.py
[D 2015-07-09 15:56:54.495 JupyterHub application:250] Config changed:
[D 2015-07-09 15:56:54.497 JupyterHub application:251] {'JupyterHub': {'config_file': '/etc/jupyterhub/jupyterhub_config.py', 'log_level': 10}}
[D 2015-07-09 15:56:54.497 JupyterHub application:528] Attempting to load config file /etc/jupyterhub/jupyterhub_config.py in path None
[D 2015-07-09 15:56:54.497 JupyterHub application:531] Attempting to load config file /etc/jupyterhub/jupyterhub_config.json in path None
[D 2015-07-09 15:56:54.498 JupyterHub application:548] Loaded config file: /etc/jupyterhub/jupyterhub_config.py
[D 2015-07-09 15:56:54.502 JupyterHub application:250] Config changed:
[D 2015-07-09 15:56:54.502 JupyterHub application:251] {'JupyterHub': {'log_file': '/var/log/jupyterhub.log', 'log_level': 10, 'proxy_api_port': 5432, 'config_file': '/etc/jupyterhub/jupyterhub_config.py', 'proxy_api_ip': '172.16.2.1', 'hub_port': 54321, 'hub_ip': '172.16.2.1', 'port': 443}}
[I 2015-07-09 15:56:54.503 JupyterHub app:518] Loading cookie_secret from /home/mkg52/Jupyter/jupyterhub/jupyterhub/jupyterhub_cookie_secret
[D 2015-07-09 15:56:54.504 JupyterHub app:545] Connecting to db: sqlite:///jupyterhub.sqlite
[W 2015-07-09 15:56:54.654 JupyterHub app:256]
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.
[I 2015-07-09 15:56:54.880 JupyterHub app:619] Not using whitelist. Any authenticated user will be allowed.
[D 2015-07-09 15:56:54.884 JupyterHub app:695] Loaded users:
mkg52 admin
[I 2015-07-09 15:56:54.907 JupyterHub app:754] Starting proxy @ http://*:443/
[D 2015-07-09 15:56:54.907 JupyterHub app:755] Proxy cmd: ['configurable-http-proxy', '--ip', '', '--port', '443', '--api-ip', '172.16.2.1', '--api-port', '5432', '--default-target', 'http://172.16.2.1:54321'] [D 2015-07-09 15:56:55.374 JupyterHub app:783] Proxy started and appears to be up
Then when I do a few things like create and run a couple of notebooks, I checked the the log file and it was never even created:
[root@head jupyterhub]# cat /var/log/jupyterhub.log
cat: /var/log/jupyterhub.log: No such file or directory
[root@head jupyterhub]# ls /var/log |grep "jupyterhub*"
[root@head jupyterhub]#
So I'm not sure how to actually enable the logging. I even tried the --debug option, but as you can see above, it still says the log level is 10, not 0 like it should be. Does anyone have any ideas?
Thank you for your help,
Mike