WilhelmusLab / ice-floe-tracker-pipeline

Processing pipeline for IceFloeTracker.jl
1 stars 2 forks source link

Debug Cylc crashing during `job.sh` run on Oscar #153

Closed tdivoll closed 3 months ago

tdivoll commented 3 months ago

I have been getting an error trying to use Cylc that suggests cylc is not found half way through the job.sh, specifically lines 130 and 164 of the job.sh.

The workflow:

Things I have tried:

  1. install the cylc wrapper script as suggested in the linked thread and set the env var for Cylc version
  2. add CYLC_HOME_ROOT="${CYLC_HOME_ROOT:-/users/tdivoll/.conda/envs/ift-cylc/bin/cylc}" to .bash_profile as a temp hack to see if it works
  3. check that I don't have conda config --set auto_activate_base=true in .bashrc, .bash_profile, or .zshrc. See this thread for context.
tdivoll commented 3 months ago

SOLUTION:

.bashrc was being sourced on bash_profile! After I deleted this block from .bash_profile, Cylc works.

# Get the aliases and functions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

I suspect it was the Conda init block on the .bashrc that gets added by default when using Conda on Oscar. Essentially it would either activate the base environment inside the ift-env or just switch to base from ift-env (I'm still not sure which case is true), which then didn't have Cylc.

tdivoll commented 3 months ago

@hollandjg, for context as you move into using Cylc on Oscar