On Jan 24, 2008 5:50 PM, Jason Grout <[EMAIL PROTECTED]> wrote: > > On the public sage notebook server, when I'm in a worksheet and click > "Revisions" and then click on a revision, I get an error: > > Internal Server Error > An error occurred rendering the requested page. More information is > available in the server log. > > Am I doing something wrong?
I can replicate this error. It must be a problem with permissions or how the server is configured, or *maybe* with something involving both permissions and how I made the notebook server secure (by running all worksheet code as a separate user over ssh). Strange. I just checked and the problem doesn't happen with the server on port 8102 for me, but it does for the one on ports 8103 and 8101. OK, checking the log we have: 2008/01/24 19:13 -0700 [HTTPChannel,152400,128.95.224.68] Exception rendering: 2008/01/24 19:13 -0700 [HTTPChannel,152400,128.95.224.68] Unhandled Error Traceback (most recent call last): File "/usr/local/sage/local/lib/python2.5/site-packages/twisted/internet/defer.py", line 182, in addCallbacks self._runCallbacks() File "/usr/local/sage/local/lib/python2.5/site-packages/twisted/internet/defer.py", line 317, in _runCallbacks self.result = callback(self.result, *args, **kw) File "/usr/local/sage/local/lib/python2.5/site-packages/twisted/internet/defer.py", line 281, in _continue self.unpause() File "/usr/local/sage/local/lib/python2.5/site-packages/twisted/internet/defer.py", line 277, in unpause self._runCallbacks() --- <exception caught here> --- File "/usr/local/sage/local/lib/python2.5/site-packages/twisted/internet/defer.py", line 317, in _runCallbacks self.result = callback(self.result, *args, **kw) File "/usr/local/sage/local/lib/python2.5/site-packages/twisted/web2/server.py", line 268, in <lambda> d.addCallback(lambda res, req: res.renderHTTP(req), self) File "/usr/local/sage/local/lib/python2.5/site-packages/twisted/web2/resource.py", line 85, in renderHTTP return method(request) File "/usr/local/sage/local/lib/python2.5/site-packages/twisted/web2/resource.py", line 202, in http_GET return super(Resource, self).http_GET(request) File "/usr/local/sage/local/lib/python2.5/site-packages/twisted/web2/resource.py", line 128, in http_GET return self.render(request) File "/usr/local/sage/local/lib/python2.5/site-packages/sage/server/notebook/twist.py", line 745, in render s = notebook.html_specific_revision(self.username, self.worksheet, rev) File "/usr/local/sage/local/lib/python2.5/site-packages/sage/server/notebook/notebook.py", line 1152, in html_specific_revision W.delete_cells_directory() File "/usr/local/sage/local/lib/python2.5/site-packages/sage/server/notebook/worksheet.py", line 420, in delete_cells_directory shutil.rmtree(dir) File "/usr/local/sage/local/lib/python2.5/shutil.py", line 169, in rmtree rmtree(fullname, ignore_errors, onerror) File "/usr/local/sage/local/lib/python2.5/shutil.py", line 178, in rmtree onerror(os.rmdir, path, sys.exc_info()) File "/usr/local/sage/local/lib/python2.5/shutil.py", line 176, in rmtree os.rmdir(path) exceptions.OSError: [Errno 13] Permission denied: '/notebooks/server/sage_notebook/worksheets/_sage_/22/cells/7' ... OK, I think I've fixed the bug. The particular notebook server that is running now has been around a while, and moved around to different directories, etc. It was once in /notebooks/server and evidently that path got hardcoded somewhere. Anyway, I've fixed the problem with a symlink. William William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@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-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---