[sage-support] Re: RuntimeError: no available port

2008-07-11 Thread kex

PROBLEM SOLVED

Thank you Luis, William and all for your fast response.

lo part is printed out. For unknow reson I commneted # lo lines  in /
etc/networks/interfaces

[EMAIL PROTECTED]:/# ifconfig
eth0  Link encap:Ethernet  HWaddr 00:16:d4:dc:b8:03
  inet addr:212.235.176.149  Bcast:212.235.176.255  Mask:
255.255.255.128
  inet6 addr: fe80::216:d4ff:fedc:b803/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:11816382 errors:0 dropped:0 overruns:0 frame:0
  TX packets:16344874 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:5634077313 (5.2 GB)  TX bytes:20035075419 (18.6 GB)
  Interrupt:17

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:5813 errors:0 dropped:0 overruns:0 frame:0
  TX packets:5813 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:355416 (347.0 KB)  TX bytes:355416 (347.0 KB)

I recompiled sage 3.0.3

1. /etc/networks/interfaces
auto lo
iface lo inet loopback

2. recompiling sage

sage 3.0.3 works now with notebook() :)

Lp

Boris


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RuntimeError: no available port

2008-07-10 Thread Luis Finotti

> There is no possible way you can run the sage notebook without
> a loopback device.  You absolutely must configure your linux install
> to have a loopback device.It'll look something like this:
>
>
> loLink encap:Local Loopback
>  inet addr:127.0.0.1  Mask:255.0.0.0
>  inet6 addr: ::1/128 Scope:Host
>  UP LOOPBACK RUNNING  MTU:16436  Metric:1
>  RX packets:14250536 errors:0 dropped:0 overruns:0 frame:0
>  TX packets:14250536 errors:0 dropped:0 overruns:0 carrier:0
>  collisions:0 txqueuelen:0
>  RX bytes:13558436117 (12.6 GiB)  TX bytes:13558436117 (12.6 GiB)
>
>
> Try googline "missing loopback device linux" or something...

If you are running Debian/Ubuntu, you can try to add the lines

# The loopback network interface
auto lo
iface lo inet loopback

to "/etc/network/interfaces".  Then,

 $ sudo ifup lo

I hope this helps.

Luis

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RuntimeError: no available port

2008-07-10 Thread William Stein

On Thu, Jul 10, 2008 at 9:34 AM, kex <[EMAIL PROTECTED]> wrote:
>
>
>>   $ sudo iptables --list
>
> [EMAIL PROTECTED]:/# iptables --list
> Chain INPUT (policy ACCEPT)
> target prot opt source   destination
>
> Chain FORWARD (policy ACCEPT)
> target prot opt source   destination
>
> Chain OUTPUT (policy ACCEPT)
> target prot opt source   destination
>
>>   # iptables -F
>>   # iptables -X
>>   # iptables -t nat -F
>>   # iptables -t nat -X
>>   # iptables -t mangle -F
>>   # iptables -t mangle -X
>>   # iptables -P INPUT ACCEPT
>>   # iptables -P OUTPUT ACCEPT
>
> Didnt change anything
>
>> $ sudo ifconfig
>
> [EMAIL PROTECTED]:/# ifconfig
> eth0  Link encap:Ethernet  HWaddr 00:16:d4:dc:b8:03
>  inet addr:212.235.176.149  Bcast:212.235.176.255  Mask:
> 255.255.255.128
>  inet6 addr: fec0::8:216:d4ff:fedc:b803/64 Scope:Site
>  inet6 addr: 2002:58c8:6a91:8:216:d4ff:fedc:b803/64
> Scope:Global
>  inet6 addr: fe80::216:d4ff:fedc:b803/64 Scope:Link
>  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>  RX packets:36430 errors:0 dropped:0 overruns:0 frame:0
>  TX packets:51763 errors:0 dropped:0 overruns:0 carrier:0
>  collisions:0 txqueuelen:1000
>  RX bytes:12532642 (11.9 MB)  TX bytes:62953689 (60.0 MB)
>  Interrupt:17
>>
>> Do you have a "lo" section?
>
> [EMAIL PROTECTED]:/# ifconfig | grep -i io
>  collisions:0 txqueuelen:1000
> no
>
> I also deleted iptables and tried runnnig sage ...also fails with same
> error, complaining about no free ports
>

