port preferences ignored on upgrade until daemon restarted

General support for problems installing or using Deluge
Post Reply
clarknova
Member
Member
Posts: 37
Joined: Tue Sep 16, 2008 5:24 am

port preferences ignored on upgrade until daemon restarted

Post by clarknova »

I just upgraded from 1.0.6 to 1.0.7 and after restarting deluged (1.0.7) my active port has changed to something random, even though my preferences still show the correct port. After restarting deluged (1.0.7) a second it's listening on the correct port. I'm pretty sure I've seen the same thing happen on past upgrades. I believe the correct behaviour would be to have deluged preserve (or observe?) the port preferences from older versions when running the first time in a new version.

db
db
clarknova
Member
Member
Posts: 37
Joined: Tue Sep 16, 2008 5:24 am

Re: port preferences ignored on upgrade until daemon restarted

Post by clarknova »

Just upgraded to 1.1.0-RC2 and again found the daemon listening on the wrong port, even though I have the correct port set in the preferences.
db
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: port preferences ignored on upgrade until daemon restarted

Post by andar »

Deluge will sometimes pick a random port if the selected port is not available. It could be that another program has binded the port for listening..
clarknova
Member
Member
Posts: 37
Joined: Tue Sep 16, 2008 5:24 am

Re: port preferences ignored on upgrade until daemon restarted

Post by clarknova »

andar wrote:Deluge will sometimes pick a random port if the selected port is not available. It could be that another program has binded the port for listening..
While that's true, it seems an unlikely coincidence that this would occur on something like 3 out of my last 4 upgrades. I could be wrong.

After I upgrade I usually restart the daemon thus:

Code: Select all

killall deluged && deluged
Is it possible the old daemon isn't releasing the port quickly enough for the new daemon to claim it?
Last edited by clarknova on Fri Jan 09, 2009 2:39 pm, edited 1 time in total.
db
yawie
Member
Member
Posts: 14
Joined: Mon Jan 05, 2009 4:36 pm

Re: port preferences ignored on upgrade until daemon restarted

Post by yawie »

wouldn't it be a timeout on the open tcp connection on the system?
It seems to me that open connection cannot be released and reused immediately.
clarknova
Member
Member
Posts: 37
Joined: Tue Sep 16, 2008 5:24 am

Re: port preferences ignored on upgrade until daemon restarted

Post by clarknova »

yawie wrote:It seems to me that open connection cannot be released and reused immediately.
Perhaps, but then why doesn't it have a problem regrabbing the port when I do the same thing without upgrading? Does the system recognize the process asking for the same port and permit it, but doesn't recognize the process after an upgrade, and refuses to release the port to it?
db
laupan

Re: port preferences ignored on upgrade until daemon restarted

Post by laupan »

Re: port preferences ignored on upgrade until daemon restarted

Postby clarknova on Wed Jan 07, 2009 12:36 am
Just upgraded to 1.1.0-RC2 and again found the daemon listening on the wrong port, even though I have the correct port set in the preferences.
My OS is XP, I have TCP-port forwarded for DHT but do we need to do the same for Daemon port as well? appreciate any advise on the matter, thanks.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: port preferences ignored on upgrade until daemon restarted

Post by johnnyg »

laupan wrote:
Re: port preferences ignored on upgrade until daemon restarted

Postby clarknova on Wed Jan 07, 2009 12:36 am
Just upgraded to 1.1.0-RC2 and again found the daemon listening on the wrong port, even though I have the correct port set in the preferences.
My OS is XP, I have TCP-port forwarded for DHT but do we need to do the same for Daemon port as well? appreciate any advise on the matter, thanks.
you need to port forward the listening port (Preferences->Network->Active Port).
DHT uses UDP not TCP.
you don't need to port forward the daemon port.
clarknova
Member
Member
Posts: 37
Joined: Tue Sep 16, 2008 5:24 am

Re: port preferences ignored on upgrade until daemon restarted

Post by clarknova »

I just upgraded to 1.1.0 on the ubuntu client and server and did not observe this behaviour, i.e., my port preference was observed.
db
Post Reply