Deluged missing torrents after Dietpi update

I updated from 6.19 to 6.24.1 and lost 100 seeding torrents. I only have one torrent now that is seeding. Also, it says I have an update pending and I can update to 6.24.0, why is it getting me to downgrade and how do I fix my seeds?

ben61694
Many thanks for your report.

To fix the update prompt, please try: dietpi-update 2
This will only check for updates and update the related flag file.

You should have received an info during DietPi-Update about the backed-up Deluge home dir. Please try the following to restore torrents+states:

systemctl stop deluge-web deluged
mv /mnt/dietpi_userdata/deluge/.config/deluge/state /mnt/dietpi_userdata/deluge/.config/deluge/state_bak
cp -a /mnt/dietpi_userdata/deluge_home_backup/.config/deluge/state /mnt/dietpi_userdata/deluge/.config/deluge/state
chown -R debian-deluged:debian-deluged /mnt/dietpi_userdata/deluge
systemctl start deluged deluge-web

I got the error
cp: cannot stat ‘/mnt/dietpi_userdata/deluge_home_backup/.config/deluge/state’: No such file or directory

I’m guessing there’s nothing else I can do?

ben61694
/mnt/dietpi_userdata/deluge_home_backup does not exist?

Nope it doesn’t.

Now it seems my Deluged doesn’t work at all anymore, it says raise badloginerror username does not exist. I didn’t try logging in for a while though.

ben61694
EDIT
And now I mixed things up:

  • It was myMPD where the update required a config file reset, not Deluge.
  • In case of Deluge actually active configs were not touched at all. These were moved to the new location already some versions before, so also active torrents etc were not touched.
  • So it makes sense that the old users home dir does not exist on most cases and it did not contain any relevant settings files or state info. This was already forced at /mnt/dietpi_userdata/deluge by the service file.

Sorry to cause confusion here. So strange that your torrents were lost actually. So lets do a clean reinstall after backing up existing data. Perhaps the Deluge version jump was too high or something:

systemctl stop deluge-web deluged
mv /mnt/dietpi_userdata/deluge/.config/deluge/state_bak /mnt/dietpi_userdata/deluge/.config/deluge/state # back to normal
mv /mnt/dietpi_userdata/deluge /mnt/dietpi_userdata/deluge_bak
mkdir -p /mnt/dietpi_userdata/deluge/.config/deluge
cp -R /mnt/dietpi_userdata/deluge_bak/.config/deluge/state /mnt/dietpi_userdata/deluge/.config/deluge/state # preserve active torrents
dietpi-software reinstall 45

Ran into some errors?

[ SUB2 ] DietPi-Process_tool > Apply
[FAILED] DietPi-Process_tool | Webserver Lighttpd (31630) : Nice 0
[FAILED] DietPi-Process_tool | Webserver Lighttpd (31630) : Scheduler SCHED_OTHER 0
[FAILED] DietPi-Process_tool | Webserver Lighttpd (31631) : Nice 0
[FAILED] DietPi-Process_tool | Webserver Lighttpd (31631) : Scheduler SCHED_OTHER 0
[FAILED] DietPi-Process_tool | An issue has occurred

Edit: So my deluged is fixed (at least I can access it through the web client by adding a new account). It has whatever torrents I added after I posted about missing the rest of my torrents.

ben61694
Please paste: journalctl -u lighttpd

It says no entries