Torrents in ERROR state after crash with mergerfs

General support for problems installing or using Deluge
k0gs
New User
New User
Posts: 7
Joined: Thu Nov 14, 2024 10:54 pm

Torrents in ERROR state after crash with mergerfs

Post by k0gs »

I've been using mergerfs for a while now and it's been great with deluge and the following settings:
allow_other,fsname=mergerfs,
minfreespace=50G,
moveonenospc=true,
dropcacheonclose=false,
security_capability=false,
xattr=noattr,cache.files=off,
direct_io,cache.readdir=true,
use_ino,func.getattr=newest,
func.readdir=cosr,
category.create=mfs,
func.mkdir=epall
For some reason, after a crash, almost all torrents are in an ERROR state. These aren't active torrents, but old, completed torrents that haven't been touched in a while. I then have to force recheck them, until the next crash (crash is related to power failures).

Anyone using mergerfs and has some idea what's happening?
User avatar
ambipro
Moderator
Moderator
Posts: 673
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Torrents in ERROR state after crash with mergerfs

Post by ambipro »

When deluge does not exit gracefully, there is a potential for state corruption. This is probably what is happening.

Power failures and abrupt crashes are just prone to this, and my recommendation would be to get a UPS if the power failures are somewhat brief (10-20m)...because there's not really a solution to the problem of "I lost power and my computer just shut down and there is data corruption issues" otherwise.

Been a problem since computers with persistent data was invented.
k0gs
New User
New User
Posts: 7
Joined: Thu Nov 14, 2024 10:54 pm

Re: Torrents in ERROR state after crash with mergerfs

Post by k0gs »

Thanks, but I'm looking for a config solution not an infrastructure solution.
User avatar
ambipro
Moderator
Moderator
Posts: 673
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Torrents in ERROR state after crash with mergerfs

Post by ambipro »

There isnt a solution to power failure other than providing power... its a physics thing.
k0gs
New User
New User
Posts: 7
Joined: Thu Nov 14, 2024 10:54 pm

Re: Torrents in ERROR state after crash with mergerfs

Post by k0gs »

I'm not looking for a solution to a power failure. Maybe re-read my question.
User avatar
ambipro
Moderator
Moderator
Posts: 673
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Torrents in ERROR state after crash with mergerfs

Post by ambipro »

The torrents are in an error state because of the power failure. Maybe reread my first response.
k0gs
New User
New User
Posts: 7
Joined: Thu Nov 14, 2024 10:54 pm

Re: Torrents in ERROR state after crash with mergerfs

Post by k0gs »

I'm not asking why they're in an error state either, only how to prevent it via a config change. I don't know why you keep trolling my ask.
User avatar
ambipro
Moderator
Moderator
Posts: 673
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Torrents in ERROR state after crash with mergerfs

Post by ambipro »

Its not trolling. Im giving you the solution. There is no config change you can make to any application in existence to make power failures exit gracefully.
until the next crash (crash is related to power failures).
Solve the underlying issue. Fix the problem. There's no trolling going on here, you just dont want to accept what you are being told.
k0gs
New User
New User
Posts: 7
Joined: Thu Nov 14, 2024 10:54 pm

Re: Torrents in ERROR state after crash with mergerfs

Post by k0gs »

It looks like this may be the solution viewtopic.php?f=7&t=48629&hilit=mount#p225413
Leaving that here for Google to pickup.
User avatar
ambipro
Moderator
Moderator
Posts: 673
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Torrents in ERROR state after crash with mergerfs

Post by ambipro »

Unless youre just omitting that youre launching deluge before mounting the fs... thats not going to change anything.

Feel free to try.
Post Reply