The massive rewrite of SageMathCloud is now live.

155 views
Skip to first unread message

William Stein

unread,
Aug 12, 2015, 1:14:45 PM8/12/15
to sage-cloud, sage-cloud-members, sage-cloud-devel
Hi,

The new version of SageMathCloud is now live at

https://cloud.sagemath.com

Please report issues, of which there may be many.

https://github.com/sagemathinc/smc/issues

Make sure to refresh your browser and possibly clear the cache, since
almost everything on the client has changed.

This new version involves a complete rewrite of the backend using
RethinkDB 2.1, and a half rewrite of the frontend using React.js.
It's all open source, of course:

https://github.com/sagemathinc/smc/tree/rethinkdb

Also there is partial unit testing of the code, which we didn't have before. The
main contributors are:

William Stein (me) -- all the rethinkdb stuff, react.js frontend,
unit testing (unemployed this summer)

Nicholas Ruhland -- react.js frontend (funded by Rekha Thomas and Randy
Leveque)

Jon Lee -- react.js frontend (funded by Google summer of code)

Harald Schilly -- unit and other testing

I also rewrote the course management functionality from scratch.

I plan to write a blog post explaining the new design and architecture
soon, and also discussing the course management functionality.

-- William

c.d. mclean

unread,
Aug 12, 2015, 1:35:06 PM8/12/15
to sage-cloud, sage-clou...@googlegroups.com, sage-clo...@googlegroups.com

congratulations to you on the fruit of your labor !!!


is this roll out identical to (... or only similar to)
the environments that were being served on:



?


many thanks,

cdm

William Stein

unread,
Aug 12, 2015, 1:37:17 PM8/12/15
to sage-cloud, sage-cloud-members, sage-cloud-devel
On Wed, Aug 12, 2015 at 10:35 AM, c.d. mclean <cdmcle...@gmail.com> wrote:
>
> congratulations to you on the fruit of your labor !!!

Thanks. And this is really all just foundational for doing new things :-)

>
>
> is this roll out identical to (... or only similar to)
> the environments that were being served on:
>
> https://web0.sagemath.com/
>
> https://web1.sagemath.com/
>
> ?
>

YES, though of course we did a lot in the last two days to fix
broken-ness there.
It's also very scary since the load now is 300x what we've been
testing with on web0/web1.

Here's a screenshot of database load right now.

>
> many thanks,
>
> cdm
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-cloud" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-cloud+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-cloud/b5422039-f1c3-4ccb-afe2-cced95131816%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
William Stein, Ph.D.
CEO, SageMath, Inc.
http://sagemath.com
206-419-0925
Screen Shot 2015-08-12 at 10.36.11 AM.png

Mesut Karakoç

unread,
Aug 12, 2015, 1:50:44 PM8/12/15
to sage-cloud, sage-clou...@googlegroups.com, sage-clo...@googlegroups.com
Hi,

I tried 4 different project to open non of them get started!

Here is the error:

Directory listing error

"Timeout after 67.5 seconds"

-- Mesut

Stephan Ehlen

unread,
Aug 12, 2015, 1:53:01 PM8/12/15
to sage-...@googlegroups.com
Hi William,

for me the website is currently unresponsive and does not load project data:


Also, while loading, it says that it’s getting the file listing for “…” (i.e. no name or whatever should be stated there appears but instead three dots). This might be related or a different issue. Moreover, this notification overlays other elements which does not look so nice (low priority, of course):


Best,
Stephan


For more options, visit https://groups.google.com/d/optout.
<Screen Shot 2015-08-12 at 10.36.11 AM.png>

Mesut Karakoç

unread,
Aug 12, 2015, 1:54:15 PM8/12/15
to sage-cloud, sage-clou...@googlegroups.com, sage-clo...@googlegroups.com

William Stein

unread,
Aug 12, 2015, 2:30:22 PM8/12/15
to sage-cloud
Please try again now.  I had to quadruple the database capacity due to the load...

William


For more options, visit https://groups.google.com/d/optout.

Stephan Ehlen

unread,
Aug 12, 2015, 2:36:15 PM8/12/15
to sage-...@googlegroups.com
Great - it works now.

Thank you!

Stephan
On Aug 12, 2015, at 2:29 PM, William Stein <wst...@sagemath.com> wrote:

Please try again now.  I had to quadruple the database capacity due to the load...

William
On Wed, Aug 12, 2015 at 10:52 AM, Stephan Ehlen <stephan...@gmail.com> wrote:
Hi William,

for me the website is currently unresponsive and does not load project data:

<Screen Shot 2015-08-12 at 1.49.32 PM.png>

Also, while loading, it says that it’s getting the file listing for “…” (i.e. no name or whatever should be stated there appears but instead three dots). This might be related or a different issue. Moreover, this notification overlays other elements which does not look so nice (low priority, of course):

<Screen Shot 2015-08-12 at 1.48.30 PM.png>

Theron Hitchman

unread,
Aug 12, 2015, 3:00:16 PM8/12/15
to sage-cloud-members, sage-...@googlegroups.com, sage-clo...@googlegroups.com
I don't know if this is the switch in code from today, or my joining the list of members this morning...

My list of projects is currently unreachable.  loading cloud.sagemath.com takes a good 20 seconds to get to a projects page, but the list of projects never shows. Just a spinning arrow and "loading." Generally, the site is very slow. But I can't get to the list of projects at all. It has been loading for at least ten minutes.

Just as a test, I tried using firefox instead of my usual chrome, and the google authentication routine eventually led to a "504 server did not respond in time" error. (I have linked to a google account and use 2-factor auth)

TJ

