|
[Playerstage-users] Re: Multiple Stages on single machine
From: Douglas S. Blank <dblank@br...> - 2003-05-05 19:18
|
Brian,
Thanks for the hint on using the -p PORT on the stage command. That does
fix part of our problems. Now, multiple users can use Stage on the same
machine. But, a single user can't run multiple versions. It seems that
the /tmp/stageIO.user.0 directory prevents a single user from starting
stage again. Here is the error I get:
[dblank@... pyro]$ stage -p 1701
/usr/local/stage/worlds/stage1.world &
[5] 6292
** Stage v1.3.1 ** [Port 1701][World /usr/local/stage/worlds/stage1.world]
** Player v1.3.1 ** [Stage /tmp/stageIO.dblank.0]
[dblank@... pyro]$ stage -p 1802
/usr/local/stage/worlds/stage2.world &
[6] 6294
** Stage v1.3.1 ** [Port 1802][World /usr/local/stage/worlds/stage2.world]
stage warning : server.cc CreateDeviceDirectory Device directory exists.
Possible error?
** Player v1.3.1 ** [Stage /tmp/stageIO.dblank.0]
create_and_bind_socket():bind() failed; socket not created.: Address
already in use create_and_bind_socket() failed; quitting
Is there a solution for this?
Thanks in advance for any hints!
-Doug
> hi Doug,
>
> I think that the Stage flag you're looking for is '-p <port>'. See,
Stage
> is also listening on a particular port, and unless you tell it
different, it
> will always listen on 6601 (hence your binding errors). So, each
user should
> pick a different port and pass it to Stage on the command line.
>
> Btw, this will all get much easier relatively soon. I've recently
implemented
> a name-server functionality and the ability for Player to auto-assign
ports.
> That way, you can pretty much ignore such port management issues.
>
> brian.
> Message: 1
> Date: Fri, 02 May 2003 11:36:37 -0400
> From: "Douglas S. Blank" <dblank@...>
> To: playerstage-users@...
> Subject: [Playerstage-users] Multiple Stages on single machine
>
> Player/Stage users:
>
> I need some help in order to have students complete their projects soon.
> A couple of questions:
>
> 1. It appears that a user can only have one version of Stage running at
> a time; is that correct? If so, I assume it is because of the
> /tmp/userIO files. Or maybe we are not running Stage correctly? We start
> stage up like:
>
> stage worldfile
>
> (with stage and player in the path) and connect onto it with our own
> Python-based player. Should we use the -n flag, or something else?
>
> 2. Multiple users don't seem to be able to run their own versions of
> Stage without getting binding errors. Surely we must be doing something
> wrong here. Each user starts their own version of Stage as per above
> with their own worldfile and different ports, but when stage starts, it
> gives "unable to bind" errors.
>
> If you have any hints or suggestions please help. Thanks!
>
> -Doug
>
|
| Thread | Author | Date |
|---|---|---|
| [Playerstage-users] Re: Multiple Stages on single machine | Douglas S. Blank <dblank@br...> |