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
  • 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 | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. Automatic restart of an app (especially regarding websites) after it is down

Automatic restart of an app (especially regarding websites) after it is down

Scheduled Pinned Locked Moved Feature Requests
restarthealthcheck
12 Posts 4 Posters 1.8k Views 4 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.
  • D Offline
    D Offline
    Daniel Jacob
    wrote on last edited by girish
    #1

    Why is there no automatic restart of an app (especially regarding websites) after it is down?

    1 Reply Last reply
    3
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @Daniel-Jacob app is already automatically restarted if it crashes. It's only not restarted, if it is running but "not responding" to health checks.

      Is there a use case where one should restart an app when it's not responding? Other than, "let us try, why not" ?

      1 Reply Last reply
      0
      • girishG girish marked this topic as a question on
      • dsp76D Offline
        dsp76D Offline
        dsp76
        wrote on last edited by dsp76
        #3

        We experience it sometimes in the last days, where WordPress went down. At least in one case, when someone hammered our site and downloaded files from a plugin for whatever reason (DDOS?). Cloudron realized, the app is "not responding".

        Unfortunately we realized it quite some time later. So an automatic restart attempt, when the app is not responding, would help in this scenario.

        (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

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

          @dsp76 thanks. Do you have any idea why a restart helps here? Maybe some processes got stuck? Usually, these are just either package bugs or app bugs. But if there are specific reproducible scenarios, I think we can investigate further .

          I will move this to Feature Requests in any case.

          1 Reply Last reply
          0
          • girishG girish marked this topic as a regular topic on
          • dsp76D Offline
            dsp76D Offline
            dsp76
            wrote on last edited by
            #5

            @girish we haven not finally found the reason. The "someone" mentioned actually is the internal IP Adress of the WordPress App. I only found one scenario in the web, when this might happen - if IPv6 is in use and the reverse proxy maps it with an internal IP. But IPv6 in our case is not enabled...

            Its a specific wordpress plugin, which again and again will loaded with many of its files. Strange..

            (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

            1 Reply Last reply
            0
            • girishG girish moved this topic from Support on
            • girishG girish forked this topic on
            • dsp76D Offline
              dsp76D Offline
              dsp76
              wrote on last edited by
              #6

              @girish did you have seen other reports, where internal IP traffic in WordPress dev Image causes Wordpress to crash?

              (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

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

                @dsp76 I have not, no. So, you think (user installed) WordPress plugins are generating some internal traffic?

                1 Reply Last reply
                0
                • dsp76D Offline
                  dsp76D Offline
                  dsp76
                  wrote on last edited by
                  #8

                  Yes, randomly the WordPress Dev instance is crashing on the well powered system, while it was running on a native vServer stable before. The application log is not telling much about the reason - how can I see the Apache log for instance? I read https://docs.cloudron.io/packaging/cheat-sheet/#logging but have trouble understanding it, @girish

                  (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

                  girishG 1 Reply Last reply
                  0
                  • dsp76D dsp76

                    Yes, randomly the WordPress Dev instance is crashing on the well powered system, while it was running on a native vServer stable before. The application log is not telling much about the reason - how can I see the Apache log for instance? I read https://docs.cloudron.io/packaging/cheat-sheet/#logging but have trouble understanding it, @girish

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

                    @dsp76 the apache log should be in the main app logs - https://docs.cloudron.io/apps/#log-viewer

                    1 Reply Last reply
                    0
                    • dsp76D Offline
                      dsp76D Offline
                      dsp76
                      wrote on last edited by
                      #10

                      @girish - the most likely reason my wordpress stops responding is this:

                      2024-05-19T22:56:54.000Z [Sun May 19 22:56:54.610795 2024] [mpm_prefork:error] [pid 1] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
                      2
                      

                      Is this something I can set?

                      (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

                      1 Reply Last reply
                      0
                      • nebulonN Offline
                        nebulonN Offline
                        nebulon
                        Staff
                        wrote on last edited by
                        #11

                        @dsp76 you should apply the same solution here as for other php apps like Nextcloud: https://forum.cloudron.io/post/83499

                        1 Reply Last reply
                        0
                        • dsp76D Offline
                          dsp76D Offline
                          dsp76
                          wrote on last edited by
                          #12

                          Thanks! Increased it and will monitor and report, if it solved it.

                          (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

                          1 Reply Last reply
                          0
                          • dsp76D dsp76 referenced this topic on
                          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