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

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Invidious
  3. Cron restart command

Cron restart command

Scheduled Pinned Locked Moved Solved Invidious
4 Posts 2 Posters 67 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.
  • M
    M
    mononym
    wrote last edited by
    #1

    Re: invidious subscriptions break if you don't reboot

    I try to set up a periodic restart of the app with cron. The provided template 0 * * * * echo "==> Restarting invidious periodically" && supervisorctl restart invidious did not trigger a restart (according to the app logs). When running the command manually in app/code/, I get a Python ModuleNotFoundError:

    # supervisorctl restart invidious
    Traceback (most recent call last):
      File "/app/code/venv/bin/supervisorctl", line 5, in <module>
        from supervisor.supervisorctl import main
      File "/app/code/venv/lib/python3.14/site-packages/supervisor/supervisorctl.py", line 40, in <module>
        from supervisor.options import ClientOptions
      File "/app/code/venv/lib/python3.14/site-packages/supervisor/options.py", line 13, in <module>
        import pkg_resources
    ModuleNotFoundError: No module named 'pkg_resources'
    

    Have there been changes to this over time? Thanks.

    1 Reply Last reply
    1
    • nebulonN
      nebulonN
      nebulon
      Staff
      wrote last edited by
      #4

      This is fixed with latest package

      1 Reply Last reply
      2
      • nebulonN
        nebulonN
        nebulon
        Staff
        wrote last edited by nebulon
        #2

        Ah so the full command would be:

        /usr/bin/supervisorctl --configuration /etc/supervisor/supervisord.conf restart all
        

        Will see if we can make the config implicit again (like the docs imply)

        1 Reply Last reply
        0
        • nebulonN
          nebulonN
          nebulon
          Staff
          wrote last edited by
          #3

          Actually it was another issue where I found that we had 2 different versions of supervisor installed. This will be fixed with the next package later today or tomorrow.

          1 Reply Last reply
          1
          • nebulonN
            nebulonN
            nebulon
            Staff
            wrote last edited by
            #4

            This is fixed with latest package

            1 Reply Last reply
            2
            • jamesJ james has marked this topic as solved

            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