Re: [UTMOST-TestSites] major Sage problem

55 views
Skip to first unread message

William Stein

unread,
Sep 19, 2011, 4:31:04 PM9/19/11
to sage-utmos...@googlegroups.com, Radoslav Kirov, sage-notebook
On Mon, Sep 19, 2011 at 9:14 AM, Keith Hubbard <hubb...@sfasu.edu> wrote:
> William,
>
> Thanks for the quick work.  I can now access my labs from my accounts.  My
> students who couldn't log in last week don't appear to be fixed yet though.
> Is there anything different they should try?

Hi,

Thanks for the screenshot, which is *very* helpful. Your error report
was confusing before since you said the student "couldn't log in".
Actually, what is happening is that they login just fine, but
displaying the list of worksheets causes an internal server error. I
know -- the two both sound like the same thing, but to a developer
they are different.

Anyways, I can replicate the problem at least, and will surely fix it this week.

In the meantime, I know this is ugly, but the student can probably
view their worksheets by using URL's like this:


http://sfa.sagenb.org/home/harberae/0/
http://sfa.sagenb.org/home/harberae/1/

etc. (Note the number) -- there is one for each worksheet. This is a
hideous workaround, but it is something.

I'm going to look at trying to fix this right now. If I do, I'll send
a followup email.

William


-- William

>
> Keith
>
> -----Original Message-----
> From: sage-utmos...@googlegroups.com
> [mailto:sage-utmos...@googlegroups.com] On Behalf Of William Stein
> Sent: Monday, September 19, 2011 9:32 AM
> To: sage-utmos...@googlegroups.com
> Subject: Re: [UTMOST-TestSites] major Sage problem
>
> On Mon, Sep 19, 2011 at 6:28 AM, Keith Hubbard <hubb...@sfasu.edu> wrote:
>> Last week, three students couldn’t get into their accounts at all
>> because of “server error”.  Today, I can’t access any on my worksheets
>> (though I can log in).  They all come up with the same “internal server
> error”
>> (attached).  I’ve tried two different Sage accounts (keithhubbardlp,
>> MTH233) and Chrome and Firefox.
>>
>>
>>
>> If this isn’t fixed, we may have to abandon the Sage experiment.
>
> It may be fixed now.    Please test this and let me know whether it is
> fixed or not for you.
>
> Thanks!  And, thanks again for your report of issues.   The problem
> was caused when I migrated all the Sage notebook servers to a new computer
> with more fast disk space.
>
>  -- William
>
>>
>>
>>
>> Keith
>>
>>
>
>
>
> --
> William Stein
> Professor of Mathematics
> University of Washington
> http://wstein.org
>

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

kcrisman

unread,
Sep 19, 2011, 4:41:10 PM9/19/11
to sage-notebook

William Stein

unread,
Sep 19, 2011, 4:46:49 PM9/19/11
to sage-n...@googlegroups.com, sage-utmos...@googlegroups.com, Radoslav Kirov, Mike Hansen
On Mon, Sep 19, 2011 at 1:41 PM, kcrisman <kcri...@gmail.com> wrote:
> Is this on http://code.google.com/p/sagenb/issues/list?   Just askin'.

I don't know. But I think I just fixed it.

If anybody has trouble with this "can't display list of worksheets"
issue again (e.g., your students who couldn't login, etc.) let me
know!

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

Technical stuff for the record. All I did is a hack that probably
does not address the root cause. Here's what I did (this patch is
not posted anywhere -- I'm curious what Mike and Rado think -- I
pointed out this exact issue with setting the name attribute on the
worksheets to them before).


sagenb@mod:~/sage_install/sage-4.7/devel/rkirov-flask$ hg diff
diff --git a/sagenb/notebook/worksheet.py b/sagenb/notebook/worksheet.py
--- a/sagenb/notebook/worksheet.py
+++ b/sagenb/notebook/worksheet.py
@@ -720,10 +720,14 @@
sage: W.name()
u'A renamed worksheet'
"""
- if len(name.strip()) == 0:
- name = lazy_gettext('Untitled')
- name = unicode_str(name)
- self.__name = name
+ try:
+ if len(name.strip()) == 0:
+ name = lazy_gettext('Untitled')
+ else:
+ name = unicode_str(name)
+ self.__name = name
+ except RuntimeError:
+ self.__name = lazy_gettext('Untitled')

def set_filename_without_owner(self, nm):
r"""

