https://bugzilla.wikimedia.org/show_bug.cgi?id=65491

            Bug ID: 65491
           Summary: running job with SGE doesn't get the right environment
                    when using -once -continuous
           Product: Wikimedia Labs
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: tools
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

When I run a python job using pywikibot it works with a simple jsub but fails
to import pywikibot module when doing a jsub -once -continuous

It's a problem of a missing environment variable, PYTHONPATH

tools.phetools@tools-login:~$ cat .profile
. ~/.bashrc
export
PYTHONPATH=/shared/pywikipedia/core:/shared/pywikipedia/core/externals/httplib2:/shared/pywikipedia/core/scripts

~/.bashrc contains also the same export

trying a simple

$ jsub -l h_vmem=512M -N test_env /bin/bash -c "env" 

show PYTHONPATH in ~/test_env.out

but 

$ jsub -once -continuous -l h_vmem=512M -N test_env /bin/bash -c "env"

doesn't show anything coming from ~/.profile or ~/.bashrc, same trouble with sh
rather than /bin/bash.

results are in /var/data/project/test_env.out.good /
/var/data/project/test_env.out.bad the .err is always empty

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to