Waiting on other task to finish, cannot cancel task on app
-
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.
-
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.
@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.
-
@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.
@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.
-
G girish marked this topic as a question on
-
G girish has marked this topic as solved on
-
@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.
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. -
-
@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)
@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.
-
@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.
@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)
-
@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)
@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?
-
@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?
@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?