Hi all,
Just thought I’d post this in case anyone else came across it. My personal Test Daml/Canton ‘server’ is running a vanilla, near-new Debian 12 ‘Bookworm’ O/S that I installed using the Automatic Partitioning tool.
Last night, I went to install Daml SDK Open Source on it and was getting errors, these were stating that the MKTEMP directory could not be written to as there was insufficient storage.
Checking the /etc/fstab
I noted that the /tmp directory was set to 2GB with 95% available and I thought that it would be enough for the Daml SDK build. It was not.
The solution?
$ mkdir -p ${HOME}/daml-sdk-install-temp-dir
$ export TEMPDIR="${HOME}/daml-sdk-install-temp-dir/"
$ curl -sSL https://get.daml.com/ | sh
$ echo 'export PATH="$HOME/.daml/bin:$PATH"' >> ~/.bashrc
$ source ~/.bashrc
$ daml version
SDK versions:
2.8.3 (default SDK version for new projects)
Thanks to PG for the tip about a temporary installation directory!
Ubuntu provides a much larger /tmp directory by default so this is unlikely to be an issue for anyone using a Cloud VM.
If you do choose a Debian-based VM Image, check the /tmp partition size.
Hope this helps someone.