BUG: Deluge looks for "auth" file in the wrong location

General support for problems installing or using Deluge
Post Reply
thewanderer
Member
Member
Posts: 15
Joined: Mon Nov 23, 2009 12:11 pm

BUG: Deluge looks for "auth" file in the wrong location

Post by thewanderer »

Hi,

I've installed 1.2.0_rc4 from the PPA (https://launchpad.net/~deluge-team/+archive/ppa) and am running Ubuntu Karmic. Installed using the InitScript from here: http://dev.deluge-torrent.org/wiki/UserGuide/InitScript

Am running Deluge headless and can use the Web UI to connect to the daemon just fine.

For some reason, using the deluge plugin under flexget, it fails with a "raise BadLoginError("Username does not exist")" error.

If I copy the auth file from /var/lib/deluge (where the package installed it) over to ~/.config/deluge/auth then the plugin works without issue.

Does this make sense to anyone?

Apologies but I don't know where the fault lies, other than there seems to be one :?
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: BUG: Deluge looks for "auth" file in the wrong location

Post by andar »

thewanderer wrote:Hi,

I've installed 1.2.0_rc4 from the PPA (https://launchpad.net/~deluge-team/+archive/ppa) and am running Ubuntu Karmic. Installed using the InitScript from here: http://dev.deluge-torrent.org/wiki/UserGuide/InitScript

Am running Deluge headless and can use the Web UI to connect to the daemon just fine.

For some reason, using the deluge plugin under flexget, it fails with a "raise BadLoginError("Username does not exist")" error.

If I copy the auth file from /var/lib/deluge (where the package installed it) over to ~/.config/deluge/auth then the plugin works without issue.

Does this make sense to anyone?

Apologies but I don't know where the fault lies, other than there seems to be one :?
The flexget plugin may need to know where the config folder is for your Deluge.. It may be assuming it's in the default location for the user running flexget.
thewanderer
Member
Member
Posts: 15
Joined: Mon Nov 23, 2009 12:11 pm

Re: BUG: Deluge looks for "auth" file in the wrong location

Post by thewanderer »

Thanks for the reply.

So is /var/lib the new default location for deluge?
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: BUG: Deluge looks for "auth" file in the wrong location

Post by gazpachoking »

andar wrote: The flexget plugin may need to know where the config folder is for your Deluge.. It may be assuming it's in the default location for the user running flexget.
The flexget plugin is using deluge.ui.client to connect, that should take care of finding auth file no?
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: BUG: Deluge looks for "auth" file in the wrong location

Post by gazpachoking »

thewanderer wrote:Thanks for the reply.

So is /var/lib the new default location for deluge?
Looks like the init script tutorial you followed set the home directory for the deluge user to /var/lib/deluge. So no, not default, you set it to that when you created the deluge user.
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: BUG: Deluge looks for "auth" file in the wrong location

Post by andar »

gazpachoking wrote:
andar wrote: The flexget plugin may need to know where the config folder is for your Deluge.. It may be assuming it's in the default location for the user running flexget.
The flexget plugin is using deluge.ui.client to connect, that should take care of finding auth file no?
It will check the default config directory for the auth file, which is usually $HOME/.config/deluge. In this case, the user is running deluge with a config folder set to /var/lib/deluge using the -c option, so Flexget will need to have an option available to set the config directory location (and possibly port) of the daemon it wants to interact with.
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: BUG: Deluge looks for "auth" file in the wrong location

Post by gazpachoking »

andar wrote:
gazpachoking wrote:
andar wrote: The flexget plugin may need to know where the config folder is for your Deluge.. It may be assuming it's in the default location for the user running flexget.
The flexget plugin is using deluge.ui.client to connect, that should take care of finding auth file no?
It will check the default config directory for the auth file, which is usually $HOME/.config/deluge. In this case, the user is running deluge with a config folder set to /var/lib/deluge using the -c option, so Flexget will need to have an option available to set the config directory location (and possibly port) of the daemon it wants to interact with.
There is already: host, port, username and password options in the flexget plugin, so I think you could just connect using another user you have added to auth, instead of specifying where the auth file is located.
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: BUG: Deluge looks for "auth" file in the wrong location

Post by andar »

gazpachoking wrote: There is already: host, port, username and password options in the flexget plugin, so I think you could just connect using another user you have added to auth, instead of specifying where the auth file is located.
Correct.
thewanderer
Member
Member
Posts: 15
Joined: Mon Nov 23, 2009 12:11 pm

Re: BUG: Deluge looks for "auth" file in the wrong location

Post by thewanderer »

Thanks for this guys. It seems the "BUG" is just in the documentation then :oops:

Hopefully if anyone else hits the same issue then this thread will help them.

Thanks also to gazpachoking for getting me up and running ;)
Post Reply