Hi Xavier,
On 07/07/14 14:59, Xavier Besseron wrote:
Hi Easybuilders,
I am trying to use the develop branch of EasyBuild (to test and
prepare future PRs) but it fails.
$ eb --version
This is EasyBuild 1.14.0dev-rc701533147f956fa680b05ddeb043f37d4bba758
(framework: 1.14.0dev-rc701533147f956fa680b05ddeb043f37d4bba758,
easyblocks: 1.14.0dev-rc2a9231abb0a7fc951e7909a18a8abb55a3d2e42) on
host xavier-workstation.
$ eb --debug -S GCC
== temporary log file in case of crash
/tmp/easybuild-oQ2Uot/easybuild-UpUFfC.log
ERROR: EasyBuild crashed with an error (at
easybuild/easybuild-develop/easybuild-framework/easybuild/tools/filetools.py:800
in mkdir): Failed to create directory
/usr/Modules/$MODULE_VERSION/modulefiles: [Errno 13] Permission
denied: '/usr/Modules'
It looks like EasyBuild is trying to create the directory /usr/Modules
but it fails because I'm just a normal user.
This is on my Ubuntu 14.04 based workstation. It also happens on the
nodes of our Debian Squeeze-based cluster, but with a different path.
$ eb --debug -S GCC
== temporary log file in case of crash
/tmp/easybuild-VQfQO0/easybuild-MUyA42.log
ERROR: EasyBuild crashed with an error (at
easybuild/easybuild-develop/easybuild-framework/easybuild/tools/filetools.py:800
in mkdir): Failed to create directory /opt/apps/HPCBIOS/modules/bench:
[Errno 13] Permission denied: '/opt/apps/HPCBIOS/modules/bench'
Thes logfiles are in attachment.
Do you have an idea of what is going on?
Let me know if you need more information.
Thanks for your help.
I ran into this issue as well, but only realized after reading your mail
(I figured I screwed up my environment, as I often do when playing
around, and just started over).
The issue is that EasyBuild reads $MODULEPATH, and then later tries to
make sure that each of the directories present in $MODULEPATH exist,
since it'll run "module use" on them (and others, e.g.
$prefix/modules/all) later (which will/may fail if the specified path
doesn't exist).
Of course, it shouldn't be doing that on all paths, but only on the ones
it's configured to generate module files in.
A fix is available in
https://github.com/hpcugent/easybuild-framework/pull/969, please review
so it can be merged in for the upcoming EasyBuild v1.14 (I'm closing in
on that).
I also enhanced the unit tests such that we don't run into this problem
again in the future.
regards,
Kenneth