Fixed.
Both below links helped:
https://github.com/jupyterhub/jupyterhub/issues/774
and
https://serverfault.com/questions/665709/allowing-node-js-applications-to-run-on-port-80

Guillaume

Le jeudi 3 août 2017 08:37:30 UTC+2, Guillaume Auber a écrit :
>
> Hi there,
> I am struggling getting jupyterhub up and running with ssl on AWS.
> I managed to create a certificate but as soon as I configure SSL on 
> jupyterhub_config.py, the server fails to start:
>
> ubuntu@ip-172-31-39-79:/srv/jupyterhub$ jupyterhub
> [I 2017-08-03 06:27:55.257 JupyterHub app:724] Loading cookie_secret from 
> /srv/jupyterhub/jupyterhub_cookie_secret
> [W 2017-08-03 06:27:55.299 JupyterHub app:365]
>     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 2017-08-03 06:27:55.303 JupyterHub app:864] No admin users, admin 
> interface will be unavailable.
> [W 2017-08-03 06:27:55.303 JupyterHub app:865] Add any administrative 
> users to `c.Authenticator.admin_users` in config.
> [I 2017-08-03 06:27:55.303 JupyterHub app:892] Not using whitelist. Any 
> authenticated user will be allowed.
> [I 2017-08-03 06:27:55.316 JupyterHub app:1453] Hub API listening on 
> http://127.0.0.1:8081/hub/
> [I 2017-08-03 06:27:55.319 JupyterHub app:1176] Starting proxy @ 
> http://*:443/
> 06:27:55.450 - info: [ConfigProxy] Adding route / -> http://127.0.0.1:8081
> 06:27:55.467 - info: [ConfigProxy] Proxying https://*:443 to 
> http://127.0.0.1:8081
> 06:27:55.468 - info: [ConfigProxy] Proxy API at 
> http://127.0.0.1:444/api/routes
> 06:27:55.474 - error: [ConfigProxy] Uncaught Exception Error: listen 
> EACCES 0.0.0.0:443
>     at Object.exports._errnoException (util.js:870:11)
>     at exports._exceptionWithHostPort (util.js:893:20)
>     at Server._listen2 (net.js:1224:19)
>     at listen (net.js:1273:10)
>     at net.js:1382:9
>     at nextTickCallbackWith3Args (node.js:452:9)
>     at process._tickCallback (node.js:358:17)
>     at Function.Module.runMain (module.js:444:11)
>     at startup (node.js:136:18)
>     at node.js:966:3
> 06:27:55.479 - error: [ConfigProxy] Uncaught Exception Error: listen 
> EACCES 127.0.0.1:444
>     at Object.exports._errnoException (util.js:870:11)
>     at exports._exceptionWithHostPort (util.js:893:20)
>     at Server._listen2 (net.js:1224:19)
>     at listen (net.js:1273:10)
>     at net.js:1382:9
>     at nextTickCallbackWith3Args (node.js:452:9)
>     at process._tickCallback (node.js:358:17)
>     at Function.Module.runMain (module.js:444:11)
>     at startup (node.js:136:18)
>     at node.js:966:3
> [C 2017-08-03 06:27:56.329 JupyterHub app:1459] Failed to start proxy
>     Traceback (most recent call last):
>       File 
> "/home/ubuntu/.local/lib/python3.5/site-packages/jupyterhub/app.py", line 
> 1457, in start
>         yield self.start_proxy()
>       File 
> "/home/ubuntu/.local/lib/python3.5/site-packages/jupyterhub/app.py", line 
> 1197, in start_proxy
>         _check()
>       File 
> "/home/ubuntu/.local/lib/python3.5/site-packages/jupyterhub/app.py", line 
> 1193, in _check
>         raise e
>     RuntimeError: Proxy failed to start with exit code 0
>
> My config file is very basic so far:
>
> c.JupyterHub.ssl_key = '/etc/letsencrypt/archive/XXXX/privkey1.pem'
> c.JupyterHub.ssl_cert = '/etc/letsencrypt/archive/XXXX/fullchain1.pem'
> c.JupyterHub.port = 443
>
> the server has a public ip and both ip and domain name are reachable...
> Any tip to help me moving ahead?
>
> Best, Guillaume
>
>

-- 
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/f1bf16b9-e840-4f0d-8f45-3226916772e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to