heh30 / ML_GalaxyQueue

Queue for MainLab Galaxy System Issues
0 stars 0 forks source link

Java not found. Please install Java 1.8 and place it on your path #4

Closed MingChen0919 closed 6 years ago

MingChen0919 commented 6 years ago

System information

Please enter the following information (if able).

*Galaxy Instance: test

Issue description

tool: statonlab_interproscan input: https://raw.githubusercontent.com/ebi-pf-team/interproscan/master/core/jms-implementation/support-mini-x86-32/test_proteins.fasta

screen shot 2018-05-30 at 2 31 13 pm

The job will finish without showing error on the galaxy history. the error message is in the log file from the output.

screen shot 2018-05-30 at 2 32 47 pm
heh30 commented 6 years ago

is job-script.sh something you've generated or is it galaxy generated?

MingChen0919 commented 6 years ago

it's generated by the galaxy tool.

heh30 commented 6 years ago

Okay. I'll see if there's a way to adjust it or if there's an alternative.

Basically, as single line: 'module load java' needs to be added before the interproscan script so it the proper environment variable is loaded.

MingChen0919 commented 6 years ago

do I have access to test galaxy server? If yes, I can do this. If not, you can find the "interproscan.Rmd" file within the aurora_statonlab_interproscan tool.

You can find the job-script.sh content within that file. You can add 'module load java' like below:

#---- build job script ----
cat >temp.sh <<EOL

module load java

/opt/main/InterProScan/5.28-67.0/interproscan.sh \\
  -i ${X_A} \\
  -f ${X_B} \\
  --disable-precalc ${X_C} \\
  --iprlookup ${X_D} \\
  --goterms ${X_E} \\
  --pathways ${X_F} \\
  --tempdir ${X_d}/temp_dir \\
  --output-dir ${X_d}/output_dir > /dev/null 2>&1

EOL
heh30 commented 6 years ago

You should have access. I ended up having to handle this a little differently than I originally expected. My job appears to be running, so I'll update with results when it completes.

To resolve this, I updated the environment_setup_file variable in the galaxy.yml file (yml in 18.05 rather than .ini seen in 17.09). It references an file located in the /main/sites/galaxy/test-galaxy directory where I'll update the PATH environment variable so the cluster nodes can 'see' the proper executable.

I used this as my guide https://biostar.usegalaxy.org/p/10367/ but it still wasn't recognizing the module command like it should have. I'll continue research, but a workaround is in place.

heh30 commented 6 years ago

Update: looks like my job completed successfully. Let me know if it works for you.

MingChen0919 commented 6 years ago

Good to know, thanks. Yes, i have access. But I can't edit files.

It's working now. I am closing this issue.