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. Support
  3. Waiting on other task to finish, cannot cancel task on app

Waiting on other task to finish, cannot cancel task on app

Scheduled Pinned Locked Moved Solved Support
10 Posts 5 Posters 1.5k 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.
  • d19dotcaD Offline
    d19dotcaD Offline
    d19dotca
    wrote on last edited by d19dotca
    #1

    I have a backup running and while doing that I tried to make a change to an app by putting it in repair mode (forgetting I had a backup task running), and tried to cancel the task but it won't cancel, it seems to do nothing when I hit the 'x' to cancel it. 😞

    Is this a defect in 7.3.2 perhaps? Tried doing this in both Firefox and Safari in case it was a browser issue but issue is seen in both.

    --
    Dustin Dauncey
    www.d19.ca

    humptydumptyH 1 Reply Last reply
    0
    • d19dotcaD d19dotca

      I have a backup running and while doing that I tried to make a change to an app by putting it in repair mode (forgetting I had a backup task running), and tried to cancel the task but it won't cancel, it seems to do nothing when I hit the 'x' to cancel it. 😞

      Is this a defect in 7.3.2 perhaps? Tried doing this in both Firefox and Safari in case it was a browser issue but issue is seen in both.

      humptydumptyH Offline
      humptydumptyH Offline
      humptydumpty
      wrote on last edited by humptydumpty
      #2

      @d19dotca have you tried restarting the server? I posted about having trouble updating apps in another thread and restarting the server cleared the issue temporarily.

      Btw, what ubuntu version are you using? It looks like mine is fixed after updating to 22.04. However, it did require intervention from Girish but all is good now.

      d19dotcaD 1 Reply Last reply
      0
      • humptydumptyH humptydumpty

        @d19dotca have you tried restarting the server? I posted about having trouble updating apps in another thread and restarting the server cleared the issue temporarily.

        Btw, what ubuntu version are you using? It looks like mine is fixed after updating to 22.04. However, it did require intervention from Girish but all is good now.

        d19dotcaD Offline
        d19dotcaD Offline
        d19dotca
        wrote on last edited by
        #3

        @humptydumpty I recently had upgraded to 22.04, so I'm already on that version. I haven't restarted the server but that was because the backup was running so I didn't want to interrupt that. This almost seems more like a GUI bug to me, but hard to say for sure.

        --
        Dustin Dauncey
        www.d19.ca

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

          Can you check what it says in the logs when you click 'x' ?

          1 Reply Last reply
          1
          • girishG girish marked this topic as a question on
          • girishG girish has marked this topic as solved on
          • d19dotcaD Offline
            d19dotcaD Offline
            d19dotca
            wrote on last edited by d19dotca
            #5

            @girish, somehow I never saw the last response so I apologize for that. I know a long time has passed but I'm still seeing the issue in Cloudron 7.5.0.

            image.png

            Basically it seems I get a 409 Conflict HTTP status response in the console logs of the browser when clicking the cancel icon...

            [Error] Failed to load resource: the server responded with a status of 409 () (stop, line 0) https://<hostname>/api/v1/tasks/21297/stop

            The scenario is that I have the system backup running, and I didn't realize it at the time and wanted to back up a particular app, so I did that but I see that I can't cancel the operation/task due to the 409 Conflict response, and now I'm stuck waiting for about 30 minutes before I can move forwards when the system backup task is completed.

            In the system logs in Cloudron, I see the following:

            Aug 07 16:42:03 box:apptaskmanager Could not get lock. Locked for full_backup, queueing task id 21302
            Aug 07 16:42:03 box:tasks update 21302: {"percent":1,"message":"Waiting for Cloudron to finish backup. See the Backups view"}
            

            And POST /api/v1/tasks/21297/stop 409 Conflict task is not active 2.961 ms - 61 too.

            --
            Dustin Dauncey
            www.d19.ca

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

              @d19dotca Currently, you have to go the Backups view and cancel the backup task. Then, you can cancel the app task.

              I guess a scheduled task must be cancelable. I will track this internally (https://git.cloudron.io/cloudron/box/-/issues/831)

              d19dotcaD 1 Reply Last reply
              2
              • girishG girish

                @d19dotca Currently, you have to go the Backups view and cancel the backup task. Then, you can cancel the app task.

                I guess a scheduled task must be cancelable. I will track this internally (https://git.cloudron.io/cloudron/box/-/issues/831)

                d19dotcaD Offline
                d19dotcaD Offline
                d19dotca
                wrote on last edited by
                #7

                @girish said in Waiting on other task to finish, cannot cancel task on app:

                @d19dotca Currently, you have to go the Backups view and cancel the backup task. Then, you can cancel the app task.

                I guess a scheduled task must be cancelable. I will track this internally (https://git.cloudron.io/cloudron/box/-/issues/831)

                Yes please, as I'd never want to really cancel the system level backup just to be able to cancel the individual app level backup, as that'd mean losing a lot of time on the system level backup (currently takes about 1.25 hours to complete). If the task on an app can't be cancelled, I'd argue it shouldn't even exist as an option in the first place.

                An app task should be cancelable at any time really, especially if it's waiting on a longer alternate task to complete first. 🙂

                --
                Dustin Dauncey
                www.d19.ca

                jdaviescoatesJ 1 Reply Last reply
                1
                • d19dotcaD d19dotca

                  @girish said in Waiting on other task to finish, cannot cancel task on app:

                  @d19dotca Currently, you have to go the Backups view and cancel the backup task. Then, you can cancel the app task.

                  I guess a scheduled task must be cancelable. I will track this internally (https://git.cloudron.io/cloudron/box/-/issues/831)

                  Yes please, as I'd never want to really cancel the system level backup just to be able to cancel the individual app level backup, as that'd mean losing a lot of time on the system level backup (currently takes about 1.25 hours to complete). If the task on an app can't be cancelled, I'd argue it shouldn't even exist as an option in the first place.

                  An app task should be cancelable at any time really, especially if it's waiting on a longer alternate task to complete first. 🙂

                  jdaviescoatesJ Offline
                  jdaviescoatesJ Offline
                  jdaviescoates
                  wrote on last edited by
                  #8

                  @d19dotca said in Waiting on other task to finish, cannot cancel task on app:

                  Yes please, as I'd never want to really cancel the system level backup just to be able to cancel the individual app level backup

                  I've just hit exactly this and it's very frustrating.

                  I hit update on an app, but it was queued because it's waiting for the overall Cloudron backup to finish, but now I can't cancel the task, which I need to do in order to be able to access the Terminal for the app to fix something.

                  @girish said in Waiting on other task to finish, cannot cancel task on app:

                  I guess a scheduled task must be cancelable. I will track this internally (https://git.cloudron.io/cloudron/box/-/issues/831)

                  That's now a broken link and I'm struggling to find any issues on there 🤔

                  But hopefully this can be fixed. The cancel task button should always work! (and if it doesn't work, it should be displayed)

                  I use Cloudron with Gandi & Hetzner

                  J 1 Reply Last reply
                  0
                  • jdaviescoatesJ jdaviescoates

                    @d19dotca said in Waiting on other task to finish, cannot cancel task on app:

                    Yes please, as I'd never want to really cancel the system level backup just to be able to cancel the individual app level backup

                    I've just hit exactly this and it's very frustrating.

                    I hit update on an app, but it was queued because it's waiting for the overall Cloudron backup to finish, but now I can't cancel the task, which I need to do in order to be able to access the Terminal for the app to fix something.

                    @girish said in Waiting on other task to finish, cannot cancel task on app:

                    I guess a scheduled task must be cancelable. I will track this internally (https://git.cloudron.io/cloudron/box/-/issues/831)

                    That's now a broken link and I'm struggling to find any issues on there 🤔

                    But hopefully this can be fixed. The cancel task button should always work! (and if it doesn't work, it should be displayed)

                    J Offline
                    J Offline
                    joseph
                    Staff
                    wrote on last edited by
                    #9

                    @jdaviescoates said in Waiting on other task to finish, cannot cancel task on app:

                    I hit update on an app, but it was queued because it's waiting for the overall Cloudron backup to finish,

                    In 8.2, the global lock was removed and the chance of queued apps is quite low now. Could it be that it was backing up the app that you clicked to update?

                    jdaviescoatesJ 1 Reply Last reply
                    0
                    • J joseph

                      @jdaviescoates said in Waiting on other task to finish, cannot cancel task on app:

                      I hit update on an app, but it was queued because it's waiting for the overall Cloudron backup to finish,

                      In 8.2, the global lock was removed and the chance of queued apps is quite low now. Could it be that it was backing up the app that you clicked to update?

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #10

                      @joseph said in Waiting on other task to finish, cannot cancel task on app:

                      Could it be that it was backing up the app that you clicked to update?

                      I think it was indeed backing up the same app yes (it was my Nextcloud which has lots of data and so the backup takes ages).

                      But I still don't see/ understand why that should stop me being able to cancel a queue update for the same app? 🤔

                      I use Cloudron with Gandi & Hetzner

                      1 Reply Last reply
                      0
                      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