Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. JupyterHub
  3. Jupyterhub - single user notebook servers shuts down

Jupyterhub - single user notebook servers shuts down

Scheduled Pinned Locked Moved JupyterHub
10 Posts 2 Posters 3.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    balticpenguin
    wrote on last edited by girish
    #1

    I would like to use the Jupyter Scheduler extension.

    https://jupyter-scheduler.readthedocs.io/en/latest/users/index.html#installation

    The installation is working fine.
    I then set up a job that runs once a day. This also works without any problems.

    However, I have noticed one issue. If I don't use the app for a few days, my notebook server is shut down and thus the job will not run again until I start the notebook server.

    Is there a way to prevent the Notebook Server from shutting down in the Jupyterhub settings?

    girishG 1 Reply Last reply
    1
    • B balticpenguin

      I would like to use the Jupyter Scheduler extension.

      https://jupyter-scheduler.readthedocs.io/en/latest/users/index.html#installation

      The installation is working fine.
      I then set up a job that runs once a day. This also works without any problems.

      However, I have noticed one issue. If I don't use the app for a few days, my notebook server is shut down and thus the job will not run again until I start the notebook server.

      Is there a way to prevent the Notebook Server from shutting down in the Jupyterhub settings?

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by girish
      #2

      @balticpenguin are you using Cloudron to deploy JupyterHub ? The Cloudron package has no code to shutdown notebooks

      B 1 Reply Last reply
      0
      • girishG girish

        @balticpenguin are you using Cloudron to deploy JupyterHub ? The Cloudron package has no code to shutdown notebooks

        B Offline
        B Offline
        balticpenguin
        wrote on last edited by
        #3

        @girish: Yes, I use Cloudron to deploy Jupyterhub.

        girishG 1 Reply Last reply
        0
        • B balticpenguin

          @girish: Yes, I use Cloudron to deploy Jupyterhub.

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @balticpenguin OK, I was a bit wrong. When the app gets updated to use the latest notebook, the existing notebooks are shutdown so that they can be started with the newer image. I suspect that maybe the app is getting updated in the middle and thus the notebook is getting shutdown.

          Is your job able to start up the notebook server automatically?

          B 1 Reply Last reply
          0
          • girishG girish

            @balticpenguin OK, I was a bit wrong. When the app gets updated to use the latest notebook, the existing notebooks are shutdown so that they can be started with the newer image. I suspect that maybe the app is getting updated in the middle and thus the notebook is getting shutdown.

            Is your job able to start up the notebook server automatically?

            B Offline
            B Offline
            balticpenguin
            wrote on last edited by
            #5

            @girish: I have checked if the shutdown is related to an update and thus a restart of Jupyterhub. This is not the case.
            There must be something running in the background of Jupyterhub that stops the notebook server/Docker container as soon as there is a certain amount of inactivity.

            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              Is some external service like culler enabled ? https://github.com/jupyterhub/jupyterhub-idle-culler . The default package doesn't enable all that, so I am just asking if you have enabled it in your own.

              1 Reply Last reply
              0
              • B Offline
                B Offline
                balticpenguin
                wrote on last edited by
                #7

                No manual changes have been made so far.
                I could not find jupyterhub-idle-culler in the list of 'pip list' in the terminal of the Jupyterhub container.

                1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

                  @balticpenguin think we have to check the logs of jupyterhub. Do you see any logs that it is removing a container ? Cloudron itself doesn't remove any containers.

                  B 1 Reply Last reply
                  0
                  • girishG girish

                    @balticpenguin think we have to check the logs of jupyterhub. Do you see any logs that it is removing a container ? Cloudron itself doesn't remove any containers.

                    B Offline
                    B Offline
                    balticpenguin
                    wrote on last edited by
                    #9

                    @girish Where or how can I find the log files from Jupyterhub?

                    girishG 1 Reply Last reply
                    0
                    • B balticpenguin

                      @girish Where or how can I find the log files from Jupyterhub?

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #10

                      @balticpenguin this one https://docs.cloudron.io/apps/#log-viewer

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search