Learning objectives¶
After this section, you will be able to:
use the build log to find the first useful error;
recognise common causes of build and runtime failures.
Build fails¶
Open the build log. Start near the bottom, then look upward for the errors. Typical causes include:
a typo in the package name;
a version that is unavailable;
incompatibility in pinned versions;
a file referenced by the build that was not committed.
Fix one problem at a time, then commit the change and submit the build again (as described in the previous lesson).
Check the code itself¶
Once JupyterLab opens:
open the notebook ;
run all cells from top to bottom;
check that outputs are created where expected.
This way you can find problems that do not come up during image construction, such as missing input data or incorrect paths.
Reporting issues¶
If you are having problems building someone else’s images, here is what is useful to report:
the repository URL;
the branch, tag or commit used;
the relevant error lines from the build log;
what changed since the last successful build.
Small exercise¶
Deliberately add a nonexistent package to a test requirements.txt you created in the previous lesson. Launch a build and locate the error in the log. Then remove it and rebuild.