传输出现权限被拒绝错误

传输出现权限被拒绝错误

我对我家里的 ubuntu 服务器进行了大量更新(我想我已经一年没有更新任何东西了)。

在此 Transmission 设置文件/var/lib/transmission-daemon/info/settings.json消失后。我再次写入它,Transmission 启动,但过了一会儿它停止并出现此错误:

errr 无法保存简历文件 权限被拒绝

我在以下文件夹和子文件夹授予了 755 权限:

  • /var/lib/transmission-daemon/info
  • /var/lib/transmission-daemon/download
  • /media/virtual/downloads(“下载目录”)

这是我使用 strace 得到的结果:

sandro@naSan:~$ strace -f -e open transmission-daemon
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/libminiupnpc.so.8", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libevent-2.0.so.5", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libcrypto.so.1.0.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libidn.so.11", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/librtmp.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libgcrypt.so.11", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgnutls.so.26", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libgpg-error.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libtasn1.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libp11-kit.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libkrb5.so.3", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libk5crypto.so.3", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libcom_err.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libkrb5support.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libsasl2.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgssapi.so.3", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libffi.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libkeyutils.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libheimntlm.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libkrb5.so.26", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libasn1.so.8", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libhcrypto.so.4", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libroken.so.18", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libwind.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libheimbase.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libhx509.so.5", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libsqlite3.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = 3
Process 3138 attached
[pid  3138] open("/dev/null", O_RDWR)   = 3
[pid  3137] +++ exited with 0 +++
Process 3139 attached
Process 3140 attached
[pid  3140] open(0x7efd059823c0, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or dire                        ctory)
[pid  3140] open(0x7efd059823f8, O_RDONLY|O_CLOEXEC) = 13
[pid  3140] open(0x7efd059823cd, O_RDONLY|O_CLOEXEC) = 13
[pid  3140] open(0x7efd059823cd, O_RDONLY|O_CLOEXEC) = 13
[pid  3140] open(0x7efcf8000f00, O_RDONLY|O_CLOEXEC) = 13
[pid  3140] open(0x7efd059843cc, O_RDONLY|O_CLOEXEC) = 13
[pid  3140] open(0x7efd0547b435, O_RDONLY|O_NOCTTY|O_NONBLOCK) = 15
[pid  3140] open(0x4611f8, O_RDONLY|O_CLOEXEC) = 15
[pid  3140] open(0x4611f8, O_RDONLY|O_CLOEXEC) = 15
[pid  3140] open(0x4611f8, O_RDONLY|O_CLOEXEC) = 15
[pid  3140] open(0x4611f8, O_RDONLY|O_CLOEXEC) = 15
[pid  3140] open(0x4611f8, O_RDONLY|O_CLOEXEC) = 15
Process 3141 attached
[pid  3138] open(0x1a15420, O_RDWR|O_CREAT|O_EXCL, 0600) = 19
[pid  3138] open(0x7efd04c91ab0, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efcf00008c0, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or dire                        ctory)
[pid  3140] open(0x46485e, O_RDONLY)    = 20
[pid  3138] open(0x7efd04c911f0, O_RDONLY|O_CLOEXEC) = 21
[pid  3141] open(0x7efd04c92a91, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efd04c92bcd, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efd05fc0e47, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efd061bfe62, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efd04c92ad8, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efcfee06fc1, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efd05fc0e47, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efd061bff0c, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efd04c92a91, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efd04c91625, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efcfee06fc1, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efcfee06fc1, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efcfee06fc1, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efcfee06fc1, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] open(0x7efcfee06fc1, O_RDONLY|O_CLOEXEC) = 20
[pid  3141] +++ exited with 0 +++

现在我从 Web 界面收到此错误:

403: Forbidden

Unauthorized IP Address.

Either disable the IP address whitelist or add your address to it.

If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.

If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.

文件“settings.json”和“stats.json”已丢失 775,现在为 600。

答案1

我是这样解决的:

1) 卸载 Transmission。全部卸载。每个软件包。

sudo apt-get autoremove transmission-common

2)删除 /var/cache/apt/archives 中的所有 transmission* 软件包

sudo rm /var/cache/apt/archives/transmission*

3)检查你的包管理器是否正常工作

sudo apt-get upgrade && sudo apt-get update

4)重新安装变速器

sudo add-apt-repository ppa:transmissionbt/ppa

sudo apt-get update

sudo apt-get install transmission-cli transmission-common transmission-daemon

相关内容