LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-30-2017, 05:02 AM   #1
tonj
Member
 
Registered: Sep 2008
Posts: 474

Rep: Reputation: 34
rtorrent saves files to wrong location


I'm running a centos 6 server with rtorrent-0.9.4-3.el6.x86_64. As the subject line says rtorrent will not obey the download location in .rtorrent.rc. The location used to be /media/usb and I changed it to /home/videos and even deleted the directory /media/usb but when I start rtorrent t recreates /media/usb and starts putting stuff there. This is baffling. I've also tried # rtorrent -d /home/videos but it doesn't work. Somehow rtorrent is cemented to /media/usb but i don't know how or where. I have a copy of the original downloads from /media/usb in /home/videos and I just want rtorrent to carry on as normal with what it had. Thanks for any help.
 
Old 11-30-2017, 12:31 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,979
Blog Entries: 4

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
did you create /home/videos? does rtorrent have permissions to write to it?
 
Old 11-30-2017, 02:42 PM   #3
tonj
Member
 
Registered: Sep 2008
Posts: 474

Original Poster
Rep: Reputation: 34
yes I created /home/videos. I run rtorrent as root so i does have permission to write.
 
Old 11-30-2017, 04:10 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,178

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
Running as root is a terrible idea.

Also doing so may affect how the rtorrent.rc file works. The patch should be within a users home and might need to use full path in rc.
 
Old 12-01-2017, 04:55 AM   #5
tonj
Member
 
Registered: Sep 2008
Posts: 474

Original Poster
Rep: Reputation: 34
ok thanks but I've always run rtorrent as root (several years) and there have never been a problem like this.
 
Old 12-01-2017, 12:55 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,979
Blog Entries: 4

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
Quote:
Originally Posted by tonj View Post
yes I created /home/videos. I run rtorrent as root so i does have permission to write.
root is not a magical spell that will give you everything.
i asked if rtorrent has permission to write to that folder; you have not answered that question.
who knows, maybe rtorrent runs as its own unprivileged user? a simple
Code:
ls -l /home/videos
would already create a little clarity.
then find out under which user rtorrent's main process runs, maybe with 'top'.
 
Old 12-02-2017, 12:39 PM   #7
tonj
Member
 
Registered: Sep 2008
Posts: 474

Original Poster
Rep: Reputation: 34
thanks for your response. I followed jefro's advice and I'm now running rtorrent as a user. But when I start rtorrent and try to get a torrent going the error message is
Quote:
Could not resume download: Could not create directory '/media/usb': Permission denied
so the original problem still exists. In .rtorrent.rc the download directory is specified as /home/videos but rtorrent is still cemented to /media/usb and I can't work out how to correct this. Thanks for any further advice.
 
Old 12-02-2017, 01:47 PM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,979
Blog Entries: 4

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
can you test if your user configuration is being parsed at all?

i don't use rtorrent, but maybe you can find something here:
https://wiki.archlinux.org/index.php/RTorrent
 
Old 12-02-2017, 02:57 PM   #9
tonj
Member
 
Registered: Sep 2008
Posts: 474

Original Poster
Rep: Reputation: 34
thanks but I gave up in the end. I deleted all my downloads, all my torrent files and restarted. rtorrent is now saving to the correct directory. I discovered the .torrent files in /.session were hardwired to /media/usb. I tried a global replacement but it didn't work so I decided to scrap everything and start again. At least it's saving to the correct location now. Thanks for the feedback here.
 
Old 12-03-2017, 04:28 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,979
Blog Entries: 4

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
Quote:
Originally Posted by tonj View Post
I discovered the .torrent files in /.session were hardwired to /media/usb.
not hardwired, but that was the location when you added the torrent and it's tricky to change it afterwards.
this is not specific to rtorrent, i'm experiencing the same with transmission.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rtorrent keyboard commands unresponsive when starting rtorrent in detached screen MheAd Linux - Software 1 09-05-2010 08:00 AM
rtorrent - move completed files imagineaxion Ubuntu 3 03-11-2008 05:17 AM
LXer: When files disappear, Magic Rescue saves the day LXer Syndicated Linux News 0 02-14-2008 11:20 AM
rtorrent: Cannot move completed files... ackzsel Linux - Software 1 12-14-2007 01:54 PM
EOG saves over files with read-only permissions? sybaritefury Linux - Software 2 12-18-2006 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration