skangas / mentor

mentor is a GNU Emacs frontend for the rTorrent bittorrent client.
GNU General Public License v3.0
79 stars 8 forks source link

Can't connect to rtorrent. the mentor buffer is empty! #22

Open LinArcX opened 1 year ago

LinArcX commented 1 year ago

rtorrent is installed on my machine(void Linux) and I can use it from the terminal. here's my .rtorrrent.rc file:

directory.default.set = /mnt/E/rtorrent/download
session.path.set = ~/rtorrent/.session

schedule2 = watch_directory,5,5,load.start=/mnt/E/rtorrent/watch/*.torrent
dht.mode.set = auto
dht.port.set = 6881
protocol.pex.set= yes

scgi_local = ~/.rtorrent-rpc.socket
encoding.add = utf8

And here's my init.el file:

(use-package mentor)

(setq mentor-rtorrent-download-directory "/mnt/E/rtorrent/download")
(setq mentor-rtorrent-keep-session t)

When I run Mentor in Emacs, I just see an empty buffer. (in rterminal itself, I have bunch of torrent files)

Even if i try to add this line to my init.el: (setq mentor-rtorrent-external-rpc "~/.rtorrent-rpc.socket")

I'll get these error:

Debugger entered--Lisp error: (file-missing "make client process failed" "No such file or directory" :name "scgi" :buffer #<buffer  *scgi /.rtorrent-rpc.socket*> :remote "/.rtorrent-rpc.socket")
  url-scgi(#s(url :type "scgi" :user nil :password nil :host "~" :portspec nil :filename "/.rtorrent-rpc.socket" :target nil :attributes nil :fullness t :silent nil :use-cookies t :asynchronous nil) #f(compiled-function (&rest args) #<bytecode -0x959f172d0a3b311>) (nil))
  url-retrieve-internal("scgi://~/.rtorrent-rpc.socket" #f(compiled-function (&rest args) #<bytecode -0x959f172d0a3b311>) (nil) nil nil)
  url-retrieve("scgi://~/.rtorrent-rpc.socket" #f(compiled-function (&rest args) #<bytecode -0x959f172d0a3b311>) nil nil nil)
  url-retrieve-synchronously("scgi://~/.rtorrent-rpc.socket")
  xml-rpc-request("scgi://~/.rtorrent-rpc.socket" ((methodCall nil (methodName nil "system.client_version") (params nil))) nil)
  xml-rpc-method-call-async(nil "scgi://~/.rtorrent-rpc.socket" "system.client_version" nil)
  xml-rpc-method-call("scgi://~/.rtorrent-rpc.socket" "system.client_version")
  mentor-rpc-command("system.client_version")
  mentor()
  funcall-interactively(mentor)
  command-execute(mentor record)
  execute-extended-command(nil "mentor" "men")
  funcall-interactively(execute-extended-command nil "mentor" "men")
  command-execute(execute-extended-command)
abdrysdale commented 1 year ago

I can confirm I get the same issue

nameiwillforget commented 1 month ago

Me too, both on my desktop and laptop, which are both running Gentoo.