Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580932 - net-p2p/transmission-2.92 unable to save resume file: no such file or directory
Summary: net-p2p/transmission-2.92 unable to save resume file: no such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-23 11:41 UTC by cryptopsy
Modified: 2016-04-24 14:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cryptopsy 2016-04-23 11:41:53 UTC
running it as root, tranmission-daemon is running as confirmed by systemctl (systemv) , and adding torrent with tranmission -a sometorrent.torrent, produces the error as seen in the web console (localhost:9091) as stated in the title. A stack trace shows:

[pid  7417] open("/var/lib/transmission/config/torrents/mytorrentname.torrent.tmp.Z8RY3l", O_RDWR|O_CREAT|O_EXCL, 0600) = -1 ENOENT (No such file or directory)
n"

7417 is the pid of tranmission-daemon

download dir is where it saves DATA. config dir is where it saves RESUME data
, this dir in the strace is not mentioned in the settings.json file provided by this program
Comment 1 cryptopsy 2016-04-23 11:43:59 UTC
AFAIK this directory is being created when the package is installed, which is why i'm filling this bug
Comment 2 cryptopsy 2016-04-23 11:55:20 UTC
 The default settings for this program is that the dameon is run as user tranmission, but running transmission-remote as root prevents it from

ps -u -p 7858 (the process id changed becuase it crashed):

transmi+  7858  0.1  0.0 194236  2484 ?        Ssl  14:52   0:00 /usr/bin/transmissi


The program creates the dirs it needs by default, but it can't in this case
Comment 3 Mike Gilbert gentoo-dev 2016-04-23 14:51:34 UTC
Sorry, but I don't understand what you are trying to say. Several of your sentences seem to be cut off prematurely.

Please restate the problem you are having, and the conditions under which the problem occurs.
Comment 4 Mike Gilbert gentoo-dev 2016-04-23 18:06:53 UTC
commit ff7c2b479cd5485f64c70c244ecfcec75e89c036
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sat Apr 23 14:05:37 2016 -0400

    net-p2p/transmission: Create /var/lib/transmission in postinst
    
    The openrc init script normally creates this, but this does not work for
    systemd users.
    
    Bug: https://bugs.gentoo.org/580932
    
    Package-Manager: portage-2.2.28_p70

 net-p2p/transmission/transmission-2.92.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Comment 5 cryptopsy 2016-04-24 08:44:59 UTC
when you download a torrent with transmission-remote, it does not work properly, because transmission-daemon cannot create its own folders, because the user who ran transmission-remote is root, but the daemon user is 'transmission'. There's a user mismatch.
Comment 6 Mike Gilbert gentoo-dev 2016-04-24 14:02:08 UTC
(In reply to cryptopsy from comment #5)
> when you download a torrent with transmission-remote, it does not work
> properly, because transmission-daemon cannot create its own folders, because
> the user who ran transmission-remote is root, but the daemon user is
> 'transmission'. There's a user mismatch.

I made some changes to the ebuild to properly create /var/lib/transmission and set proper permissions.