Liliana C

unread,
Sep 19, 2011, 8:37:59 PM9/19/11
to sage-notebook
Good Afternoon!

I'm having troubles seeing my worksheets, the code error is:
*************************
Internal Server Error

An error occurred rendering the requested page. More information is
available in the server log.

************************

Thanks!

On Sep 19, 3:46 pm, William Stein <wst...@gmail.com> wrote:
> On Mon, Sep 19, 2011 at 1:41 PM, kcrisman <kcris...@gmail.com> wrote:
> > Is this onhttp://code.google.com/p/sagenb/issues/list?  Just askin'.

Dima Pasechnik

unread,
Sep 19, 2011, 10:27:29 PM9/19/11
to sage-n...@googlegroups.com, sage-utmos...@googlegroups.com, Radoslav Kirov, Mike Hansen
I wonder if this started to happen after the worksheets were moved to another storage.
If that was the case, the reason might have been that it was done without a proper resetting
all the relevant pickles in the worksheets "database". 

When we had to do a mass renaming and moving of worksheets, we used a script that uses a Sage interface
for doing this.

just my 0.02c
Dima

Rado

unread,
Sep 19, 2011, 10:44:59 PM9/19/11
to sage-n...@googlegroups.com, sage-utmos...@googlegroups.com, Radoslav Kirov, Mike Hansen
Mike had a fix for what sounds like the same problem around August. It has been merged in my repo, and that fix seems to work. It hasn't reappeared on the NTU servers, which are heavily used by students.

http://code.google.com/r/rkirov-flask/source/detail?r=15e5547b6e8cd04e1be287a1b233858baf79f459

Dima Pasechnik

unread,
Sep 20, 2011, 12:11:23 AM9/20/11
to sage-n...@googlegroups.com, sage-utmos...@googlegroups.com, Radoslav Kirov, Mike Hansen
I was under impression that test.sagenb.org suffers(or suffered) from the same problem.

William Stein

unread,
Sep 20, 2011, 1:34:50 AM9/20/11
to sage-n...@googlegroups.com, sage-utmos...@googlegroups.com, Radoslav Kirov, Mike Hansen


On Monday, September 19, 2011, Dima Pasechnik <dim...@gmail.com> wrote:
> I wonder if this started to happen after the worksheets were moved to another storage.

I moved them to exactly the same directory name on another computer, so that isn't the problem.  I'll try the patch of Mike that Rado posted.


> If that was the case, the reason might have been that it was done without a proper resetting
> all the relevant pickles in the worksheets "database". 
> When we had to do a mass renaming and moving of worksheets, we used a script that uses a Sage interface
> for doing this.
> just my 0.02c
> Dima
>

Rado

unread,
Sep 20, 2011, 3:21:34 PM9/20/11
to sage-n...@googlegroups.com
nope. I don't see anything in the logs, and all error reports have been coming from the other *.sagenb.org servers.

kcrisman

unread,
Sep 20, 2011, 3:30:55 PM9/20/11
to sage-n...@googlegroups.com
See http://groups.google.com/group/sage-edu/browse_thread/thread/65365ef08f922cc4 for what appears to be another example of this.

Rado

unread,
Sep 20, 2011, 3:35:48 PM9/20/11
to sage-n...@googlegroups.com
Also I just realized my previous reply was a bit confusing. "The bug" hasn't reappeared on the servers ... not the patch :)

William Stein

unread,
Sep 20, 2011, 5:41:55 PM9/20/11
to sage-n...@googlegroups.com
On Tue, Sep 20, 2011 at 12:35 PM, Rado <rki...@gmail.com> wrote:
> Also I just realized my previous reply was a bit confusing. "The bug" hasn't
> reappeared on the servers ... not the patch :)

A few minutes ago I found that when I created new worksheets on
nt.sagenb.org, I couldn't view them (same weird infinite recursion
type bug). I restarted the server, and suddenly I could view them.

Also, sagenb.org gave a "server is too busy" error, which I guess
comes from twisted. I restarted it too.

So there is something wrong at present with the sagenb.org installs.

I'll start when I get time with looking into Mike's patch.

William Stein

