Hello,
I’m having an issue with Deluge where it won’t allow me to pass ‘deluge-console’ commands through one of my scripts after torrent completion.
When I launch deluge-console this is the error that is immediately shown:
Failed to connect to 127.0.0.1:58846 with reason: Username does not exist
and this is the error if I run my script manually:
root@DietPi:~/scripts# sh delpost.sh
[ERROR ] 18:21:10 client:391 RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: daemon.login(, )
--------------------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 262, in dispatch
ret = component.get("AuthManager").authorize(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/deluge/core/authmanager.py", line 89, in authorize
raise BadLoginError("Username does not exist")
BadLoginError: Username does not exist
--------------------------------------------------------------------------------
I can’t seem to find the auth file anywhere as it’s normally in ~/.config/deluge/auth so I assumed dietpi moved it to dietpi_userdata but I don’t see it there either.
Can anyone tell me what I can do here to get this working?
Also, here is the full script I’m running after a torrent completes:
#!/bin/bash
TORRENT_ID=$1
TORRENT_NAME=$2
TORRENT_PATH=$3
deluge-console pause $TORRENT_ID
filebot -script fn:amc --output "/mnt/samba" --log-file /root/scripts/amc.log --action move --conflict override -non-strict --def music=y clean=y "movieFormat=Movies/{any{collection}{n+' ('+y+')'}}/{n} {'('+y+')'}{' CD'+pi}" "ut_dir=$TORRENT_PATH/$TORRENT_NAME" "ut_kind=multi" "ut_title=$TORRENT_NAME"
deluge-console del $TORRENT_ID
filebot -script fn:cleaner $TORRENT_PATH --log-file /root/scripts/cleaner.log