in jupyterhub_config.py have you enabled the Authenticator with the line:
c.JupyterHub.authenticator_class = 'ltiauthenticator.LTIAuthenticator'

I assume jupyter.univexemple.com resolves to 127.0.0.1

are you loading the custom jupyterhub_config.py via the '-f' argument?

Is your web server configured for ssl? would that already be running on 
port 443 on 127.0.0.1?

Regards.

Rod


On Friday, 11 May 2018 15:31:09 UTC+1, amenokal wrote:
>
> Hi Rod
> Sorry for the lag, but time is necessary to build the right conf in an 
> "universitary framework" 
>
> I have a persistant error.
>
> 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 :
> "[I 2018-05-11 16:13:54.584 JupyterHub app:1539] Hub API listening on 
> http://127.0.0.1:8081/hub/
> [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.
>
> [I 2018-05-11 16:13:54.586 JupyterHub proxy:458] Starting proxy @ 
> https://jupyter.univexemple.com:443/
> [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
> [D 2018-05-11 16:13:54.591 JupyterHub proxy:552] Proxy: Fetching GET 
> http://127.0.0.1:8001/api/routes
> [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
>
>
>

-- 
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/34c544e3-d587-4452-8a4f-dd73fa2c03d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to