Background tasks (started by root) suddenly popup in admin screen

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.14
How are you able to access your server: The webadmin

Describe your issue

When connected to the admin page, doing nothing, suddenly the popup will appear for tasks started in the background, typically creating backup archives (staryed by root).

I guess this is due to the borg backup app’s cronjob starting.

However, this means that an admin is unable to do something else in parallel. While this might be a good idea, in principle, so that backups aren’t made in the middle of the bridge, I find it annoying if YNH “locks” me out of the interface.

I guess this is due to the novelties in 12.1 regarding these admin tasks.

Thanks in advance.

Share relevant logs or error messages

I’m just unable to use the Web UI at will

On CLI also before this yunohost versions if a borg backup was running, you could not execute a command yunohost with the alert similar to : a command yunonost is yet running, wait for this command to finish....

I understand you want be still available to navigate on the webui ?

Well, What’s particularly surprising is a popup appearing while you’re doing nothing. Like your server has demons / been pawned :wink:

did your borg backup succseed? I got lots of mails that the backup started and then every task failed.

heres one of the logs https://paste.yunohost.org/raw/beyuriyaxo

No problem with my backups. Thanks for caring. Wouldn’t you try a specific question, as this is probably unrelated?

1 Like

I’ll investigate a bit and raise a new topic if needed. I just stumbled over the same pop ups as you while trying to figure out why borg fails. Of course no changes besides the upgrade (that I wasnt realy aware of, I just thought the application list looks different without further thinking about it)

Don’t know what to say exactly … basically this has always been the case, i.e. that automatic backups or other tasks may start on your server, and may take the “lock” … and so far (before 12.1) the UX was shit because when opening up the webadmin, it would just be unresponsive and you’d have no idea what’s going on or why … people would possibly even reboot their server because of this

I understand that’s it’s a bit weird that the something “suddenly starts” but at least you now know what’s going on …

In an ideal world, the task wouldn’t take the lock and you’d be able to perform other task but that’s not a trivial problem to solve (eg performing a backup while other things are likely to significantly mutate the system is a recipe for disaster). Possibly in the future we may make it possible to at least browse the webadmin in “read only” basically but that’s not trivial because the front end logic needs to be adapted for this.

2 Likes

FWIW, this looks very much like Borg fails when file changes on disk during archive creation · Issue #159 · YunoHost-Apps/borg_ynh · GitHub. Hope this helps,

Please do raise a separate topic, as this will probably help understand. I have a few ideas, but don’t want to pollute this one too much.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.