Question: Problem with SGE_ROOT, SGE / drmaa with Galaxy (updated)
gravatar for danielfortin86
2.8 years ago by
United States
danielfortin86110 wrote:


I'm trying to get my local Galaxy to submit jobs to an SGE cluster. However, I'm having problems with the configuration. I'm trying to use DRMAA but am getting an error that my SGE_ROOT isn't set, but I have set it. I've included the relevant lines from my paster.log, job_conf.xml and my $DRMAA_LIBRARY_PATH, $SGE_ROOT. Any suggestions would be greatly appreciated!



echo $SGE_ROOT



paster.log: DEBUG 2016-02-24 11:21:04,767 Loaded 'failure' state handler from module
Traceback (most recent call last):
  File "/opt/galaxy/lib/galaxy/webapps/galaxy/", line 64, in paste_app_factory
    app = global_conf=global_conf, **kwargs )
  File "/opt/galaxy/lib/galaxy/", line 142, in __init__
    self.job_manager = manager.JobManager( self )
  File "/opt/galaxy/lib/galaxy/jobs/", line 23, in __init__
    self.job_handler = handler.JobHandler( app )
  File "/opt/galaxy/lib/galaxy/jobs/", line 32, in __init__
    self.dispatcher = DefaultJobDispatcher( app )
  File "/opt/galaxy/lib/galaxy/jobs/", line 722, in __init__
    self.job_runners = )
  File "/opt/galaxy/lib/galaxy/jobs/", line 668, in get_job_runner_plugins
    rval[id] = runner_class(, runner[ 'workers' ], **runner.get( 'kwds', {} ) )
  File "/opt/galaxy/lib/galaxy/jobs/runners/", line 83, in __init__
  File "/opt/galaxy/eggs/drmaa-0.7.6-py2.6.egg/drmaa/", line 257, in initialize
  File "/opt/galaxy/eggs/drmaa-0.7.6-py2.6.egg/drmaa/", line 73, in py_drmaa_init
    return _lib.drmaa_init(contact, error_buffer, sizeof(error_buffer))
  File "/opt/galaxy/eggs/drmaa-0.7.6-py2.6.egg/drmaa/", line 151, in error_check
    raise _ERRORS[code - 1](error_string)
InternalException: code 1: Please set the environment variable SGE_ROOT.
Removing PID file



<?xml version="1.0"?>
    <plugins workers="4">
        <plugin id="local" type="runner" load=""/>
        <plugin id="drmaa" type="runner" load=""/>
    <handlers>  <handler id="main"/>   </handlers>
    <destinations default="SGE">
        <destination id="local" runner="local"/>
        <destination id="SGE" runner="drmaa">
                <param id="nativeSpecification">-q all.q</param>


sge_root sge cluster drmaa • 1.2k views
ADD COMMENTlink modified 2.8 years ago • written 2.8 years ago by danielfortin86110
gravatar for danielfortin86
2.8 years ago by
United States
danielfortin86110 wrote:

I solved the issue, it turns out that since I'm starting Galaxy as a system service I need to add SGE_ROOT to the /etc/init.d/galaxy.fedora-init file

ADD COMMENTlink written 2.8 years ago by danielfortin86110
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 169 users visited in the last hour