rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.05k stars 412 forks source link

rtorrent always auto stops. #1231

Open Suitear opened 1 year ago

Suitear commented 1 year ago

I use 'rt start', then it stops after even 1 seconds. some times it stops minutes after 'rt restart'.

don't know what happening.

kannibalox commented 1 year ago

Have you tried running it without the benefit of whatever script that is to see if there are any log messages or coredumps?

Suitear commented 1 year ago

I tried to open the logging option in .rTorrent.rc, but Everytime after editing it, rTorrent won't start. So I don't know where to look through rTorrent related logs.

On Sun, May 21, 2023 at 10:16 kannibalox @.***> wrote:

Have you tried running it without the benefit of whatever script that is to see if there are any log messages or coredumps?

— Reply to this email directly, view it on GitHub https://github.com/rakshasa/rtorrent/issues/1231#issuecomment-1556065196, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACL7ZKTZO2M2RIUPOOVCZIDXHF3G5ANCNFSM6AAAAAAYJBNO24 . You are receiving this because you authored the thread.Message ID: @.***>

Suitear commented 1 year ago

I modified the .rtorrent.rc file as follows.

### Set Directories
method.insert = cfg.basedir, private|const|string, (cat,"/home/user/rtorrent/")
method.insert = cfg.watch,  private|const|string, (cat,(cfg.basedir),"watch/")
method.insert = cfg.logs, private|const|string, (cat,(cfg.basedir),"log/")
method.insert = cfg.logfile, private|const|string, (cat,(cfg.logs),"rtorrent-",(system.time),".log")

# Logging:
#   Levels = critical error warn notice info debug
#   Groups = connection_* dht_* peer_* rpc_* storage_* thread_* tracker_* torrent_*
#print = (cat,"Logging to ",(cfg.logfile))
log.open_file = "log", (cfg.logfile)
log.add_output = "critical", "log"
log.add_output = "error", "log"
log.add_output = "tracker_debug", "log"

but after that, rt won't start anyway. it says

No session lock file
Starting rtorrent..........
WARNING: Unable to start rtorrent

So I don't what's going on. How do you guys get the error infos anyway?

kannibalox commented 1 year ago

Try running rtorrent without the script, e.g. just rtorrent. If your rtorrent.rc is located somewhere else, you might have to run it like rtorrent -n -o import=<path>