Hi there
I created a Docker image of a Galaxy instance with some tools installed from the toolshed. It worked (almost) perfectly, except that the tools dependencies were not installed, I had to install them "manually" in my Dockerfile, which is quite tedious. I probably missed something with the configuration for automated dependencies install.
Here i'm making some tests with the bedtools, without manual installation of the bedtools, and my jobs are red saying that the tool is not found.
I started from bgruening/galaxy-stable, which is the version 17.01 so conda is supposed to be automatically installed and check for missing dependencies.
In the galaxy.ini file, I set the conda_auto_init and conda_auto_install param to True, and I un-commented the lines about conda_ensure_channels and conda_prefix. It did nothing.
After launching my instance I also tried to desinstall and reinstall the tool via the admin panel and I made sure that the box "When available, install Conda managed tool dependencies?" was checked. It still doesn't work. In the "manage install tools" panel, when I click on bedtools for more details, it still tells me that samtools and bedtools are not installed.
Here is the content of handler0.log after I launched a job:
galaxy.tools.deps DEBUG 2017-07-17 12:58:31,199 Find dependency bedtools version 2.26.0gx
galaxy.tools.deps.conda_util DEBUG 2017-07-17 12:58:31,200 Executing command: /galaxy-central/<tool_dependency_dir>/_conda/bin/conda create -y --name __bedtools@2.26.0gx bedtools=2.26.0gx
galaxy.tools.deps.resolvers.conda DEBUG 2017-07-17 12:58:31,207 Removing failed conda install of bedtools, version '2.26.0gx'
galaxy.tools.deps.conda_util DEBUG 2017-07-17 12:58:31,208 Executing command: /galaxy-central/<tool_dependency_dir>/_conda/bin/conda create -y --name __bedtools@_uv_ bedtools
galaxy.tools.deps.resolvers.conda DEBUG 2017-07-17 12:58:31,216 Removing failed conda install of bedtools, version 'None'
galaxy.tools.deps DEBUG 2017-07-17 12:58:31,217 Dependency bedtools not found.
galaxy.jobs.command_factory INFO 2017-07-17 12:58:31,257 Built script [/export/galaxy-central/database/job_working_directory/000/3/tool_script.sh] for tool command [bedtools --version > /export/galaxy-central/database/files/GALAXY_VERSION_STRING_3 2>&1; sortBed -i '/export/galaxy-central/database/files/000/dataset_1.dat' -chrThenScoreA > '/export/galaxy-central/database/files/000/dataset_3.dat']
galaxy.tools.deps DEBUG 2017-07-17 12:58:31,353 Find dependency samtools version None
galaxy.tools.deps.conda_util DEBUG 2017-07-17 12:58:31,353 Executing command: /galaxy-central/<tool_dependency_dir>/_conda/bin/conda create -y --name __samtools@_uv_ samtools
galaxy.tools.deps.resolvers.conda DEBUG 2017-07-17 12:58:31,361 Removing failed conda install of samtools, version 'None'
galaxy.tools.deps.conda_util DEBUG 2017-07-17 12:58:31,361 Executing command: /galaxy-central/<tool_dependency_dir>/_conda/bin/conda create -y --name __samtools@_uv_ samtools
galaxy.tools.deps.resolvers.conda DEBUG 2017-07-17 12:58:31,369 Removing failed conda install of samtools, version 'None'
galaxy.tools.deps DEBUG 2017-07-17 12:58:31,369 Dependency samtools not found.
Can you help me?
You don't need to change anything in your galaxy.ini it should work out of the box. Can you verify that this also happens to other tools? I just checked with bgruening/galaxy-stable:17.05 and this works for me.