Git Product home page Git Product logo

jupyter-hub-oauth-matlab's People

Contributors

benjamin-heasly avatar

Watchers

 avatar  avatar

jupyter-hub-oauth-matlab's Issues

FileNotFoundError: [Errno 2] No such file or directory: '/srv/oauthenticator/userlist'

Also when I am only running the docker command as you told in readme I get this error:

jalal@klein:~/computer_vision/dockerz/jupyter-hub-oauth-matlab$ sudo docker run --rm -p 80:8000 --rm -v /usr/local/MATLAB/R2016a:/usr/local/MATLAB/from-host -v /home/jalal/matlab-docker:/var/log/matlab --mac-address=0C:C4:7A:6B:03:26 ninjaben/jupyter-hub-oauth-matlab
cp: cannot stat ‘/var/jupyter/ssl/ssl.crt’: No such file or directory
cp: cannot stat ‘/var/jupyter/ssl/ssl.key’: No such file or directory
cp: cannot stat ‘/var/jupyter/userlist’: No such file or directory
chmod: cannot access ‘/srv/oauthenticator/ssl/ssl.crt’: No such file or directory
chmod: cannot access ‘/srv/oauthenticator/ssl/ssl.key’: No such file or directory
cat: userlist: No such file or directory
[E 2016-09-01 18:36:10.034 JupyterHub application:546] Exception while loading config file /srv/oauthenticator/jupyterhub_config.py
    Traceback (most recent call last):
      File "/opt/conda/lib/python3.5/site-packages/traitlets/config/application.py", line 534, in _load_config_files
        config = loader.load_config()
      File "/opt/conda/lib/python3.5/site-packages/traitlets/config/loader.py", line 458, in load_config
        self._read_file_as_dict()
      File "/opt/conda/lib/python3.5/site-packages/traitlets/config/loader.py", line 490, in _read_file_as_dict
        py3compat.execfile(conf_filename, namespace)
      File "/opt/conda/lib/python3.5/site-packages/ipython_genutils/py3compat.py", line 185, in execfile
        exec(compiler(f.read(), fname, 'exec'), glob, loc)
      File "/srv/oauthenticator/jupyterhub_config.py", line 39, in <module>
        with open(join(root, 'userlist')) as f:
    FileNotFoundError: [Errno 2] No such file or directory: '/srv/oauthenticator/userlist'

[I 2016-09-01 18:36:10.036 JupyterHub app:674] Writing cookie_secret to /srv/oauthenticator/jupyterhub_cookie_secret
[W 2016-09-01 18:36:10.373 JupyterHub app:336] 
    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 2016-09-01 18:36:10.424 JupyterHub app:793] No admin users, admin interface will be unavailable.
[W 2016-09-01 18:36:10.424 JupyterHub app:794] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2016-09-01 18:36:10.425 JupyterHub app:821] Not using whitelist. Any authenticated user will be allowed.
[I 2016-09-01 18:36:10.448 JupyterHub app:1290] Hub API listening on http://127.0.0.1:8081/hub/
[E 2016-09-01 18:36:10.471 JupyterHub app:1021] Refusing to run JuptyterHub without SSL. If you are terminating SSL in another layer, pass --no-ssl to tell JupyterHub to allow the proxy to listen on HTTP.

JupyterHub is NOT running at http://127.0.0.1:443/

When I browse to http://127.0.0.1:443/ I see nothing. Even though I got no error after running the following command:

