Another twistd server is running, PID 8301

583 views
Skip to first unread message

Thierry Dumont

unread,
Mar 18, 2009, 8:46:04 AM3/18/09
to sage-s...@googlegroups.com

Hello,

As (maybe) you remember I starting the installation of my "university
wide" Sage server.
One idea is to launch 2 Sage servers on each machine (one machine has
32Gb ram and 4x2 cores). So: I create a "sage" user, in /home/sage I
create two directories.

In the first one I do:
sage<notebook(port=8001,secure=True,address='',open_viewer=False,accounts=True)&


ok... cd to the second directory; there I do:
sage<notebook(port=8002,secure=True,address='',open_viewer=False,accounts=True)&

and I get:

----
Another twistd server is running, PID 8301

This could either be a previously started instance of your application or a
different application entirely. To start a new one, either run it in
some other
directory, or use the --pidfile and --logfile parameters to avoid clashes.
----

same problem if I change the definition of the pidfile and the logfile.


*But*, anyway, is it the good way to do? I remember something about
launching more than one Sage process, but cannot find this in the doc.

Yours
t.d.


-------------
French universities are on a permanent strike!
Have a look at the International Call:
http://math.univ-lyon1.fr/appel
-------------


tdumont.vcf

William Stein

unread,
Mar 18, 2009, 10:51:24 AM3/18/09
to sage-s...@googlegroups.com
On Wed, Mar 18, 2009 at 5:46 AM, Thierry Dumont
<tdu...@math.univ-lyon1.fr> wrote:
>
> Hello,
>
> As (maybe) you remember I starting the installation of my "university
> wide" Sage server.
> One idea is to launch 2 Sage servers on each machine (one machine has
> 32Gb ram and 4x2 cores). So: I create a "sage" user, in /home/sage I
> create two directories.
>
> In the first one I do:
> sage<notebook(port=8001,secure=True,address='',open_viewer=False,accounts=True)&

You must do

notebook(dir='local_notebook',
port=8001,secure=True,address='',open_viewer=False,accounts=True)

instead in both cases.

>
> ok... cd to the second directory; there I do:
> sage<notebook(port=8002,secure=True,address='',open_viewer=False,accounts=True)&
>
> and I get:
>
> ----
> Another twistd server is running, PID 8301
>
> This could either be a previously started instance of your application or a
> different application entirely. To start a new one, either run it in
> some other
> directory, or use the --pidfile and --logfile parameters to avoid clashes.
> ----
>
> same problem if I change the definition of the pidfile and the logfile.
>
>
> *But*, anyway, is it the good way to do? I remember something about
> launching more than one Sage process, but cannot find this in the doc.
>
> Yours
> t.d.
>
>
> -------------
> French universities are on a permanent strike!
> Have a look at the International Call:
> http://math.univ-lyon1.fr/appel
> -------------
>
>
>

--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

Thierry Dumont

unread,
Mar 18, 2009, 11:25:08 AM3/18/09
to sage-s...@googlegroups.com
William Stein a écrit :

> On Wed, Mar 18, 2009 at 5:46 AM, Thierry Dumont
> <tdu...@math.univ-lyon1.fr> wrote:
>> Hello,
>>
>> As (maybe) you remember I starting the installation of my "university
>> wide" Sage server.
>> One idea is to launch 2 Sage servers on each machine (one machine has
>> 32Gb ram and 4x2 cores). So: I create a "sage" user, in /home/sage I
>> create two directories.
>>
>> In the first one I do:
>> sage<notebook(port=8001,secure=True,address='',open_viewer=False,accounts=True)&
>
> You must do
>
> notebook(dir='local_notebook',
> port=8001,secure=True,address='',open_viewer=False,accounts=True)
>

thanks, but... it does not work (or I did not understand); the error
message is:
TypeError: notebook_twisted() got an unexpected keyword argument 'dir'
yours
t.d.
>
>


--

tdumont.vcf

William Stein

unread,
Mar 18, 2009, 11:35:40 AM3/18/09
to sage-s...@googlegroups.com
On Wed, Mar 18, 2009 at 8:25 AM, Thierry Dumont

<tdu...@math.univ-lyon1.fr> wrote:
> William Stein a écrit :
>> On Wed, Mar 18, 2009 at 5:46 AM, Thierry Dumont
>> <tdu...@math.univ-lyon1.fr> wrote:
>>> Hello,
>>>
>>> As (maybe) you remember I starting the installation of my "university
>>> wide" Sage server.
>>> One idea is to launch 2 Sage servers on each machine (one machine has
>>> 32Gb ram and 4x2 cores). So: I create a "sage" user, in /home/sage I
>>> create two directories.
>>>
>>> In the first one I do:
>>> sage<notebook(port=8001,secure=True,address='',open_viewer=False,accounts=True)&
>>
>> You must do
>>
>> notebook(dir='local_notebook',
>> port=8001,secure=True,address='',open_viewer=False,accounts=True)
>>
>
> thanks, but... it does not work (or I did not understand); the error
> message is:
> TypeError: notebook_twisted() got an unexpected keyword argument 'dir'
> yours
> t.d.

Try

notebook('local_notebook',
port=8001,secure=True,address='',open_viewer=False,accounts=True)

Thierry Dumont

unread,
Mar 18, 2009, 11:43:10 AM3/18/09
to sage-s...@googlegroups.com
William Stein a écrit :

>
>
> Try
>
> notebook('local_notebook',
> port=8001,secure=True,address='',open_viewer=False,accounts=True)
>
>
Ok this works fine !
Thanks
Yours
t.
tdumont.vcf
Reply all
Reply to author
Forward
0 new messages