From dbb3336a838c503f2f63266b771874b4f5846295 Mon Sep 17 00:00:00 2001 From: Spencer Bliven Date: Thu, 14 Sep 2023 11:25:47 +0200 Subject: [PATCH] Add fix for /etc/bashrc not being sourced. --- pages/merlin6/99-support/faq.md | 4 ++++ pages/merlin6/99-support/known-problems.md | 23 ++++++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/pages/merlin6/99-support/faq.md b/pages/merlin6/99-support/faq.md index ccce63a..a5557f7 100644 --- a/pages/merlin6/99-support/faq.md +++ b/pages/merlin6/99-support/faq.md @@ -46,3 +46,7 @@ conda create --name myenv python==3.9 ... conda activate myenv ``` +## Something doesn't work + +Check the list of [known problems](/merlin6/known-problems.html) to see if a solution is known. +If not, please [contact the admins](/merlin6/contact.html). diff --git a/pages/merlin6/99-support/known-problems.md b/pages/merlin6/99-support/known-problems.md index f0221b9..a898083 100644 --- a/pages/merlin6/99-support/known-problems.md +++ b/pages/merlin6/99-support/known-problems.md @@ -1,7 +1,7 @@ --- title: Known Problems #tags: -keywords: known problems, troubleshooting, illegal instructions, paraview, ansys, shell, opengl, mesa +keywords: known problems, troubleshooting, illegal instructions, paraview, ansys, shell, opengl, mesa, vglrun, module: command not found, error last_updated: 07 September 2022 #summary: "" sidebar: merlin6_sidebar @@ -91,7 +91,7 @@ In this example, by setting an environment variable SRUN_CPUS_PER_TASK In general, **`/bin/bash` is the recommended default user's SHELL** when working in Merlin. -Some users might notice that BASH is not the default SHELL when login to Merlin systems, or they might need to run a different SHELL. +Some users might notice that BASH is not the default SHELL when logging in to Merlin systems, or they might need to run a different SHELL. This is probably because when the PSI account was requested, no SHELL description was specified or a different one was requested explicitly by the requestor. Users can check which is the default SHELL specified in the PSI account with the following command: @@ -159,3 +159,22 @@ fluent -driver x11 For running Paraview, one can run it with Mesa support or OpenGL support. Please refer to [OpenGL vs Mesa](/merlin6/known-problems.html#opengl-vs-mesa) for further information about how to run it. + +### Module command not found + +In some circumstances the module command may not be initialized properly. For instance, you may see the following error upon logon: + +``` +bash: module: command not found +``` + +The most common cause for this is a custom `.bashrc` file which fails to source the global `/etc/bashrc` responsible for setting up PModules in some OS versions. To fix this, add the following to `$HOME/.bashrc`: + +```bash +if [ -f /etc/bashrc ]; then + . /etc/bashrc +fi +``` + +It can also be fixed temporarily in an existing terminal by running `. /etc/bashrc` manually. +