Deluged missing torrents after Dietpi update

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
ben61694
Posts: 17
Joined: Tue Oct 30, 2018 1:06 pm

Deluged missing torrents after Dietpi update

Post by ben61694 » Sun May 26, 2019 7:46 am

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?

User avatar
MichaIng
Legend
Posts: 1588
Joined: Sat Nov 18, 2017 5:21 pm

Re: Deluged missing torrents after Dietpi update

Post by MichaIng » Sun May 26, 2019 7:08 pm

@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

ben61694
Posts: 17
Joined: Tue Oct 30, 2018 1:06 pm

Re: Deluged missing torrents after Dietpi update

Post by ben61694 » Fri May 31, 2019 10:26 pm

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

ben61694
Posts: 17
Joined: Tue Oct 30, 2018 1:06 pm

Re: Deluged missing torrents after Dietpi update

Post by ben61694 » Sun Jun 09, 2019 9:08 pm

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

User avatar
MichaIng
Legend
Posts: 1588
Joined: Sat Nov 18, 2017 5:21 pm

Re: Deluged missing torrents after Dietpi update

Post by MichaIng » Fri Jun 14, 2019 3:23 am

@ben61694
/mnt/dietpi_userdata/deluge_home_backup does not exist?

ben61694
Posts: 17
Joined: Tue Oct 30, 2018 1:06 pm

Re: Deluged missing torrents after Dietpi update

Post by ben61694 » Sat Jun 29, 2019 11:26 pm

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.

User avatar
MichaIng
Legend
Posts: 1588
Joined: Sat Nov 18, 2017 5:21 pm

Re: Deluged missing torrents after Dietpi update

Post by MichaIng » Sun Jun 30, 2019 6:31 pm

@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

ben61694
Posts: 17
Joined: Tue Oct 30, 2018 1:06 pm

Re: Deluged missing torrents after Dietpi update

Post by ben61694 » Mon Jul 01, 2019 12:12 am

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.

User avatar
MichaIng
Legend
Posts: 1588
Joined: Sat Nov 18, 2017 5:21 pm

Re: Deluged missing torrents after Dietpi update

Post by MichaIng » Sun Jul 07, 2019 1:08 pm

@ben61694
Please paste: journalctl -u lighttpd

ben61694
Posts: 17
Joined: Tue Oct 30, 2018 1:06 pm

Re: Deluged missing torrents after Dietpi update

Post by ben61694 » Wed Aug 14, 2019 5:08 am

It says no entries

Post Reply