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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • 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

Cloudron Forum

Apps | Demo | Docs | Install

How to trigger app reboot on a schedule

Scheduled Pinned Locked Moved Unsolved Support
2 Posts 2 Posters 22 Views
    • 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.
  • ChristopherMagC Offline
    ChristopherMagC Offline
    ChristopherMag
    wrote on last edited by
    #1

    The Wekan app has performance issues with things like copying cards from one board to another and the process gets slower and slower the longer the Wekan app is running.

    Our work around is to reboot the Wekan app before doing the card copies which helps dramatically.

    Is there a command I can enter into the Cron section of the Cloudron's app configuration that will reboot the app on a set schedule, or said another way, is there a command that can be run from an app's terminal that will restart the app?

    I tried reboot in the app's terminal and get the following:

    System has not been booted with systemd as init system (PID 1). Can't operate.
    Failed to connect to bus: Host is down
    Failed to talk to init daemon.
    
    1 Reply Last reply
    0
  • nebulonN Online
    nebulonN Online
    nebulon Staff
    wrote on last edited by
    #2

    This might be worth reporting upstream for a start.

    Apps on cloudron are not rebooted but restarted, there is no way an app itself restarts itself unless the main container process gets killed (which is probably possible).

    Cloudron has APIs for this though https://docs.cloudron.io/api.html#tag/Apps/paths/~1apps~1{appid}~1restart/post

    1 Reply Last reply
    1
  • nebulonN nebulon marked this topic as a question on

  • Login

  • Don't have an account? Register

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

  • Don't have an account? Register

  • Login or register to search.