unread,
Sep 20, 2011, 10:01:07 PM9/20/11
to sage-utmos...@googlegroups.com, sage-n...@googlegroups.com, Radoslav Kirov, Mike Hansen


On Tuesday, September 20, 2011, Keith Hubbard <hubb...@sfasu.edu> wrote:
> I still cannot access any of the specific worksheet pages
> (http://sfa.sagenb.org/home/keithhubbardlp/28/) etc.  I had brief access
> Monday but then lost it again.  No access all Tuesday.
>
> At this point I can't access worksheets, the grader can't grade worksheets,
> the students can't access their worksheets.
>

I can dedicate a few hours tonight to solving this problem.  Thanks for sending me a specific URL you can't access.  

William Stein

unread,
Sep 21, 2011, 12:46:54 AM9/21/11
to sage-utmos...@googlegroups.com, sage-n...@googlegroups.com, Radoslav Kirov, Mike Hansen
On Tue, Sep 20, 2011 at 6:50 PM, Keith Hubbard <hubb...@sfasu.edu> wrote:
> I still cannot access any of the specific worksheet pages
> (http://sfa.sagenb.org/home/keithhubbardlp/28/) etc.  I had brief access
> Monday but then lost it again.  No access all Tuesday.
>
> At this point I can't access worksheets, the grader can't grade worksheets,
> the students can't access their worksheets.

Hi,

I reverted the patch that I had made, and instead rebased and applied
Mike Hansen's patch (that Rado kindly dug up). *After* doing this I
could view the worksheet you mention above (as the admin user).
Before doing that I couldn't.

So, please, please try things out and let me know whether or not the
problem is fixed.

William Stein

unread,
Sep 21, 2011, 1:34:31 AM9/21/11
to sage-utmos...@googlegroups.com, sage-n...@googlegroups.com, Radoslav Kirov, Mike Hansen
On Tue, Sep 20, 2011 at 9:51 PM, Wai Yan Pong <wypo...@gmail.com> wrote:
> Have you had a chance to make the change to the DH site?
> If so, then unfortunately it still not working for me. I can see the list of
> worksheets but can't get inside any of those.

Hi,

I fixed another bug uncovered by your worksheets (thanks). Can you
try again, and report?

William

Thomas Judson

unread,
Sep 21, 2011, 1:37:42 AM9/21/11
to sage-utmos...@googlegroups.com, sage-n...@googlegroups.com, Radoslav Kirov, Mike Hansen
http://sfa.sagenb.org/ works now.

Tom

William Stein

unread,
Sep 21, 2011, 1:47:42 AM9/21/11
to sage-utmos...@googlegroups.com, sage-n...@googlegroups.com, Radoslav Kirov, Mike Hansen
Hi,

I found yet another issue by randomly looking through worksheets, and
fixed that one as well.

I'm restarting the servers now (which should take about 2 minutes).

William

Liliana C

unread,
Sep 21, 2011, 11:25:50 PM9/21/11
to sage-notebook
Thank you!! Everything is working just fine with http://demo.sagenb.org/
just in time for tomorrow's class ;)

On Sep 21, 12:47 am, William Stein <wst...@gmail.com> wrote:
> Hi,
>
> I found yet another issue by randomly looking through worksheets, and
> fixed that one as well.
>
> I'm restarting the servers now (which should take about 2 minutes).
>
> William
>
>
>
>
>
>
>
>
>
> On Tue, Sep 20, 2011 at 10:37 PM, Thomas Judson <twjud...@gmail.com> wrote:
> >http://sfa.sagenb.org/ works now.
> > Tom
> > On Sep 21, 2011, at 12:34 AM, William Stein wrote:
>
> > On Tue, Sep 20, 2011 at 9:51 PM, Wai Yan Pong <wypon...@gmail.com> wrote:
>
> > Have you had a chance to make the change to the DH site?
>
> > If so, then unfortunately it still not working for me. I can see the list of
>
> > worksheets but can't get inside any of those.
>
> > Hi,
>
> > I fixed another bug uncovered by your worksheets (thanks).  Can you
> > try again, and report?
>
> > William
>
> > On Tue, Sep 20, 2011 at 9:46 PM, William Stein <wst...@gmail.com> wrote:
>
> > On Tue, Sep 20, 2011 at 6:50 PM, Keith Hubbard <hubbar...@sfasu.edu>
Reply all
Reply to author
Forward
0 new messages