lost worksheets

11 views
Skip to first unread message

Marshall Hampton

unread,
Jan 28, 2008, 4:27:20 PM1/28/08
to sage-support
I now have 14 students actively using Sage on 3 different servers, and
I have run across a mysterious problem I haven't seen reported here
before. Three of my students had worksheets suddenly go missing,
without a deliberate delete. I looked in the notebook files and the
worksheets were still there, just not visible on the list of
worksheets. Any guesses on what happened? As a stopgap, I manually
pasted in the worksheet text to a new copy, but if this happens a lot
it will really aggravate them.

-M. Hampton

mabshoff

unread,
Jan 28, 2008, 4:31:48 PM1/28/08
to sage-support

Hi Marshall,
Are those worksheets on servers you host or were they on the public
notebook?

> -M. Hampton

Cheers,

Michael

Marshall Hampton

unread,
Jan 28, 2008, 4:44:29 PM1/28/08
to sage-support
Servers that I host, although the losses occured on one that I don't
have complete control over.

On Jan 28, 3:31 pm, mabshoff <Michael.Absh...@fsmath.mathematik.uni-

William Stein

unread,
Jan 28, 2008, 8:25:33 PM1/28/08
to sage-s...@googlegroups.com
On Jan 28, 2008 4:27 PM, Marshall Hampton <hamp...@gmail.com> wrote:
>
> I now have 14 students actively using Sage on 3 different servers, and
> I have run across a mysterious problem I haven't seen reported here
> before. Three of my students had worksheets suddenly go missing,
> without a deliberate delete.

There's actually currently no way in the Sage notebook to delete a worksheet.
You can move it to the trash, but there's no functionality for actually purging
the trash. So it's very curious that this happened. Do the students have *any*
hints at all about what they might have done to cause the behavior? I wonder
if there are any hints in the worksheet files themselves?

Sorry we haven't had any ideas yet, but in any case I think it's very helpful
that you reported this, so that we can keep it in mind, and if anything similar
comes up know that it isn't just an isolated incident.

By the way, do your run the worksheet processes under a separate user from
the sage notebook, e.g, use the server_pool option? If you don't on a public
notebook server, maybe a student did something very nefarious that resulted
in a deleted worksheet.

> I looked in the notebook files and the
> worksheets were still there, just not visible on the list of
> worksheets. Any guesses on what happened? As a stopgap, I manually
> pasted in the worksheet text to a new copy, but if this happens a lot
> it will really aggravate them.
>
> -M. Hampton
> >
>

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

Thomas Rike

unread,
Jan 28, 2008, 9:39:59 PM1/28/08
to sage-s...@googlegroups.com
I just removed Sage 2.8 from my home directory and installed the SAGE
version 2.10 dmg yesterday.(MacBook Pro 2.16GHz Intel Core Duo 2GB
memory running Leopard OS 10.5.1) When I opened the notebook, I
noticed that my old worksheets were no longer available. When I tried
to upload from the trike/sage_notebook/worksheets file in my
directory, I got an error. I noticed that the new path for the
sage_notebook is to the invisible directory .sage, so I tried moving
the worksheets directory into .sage but I still could not get notebook
to recognize them. I finally just opened them and pasted one into the
notebook to see that everything was still there. It was, so if I need
it I can always go back and paste it in. It would be nice if there is
an easier hack.

If I am doing something incorrectly, please let me know. On a positive
note, since I have Leopard the icon for my SAGE alias on the desktop
is no longer the ugly unix executable. The very colorful Tachyon
graphic of random spheres now serves in its place. It is just like the
old days when all you had to do was drop the graphic into the info menu.

Tom Rike

William Stein

unread,
Jan 29, 2008, 7:03:24 AM1/29/08
to sage-s...@googlegroups.com
On Jan 28, 2008 9:39 PM, Thomas Rike <tricy...@mac.com> wrote:
>
> I just removed Sage 2.8 from my home directory and installed the SAGE
> version 2.10 dmg yesterday.(MacBook Pro 2.16GHz Intel Core Duo 2GB
> memory running Leopard OS 10.5.1) When I opened the notebook, I
> noticed that my old worksheets were no longer available. When I tried
> to upload from the trike/sage_notebook/worksheets file in my
> directory, I got an error. I noticed that the new path for the
> sage_notebook is to the invisible directory .sage, so I tried moving
> the worksheets directory into .sage but I still could not get notebook
> to recognize them. I finally just opened them and pasted one into the
> notebook to see that everything was still there. It was, so if I need
> it I can always go back and paste it in. It would be nice if there is
> an easier hack.

You should have been able to run your original notebook server by doing

sage: notebook(dir="sage_notebook")

where sage_notebook is the directory where your sage notebook is located.
The only change in the notebook since 2.8 was to make the default for dir
$HOME/.sage/sage_notebook

Alternatively, you could have deleted $HOME/.sage/sage_notebook
and then done

cp -rv $HOME/sage_notebook $HOME/.sage/

Marshall Hampton

unread,
Jan 29, 2008, 8:25:18 AM1/29/08
to sage-support
I doubt anyone did anyone nefarious. I am not using the server_pool
option - should I be? The machine in question has a user account set
up just for running sage. If someone is really interested in taking a
look I could create an account on it.

There was nothing out of the ordinary about the worksheet files that I
could see. What determines which worksheets are displayed on the
"Home" screen?

If this happens again, my students are going to be very irritated. I
hope it was a fluke. Tomorrow they will have a lab and will be
hitting these machines pretty hard.

-Marshall

On Jan 28, 7:25 pm, "William Stein" <wst...@gmail.com> wrote:

Jason Grout

unread,
Jan 29, 2008, 10:06:39 AM1/29/08
to sage-s...@googlegroups.com
William Stein wrote:

> By the way, do your run the worksheet processes under a separate user from
> the sage notebook, e.g, use the server_pool option? If you don't on a public
> notebook server, maybe a student did something very nefarious that resulted
> in a deleted worksheet.
>

Is the VMware image set up to do this automatically? I'd like to use
the VMware image for a server, but want it to provide as much security
as possible.

Thanks,

Jason

William Stein

unread,
Jan 29, 2008, 9:16:05 PM1/29/08
to sage-s...@googlegroups.com

No, it's not, but this would be easy to do. Great idea.

William

William Stein

unread,
Jan 29, 2008, 9:18:55 PM1/29/08
to sage-s...@googlegroups.com
On Jan 29, 2008 8:25 AM, Marshall Hampton <hamp...@gmail.com> wrote:
>
> I doubt anyone did anyone nefarious. I am not using the server_pool
> option - should I be? The machine in question has a user account set
> up just for running sage. If someone is really interested in taking a
> look I could create an account on it.

Yes, I think you should use server_pool with another account if that
is an option for you. It greatly increases the security of the notebook.

> There was nothing out of the ordinary about the worksheet files that I
> could see. What determines which worksheets are displayed on the
> "Home" screen?

The notebook object has a list of users, and each user has a list
of worksheets that they own.

> If this happens again, my students are going to be very irritated. I
> hope it was a fluke. Tomorrow they will have a lab and will be
> hitting these machines pretty hard.

You might encourage them to click File --> Save to File and make
a copy of their important worksheet(s) to a file.

-- William

Reply all
Reply to author
Forward
0 new messages