Page 1 of 1

Deluged missing torrents after Dietpi update

Posted: Sun May 26, 2019 7:46 am
by ben61694
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?

Re: Deluged missing torrents after Dietpi update

Posted: Sun May 26, 2019 7:08 pm
by MichaIng
@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:

Code: Select all

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

Re: Deluged missing torrents after Dietpi update

Posted: Fri May 31, 2019 10:26 pm
by ben61694
I got the error
cp: cannot stat '/mnt/dietpi_userdata/deluge_home_backup/.config/deluge/state': No such file or directory

Re: Deluged missing torrents after Dietpi update

Posted: Sun Jun 09, 2019 9:08 pm
by ben61694
I'm guessing there's nothing else I can do?

Re: Deluged missing torrents after Dietpi update

Posted: Fri Jun 14, 2019 3:23 am
by MichaIng
@ben61694
/mnt/dietpi_userdata/deluge_home_backup does not exist?

Re: Deluged missing torrents after Dietpi update

Posted: Sat Jun 29, 2019 11:26 pm
by ben61694
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.

Re: Deluged missing torrents after Dietpi update

Posted: Sun Jun 30, 2019 6:31 pm
by MichaIng
@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:

Code: Select all

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

Re: Deluged missing torrents after Dietpi update

Posted: Mon Jul 01, 2019 12:12 am
by ben61694
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.

Re: Deluged missing torrents after Dietpi update

Posted: Sun Jul 07, 2019 1:08 pm
by MichaIng
@ben61694
Please paste: journalctl -u lighttpd

Re: Deluged missing torrents after Dietpi update

Posted: Wed Aug 14, 2019 5:08 am
by ben61694
It says no entries