Rehashing after reboot

General support for problems installing or using Deluge
kblc
New User
New User
Posts: 6
Joined: Wed Jul 17, 2013 4:25 pm

Rehashing after reboot

Post by kblc »

After each reboot deluge starts rehashing all of my torrents... Why?
How can I fix it?

i use ubutu and all of downloaded files contains on removable flash drive (USB Flash drive)
Spadge
Seeder
Seeder
Posts: 111
Joined: Sat Dec 13, 2008 4:17 pm

Re: Rehashing after reboot

Post by Spadge »

Is the OS marking the flash drive clean when you reboot?
kblc
New User
New User
Posts: 6
Joined: Wed Jul 17, 2013 4:25 pm

Re: Rehashing after reboot

Post by kblc »

Spadge wrote:Is the OS marking the flash drive clean when you reboot?
i'm not shure. how can i test it?
Spadge
Seeder
Seeder
Posts: 111
Joined: Sat Dec 13, 2008 4:17 pm

Re: Rehashing after reboot

Post by Spadge »

check your logs. Is there anything about the drive in boot.log?

Does it rehash if you manually shut down deluge before rebooting?
kblc
New User
New User
Posts: 6
Joined: Wed Jul 17, 2013 4:25 pm

Re: Rehashing after reboot

Post by kblc »

Spadge wrote:check your logs. Is there anything about the drive in boot.log?

Does it rehash if you manually shut down deluge before rebooting?
One error for this USB device in boot.log:
ata_id[738]: HDIO_GET_IDENTITY failed for '/dev/sdb': Invalid argument

If I shutdown deluge and deluge service manualy, after reboot rehashing not started.
Spadge
Seeder
Seeder
Posts: 111
Joined: Sat Dec 13, 2008 4:17 pm

Re: Rehashing after reboot

Post by Spadge »

Are your deluge config files on the USB drive? Sounds to me like deluge isn't saving state on shutdown.
kblc
New User
New User
Posts: 6
Joined: Wed Jul 17, 2013 4:25 pm

Re: Rehashing after reboot

Post by kblc »

Spadge wrote:Are your deluge config files on the USB drive? Sounds to me like deluge isn't saving state on shutdown.
No. Deluge config files located in ~/.config/deluge . It is hard drive.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Rehashing after reboot

Post by Cas »

The reason is Ubuntu is shutting down before deluged has a chance to write the state files, if you run it as an upstart service that usually solves the issue.
kblc
New User
New User
Posts: 6
Joined: Wed Jul 17, 2013 4:25 pm

Re: Rehashing after reboot

Post by kblc »

Cas wrote:The reason is Ubuntu is shutting down before deluged has a chance to write the state files, if you run it as an upstart service that usually solves the issue.
I'm not realy understand for what deluge change state on shutting down? Why?
Spadge
Seeder
Seeder
Posts: 111
Joined: Sat Dec 13, 2008 4:17 pm

Re: Rehashing after reboot

Post by Spadge »

kblc wrote:I'm not realy understand for what deluge change state on shutting down? Why?
Deluge saves state when shutting down. That's how it knows what has downloaded and what hasn't when it starts up. If it can't save state and keep track of where it's at with its downloads it has to check hashes on every startup.

So if you use an upstart script it will start and stop deluged at the appropriate time during startup and shutdown.
Post Reply