Page MenuHomePhabricator

`setup-tomcat` failing with "range_list containes no elements" error from SGE
Closed, DuplicatePublic

Description

I created a tool on toollabs (as wikitech user G) and wanted to setup tomcat:

: setup-tomcat

result:

Unable to initialize environment because of error: range_list containes no elements
Exiting.
All done.
You can edit the configuration in /data/project/stereoskopie/public_tomcat/conf/server.xml as needed.

inside the script the command tomcat7-instance-create is not found.

there is no log, no conf, no public_tomcat.

I did this successfully last year with another tool, it worked then.

Event Timeline

setup-tomcat basically calls tomcat7-instance-create public_tomcat in a webgrid-generic instance.

The error message comes from SGE, according to Stack Overflow

$ qconf -sconf | grep MAX_DYN_EC gives no results, but MAX_DYN_EC is mentioned in sge_conf(5) man page and should have a default of 99, which we should not have ran out.

qrsh -now n does work, but it requires user to manually verify host key:

tools.zhuyifei1999-test@tools-bastion-02:~$ /usr/bin/qrsh -now n -o /dev/null -e /dev/null -q "webgrid-generic" -l h_vmem=512m -l release=trusty -b y -N "setup-$tool" tomcat7-instance-create public_tomcat
The authenticity of host '[tools-webgrid-generic-1402.eqiad.wmflabs]:57612 ([10.68.18.50]:57612)' can't be established.
ECDSA key fingerprint is SHA256:ww/8lz8tvZLhmIPu6m+k4CnBzW8odUxNdy+UDTTejbg.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[tools-webgrid-generic-1402.eqiad.wmflabs]:57612,[10.68.18.50]:57612' (ECDSA) to the list of known hosts.
You are about to create a Tomcat instance in directory 'public_tomcat'
* New Tomcat instance created in public_tomcat
* You might want to edit default configuration in public_tomcat/conf
* Run public_tomcat/bin/startup.sh to start your Tomcat instance
zhuyifei1999 renamed this task from seting up tomcat in toolforge: tomcat7-instance-create is not found to `setup-tomcat` failing with "range_list containes no elements" error from SGE.Nov 17 2017, 7:56 PM
zhuyifei1999 added a subscriber: bd808.

$ qconf -sconf | grep MAX_DYN_EC gives no results, but MAX_DYN_EC is mentioned in sge_conf(5) man page and should have a default of 99, which we should not have ran out.

This seems to be a duplicate of T178803: `qsub sync -y` jobs failing on Grid Engine with "range_list containes no elements" error which is reporting the same error in SGE not accepting -sync y jobs for submission.