ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 06 Oct 2020 21:32:58 +0200Sage upgrade from 5.11 (RedHat Server)https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/So i will start off by saying that I am a complete novice when it comes to Sage. The current server has been handed off to me, the individual who originally built it is no longer around (naturally), and I have been assigned to install the latest version of sage on new server (RedHat 8 VM). I will note that the current version of Sage (5.11) is running on RedHat 6.10
Now my troubles begin. I have the new VM deployed, downloaded the prebuilt binary (sage-9.1-Debian_GNU_Linux_10-x86_64.tar.bz2) to the server and extracted it, and started sage. The first issue i'm having, is it seems in the past a service has been setup to automatically start on boot/startup, and the users browse to server via the FQDN and port number (as in "SageServer.mydomain.edu:8000"), and they are greeted with the "Sage NoteBook" login screen. I have no idea how to get sage to start on this server, where I can simply browse to the server's FQDN and access the page?
Second issue, lets say by some miracle I can get the web working perfectly, how can I import all the users and data from the original server, to this new instance?
THANK YOU IN ADVANCE FOR ANY AND ALL ADVICE!!!Mon, 05 Oct 2020 22:21:03 +0200https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/Answer by slelievre for <p>So i will start off by saying that I am a complete novice when it comes to Sage. The current server has been handed off to me, the individual who originally built it is no longer around (naturally), and I have been assigned to install the latest version of sage on new server (RedHat 8 VM). I will note that the current version of Sage (5.11) is running on RedHat 6.10</p>
<p>Now my troubles begin. I have the new VM deployed, downloaded the prebuilt binary (sage-9.1-Debian_GNU_Linux_10-x86_64.tar.bz2) to the server and extracted it, and started sage. The first issue i'm having, is it seems in the past a service has been setup to automatically start on boot/startup, and the users browse to server via the FQDN and port number (as in "SageServer.mydomain.edu:8000"), and they are greeted with the "Sage NoteBook" login screen. I have no idea how to get sage to start on this server, where I can simply browse to the server's FQDN and access the page?</p>
<p>Second issue, lets say by some miracle I can get the web working perfectly, how can I import all the users and data from the original server, to this new instance?</p>
<p>THANK YOU IN ADVANCE FOR ANY AND ALL ADVICE!!!</p>
https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/?answer=53735#post-id-53735The server you have been handed is running a SageNB server.
This only runs with Python 2.
Prebuilt binaries for Sage 9.1 are based on Python 3,
and cannot be used for running a SageNB server.
There are a few choices to make. The first choice is between
- install a SageNB server
- pros:
- will look familiar to users who have worked with it so far
- has some nice features still missing on the Jupyter side
- cons:
- no longer maintained
- only works with Python 2 whose end of life was 2020-01-01
- only works with Sage <= 9.1; will not work with Sage >= 9.2
- install a JupyterHub server or a CoCalc server
- pros:
- maintained
- good installation instructions and help channels exist
- will work for the foreseeable future
- cons:
- cost of migration for users
- learn new interface
- migrate existing worksheets
- some SageNB features still missing
If you really want to install a SageNB server, choose between
- port SageNB (and its dependencies) to Python 3 (just kidding)
- build Sage 9.0 or 9.1 from source, configuring with `--with-python=2``
- use Sage 8.9 binaries, which are based on Python 2
- use Sage as provided by Fedora's package manager rpm
In case you use binaries, since your server is running RedHat,
prefer Fedora binaries to Debian binaries.
I cannot answer your second question as I have never dealt
with migrating user data across SageNB versions. Maybe there
is nothing to do.
Note that when you install Sage <= 8.9 based on Python 2,
sagenb is a standard package, so it gets installed as part
of installing Sage.
See
- https://github.com/sagemath/sage/tree/8.9/build/pkgs/sagenb/
- https://github.com/sagemath/sage/blob/8.9/build/pkgs/sagenb/type
If you install Sage 9.0 or 9.1 based on Python 2, sagenb
has become an optional package, see
- https://github.com/sagemath/sage/tree/9.0/build/pkgs/sagenb/
- https://github.com/sagemath/sage/blob/9.0/build/pkgs/sagenb/type
so after building Sage you would run `sage -i sagenb` to install SageNB.
If you are installing SageNB, maybe start by upgrading to Sage 8.9
in order to keep things a little simpler.Mon, 05 Oct 2020 23:58:23 +0200https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/?answer=53735#post-id-53735Comment by Razor3468 for <p>The server you have been handed is running a SageNB server.
This only runs with Python 2.</p>
<p>Prebuilt binaries for Sage 9.1 are based on Python 3,
and cannot be used for running a SageNB server.</p>
<p>There are a few choices to make. The first choice is between</p>
<ul>
<li>install a SageNB server
<ul>
<li>pros:
<ul>
<li>will look familiar to users who have worked with it so far</li>
<li>has some nice features still missing on the Jupyter side</li>
</ul></li>
<li>cons:
<ul>
<li>no longer maintained</li>
<li>only works with Python 2 whose end of life was 2020-01-01</li>
<li>only works with Sage <= 9.1; will not work with Sage >= 9.2</li>
</ul></li>
</ul></li>
<li>install a JupyterHub server or a CoCalc server
<ul>
<li>pros:
<ul>
<li>maintained</li>
<li>good installation instructions and help channels exist</li>
<li>will work for the foreseeable future</li>
</ul></li>
<li>cons:
<ul>
<li>cost of migration for users
<ul>
<li>learn new interface</li>
<li>migrate existing worksheets</li>
</ul></li>
<li>some SageNB features still missing</li>
</ul></li>
</ul></li>
</ul>
<p>If you really want to install a SageNB server, choose between</p>
<ul>
<li>port SageNB (and its dependencies) to Python 3 (just kidding)</li>
<li>build Sage 9.0 or 9.1 from source, configuring with `--with-python=2``</li>
<li>use Sage 8.9 binaries, which are based on Python 2</li>
<li>use Sage as provided by Fedora's package manager rpm</li>
</ul>
<p>In case you use binaries, since your server is running RedHat,
prefer Fedora binaries to Debian binaries.</p>
<p>I cannot answer your second question as I have never dealt
with migrating user data across SageNB versions. Maybe there
is nothing to do.</p>
<p>Note that when you install Sage <= 8.9 based on Python 2,
sagenb is a standard package, so it gets installed as part
of installing Sage.</p>
<p>See</p>
<ul>
<li><a href="https://github.com/sagemath/sage/tree/8.9/build/pkgs/sagenb/">https://github.com/sagemath/sage/tree...</a></li>
<li><a href="https://github.com/sagemath/sage/blob/8.9/build/pkgs/sagenb/type">https://github.com/sagemath/sage/blob...</a></li>
</ul>
<p>If you install Sage 9.0 or 9.1 based on Python 2, sagenb
has become an optional package, see</p>
<ul>
<li><a href="https://github.com/sagemath/sage/tree/9.0/build/pkgs/sagenb/">https://github.com/sagemath/sage/tree...</a></li>
<li><a href="https://github.com/sagemath/sage/blob/9.0/build/pkgs/sagenb/type">https://github.com/sagemath/sage/blob...</a></li>
</ul>
<p>so after building Sage you would run <code>sage -i sagenb</code> to install SageNB.</p>
<p>If you are installing SageNB, maybe start by upgrading to Sage 8.9
in order to keep things a little simpler.</p>
https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/?comment=53743#post-id-53743I had a feeling this wasnt going to be a simple upgrade. So just to make sure I understand correctly, this "notebook" feature that is accessed via the URL is not included with the base download from sagemath.org/download.html? I did some searching and this seems to be the github for SageNB, maybe you can correct me if im wrong!
https://github.com/sagemath/sagenb
Looking at the original server, I dont see directory structures that resemble this. Just the base "sage-5.4.1" folder (guessing the original admin did upgrades to 5.11 after the fact?) and a "sage_notebook.sagenb" folder. The "sagenb" folder does contain a "home" directory, a "twistedconf.tac" file, and few files with...a **.pickle** extension? When browsing to the old server's URL, it displays "The Sage Notebook Version 5.11"Tue, 06 Oct 2020 14:58:56 +0200https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/?comment=53743#post-id-53743Comment by Emmanuel Charpentier for <p>The server you have been handed is running a SageNB server.
This only runs with Python 2.</p>
<p>Prebuilt binaries for Sage 9.1 are based on Python 3,
and cannot be used for running a SageNB server.</p>
<p>There are a few choices to make. The first choice is between</p>
<ul>
<li>install a SageNB server
<ul>
<li>pros:
<ul>
<li>will look familiar to users who have worked with it so far</li>
<li>has some nice features still missing on the Jupyter side</li>
</ul></li>
<li>cons:
<ul>
<li>no longer maintained</li>
<li>only works with Python 2 whose end of life was 2020-01-01</li>
<li>only works with Sage <= 9.1; will not work with Sage >= 9.2</li>
</ul></li>
</ul></li>
<li>install a JupyterHub server or a CoCalc server
<ul>
<li>pros:
<ul>
<li>maintained</li>
<li>good installation instructions and help channels exist</li>
<li>will work for the foreseeable future</li>
</ul></li>
<li>cons:
<ul>
<li>cost of migration for users
<ul>
<li>learn new interface</li>
<li>migrate existing worksheets</li>
</ul></li>
<li>some SageNB features still missing</li>
</ul></li>
</ul></li>
</ul>
<p>If you really want to install a SageNB server, choose between</p>
<ul>
<li>port SageNB (and its dependencies) to Python 3 (just kidding)</li>
<li>build Sage 9.0 or 9.1 from source, configuring with `--with-python=2``</li>
<li>use Sage 8.9 binaries, which are based on Python 2</li>
<li>use Sage as provided by Fedora's package manager rpm</li>
</ul>
<p>In case you use binaries, since your server is running RedHat,
prefer Fedora binaries to Debian binaries.</p>
<p>I cannot answer your second question as I have never dealt
with migrating user data across SageNB versions. Maybe there
is nothing to do.</p>
<p>Note that when you install Sage <= 8.9 based on Python 2,
sagenb is a standard package, so it gets installed as part
of installing Sage.</p>
<p>See</p>
<ul>
<li><a href="https://github.com/sagemath/sage/tree/8.9/build/pkgs/sagenb/">https://github.com/sagemath/sage/tree...</a></li>
<li><a href="https://github.com/sagemath/sage/blob/8.9/build/pkgs/sagenb/type">https://github.com/sagemath/sage/blob...</a></li>
</ul>
<p>If you install Sage 9.0 or 9.1 based on Python 2, sagenb
has become an optional package, see</p>
<ul>
<li><a href="https://github.com/sagemath/sage/tree/9.0/build/pkgs/sagenb/">https://github.com/sagemath/sage/tree...</a></li>
<li><a href="https://github.com/sagemath/sage/blob/9.0/build/pkgs/sagenb/type">https://github.com/sagemath/sage/blob...</a></li>
</ul>
<p>so after building Sage you would run <code>sage -i sagenb</code> to install SageNB.</p>
<p>If you are installing SageNB, maybe start by upgrading to Sage 8.9
in order to keep things a little simpler.</p>
https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/?comment=53744#post-id-53744May I suggest to query the (former) users of the old Sage NB server if keeping their files in executable form is of importance...
I secon `slelievre`'s advice, and add that installing a Sage-NB server is probably a dead end : you'd be kicking the can down the road ... a little. `Sage` moves at a phenomenal pace currently, and you'd be stranded with an ever-obsolescing version...
Is the (old) server still accessible ? If so, ISTR that there existed ways to dump those files in (human(?)-)readable form, which could be used to preserve them somehow.
I'd suggest to query the sage-devel [list](https://groups.google.com/g/sage-devel) or the sage-cocalc [list](https://groups.google.com/g/cocalc), where long-time developpers and users abound, susceptible to giving you a better advice than I can.Tue, 06 Oct 2020 16:30:45 +0200https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/?comment=53744#post-id-53744Comment by Razor3468 for <p>The server you have been handed is running a SageNB server.
This only runs with Python 2.</p>
<p>Prebuilt binaries for Sage 9.1 are based on Python 3,
and cannot be used for running a SageNB server.</p>
<p>There are a few choices to make. The first choice is between</p>
<ul>
<li>install a SageNB server
<ul>
<li>pros:
<ul>
<li>will look familiar to users who have worked with it so far</li>
<li>has some nice features still missing on the Jupyter side</li>
</ul></li>
<li>cons:
<ul>
<li>no longer maintained</li>
<li>only works with Python 2 whose end of life was 2020-01-01</li>
<li>only works with Sage <= 9.1; will not work with Sage >= 9.2</li>
</ul></li>
</ul></li>
<li>install a JupyterHub server or a CoCalc server
<ul>
<li>pros:
<ul>
<li>maintained</li>
<li>good installation instructions and help channels exist</li>
<li>will work for the foreseeable future</li>
</ul></li>
<li>cons:
<ul>
<li>cost of migration for users
<ul>
<li>learn new interface</li>
<li>migrate existing worksheets</li>
</ul></li>
<li>some SageNB features still missing</li>
</ul></li>
</ul></li>
</ul>
<p>If you really want to install a SageNB server, choose between</p>
<ul>
<li>port SageNB (and its dependencies) to Python 3 (just kidding)</li>
<li>build Sage 9.0 or 9.1 from source, configuring with `--with-python=2``</li>
<li>use Sage 8.9 binaries, which are based on Python 2</li>
<li>use Sage as provided by Fedora's package manager rpm</li>
</ul>
<p>In case you use binaries, since your server is running RedHat,
prefer Fedora binaries to Debian binaries.</p>
<p>I cannot answer your second question as I have never dealt
with migrating user data across SageNB versions. Maybe there
is nothing to do.</p>
<p>Note that when you install Sage <= 8.9 based on Python 2,
sagenb is a standard package, so it gets installed as part
of installing Sage.</p>
<p>See</p>
<ul>
<li><a href="https://github.com/sagemath/sage/tree/8.9/build/pkgs/sagenb/">https://github.com/sagemath/sage/tree...</a></li>
<li><a href="https://github.com/sagemath/sage/blob/8.9/build/pkgs/sagenb/type">https://github.com/sagemath/sage/blob...</a></li>
</ul>
<p>If you install Sage 9.0 or 9.1 based on Python 2, sagenb
has become an optional package, see</p>
<ul>
<li><a href="https://github.com/sagemath/sage/tree/9.0/build/pkgs/sagenb/">https://github.com/sagemath/sage/tree...</a></li>
<li><a href="https://github.com/sagemath/sage/blob/9.0/build/pkgs/sagenb/type">https://github.com/sagemath/sage/blob...</a></li>
</ul>
<p>so after building Sage you would run <code>sage -i sagenb</code> to install SageNB.</p>
<p>If you are installing SageNB, maybe start by upgrading to Sage 8.9
in order to keep things a little simpler.</p>
https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/?comment=53746#post-id-53746Thanks for the tip Emmanuel! I will have to inquire further about how reasonable it is to start from scratch with the new version. Since the current version is so old, it seems like it could be quite the pain to get it moved over. I'm trying to compile Sage 9.1 on my RHEL 8 server now (using python 2), but it keeps failing saying that im missing about 46 packages, of which I cannot find a repo for RedHat 8 that has them. Guess im stuck with the per-built binaries with that. To answer your question though, the old server **IS** still accessible, and I see a "Home" directory with multiple user directories under it. Im not sure how this could be migrated to the new version though, specially considering the jump from 5.11 to 9.1Tue, 06 Oct 2020 17:54:00 +0200https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/?comment=53746#post-id-53746Comment by Emmanuel Charpentier for <p>The server you have been handed is running a SageNB server.
This only runs with Python 2.</p>
<p>Prebuilt binaries for Sage 9.1 are based on Python 3,
and cannot be used for running a SageNB server.</p>
<p>There are a few choices to make. The first choice is between</p>
<ul>
<li>install a SageNB server
<ul>
<li>pros:
<ul>
<li>will look familiar to users who have worked with it so far</li>
<li>has some nice features still missing on the Jupyter side</li>
</ul></li>
<li>cons:
<ul>
<li>no longer maintained</li>
<li>only works with Python 2 whose end of life was 2020-01-01</li>
<li>only works with Sage <= 9.1; will not work with Sage >= 9.2</li>
</ul></li>
</ul></li>
<li>install a JupyterHub server or a CoCalc server
<ul>
<li>pros:
<ul>
<li>maintained</li>
<li>good installation instructions and help channels exist</li>
<li>will work for the foreseeable future</li>
</ul></li>
<li>cons:
<ul>
<li>cost of migration for users
<ul>
<li>learn new interface</li>
<li>migrate existing worksheets</li>
</ul></li>
<li>some SageNB features still missing</li>
</ul></li>
</ul></li>
</ul>
<p>If you really want to install a SageNB server, choose between</p>
<ul>
<li>port SageNB (and its dependencies) to Python 3 (just kidding)</li>
<li>build Sage 9.0 or 9.1 from source, configuring with `--with-python=2``</li>
<li>use Sage 8.9 binaries, which are based on Python 2</li>
<li>use Sage as provided by Fedora's package manager rpm</li>
</ul>
<p>In case you use binaries, since your server is running RedHat,
prefer Fedora binaries to Debian binaries.</p>
<p>I cannot answer your second question as I have never dealt
with migrating user data across SageNB versions. Maybe there
is nothing to do.</p>
<p>Note that when you install Sage <= 8.9 based on Python 2,
sagenb is a standard package, so it gets installed as part
of installing Sage.</p>
<p>See</p>
<ul>
<li><a href="https://github.com/sagemath/sage/tree/8.9/build/pkgs/sagenb/">https://github.com/sagemath/sage/tree...</a></li>
<li><a href="https://github.com/sagemath/sage/blob/8.9/build/pkgs/sagenb/type">https://github.com/sagemath/sage/blob...</a></li>
</ul>
<p>If you install Sage 9.0 or 9.1 based on Python 2, sagenb
has become an optional package, see</p>
<ul>
<li><a href="https://github.com/sagemath/sage/tree/9.0/build/pkgs/sagenb/">https://github.com/sagemath/sage/tree...</a></li>
<li><a href="https://github.com/sagemath/sage/blob/9.0/build/pkgs/sagenb/type">https://github.com/sagemath/sage/blob...</a></li>
</ul>
<p>so after building Sage you would run <code>sage -i sagenb</code> to install SageNB.</p>
<p>If you are installing SageNB, maybe start by upgrading to Sage 8.9
in order to keep things a little simpler.</p>
https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/?comment=53745#post-id-53745A possible workaround would be to install a temporary NB-able server (i. e. 8.9) on a low-cost, low-performance spare machine (or a VM), with **one** allowed use : allow users to dump their old SageNB files to Jupyter format. These files could be then moved/uploaded to the new server by the users.Tue, 06 Oct 2020 16:38:13 +0200https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/?comment=53745#post-id-53745Comment by Emmanuel Charpentier for <p>The server you have been handed is running a SageNB server.
This only runs with Python 2.</p>
<p>Prebuilt binaries for Sage 9.1 are based on Python 3,
and cannot be used for running a SageNB server.</p>
<p>There are a few choices to make. The first choice is between</p>
<ul>
<li>install a SageNB server
<ul>
<li>pros:
<ul>
<li>will look familiar to users who have worked with it so far</li>
<li>has some nice features still missing on the Jupyter side</li>
</ul></li>
<li>cons:
<ul>
<li>no longer maintained</li>
<li>only works with Python 2 whose end of life was 2020-01-01</li>
<li>only works with Sage <= 9.1; will not work with Sage >= 9.2</li>
</ul></li>
</ul></li>
<li>install a JupyterHub server or a CoCalc server
<ul>
<li>pros:
<ul>
<li>maintained</li>
<li>good installation instructions and help channels exist</li>
<li>will work for the foreseeable future</li>
</ul></li>
<li>cons:
<ul>
<li>cost of migration for users
<ul>
<li>learn new interface</li>
<li>migrate existing worksheets</li>
</ul></li>
<li>some SageNB features still missing</li>
</ul></li>
</ul></li>
</ul>
<p>If you really want to install a SageNB server, choose between</p>
<ul>
<li>port SageNB (and its dependencies) to Python 3 (just kidding)</li>
<li>build Sage 9.0 or 9.1 from source, configuring with `--with-python=2``</li>
<li>use Sage 8.9 binaries, which are based on Python 2</li>
<li>use Sage as provided by Fedora's package manager rpm</li>
</ul>
<p>In case you use binaries, since your server is running RedHat,
prefer Fedora binaries to Debian binaries.</p>
<p>I cannot answer your second question as I have never dealt
with migrating user data across SageNB versions. Maybe there
is nothing to do.</p>
<p>Note that when you install Sage <= 8.9 based on Python 2,
sagenb is a standard package, so it gets installed as part
of installing Sage.</p>
<p>See</p>
<ul>
<li><a href="https://github.com/sagemath/sage/tree/8.9/build/pkgs/sagenb/">https://github.com/sagemath/sage/tree...</a></li>
<li><a href="https://github.com/sagemath/sage/blob/8.9/build/pkgs/sagenb/type">https://github.com/sagemath/sage/blob...</a></li>
</ul>
<p>If you install Sage 9.0 or 9.1 based on Python 2, sagenb
has become an optional package, see</p>
<ul>
<li><a href="https://github.com/sagemath/sage/tree/9.0/build/pkgs/sagenb/">https://github.com/sagemath/sage/tree...</a></li>
<li><a href="https://github.com/sagemath/sage/blob/9.0/build/pkgs/sagenb/type">https://github.com/sagemath/sage/blob...</a></li>
</ul>
<p>so after building Sage you would run <code>sage -i sagenb</code> to install SageNB.</p>
<p>If you are installing SageNB, maybe start by upgrading to Sage 8.9
in order to keep things a little simpler.</p>
https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/?comment=53749#post-id-53749If you can set up a spare machine (or VM), you may try to setup a sage 9.1 server (Python 3) and use it to test the ability of users to convert their old notebook files to Jupyter files.
If this works, you are out of the woods : setup a "main" 9.1 Python 3 server, and leave to your users the responsibility of converting them. [This](https://github.com/vbraun/ExportSageNB) and [this](https://ask.sagemath.org/question/41680/best-way-to-convert-many-notebooks-from-sagenb-to-jupyter/) may be relevant.
Your users' files may [be in their home directories](https://ask.sagemath.org/question/8658/where-in-the-file-system-is-sage-notebook-storing-the-worksheets/). Check with them !Tue, 06 Oct 2020 21:27:45 +0200https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/?comment=53749#post-id-53749Comment by Emmanuel Charpentier for <p>The server you have been handed is running a SageNB server.
This only runs with Python 2.</p>
<p>Prebuilt binaries for Sage 9.1 are based on Python 3,
and cannot be used for running a SageNB server.</p>
<p>There are a few choices to make. The first choice is between</p>
<ul>
<li>install a SageNB server
<ul>
<li>pros:
<ul>
<li>will look familiar to users who have worked with it so far</li>
<li>has some nice features still missing on the Jupyter side</li>
</ul></li>
<li>cons:
<ul>
<li>no longer maintained</li>
<li>only works with Python 2 whose end of life was 2020-01-01</li>
<li>only works with Sage <= 9.1; will not work with Sage >= 9.2</li>
</ul></li>
</ul></li>
<li>install a JupyterHub server or a CoCalc server
<ul>
<li>pros:
<ul>
<li>maintained</li>
<li>good installation instructions and help channels exist</li>
<li>will work for the foreseeable future</li>
</ul></li>
<li>cons:
<ul>
<li>cost of migration for users
<ul>
<li>learn new interface</li>
<li>migrate existing worksheets</li>
</ul></li>
<li>some SageNB features still missing</li>
</ul></li>
</ul></li>
</ul>
<p>If you really want to install a SageNB server, choose between</p>
<ul>
<li>port SageNB (and its dependencies) to Python 3 (just kidding)</li>
<li>build Sage 9.0 or 9.1 from source, configuring with `--with-python=2``</li>
<li>use Sage 8.9 binaries, which are based on Python 2</li>
<li>use Sage as provided by Fedora's package manager rpm</li>
</ul>
<p>In case you use binaries, since your server is running RedHat,
prefer Fedora binaries to Debian binaries.</p>
<p>I cannot answer your second question as I have never dealt
with migrating user data across SageNB versions. Maybe there
is nothing to do.</p>
<p>Note that when you install Sage <= 8.9 based on Python 2,
sagenb is a standard package, so it gets installed as part
of installing Sage.</p>
<p>See</p>
<ul>
<li><a href="https://github.com/sagemath/sage/tree/8.9/build/pkgs/sagenb/">https://github.com/sagemath/sage/tree...</a></li>
<li><a href="https://github.com/sagemath/sage/blob/8.9/build/pkgs/sagenb/type">https://github.com/sagemath/sage/blob...</a></li>
</ul>
<p>If you install Sage 9.0 or 9.1 based on Python 2, sagenb
has become an optional package, see</p>
<ul>
<li><a href="https://github.com/sagemath/sage/tree/9.0/build/pkgs/sagenb/">https://github.com/sagemath/sage/tree...</a></li>
<li><a href="https://github.com/sagemath/sage/blob/9.0/build/pkgs/sagenb/type">https://github.com/sagemath/sage/blob...</a></li>
</ul>
<p>so after building Sage you would run <code>sage -i sagenb</code> to install SageNB.</p>
<p>If you are installing SageNB, maybe start by upgrading to Sage 8.9
in order to keep things a little simpler.</p>
https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/?comment=53750#post-id-53750A couple more notes :
- Your old server is probably too old to be Jupyter-aware. As far as I can tell, the NB-->Jupyter export facility was added to Sage 7.0 or about...
- According to [this answer](https://ask.sagemath.org/question/8658/where-in-the-file-system-is-sage-notebook-storing-the-worksheets/), your users' notebook files were physically in their home directories. You should check your current server's setup to conform this ; peruse its online documentation (type `manual()` in a Sage console or in a worksheet cell)..Tue, 06 Oct 2020 21:32:58 +0200https://ask.sagemath.org/question/53730/sage-upgrade-from-511-redhat-server/?comment=53750#post-id-53750