There is no possible way you can run the sage notebook without
a loopback device.  You absolutely must configure your linux install
to have a loopback device.It'll look something like this:


loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:14250536 errors:0 dropped:0 overruns:0 frame:0
  TX packets:14250536 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:13558436117 (12.6 GiB)  TX bytes:13558436117 (12.6 GiB)


Try googline "missing loopback device linux" or something...

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RuntimeError: no available port

2008-07-10 Thread kex


>   $ sudo iptables --list

[EMAIL PROTECTED]:/# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source   destination

Chain FORWARD (policy ACCEPT)
target prot opt source   destination

Chain OUTPUT (policy ACCEPT)
target prot opt source   destination

>   # iptables -F
>   # iptables -X
>   # iptables -t nat -F
>   # iptables -t nat -X
>   # iptables -t mangle -F
>   # iptables -t mangle -X
>   # iptables -P INPUT ACCEPT
>   # iptables -P OUTPUT ACCEPT

Didnt change anything

> $ sudo ifconfig

[EMAIL PROTECTED]:/# ifconfig
eth0  Link encap:Ethernet  HWaddr 00:16:d4:dc:b8:03
  inet addr:212.235.176.149  Bcast:212.235.176.255  Mask:
255.255.255.128
  inet6 addr: fec0::8:216:d4ff:fedc:b803/64 Scope:Site
  inet6 addr: 2002:58c8:6a91:8:216:d4ff:fedc:b803/64
Scope:Global
  inet6 addr: fe80::216:d4ff:fedc:b803/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:36430 errors:0 dropped:0 overruns:0 frame:0
  TX packets:51763 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:12532642 (11.9 MB)  TX bytes:62953689 (60.0 MB)
  Interrupt:17
>
> Do you have a "lo" section?

[EMAIL PROTECTED]:/# ifconfig | grep -i io
  collisions:0 txqueuelen:1000
no

I also deleted iptables and tried runnnig sage ...also fails with same
error, complaining about no free ports

