it's strange to me because the execute plugin runs the defined shellscript from the deluged process running user i.e debian-deluged presumably, so should be able to authenticate, without sudo tricks(/abilities) or anything(e.g changed config-dir with '-c'), id presume, but for some reason doesn't, as per the logged function call showing no user or pass picked up for the login-atempt: 'RPCRequest: daemon.login(, )'.
I'd say to prepend a 'connect' command to the deluge-console commands in the script, I.e
Code: Select all
deluge-console "connect localhost <user> <pass> ; pause TORRENT_ID"
[...]
deluge-console "connect localhost <user> <pass> ; del TORRENT_ID"
[...]
User/pass is in auth file in format: 'user:pass:10' , in your deluge profile dir of deluge, possibly: '/mnt/dietpi_userdata/deluge/.config/deluge/auth'. In my example, where just using the auto-generated auth file, my connect command would just be e.g:
Code: Select all
deluge-console "connect localhost localclient a7bef72a890 ; pause TORRENT_ID"
For an auth file with: