Skip to content

FYI: Multicore BatchJobs does not work on Solaris Unix (ps -o ucomm not supported) #118

@HenrikBengtsson

Description

@HenrikBengtsson

Just an FYI, multicore BatchJobs does not work on Solaris because the linux-helper shell script uses command-line option -o ucomm when calling ps and this option is not supported on Solaris.

Below is the error reported by CRAN r-patched-solaris-x86 when future.BatchJobs (mine) runs tests relying on multicore BatchJobs tasks:

    Running the tests intests/BatchJobsFutureError.Rfailed.
    Last 13 lines of output:
     ..$ listJobs :function (conf, reg) 
     ..$ getArrayEnvirName:function () 
     ..- attr(*, "class")= chr "ClusterFunctions"
     Error in dbDoQuery(reg, query) : 
     Error in dbDoQuery. Error in sqliteSendQuery(con, statement, bind.data) : 
     error in statement: near "format": syntax error
     (SELECT job_id FROM BatchJobs_1974974119_job_status WHERE (batch_job_id IN ('ps: illegal option -- w','ps: illegal option -- w','ps: unknown output format: -o ucomm','ps: unknown output format: -o command','usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ]','[ -u userlist ] [ -U userlist ] [ -G grouplist ]','[ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]',''format' is one or more of:','user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid ctid','pri opri pcpu pmem vsz rss osz nice class time etime stime zone zoneid','f s c lwp nlwp psr tty addr wchan fname comm args projid project pset')) AND job_id IN (1))
     Calls: future ... dbFindOnSystem -> dbSelectWithIds -> dbDoQuery -> stopf
     Execution halted
     Error in dbDoQuery(reg, query) : 
     Error in dbDoQuery. Error in sqliteSendQuery(con, statement, bind.data) : 
     error in statement: near "format": syntax error
     (SELECT COUNT(job_id) AS n, COUNT(submitted) AS submitted, COUNT(started) AS started, COUNT(done) AS done, COUNT(error) AS error, SUM(started IS NOT NULL AND done IS NULL AND error IS NULL AND batch_job_id IN ('ps: illegal option -- w','ps: illegal option -- w','ps: unknown output format: -o ucomm','ps: unknown output format: -o command','usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ]','[ -u userlist ] [ -U userlist ] [ -G grouplist ]','[ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]',''format' is one or more of:','user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid ctid','pri opri pcpu pmem vsz rss osz nice class time etime stime zone zoneid','f s c lwp nlwp psr tty addr wchan fname comm args projid project pset')) AS running, SUM(started IS NOT NULL AND done IS NULL AND error IS NULL AND batch_job_id NOT IN ('ps: illegal option -- w','ps: illegal option -- w','ps: unknown output format: -o ucomm','ps: unknown output format: -o command','usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ]','[ -u userlist ] [ -U userlist ] [ -G grouplist ]','[ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]',''format' is one or more of:','user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid ctid','pri opri pcpu pmem vsz rss osz nice class time etime stime zone zoneid','f s c lwp nlwp psr tty addr wchan fname comm args projid project pset')) AS expired, MIN(done - started) AS t_min, AVG(done - started) AS t_avg, MAX(done - started) AS t_max FROM BatchJobs_1974974119_job_status WHERE job_id IN (1)) 
Flavor: r-patched-solaris-x86

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions