Git Product home page Git Product logo

Comments (2)

jhamrick avatar jhamrick commented on May 26, 2024

That's definitely strange that you do not have access to the formgrader anymore. I'm not sure what the cause of that might be... at what path are people accessing the formgrader? Can you provide any command line output from when you try to access it vs. when someone else does?

Also, one thing to note is that for multiple graders you do actually still want to use a JupyterHub service. I realize this wasn't very clear before, and have recently updated the nbgrader documentation to be more explicit about this: http://nbgrader.readthedocs.io/en/latest/configuration/jupyterhub_config.html

from jupyterhub-deploy-teaching.

lukassnoek avatar lukassnoek commented on May 26, 2024

Thanks for your quick reply! I managed to find the issue causing the 404. When I started Jupyter from the command line on the server ($ jupyter notebook), I got the following output:

lsnoek1@neuroimaging:~$ jupyter notebook
[I 14:33:32.246 NotebookApp] Loading the assignment_list nbgrader serverextension
[I 14:33:32.250 NotebookApp] Loading the formgrader nbgrader serverextension
[W 14:33:32.252 NotebookApp] Error loading server extension nbgrader.server_extensions.formgrader
    Traceback (most recent call last):
      File "/opt/conda/lib/python3.5/site-packages/notebook/notebookapp.py", line 1346, in init_server_extensions
        func(self)
      File "/opt/conda/lib/python3.5/site-packages/nbgrader/server_extensions/formgrader/formgrader.py", line 72, in load_jupyter_server_extension
        formgrader.initialize([])
      File "<decorator-gen-117>", line 2, in initialize
      File "/opt/conda/lib/python3.5/site-packages/traitlets/config/application.py", line 87, in catch_config_error
        return method(app, *args, **kwargs)
      File "/opt/conda/lib/python3.5/site-packages/nbgrader/apps/baseapp.py", line 245, in initialize
        self.init_logging(logging.FileHandler, [self.logfile], color=False)
      File "/opt/conda/lib/python3.5/site-packages/nbgrader/apps/baseapp.py", line 81, in init_logging
        handler = handler_class(*handler_args)
      File "/opt/conda/lib/python3.5/logging/__init__.py", line 1008, in __init__
        StreamHandler.__init__(self, self._open())
      File "/opt/conda/lib/python3.5/logging/__init__.py", line 1037, in _open
        return open(self.baseFilename, self.mode, encoding=self.encoding)
    PermissionError: [Errno 13] Permission denied: '/home/lsnoek1/.nbgrader.log'

Turned out that, for some reason, the .nbgrader.log file was owned by root:

-rw-r--r--  1 root    root          232 okt 18 14:21 .nbgrader.log

Anyway, when I changed owner (sudo chown lsnoek1:lsnoek1 .nbgrader.log) and restarted the server, the formgrader worked again. Interestingly, this root-issue was only the case for the "owner" account; the .nbgrader.log files for the other graders and students are owned by their own account, explaining why they in fact could access the formgrader. No clue why my .nbgrader.log file was owned by root ... I probably did something stupid on my side ...

Anyway, thanks again for the help and keep up the good work with nbgrader :-)

Ps. Also, thanks for updating the nbgrader documentation. Our course using jupyterhub/nbgrader has already started, but I'll definitely use the set-up described in the documentation for our next course.

from jupyterhub-deploy-teaching.

Related Issues (20)

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.