Skip to article frontmatterSkip to article content

You may run into different types of errors when you are using the JupyterHub or Jupyter notebooks. The majority of errors come from a few common causes and can be solved using the following methods.

nbgitpuller link errors are usually due to one of three issues.

Incompatible Browser

Unfortunately, the nbgitpuller software does not support the Microsoft Edge browser. If you click an nbgitpuller link in Edge, you will likely be taken to your datahub.berkeley.edu dashboard, but you won’t see your desired files there.

Open nbgitpuller links in Chrome, Firefox, or Safari.

If the nbgitpuller link was not generated correctly, you’ll see a red loading bar with an error message that says “Error: Command ‘[‘git’, ‘fetch’]’ returned non-zero exit status 128.” An example screenshot is below:

Example error output from nbgitpuller

Solution: re-generate the nbgitpuller link. Make sure that you’ve filled in the correct Jupyter hub URL, Github URL, branch, and file. Some tips:

Modified Content

If you make changes to an assignment on GitHub after students have started working on it, students that click the nbgitpuller link again may see a red loading bar and a message about a merge conflict. This occurs if the instructor and the student both change the same parts of the notebook: nbgitpuller doesn’t know how to integrate the instructor’s changes without overwriting student work, so it refuses to proceed. You can read more about nbgitpuller’s automatic merging behavior.

Solutions

Rename Files

The easiest and most conservative solution is to rename the file or folder that contains the incompatible changes, then click the nbgitpuller link again. If the file or folder is renamed to anything else (e.g. “SOC-5-old”), nbgitpuller will clone a fresh copy of the problematic files to the student’s Jupyterhub. They can then copy over any work from the old version of the file.

When you face an error like below, do the following steps

Here is how the admin dashboard looks like!

Figure 1:Here is how the admin dashboard looks like!

Here is the steps required to rename the folder!

Figure 2:Here is the steps required to rename the folder!

git stash

If you have command line experience then you can use “git stash” command in terminal to temporarily remove the incompatible changes.

Launch a terminal

Figure 3:Launch a terminal

Output from git stash command

Figure 4:Output from git stash command

The best advice, however, is to avoid making changes to assignments once they’ve been released to students if at all possible.