Dear sage gurus, I am trying to run sage on port 80 instead of default
8000 (I have a virtual server with sage for our PC lab which is behind
firewall and we cannot forward ports 8000)

apache, which has default 80 is at 81 or not running.

If I start notebook by
notebook(address='', port=8000, accounts=True)
notebook starts, but when trying
notebook(address='', port=80, accounts=True)
I get the following error (se below)

The same if I try ports like 800, 98 etc. On the other hand, ports
like 8001 or 8005 work fine. I think that the problem is with
permissions. Is there any chance to run sage under user account on
port 80?

Thank you. Robert Marik.

-------------------------------------------------------------------------------------------

2008-11-03 06:00:10-0500 [-]   File "/opt/sage/local/lib/python2.5/
site-packages/twisted/internet/tcp.py", line 739, in startListening
2008-11-03 06:00:10-0500 [-]     raise CannotListenError,
(self.interface, self.port, le)
2008-11-03 06:00:10-0500 [-] twisted.internet.error.CannotListenError:
Couldn't listen on any:80: (13, 'Permission denied').
http://:80/?startup_token=aec2b84959fd84bbac1775c72d3b9bbd: No such
file or directory
---------------------------------------------------------------------------
error                                     Traceback (most recent call
last)

/home/marik/.sage/<ipython console> in <module>()

/opt/sage/local/lib/python2.5/site-packages/sage/server/notebook/
notebook_object.pyc 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

/opt/sage/local/lib/python2.5/site-packages/sage/server/notebook/
run_notebook.pyc 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)
    273     if open_viewer:
    274         "Open viewer automatically isn't fully implemented.
You have to manually open your web browser to the above URL."
--> 275     return run(port)
    276
    277

/opt/sage/local/lib/python2.5/site-packages/sage/server/notebook/
run_notebook.pyc in run(port)
    257             e = os.system(cmd)
    258         if e == 256:
--> 259             raise socket.error
    260         return True
    261         # end of inner function run

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to