Dominique Laurain

unread,
Aug 12, 2015, 4:09:18 PM8/12/15
to sage-cloud, sage-clou...@googlegroups.com, sage-clo...@googlegroups.com

Agree with Theron...maybe same zome of time than me...

From France-Toulouse,..very SLOW for all :

1) Sign in cloud.sagemath.com

There was an error signing you in (Timeout after 30 seconds). Possibly clear your cloud.sagemath.com cookies, refresh your browser and try again; if that doesn't work, email help at sagemath.com.

...but I was signed in one minute later (without signed again))

2) Then i first web page was displayed (with top usual bar?) ...and quickly after a BIG :

                                         O  LOADING  ....

no more than that, and the browser Firefox sign for loading ad libiting (red circle moving)

3) five minutes...always the same LOADING ..

**** and I will stop just now,...
**** because tired of waiting

4) trying a "refresh"

the same result : https://cloud.sagemath.com/projects
and                   Projects            O LOADING ....

5) click on Projects : nothing happens

6) sous mon navigateur "Informations sur la page"
=> Connexion chiffrée : chiffrement de haut niveau (AES-256, 256 bit)

??? 

what is it ?  the massive rewriting included a massive security improvement ?
yes I know it's https
SSL
Go Daddy Secure Certificate

and I can see...I have some cookies set.... must I delete these sage cookies ?

and my daddy is no more on earth planet

7) about 20 minutes, I have a pop up right up the window : "you must sign in again"
... if next popup is "you have bad luck" or "do you know Murphy laws ?" ...I guess I would resign for this evening

8)funny : I have not signed in (because I was typing current post) and now I can see my projects icons

9) I click on first project => OK new human-mammoth interface...
  ... click on first worksheet

10) time executing cells one after one looks same same

11) I have a weird :
"
︡f59002cf-323f-4da9-b5fa-20a10fd5b53f︡{"stdout":"phi :  (x
"
included in one cell...I am not sure because the massive migration...but I don't rementer typing this willing

Save then exit worksheet and open it again
....oh oh..the weird string has just disappeared... and now it is
#line 2 =  {f: -(a*b*c^2*g*u*v^2 - a*b^2*c*h*u*w^2 + (a*b^2*c*g - a*b*c^2*h)*u^2*u1 + 2*(a*b*c^2*g - a*b^2*c*h)*u*u1^2 - (a*b^2*c*h*u - 2*a*b^2*c*g*u1 + (2*a*b*c...

like before

Dominique





 

Dominique Laurain

unread,
Aug 12, 2015, 4:24:15 PM8/12/15
to sage-cloud, sage-clou...@googlegroups.com, sage-clo...@googlegroups.com

1) Sign out and sign in => ok quicker now Loading only few secondes

2) first project always running (meaning the sign out has not stopped running projects)..or I am so fast ... ;-)
check box (new) at the right for "running"

3) hopping now something will stop my worksheet...because I usually signed out (with previous SMC release)...when I factor()
some expressions (very) difficult to symbolic factor

4) host is now
compute2-us.sagemath.com

and no more (compute2-us)

5) looks very slow to factor() now...code like this

res = solve([TriOnCircle(a,b,c,t,f) == 0,TriOnLine(t,l) == 0],tb,tc)
if len(res) == 2 :
ub = ((res[0][0].right() + res[1][0].right())/(2*ta)).factor() ; print "ub = ",ub # removing ta
uc = ((res[0][1].right() + res[1][1].right())/(2*ta)).factor() ; print "uc = ",uc # removing ta

ub, and uc printed values ... displayed very slowly

Dominique


Dominique Laurain

unread,
Aug 12, 2015, 4:26:47 PM8/12/15
to sage-cloud, sage-clou...@googlegroups.com, sage-clo...@googlegroups.com

Sorry...just read only now William's "clear the cache"

William Stein

unread,
Aug 12, 2015, 4:27:33 PM8/12/15
to sage-cloud, sage-cloud-members, sage-cloud-devel
On Wed, Aug 12, 2015 at 1:24 PM, Dominique Laurain
<dominique...@orange.fr> wrote:
>
> 1) Sign out and sign in => ok quicker now Loading only few secondes
>
> 2) first project always running (meaning the sign out has not stopped
> running projects)..or I am so fast ... ;-)
> check box (new) at the right for "running"
>
> 3) hopping now something will stop my worksheet...because I usually signed
> out (with previous SMC release)...when I factor()
> some expressions (very) difficult to symbolic factor
>
> 4) host is now
>
> compute2-us.sagemath.com
>
> and no more (compute2-us)
>
> 5) looks very slow to factor() now...code like this

There are absolutely no changes to the backend with this update --
actual running code using Sage, etc., is identical. I didn't even
upgrade the version of Sage.

Actually running CPU intensive compute code on compute2-us is slow
right now... since there are a lot of people running cpu intensive
code. I looked right now and the load is "10". Try typing "uptime"
or top.
If you want to run cpu intensive code quickly for free, look elsewhere.

>
> res = solve([TriOnCircle(a,b,c,t,f) == 0,TriOnLine(t,l) == 0],tb,tc)
> if len(res) == 2 :
> ub = ((res[0][0].right() + res[1][0].right())/(2*ta)).factor() ;
> print "ub = ",ub # removing ta
> uc = ((res[0][1].right() + res[1][1].right())/(2*ta)).factor() ;
> print "uc = ",uc # removing ta
>
> ub, and uc printed values ... displayed very slowly
>
> Dominique
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-cloud" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-cloud+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-cloud/7359bf35-1450-4b2c-aeb9-dba9ffb60eff%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages