startstop on ubuntu, sched_setscheduler error: PID -1 (policy/priority ??/0): Invalid argument

155 views
Skip to first unread message

Philip Crotwell

unread,
Jan 15, 2013, 6:08:35 PM1/15/13
to earthworm_forum

Hi

Has anyone seen this problem? I am on unbuntu 12.04LTS and using the earthworm_v7.6-ubuntu12.04-64bit-bin.tar.gz  binary tarball from earthwormcentral. Most likely I am doing something stupid, but...

Does startstop really need setuid root?

Distributor ID:    Ubuntu
Description:    Ubuntu 12.04.1 LTS
Release:    12.04
Codename:    precise

thanks,
Philip

PS Really looking forward to "sudo apt-get install earthworm"! :)

scsn@earthworm:/data/scsn/earthwormPrecomp$ ls
earthworm_7.6  earthworm_v7.6-ubuntu12.04-64bit-bin.tar.gz  run
scsn@earthworm:/data/scsn/earthwormPrecomp$ . run/params/ew_linux.bash
scsn@earthworm:/data/scsn/earthwormPrecomp$ uname -a
Linux earthworm 3.2.0-33-virtual #52-Ubuntu SMP Thu Oct 18 16:48:37 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
scsn@earthworm:/data/scsn/earthwormPrecomp$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 12.04.1 LTS
Release:    12.04
Codename:    precise
scsn@earthworm:/data/scsn/earthwormPrecomp$ startstop
startstop: Using config file startstop_unix.d
startstop: sched_setscheduler error: PID -1 (policy/priority ??/0):
    Invalid argument
    Check that startstop is setuid root!!
ERROR: tport_create shmget (22; Invalid argument) Region: 9999
scsn@earthworm:/data/scsn/earthwormPrecomp$ cat run/params/startstop_unix.d
#
#       Startstop (Unix Version -- Linux) Configuration File
#
#    <nRing> is the number of transport rings to create.
#    <Ring> specifies the name of a ring followed by it's size
#    in kilobytes, eg        Ring    WAVE_RING 1024
#    Ring names are listed in file earthworm.h.
#


 nRing               4
 Ring   WAVE_RING 10240
 Ring   PICK_RING 1024
 Ring   RAW_RING 1024
 Ring   STAT_RING 256
#
 MyModuleId    MOD_STARTSTOP  # Module Id for this program
 HeartbeatInt  30             # Heartbeat interval in seconds
 MyClassName   OTHER             # For this program
 MyPriority     0             # For this program
 LogFile        1             # 1=write a log file to disk, 0=don't
 KillDelay      10            # seconds to wait before killing modules on
                              #  shutdown
# statmgrDelay        2     # Uncomment to specify the number of seconds
                    # to wait after starting statmgr
                    # default is 1 second

#
#    Class must be RT or TS
#    RT priorities from 0 to 59
#    TS priorities le 0
#
#    If the command string required to start a process contains
#       embedded blanks, it must be enclosed in double-quotes.
#    Processes may be disabled by commenting them out.
#    To comment out a line, preceed the line by #.
#
#
 Process          "statmgr statmgr.d"
 Class/Priority    OTHER 0
#
#
 Process          "import_generic import_generic.d"
 Class/Priority    OTHER 0
#
#
 Process          "copystatus WAVE_RING STAT_RING"
 Class/Priority    OTHER 0
#
 Process          "copystatus PICK_RING STAT_RING"
 Class/Priority    OTHER 0
#


Paul Friberg

unread,
Jan 15, 2013, 6:40:19 PM1/15/13
to earthwo...@googlegroups.com
Hi Philip,

The message:

startstop: sched_setscheduler error: PID -1 (policy/priority ??/0):
    Invalid argument
    Check that startstop is setuid root!!

Could be a RED herring!!

Are you running more than one startstop? If so, you will need to create a new FLAG_RING for the new startstop instance. The 9999 is the default ring for the FLAG ring if not specified in the earthworm.d file....and the real error you are running up against is this one:


ERROR: tport_create shmget (22; Invalid argument) Region: 9999

I really think we need to remove the error/warning before that one, or at least state it is a WARNING and non-fatal.

In fact, I just ran up against this same issue on a Linux system recently and kept looking at the wrong message....

Cheers,

Paul

--
You received this message because you are subscribed to the Google
Groups "Earthworm Community Forum" group.
 
To post to this group, send an email to earthwo...@googlegroups.com
 
To unsubscribe from this group, send an email to
earthworm_for...@googlegroups.com
 
For more options, visit this group at
http://groups.google.com/group/earthworm_forum?hl=en



--
===================================
Paul Friberg   p.fr...@isti.com
ISTI==Instrumental Software Technologies, Inc.
Phone 845.256.9290 FAX 845.256.9299

Philip Crotwell

unread,
Jan 15, 2013, 9:35:07 PM1/15/13
to earthworm_forum

Ah, that is it. I had STAT_RING as 9999 in an old earthworm.d I copied. Changing it to something else fixed it.

I still get the setuid message, but I guess that one is a burgundy sardine.

thanks,
Philip

Guillermo Diaz de Cossio

unread,
Jan 16, 2013, 9:46:03 PM1/16/13
to earthwo...@googlegroups.com
No, we have installed as a local user and we are not running as a root.

For MyClassName I left the TS instead of  OTHER.

Guillermo




Reply all
Reply to author
Forward
0 new messages