jalal@klein:~/computer_vision/dockerz/jupyter-hub-oauth-matlab$ sudo ./deploy-helper 
Generating a 2048 bit RSA private key
....+++
................................................................+++
writing new private key to '/home/jalal/computer_vision/dockerz/jupyter-hub-oauth-matlab/ssl/ssl.key'
-----
Signature ok
subject=/C=US/ST=YourState/L=YourLocale/O=YourOrganization/OU=YourDepartment/CN=your.domain
Getting Private key
Unable to find image 'ninjaben/jupyter-hub-oauth-matlab:latest' locally
latest: Pulling from ninjaben/jupyter-hub-oauth-matlab
7d7852532044: Pull complete 
435cb21051b6: Pull complete 
ad65ec3cd5f8: Pull complete 
32cf0d2899a4: Pull complete 
7d306ae93c64: Pull complete 
957cc8a29234: Pull complete 
ca8de804bcc2: Pull complete 
ac8e6c6f66a0: Pull complete 
e481159db4b7: Pull complete 
ff83bce68a32: Pull complete 
37100090213d: Pull complete 
0ea54dbc6d39: Pull complete 
0bbf43772c97: Pull complete 
45eeb72e9d31: Pull complete 
2917a918b1fa: Pull complete 
e107d6d656ec: Pull complete 
78d924368162: Pull complete 
3f919fc3434b: Pull complete 
4e8be83c76c4: Pull complete 
6b3b01162edc: Pull complete 
a63ac01ddfcd: Pull complete 
b01daddfe55c: Pull complete 
033617abf057: Pull complete 
ff8a6efae3d7: Pull complete 
dc1ae4fc88c6: Pull complete 
18fe4eeeee04: Pull complete 
052588232309: Pull complete 
6c023d4105e7: Pull complete 
f1d6fc3eeb77: Pull complete 
e44d5cac400d: Pull complete 
e390411a4828: Pull complete 
88c8727b3ecf: Pull complete 
54719d652302: Pull complete 
f2a29566257f: Pull complete 
ccc709c6aa56: Pull complete 
6553c0bbbbc0: Pull complete 
c6015571ae61: Pull complete 
114ee49ec6aa: Pull complete 
226e2436385b: Pull complete 
9004c4a10bf0: Pull complete 
9790e0c62525: Pull complete 
Digest: sha256:00845ec27aedf0eaf474c11e2a5687864f9d610b4b01b1eebc006a031e6fe20f
Status: Downloaded newer image for ninjaben/jupyter-hub-oauth-matlab:latest
adding user [email protected]
adding user [email protected]
[D 2016-09-01 18:19:16.137 JupyterHub app:669] Generating new cookie_secret
[I 2016-09-01 18:19:16.138 JupyterHub app:674] Writing cookie_secret to /srv/oauthenticator/jupyterhub_cookie_secret
[D 2016-09-01 18:19:16.138 JupyterHub app:725] Connecting to db: sqlite:///jupyterhub.sqlite
[W 2016-09-01 18:19:16.461 JupyterHub app:336] 
    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 2016-09-01 18:19:16.546 JupyterHub app:945] Loaded users: 
    [email protected] admin
    [email protected]
[I 2016-09-01 18:19:16.555 JupyterHub app:1290] Hub API listening on http://127.0.0.1:8081/hub/
[I 2016-09-01 18:19:16.560 JupyterHub app:1026] Starting proxy @ http://*:443/
[D 2016-09-01 18:19:16.560 JupyterHub app:1027] Proxy cmd: ['configurable-http-proxy', '--ip', '', '--port', '443', '--api-ip', '127.0.0.1', '--api-port', '444', '--default-target', 'http://127.0.0.1:8081', '--error-target', 'http://127.0.0.1:8081/hub/error', '--ssl-key', '/srv/oauthenticator/ssl/ssl.key', '--ssl-cert', '/srv/oauthenticator/ssl/ssl.crt']
18:19:16.707 - info: [ConfigProxy] Proxying https://*:443 to http://127.0.0.1:8081
18:19:16.710 - info: [ConfigProxy] Proxy API at http://127.0.0.1:444/api/routes
[D 2016-09-01 18:19:16.766 JupyterHub app:1055] Proxy started and appears to be up
[I 2016-09-01 18:19:16.767 JupyterHub app:1313] JupyterHub is now running at http://127.0.0.1:443/

Can you please guide?

Allow admins to pull on tool boxes

Currently the toolbox folder /usr/local/MATLAB/toolboxes is owned by root. This means we can only clone or pull on toolboxes during the Docker build or by a combination of ssh to the server and docker exec into the container.

We should open the toolboxes permissions in the Docker file so that admin users will be able to pull on toolboxes through the JupyterHub web terminal interface.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.