Page 1 of 2

Rehashing after reboot

Posted: Wed Jul 17, 2013 4:29 pm
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)

Re: Rehashing after reboot

Posted: Mon Jul 22, 2013 10:49 am
by Spadge
Is the OS marking the flash drive clean when you reboot?

Re: Rehashing after reboot

Posted: Mon Jul 22, 2013 4:59 pm
by kblc
Spadge wrote:Is the OS marking the flash drive clean when you reboot?
i'm not shure. how can i test it?

Re: Rehashing after reboot

Posted: Mon Jul 22, 2013 7:16 pm
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?

Re: Rehashing after reboot

Posted: Tue Jul 23, 2013 2:57 am
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.

Re: Rehashing after reboot

Posted: Tue Jul 23, 2013 6:22 am
by Spadge
Are your deluge config files on the USB drive? Sounds to me like deluge isn't saving state on shutdown.

Re: Rehashing after reboot

Posted: Wed Jul 24, 2013 5:02 am
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.

Re: Rehashing after reboot

Posted: Wed Jul 24, 2013 8:59 am
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.

Re: Rehashing after reboot

Posted: Thu Jul 25, 2013 10:00 am
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?

Re: Rehashing after reboot

Posted: Sat Jul 27, 2013 1:22 am
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.