When I attempt to launch my Open OnDemand HPC Interactive Desktop session, I get an error that looks like the following. Why does this occur, and what can be done about it?
The most common cause of the mentioned error is that the command conda init
was used at some point with your account on Cheaha, creating a block in your .bashrc
file that looks like the following section.
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/<YOUR_USER>/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/<YOUR_USER>/miniconda3/etc/profile.d/conda.sh" ]; then
. "/home/<YOUR_USER>/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/home/<YOUR_USER>/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
Anaconda is managed as a module on Cheaha, so it is unnecessary to use conda init
, and can cause issues with Open OnDemand. To avoid the issue reoccurring, please do not use conda init
on Cheaha.
To resolve this issue, you’ll need to locate the hidden file .bashrc
in the file browser pane and select it. Please refer to this other Ask.ci question to find hidden files: How do I locate hidden dot files on Open OnDemand?
Click the “Edit” button. In the new tab that opens, delete the section shown above and click “Save”.
Please try to launch your job again. If it still doesn’t work, please contact Support