Sorry for the lag, but time is necessary to build the right conf in an "universitary framework"
Please let me describe you my configuration :
- on a local server ubuntu 16.04, I have moodle 3.4 and jupyter 0.0.8, configured with https, each working well,
- I installed the script $ sudo pip install jupyterhub-ltiauthenticator
- in the jupyterhub_config.py, I add
c.LTIAuthenticator.consumers = {
"client_key": "secret"
}
- "client_key" and "secret" generated by 'openssl rand -hex 32'
- in moodle, i add an External tool configuration with the url '
https://127.0.0.1/hub/lti/launch' and
'
Consumer key'='
client_key
' and '
Shared secret
'='secret'
but JupyterHub crashed, here an extract of the jupyter log :
[W 2018-05-11 16:13:54.585 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.
[D 2018-05-11 16:13:54.586 JupyterHub proxy:459] Proxy cmd: ['configurable-http-proxy', '--ip', '
jupyter.univexemple.com', '--port', '443', '--api-ip', '127.0.0.1', '--api-port', '8001', '--error-target', '
http://127.0.0.1:8081/hub/error', '--ssl-key', '/etc/jupyterhub/jupyter.univexemple.key', '--ssl-cert', '/etc/jupyterhub/jupyter.univexemple.crt']
[D 2018-05-11 16:13:54.590 JupyterHub proxy:491] Proxy started and appears to be up
[E 2018-05-11 16:13:54.614 JupyterHub app:1634]
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/jupyterhub/app.py", line 1632, in launch_instance_async
yield self.start()
File "/usr/local/lib/python3.5/dist-packages/jupyterhub/app.py", line 1580, in start
yield self.proxy.check_routes(self.users, self._service_map)
File "/usr/local/lib/python3.5/dist-packages/jupyterhub/proxy.py", line 294, in check_routes
routes = yield self.get_all_routes()
File "/usr/local/lib/python3.5/dist-packages/jupyterhub/proxy.py", line 589, in get_all_routes
resp = yield self.api_request('', client=client)
tornado.httpclient.HTTPError: HTTP 403: Forbidden
[D 2018-05-11 16:13:54.637 JupyterHub application:647] Exiting application: jupyterhub"
Please tell me where I am wrong.
Regards
Amenokal