AiiDA not getting number of jobs from scheduler

Hi Sebastiaan, thanks for the quick reply.

Here is the output of qstat -f (just showing for one of my jobs):

Job Id: 26571.ada
    Job_Name = aiida-1100
    job_state = Q
    queue = par128
    server = ada
    Checkpoint = u
    ctime = Fri Nov 24 10:01:54 2023
    Error_Path = lovelace:/work/dorinitt/.aiida/f6/96/a6c0-6689-4234-a459-cf63d
	9933a5c/_scheduler-stderr.txt
    Hold_Types = n
    Join_Path = n
    Keep_Files = n
    Mail_Points = n
    mtime = Fri Nov 24 10:01:55 2023
    Output_Path = lovelace:/work/dorinitt/.aiida/f6/96/a6c0-6689-4234-a459-cf63
	d9933a5c/_scheduler-stdout.txt
    Priority = 0
    qtime = Fri Nov 24 10:01:54 2023
    Rerunable = False
    Resource_List.cput = 21504:00:00
    Resource_List.mpiprocs = 128
    Resource_List.ncpus = 128
    Resource_List.nodect = 1
    Resource_List.place = free
    Resource_List.Qlist = par128
    Resource_List.select = 1:mpiprocs=128:ncpus=128
    Resource_List.walltime = 168:00:00
    substate = 10
    Variable_List = PBS_O_HOME=/home/lovelace/proj/proj962/dorinitt,
	PBS_O_LANG=en_US.UTF-8,PBS_O_LOGNAME=dorinitt,
	PBS_O_PATH=/home/lovelace/proj/proj962/dorinitt/programs/miniforge3/en
	vs/aiida/bin:/home/lovelace/proj/proj962/dorinitt/programs/miniforge3/e
	nvs/aiida/bin:/home/lovelace/proj/proj962/dorinitt/programs/miniforge3/
	envs/aiida/bin:/home/lovelace/proj/proj962/dorinitt/programs/miniforge3
	/condabin:/home/lovelace/proj/proj962/dorinitt/.local/bin:/home/lovelac
	e/proj/proj962/dorinitt/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/us
	r/sbin:/opt/pbs/bin,PBS_O_MAIL=/var/spool/mail/dorinitt,
	AIIDA_PATH=/home/lovelace/proj/proj962/dorinitt/.aiida,
	MODULESHOME=/opt/ohpc/admin/lmod/lmod,CONDA_DEFAULT_ENV=aiida,
	LMOD_SETTARG_FULL_SUPPORT=no,HISTSIZE=1000,
	LMOD_PKG=/opt/ohpc/admin/lmod/lmod,
	XML_CATALOG_FILES=file:///home/lovelace/proj/proj962/dorinitt/programs
	/miniforge3/envs/aiida/etc/xml/catalog file:///etc/xml/catalog,
	LMOD_CMD=/opt/ohpc/admin/lmod/lmod/libexec/lmod,
	LESSOPEN=||/usr/bin/lesspipe.sh %s,OMP_NUM_THREADS=1,
	LMOD_FULL_SETTARG_SUPPORT=no,
	LMOD_DIR=/opt/ohpc/admin/lmod/lmod/libexec,LC_TIME=pt_BR.UTF-8,
	BASH_FUNC_which%%=() {  ( alias; eval ${which_declare} ) | /usr/bin/wh
	ich --tty-only --read-alias --read-functions --show-tilde --show-dot $@
	
},
	BASH_FUNC_module%%=() {  if [ -z \"${LMOD_SH_DBG_ON+x}\" ]; then
 case
	 \"$-\" in 
 *v*x*)
 __lmod_sh_dbg=\'vx\'
 ;; *v*)
 __lmod_sh_dbg=\'v\'
	
 ;; *x*)
 __lmod_sh_dbg=\'x\'
 ;; esac; fi; if [ -n \"${__lmod_sh_dbg:
	-}\" ]; then
 set +$__lmod_sh_dbg; echo \"Shell debugging temporarily s
	ilenced: export LMOD_SH_DBG_ON=1 for Lmod\'s output\" 1>&2; fi; eval \"
	$($LMOD_CMD $LMOD_SHELL_PRGM \"$@\")\" && eval \"$(${LMOD_SETTARG_CMD:-
	:} -s sh)\"; __lmod_my_status=$?; if [ -n \"${__lmod_sh_dbg:-}\" ]; the
	n
 echo \"Shell debugging restarted\" 1>&2; set -$__lmod_sh_dbg; fi; un
	set __lmod_sh_dbg; return $__lmod_my_status
},
	BASH_FUNC_ml%%=() {  eval \"$($LMOD_DIR/ml_cmd \"$@\")\"
},
	_=/opt/pbs/bin/qsub,PBS_O_QUEUE=par128,PBS_O_HOST=lovelace
    comment = Not Running: Insufficient amount of resource: Qlist 
    etime = Fri Nov 24 10:01:54 2023
    eligible_time = 00:00:20
    Submit_arguments = _aiidasubmit.sh
    project = _pbs_project_default
    Submit_Host = lovelace

With this output I saw that the error come from the “BASH_FUNC_module”. I don’t quite understand why it is writing this (weirdly only to my jobs). I have AiiDA running normally on another computer computer that also uses PBS, and this line does not appear on the qstat -f for my jobs. Do you think it can be related to the VASP that is compiled on the environment module of the cluster?