The next thing is downgrading to kde 3.5.9... :(exit
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RuntimeError: no available port

2008-07-10 Thread kex


>   $ sudo iptables --list

[EMAIL PROTECTED]:/# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source   destination

Chain FORWARD (policy ACCEPT)
target prot opt source   destination

Chain OUTPUT (policy ACCEPT)
target prot opt source   destination

>   # iptables -F
>   # iptables -X
>   # iptables -t nat -F
>   # iptables -t nat -X
>   # iptables -t mangle -F
>   # iptables -t mangle -X
>   # iptables -P INPUT ACCEPT
>   # iptables -P OUTPUT ACCEPT

Didnt change anything

> $ sudo ifconfig

[EMAIL PROTECTED]:/# ifconfig
eth0  Link encap:Ethernet  HWaddr 00:16:d4:dc:b8:03
  inet addr:212.235.176.149  Bcast:212.235.176.255  Mask:
255.255.255.128
  inet6 addr: fec0::8:216:d4ff:fedc:b803/64 Scope:Site
  inet6 addr: 2002:58c8:6a91:8:216:d4ff:fedc:b803/64
Scope:Global
  inet6 addr: fe80::216:d4ff:fedc:b803/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:36430 errors:0 dropped:0 overruns:0 frame:0
  TX packets:51763 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:12532642 (11.9 MB)  TX bytes:62953689 (60.0 MB)
  Interrupt:17
>
> Do you have a "lo" section?

[EMAIL PROTECTED]:/# ifconfig | grep -i io
  collisions:0 txqueuelen:1000
no

I also deleted iptables and tried runnnig sage ...also fails with same
error, complaining about no free ports

The next thing is downgrading to kde 3.5.9... :(exit
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RuntimeError: no available port

2008-07-10 Thread Luis Finotti

Hi,

I am far from a specialist, but...  What do you get if you try

  $ sudo iptables --list

If you have rules that are blocking, you can allow all traffic by
doing (as root):

  # iptables -F
  # iptables -X
  # iptables -t nat -F
  # iptables -t nat -X
  # iptables -t mangle -F
  # iptables -t mangle -X
  # iptables -P INPUT ACCEPT
  # iptables -P OUTPUT ACCEPT

You probably should not keep it like that, unless you are behind
another firewall (like a router)...

Another idea...  What do you get with

  $ sudo ifconfig

Do you have a "lo" section?

I'm not sure any of this will help, but who knows...


Luis

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RuntimeError: no available port

2008-07-10 Thread kex

> Just out of curiosity, do you have any network services
> at all on that machine?  E.g., apache or anything else?

apache is not installed
searched for other packages but cant find any similar to firewall,
network services intalled

I have these clients installed but thats shouldnt be a problem:
amule
ktorrent
wpa_supplicant

Lp
Boris
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RuntimeError: no available port

2008-07-09 Thread William Stein

On Wed, Jul 9, 2008 at 1:38 PM, kex <[EMAIL PROTECTED]> wrote:
>
> Also sage-3.02 gives me the same problem, that is, it cant not find
> open port
> I would like aslo ask if you guys run sage from KDE 3.5.9 or KDE 4 ?
> Lp

This is definitely a problem with you running some sort
of firewall or you have too-secure network settings.
No version of Sage will work.

Just out of curiosity, do you have any network services
at all on that machine?  E.g., apache or anything else?

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RuntimeError: no available port

2008-07-09 Thread kex

Also sage-3.02 gives me the same problem, that is, it cant not find
open port
I would like aslo ask if you guys run sage from KDE 3.5.9 or KDE 4 ?
Lp
Boris
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RuntimeError: no available port

2008-07-09 Thread kex

I uninstalled ufw, a program for managing netfilter firewall,
netfilter is also not installed. Thats all I found with adept package
manger...
So I think there is no firewall now
The problem remains.

I also tried sage binary, it fails with some other error ..
Now I m going to try to compile sage 3.0.2

Lp
Boris

On Jul 9, 5:05 pm, mabshoff <[EMAIL PROTECTED]
dortmund.de> wrote:
> On Jul 9, 7:58 am, kex <[EMAIL PROTECTED]> wrote:
>
> > I also tried:
> > ./sage
> > notebook(port=8101)
> > tried also some other numbers 9000 7999 8500...80 50.. still the
> > same error
>
> Hi,
>
> you should check your firewall settings. It looks like you are
> blocking all traffic, so moving the port is unlikely to fix it. The
> likelyhood that 50 consecutive ports in that range are taken is null
> on a personal box.
>
> Cheers,
>
> Michael

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RuntimeError: no available port

2008-07-09 Thread mabshoff



On Jul 9, 7:58 am, kex <[EMAIL PROTECTED]> wrote:
> I also tried:
> ./sage
> notebook(port=8101)
> tried also some other numbers 9000 7999 8500...80 50.. still the
> same error

Hi,

you should check your firewall settings. It looks like you are
blocking all traffic, so moving the port is unlikely to fix it. The
likelyhood that 50 consecutive ports in that range are taken is null
on a personal box.

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RuntimeError: no available port

2008-07-09 Thread kex

I also tried:
./sage
notebook(port=8101)
tried also some other numbers 9000 7999 8500...80 50.. still the
same error

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RuntimeError: no available port

2008-07-09 Thread Martin Albrecht

> Is there a way to manualy change port to a value range not between
> 8000-8050
> Help appriciated

Sure thing,

try:

sage: notebook?

to see the help for the notebook command, the parameter is called 'port'.

Cheers,
Martin

-- 
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_jab: [EMAIL PROTECTED]


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RuntimeError: no available port

2008-07-09 Thread Timothy Clemans

On Wed, Jul 9, 2008 at 7:51 AM, kex <[EMAIL PROTECTED]> wrote:
>
> KUBUNTU 8.04.1 64-bit
> KDE 4
> SAGE 3.03
>
> Sage source was compiled as should without errors
> Starting sage works fine
> Running notebook() fails with error:  RuntimeError: no available port
> First it scans from port 8000 to 8050 and fails to find a free port
> The rest i dont understand.
>
> I tried to run as root and the same happens.
> I tried to find a topic for my problem but couldnt.
> I am downloading a binary version to check if it gives me the same
> error.
> I also tried to update sage with ./sage -upgrade but it doesnt solve
> anything
>
> [EMAIL PROTECTED]:~$ ./Programs/Sage/sage
> --
> | SAGE Version 3.0.3, Release Date: 2008-06-17   |
> | Type notebook() for the GUI, and license() for information.|
> --
>
> sage: notebook()
> The notebook files are stored in: /home/boris/.sage//sage_notebook
> Port 8000 is already in use.
> Trying next port...
> Port 8001 is already in use.
> Trying next port...
> Port 8002 is already in use.
> Trying next port...
> Port 8003 is already in use.
> Trying next port...
> Port 8004 is already in use.
> Trying next port...
> Port 8005 is already in use.
> Trying next port...
> Port 8006 is already in use.
> Trying next port...
> Port 8007 is already in use.
> Trying next port...
> Port 8008 is already in use.
> Trying next port...
> Port 8009 is already in use.
> Trying next port...
> Port 8010 is already in use.
> Trying next port...
> Port 8011 is already in use.
> Trying next port...
> Port 8012 is already in use.
> Trying next port...
> Port 8013 is already in use.
> Trying next port...
> Port 8014 is already in use.
> Trying next port...
> Port 8015 is already in use.
> Trying next port...
> Port 8016 is already in use.
> Trying next port...
> Port 8017 is already in use.
> Trying next port...
> Port 8018 is already in use.
> Trying next port...
> Port 8019 is already in use.
> Trying next port...
> Port 8020 is already in use.
> Trying next port...
> Port 8021 is already in use.
> Trying next port...
> Port 8022 is already in use.
> Trying next port...
> Port 8023 is already in use.
> Trying next port...
> Port 8024 is already in use.
> Trying next port...
> Port 8025 is already in use.
> Trying next port...
> Port 8026 is already in use.
> Trying next port...
> Port 8027 is already in use.
> Trying next port...
> Port 8028 is already in use.
> Trying next port...
> Port 8029 is already in use.
> Trying next port...
> Port 8030 is already in use.
> Trying next port...
> Port 8031 is already in use.
> Trying next port...
> Port 8032 is already in use.
> Trying next port...
> Port 8033 is already in use.
> Trying next port...
> Port 8034 is already in use.
> Trying next port...
> Port 8035 is already in use.
> Trying next port...
> Port 8036 is already in use.
> Trying next port...
> Port 8037 is already in use.
> Trying next port...
> Port 8038 is already in use.
> Trying next port...
> Port 8039 is already in use.
> Trying next port...
> Port 8040 is already in use.
> Trying next port...
> Port 8041 is already in use.
> Trying next port...
> Port 8042 is already in use.
> Trying next port...
> Port 8043 is already in use.
> Trying next port...
> Port 8044 is already in use.
> Trying next port...
> Port 8045 is already in use.
> Trying next port...
> Port 8046 is already in use.
> Trying next port...
> Port 8047 is already in use.
> Trying next port...
> Port 8048 is already in use.
> Trying next port...
> Port 8049 is already in use.
> Trying next port...
> Port 8050 is already in use.
> Trying next port...
> ---
> RuntimeError  Traceback (most recent call
> last)
>
> /home/boris/.sage/ in ()
>
> /home/boris/Programs/Sage/local/lib/python2.5/site-packages/sage/
> server/notebook/notebook_object.py in __call__(self, *args, **kwds)
>141 """
>142 def __call__(self, *args, **kwds):
> --> 143 return self.notebook(*args, **kwds)
>144
>145 notebook = run_notebook.notebook_twisted
>
> /home/boris/Programs/Sage/local/lib/python2.5/site-packages/sage/
> server/notebook/run_notebook.py in notebook_twisted(self, directory,
> port, address, port_tries, secure, reset, accounts, require_login,
> server_pool, ulimit, timeout, open_viewer, sagetex_path, start_path,
> fork, quiet)
>264 print "*"*70
>265
> --> 266 port = find_next_available_port(port, port_tries)
>267 #if open_viewer:
>268 #open_page(address, port, secure, pause=PAUSE)
>
> /home/boris/Programs/Sage/local/lib/python2.5/site-packages/sage/
> server/misc.py in find_next_available_port(start, max_tries, verbose)
> 99 print "Port %s is already in use."%port
>100 print "Tryin