[gelöst] transmission : Permission denied

holybabel

Neuer User
Mitglied seit
30 Aug 2008
Beiträge
153
Punkte für Reaktionen
0
Punkte
16
Hallo zusammen,

ich habe transmission bei mir external auf'nem USB-Stick liegen. Leider startet der Dienst nicht.

Code:
/var/mod/root # sh -x /etc/init.d/rc.transmission start
+ DAEMON=transmission
+ DAEMON_BIN=transmission-daemon
+ USERNAME=bittorrent
+ PIDFILE=/var/run/transmission.pid
+ . /etc/init.d/modlibrc
+ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/mod/sbin:/mod/bin:/mod/usr/sbin:/mod/usr/bin
+ export LD_LIBRARY_PATH=/mod/lib:/mod/usr/lib
+ [ -n transmission ]
+ [ ! -r /mod/etc/conf/transmission.cfg ]
+ modlib_loadconfig
+ local CONF_FILE=/mod/etc/conf/transmission.cfg
+ [ -r /mod/etc/conf/transmission.cfg ]
+ . /mod/etc/conf/transmission.cfg
+ export TRANSMISSION_BASEDIR=/var/media/ftp/FritzBox/bittorrent
+ export TRANSMISSION_CONFIGDIR=config
+ export TRANSMISSION_DOWNLOADDIR=download
+ export TRANSMISSION_ENABLED=no
+ export TRANSMISSION_FINISHDIR=
+ export TRANSMISSION_GLOBALPEERLIMIT=120
+ export TRANSMISSION_INCOMPLETEDIR=download/incomplete
+ export TRANSMISSION_NICE=5
+ export TRANSMISSION_PEERENCRYPTIONMODE=NO_ENCRYPTION
+ export TRANSMISSION_PEERPORT=9090
+ export TRANSMISSION_RATIO=
+ export TRANSMISSION_RPCPASSWORD=transmission
+ export TRANSMISSION_RPCPORT=9091
+ export TRANSMISSION_RPCUSERNAME=transmission
+ export TRANSMISSION_RPCWHITELIST=192.168.1.*
+ export TRANSMISSION_TORRENTPEERLIMIT=30
+ export TRANSMISSION_USEBLOCKLIST=yes
+ export TRANSMISSION_USEDHT=yes
+ export TRANSMISSION_WATCHDIR=
+ export TRANSMISSION_WEBDIR=/usr/share/transmission-web-home
+ start
+ echo -n Starting transmission daemon...
Starting transmission daemon... + trim /var/media/ftp/FritzBox/bittorrent
+ echo /var/media/ftp/FritzBox/bittorrent
+ sed s|^[ ]*||;s|[ ]*$||
+ TRANSMISSION_BASEDIR=/var/media/ftp/FritzBox/bittorrent
+ trim config
+ echo config
+ sed s|^[ ]*||;s|[ ]*$||
+ TRANSMISSION_CONFIGDIR=config
+ trim download
+ echo download
+ sed s|^[ ]*||;s|[ ]*$||
+ TRANSMISSION_DOWNLOADDIR=download
+ trim download/incomplete
+ echo download/incomplete
+ sed s|^[ ]*||;s|[ ]*$||
+ TRANSMISSION_INCOMPLETEDIR=download/incomplete
+ trim
+ echo
+ sed s|^[ ]*||;s|[ ]*$||
+ TRANSMISSION_FINISHDIR=
+ trim /usr/share/transmission-web-home
+ echo /usr/share/transmission-web-home
+ sed s|^[ ]*||;s|[ ]*$||
+ TRANSMISSION_WEBDIR=/usr/share/transmission-web-home
+ trim
+ echo
+ sed s|^[ ]*||;s|[ ]*$||
+ TRANSMISSION_WATCHDIR=
+ checkNotEmpty config TRANSMISSION_CONFIGDIR
+ [ -z config ]
+ checkNotEmpty download TRANSMISSION_DOWNLOADDIR
+ [ -z download ]
+ [ c != / -o d != / ]
+ checkNotEmpty /var/media/ftp/FritzBox/bittorrent TRANSMISSION_BASEDIR
+ [ -z /var/media/ftp/FritzBox/bittorrent ]
+ [ / != / ]
+ checkDirectoryExists /var/media/ftp/FritzBox/bittorrent
+ [ ! -d /var/media/ftp/FritzBox/bittorrent ]
+ [ t != / ]
+ TRANSMISSION_BASEDIR=/var/media/ftp/FritzBox/bittorrent/
+ [ c = / ]
+ CONFIGDIR=/var/media/ftp/FritzBox/bittorrent/config
+ checkDirectoryExists /var/media/ftp/FritzBox/bittorrent/config
+ [ ! -d /var/media/ftp/FritzBox/bittorrent/config ]
+ [ d = / ]
+ DOWNLOADDIR=/var/media/ftp/FritzBox/bittorrent/download
+ checkDirectoryExists /var/media/ftp/FritzBox/bittorrent/download
+ [ ! -d /var/media/ftp/FritzBox/bittorrent/download ]
+ local OPTIONS=--no-portmap
+ [ -n download/incomplete ]
+ [ d = / ]
+ INCOMPLETEDIR=/var/media/ftp/FritzBox/bittorrent/download/incomplete
+ checkDirectoryExists /var/media/ftp/FritzBox/bittorrent/download/incomplete
+ [ ! -d /var/media/ftp/FritzBox/bittorrent/download/incomplete ]
+ chown -R bittorrent:users /var/media/ftp/FritzBox/bittorrent/download/incomplete
+ chmod -R 0755 /var/media/ftp/FritzBox/bittorrent/download/incomplete
+ OPTIONS=--no-portmap --incomplete-dir /var/media/ftp/FritzBox/bittorrent/download/incomplete
+ [ -n  ]
+ OPTIONS=--no-portmap --incomplete-dir /var/media/ftp/FritzBox/bittorrent/download/incomplete --no-finish-dir
+ chown -R bittorrent:users /var/media/ftp/FritzBox/bittorrent/config /var/media/ftp/FritzBox/bittorrent/download
+ chmod -R 0755 /var/media/ftp/FritzBox/bittorrent/config /var/media/ftp/FritzBox/bittorrent/download
+ [ -n  ]
+ [ -n 9090 ]
+ OPTIONS=--no-portmap --incomplete-dir /var/media/ftp/FritzBox/bittorrent/download/incomplete --no-finish-dir -P 9090
+ [ -n 120 ]
+ OPTIONS=--no-portmap --incomplete-dir /var/media/ftp/FritzBox/bittorrent/download/incomplete --no-finish-dir -P 9090 -L 120
+ [ -n 30 ]
+ OPTIONS=--no-portmap --incomplete-dir /var/media/ftp/FritzBox/bittorrent/download/incomplete --no-finish-dir -P 9090 -L 120 -l 30
+ [ NO_ENCRYPTION = ENCRYPTION_REQUIRED ]
+ [ NO_ENCRYPTION = ENCRYPTION_PREFERRED ]
+ OPTIONS=--no-portmap --incomplete-dir /var/media/ftp/FritzBox/bittorrent/download/incomplete --no-finish-dir -P 9090 -L 120 -l 30 -et
+ [ yes = yes ]
+ OPTIONS=--no-portmap --incomplete-dir /var/media/ftp/FritzBox/bittorrent/download/incomplete --no-finish-dir -P 9090 -L 120 -l 30 -et -b
+ [ -n transmission -a -n transmission ]
+ OPTIONS=--no-portmap --incomplete-dir /var/media/ftp/FritzBox/bittorrent/download/incomplete --no-finish-dir -P 9090 -L 120 -l 30 -et -b --auth --username transmission --password transmission
+ [ -n 9091 ]
+ OPTIONS=--no-portmap --incomplete-dir /var/media/ftp/FritzBox/bittorrent/download/incomplete --no-finish-dir -P 9090 -L 120 -l 30 -et -b --auth --username transmission --password transmission -p 9091
+ stripAllSpaces 192.168.1.*
+ echo 192.168.1.*
+ TRANSMISSION_RPCWHITELIST=192.168.1.*
+ [ -n 192.168.1.* ]
+ OPTIONS=--no-portmap --incomplete-dir /var/media/ftp/FritzBox/bittorrent/download/incomplete --no-finish-dir -P 9090 -L 120 -l 30 -et -b --auth --username transmission --password transmission -p 9091 -a 192.168.1.*
+ [ -n  ]
+ OPTIONS=--no-portmap --incomplete-dir /var/media/ftp/FritzBox/bittorrent/download/incomplete --no-finish-dir -P 9090 -L 120 -l 30 -et -b --auth --username transmission --password transmission -p 9091 -a 192.168.1.* --no-global-seedratio
+ [ -n /usr/share/transmission-web-home -a -d /usr/share/transmission-web-home -a -r /usr/share/transmission-web-home/index.html ]
+ export TRANSMISSION_WEB_HOME=/usr/share/transmission-web-home
+ start-stop-daemon -S -N 5 -p /var/run/transmission.pid -x transmission-daemon -c bittorrent -- --no-portmap --incomplete-dir /var/media/ftp/FritzBox/bittorrent/download/incomplete --no-finish-dir -P 9090 -L 120 -l 30 -et -b --auth --username transmission --password transmission -p 9091 -a 192.168.1.* --no-global-seedratio --config-dir /var/media/ftp/FritzBox/bittorrent/config --download-dir /var/media/ftp/FritzBox/bittorrent/download
[B]start-stop-daemon: can't start transmission-daemon: Permission denied[/B]
+ exitval=1
+ [ 1 -eq 0 ]
+ echoFailedAndExit 1
+ echo failed.
failed.
+ [ -n 1 ]
+ exit 1

Die Rechte des external-Verzeichnisses(und der Unterverzeichnisse) habe ich schon auf 777 gesetzt.

Code:
drwxrwxrwx    3 root     root          4096 Jun  9 23:17 external

Die Rechte des bittorrent Verzeichnisses(und der Unterverzeichnisse) sehen wie folgt aus:

Code:
drwxr-xr-x    4 bittorre users         4096 Jun  2 20:47 bittorrent

Kann mir da jemand helfen?

Achso, der Stick ist ext2 formatiert.

Gruß HolyBabel
 
Zuletzt bearbeitet:
Hallo RalfFriedl,

die Datei existiert:

Code:
/var/media/ftp/FritzBox/external/usr/bin # ls -l
-rwxrwxrwx    1 bittorre users       603028 Apr 12 15:40 transmission-daemon
-rwxrwxrwx    1 bittorre users       628816 Apr 12 15:40 transmission-remote
-rwxrwxrwx    1 bittorre users       606792 Apr 12 15:40 transmissioncli
 
Existieren dei ganzen Verzeichnisse und Configfiles, die benötigt werden und irgendwo in den Startoptionen erwähnt werden?
 
Hallo Silent-Tears,

die Verzeichnisse existieren alle und haben entweder 777 als Rechte oder die Rechte wie oben bereits erwähnt für den bittorrent User.
 
Wenn ich ihn als root starte dann geht es:

Code:
/var/media/ftp/FritzBox/external/usr/bin # export TRANSMISSION_WEB_HOME=/usr/share/transmission-web-home
/var/media/ftp/FritzBox/external/usr/bin # transmission-daemon -p 9091 -a 192.168.1.* --no-global-seedratio --config-dir /var/media/ftp/FritzBox/bittorrent/config
/var/media/ftp/FritzBox/external/usr/bin # Jun 21 12:56:28 transmission-daemon: Transmission 1.92 (10363) started (session.c:618)
Jun 21 12:56:28 transmission-daemon: RPC Server Adding address to whitelist: 192.168.1.* (rpc-server.c:772)
Jun 21 12:56:28 transmission-daemon: RPC Server Serving RPC and Web requests on port 9091 (rpc-server.c:945)
Jun 21 12:56:28 transmission-daemon: RPC Server Whitelist enabled (rpc-server.c:949)
Jun 21 12:56:28 transmission-daemon: DHT Generating new id (tr-dht.c:369)
Jun 21 12:56:28 transmission-daemon: Using settings from "/var/media/ftp/FritzBox/bittorrent/config" (daemon.c:430)
Jun 21 12:56:28 transmission-daemon: Saved "/var/media/ftp/FritzBox/bittorrent/config/settings.json" (bencode.c:1645)
Jun 21 12:56:35 transmission-daemon: Port Forwarding State changed from "Not forwarded" to "???" (port-forwarding.c:87)

Dann habe ich auch Zugriff auf das Webinterface. Für den User bittorrent habe ich das Passwort nicht.
 
Hallo RalfFriedl,

ganz so tief stecke ich in der Unix Thematik nun doch nicht drin.

Code:
/var/media/ftp/FritzBox/external/usr/bin # strace /etc/init.d/rc.transmission start
-sh: strace: not found
/var/media/ftp/FritzBox/external/usr/bin #

Habe ich den Befehl falsch eingegeben oder gibt es den Befehl bei mir einfach nicht?
 
Ok, dann mach ich mal schnell nen neues Image :) und berichte dann gleich.
 
Hier einmal die Ausgabe von strace:

Code:
/var/mod/root # strace /etc/init.d/rc.transmission start
execve("/etc/init.d/rc.transmission", ["/etc/init.d/rc.transmission", "start"], [/* 181 vars */]) = 0
old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaad000
stat("/etc/ld-uClibc.so.cache", 0x7fe037f8) = -1 ENOENT (No such file or directory)
open("/usr/lib/freetz/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/mod/lib/libc.so.0", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/lib/libc.so.0", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=698564, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\220\253\0\0004\0\0\0"..., 4096) = 4096
old_mmap(NULL, 741376, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabe000
old_mmap(0x2aabe000, 643172, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aabe000
old_mmap(0x2ab6b000, 8200, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x9d000) = 0x2ab6b000
old_mmap(0x2ab6e000, 18128, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ab6e000
close(3)                                = 0
munmap(0x2aaae000, 4096)                = 0
stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=22772, ...}) = 0
mprotect(0x2ab6b000, 4096, PROT_READ)   = 0
mprotect(0x2aabc000, 4096, PROT_READ)   = 0
ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
getuid()                                = 0
brk(0)                                  = 0x4a0000
brk(0x4a1000)                           = 0x4a1000
getpid()                                = 1803
rt_sigaction(SIGCHLD, {0x10000000, [RT_67 RT_69 RT_70 RT_71 RT_73 RT_74 RT_76 RT_79 RT_81 RT_82 RT_83 RT_84 RT_86 RT_88 RT_90 RT_92 RT_94], 0}, {SIG_DFL, [], 0}, 16) = 0
rt_sigaction(SIGHUP, {0x10000000, [RT_67 RT_69 RT_70 RT_71 RT_73 RT_74 RT_76 RT_79 RT_81 RT_82 RT_83 RT_84 RT_86 RT_88 RT_90 RT_92 RT_94], 0}, {SIG_DFL, [], 0}, 16) = 0
brk(0x4a2000)                           = 0x4a2000
getppid()                               = 1802
stat64(0x7fe04e0f, 0x7fe037e0)          = 0
stat64(0x47e284, 0x7fe037e0)            = 0
open("/etc/init.d/rc.transmission", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_DUPFD, 10)                 = 10
close(3)                                = 0
fcntl64(10, F_SETFD, FD_CLOEXEC)        = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL, [RT_66], 0}, 16) = 0
rt_sigaction(SIGINT, {SIG_DFL, ~[RT_65 RT_67 RT_68 RT_69 RT_70 RT_71 RT_72 RT_73 RT_74 RT_75 RT_76 RT_77 RT_78 RT_79 RT_80 RT_81 RT_82 RT_83 RT_84 RT_85 RT_86 RT_87 RT_88 RT_89 RT_90 RT_91 RT_92 RT_93 RT_94], 0x427be0 /* SA_??? */}, NULL, 16) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [RT_69 RT_72 RT_73 RT_74 RT_75 RT_77 RT_78 RT_86 RT_87 RT_88 RT_89 RT_90 RT_91 RT_92 RT_93 RT_94], SA_NOCLDSTOP}, 16) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL, [RT_69 RT_72 RT_73 RT_74 RT_75 RT_77 RT_78 RT_86 RT_87 RT_88 RT_89 RT_90 RT_91 RT_92 RT_93 RT_94], 0}, 16) = 0
rt_sigaction(SIGTERM, {SIG_DFL, [RT_69 RT_72 RT_73 RT_74 RT_75 RT_77 RT_78 RT_86 RT_87 RT_88 RT_89 RT_90 RT_91 RT_92 RT_93 RT_94], 0}, NULL, 16) = 0
read(10, "#!/bin/sh\n\nDAEMON=transmission\nD"..., 4095) = 4095
wait4(-1, 0x7fe03610, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe03610, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe03610, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe03610, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe03610, WNOHANG, NULL)    = -1 ECHILD (No child processes)
open("/etc/init.d/modlibrc", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_DUPFD, 10)                 = 11
close(3)                                = 0
fcntl64(11, F_SETFD, FD_CLOEXEC)        = 0
brk(0x4a3000)                           = 0x4a3000
read(11, "# Shell functions for the script"..., 4095) = 4095
wait4(-1, 0x7fe031f8, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe031f8, WNOHANG, NULL)    = -1 ECHILD (No child processes)
brk(0x4a4000)                           = 0x4a4000
brk(0x4a5000)                           = 0x4a5000
brk(0x4a6000)                           = 0x4a6000
read(11, ")\n\t\tif [ ! -r \"/mod/etc/conf/${C"..., 4095) = 156
wait4(-1, 0x7fe030b8, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02c90, WNOHANG, NULL)    = -1 ECHILD (No child processes)
stat64(0x4a3fb4, 0x7fe027e0)            = 0
geteuid()                               = 0
stat64(0x4a3fb4, 0x7fe027e0)            = 0
wait4(-1, 0x7fe02dd0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02998, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02858, WNOHANG, NULL)    = -1 ECHILD (No child processes)
stat64(0x4a3fcc, 0x7fe02518)            = 0
geteuid()                               = 0
stat64(0x4a3fcc, 0x7fe02518)            = 0
wait4(-1, 0x7fe02858, WNOHANG, NULL)    = -1 ECHILD (No child processes)
open("/mod/etc/conf/transmission.cfg", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_DUPFD, 10)                 = 12
close(3)                                = 0
fcntl64(12, F_SETFD, FD_CLOEXEC)        = 0
brk(0x4a7000)                           = 0x4a7000
read(12, "export TRANSMISSION_BASEDIR='/va"..., 4095) = 844
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02440, WNOHANG, NULL)    = -1 ECHILD (No child processes)
read(12, "", 4095)                      = 0
close(12)                               = 0
read(11, "", 4095)                      = 0
close(11)                               = 0
brk(0x4a8000)                           = 0x4a8000
read(10, "ISSION_RPCUSERNAME --password $T"..., 4095) = 2230
brk(0x4ab000)                           = 0x4ab000
wait4(-1, 0x7fe03468, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe006f0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
fcntl64(1, F_GETFL)                     = 0x2002 (flags O_RDWR|O_LARGEFILE)
write(1, "Starting transmission daemon... ", 32Starting transmission daemon... ) = 32
pipe([0, 0])                            = 3
fork()                                  = 1804
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4)                                = 0
read(3, "/var/media/ftp/FritzBox/bittorre"..., 128) = 35
read(3, "", 128)                        = 0
close(3)                                = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1804
wait4(-1, 0x7fe006f0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
pipe([0, 0])                            = 3
fork()                                  = 1807
close(4)                                = 0
read(3, "config\n", 128)                = 7
--- SIGCHLD (Child exited) @ 0 (0) ---
read(3, "", 128)                        = 0
close(3)                                = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1807
wait4(-1, 0x7fe00830, WNOHANG, NULL)    = -1 ECHILD (No child processes)
pipe([0, 0])                            = 3
fork()                                  = 1810
close(4)                                = 0
read(3, "download\n", 128)              = 9
read(3, "", 128)                        = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
close(3)                                = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1810
wait4(-1, 0x7fe00970, WNOHANG, NULL)    = -1 ECHILD (No child processes)
pipe([0, 0])                            = 3
fork()                                  = 1813
close(4)                                = 0
read(3, "download/incomplete\n", 128)   = 20
read(3, "", 128)                        = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
close(3)                                = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1813
wait4(-1, 0x7fe00ab0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
pipe([0, 0])                            = 3
fork()                                  = 1816
close(4)                                = 0
read(3, "\n", 128)                      = 1
read(3, "", 128)                        = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
close(3)                                = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1816
wait4(-1, 0x7fe00bf0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
pipe([0, 0])                            = 3
fork()                                  = 1819
close(4)                                = 0
read(3, "/usr/share/transmission-web-home"..., 128) = 33
read(3, "", 128)                        = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
close(3)                                = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1819
wait4(-1, 0x7fe00d30, WNOHANG, NULL)    = -1 ECHILD (No child processes)
pipe([0, 0])                            = 3
fork()                                  = 1822
close(4)                                = 0
read(3, "\n", 128)                      = 1
read(3, "", 128)                        = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
close(3)                                = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1822
wait4(-1, 0x7fe00e70, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe00fb0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe00b78, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe010f0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe00cb8, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe010f0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe00d30, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe008f8, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe00bf0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe00e70, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe00a38, WNOHANG, NULL)    = -1 ECHILD (No child processes)
stat64(0x4a1bbc, 0x7fe00588)            = 0
wait4(-1, 0x7fe00e70, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe00e70, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe010f0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe01230, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe014b0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe01078, WNOHANG, NULL)    = -1 ECHILD (No child processes)
stat64(0x4a1c14, 0x7fe00bc8)            = 0
wait4(-1, 0x7fe01370, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe014b0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe01730, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe012f8, WNOHANG, NULL)    = -1 ECHILD (No child processes)
stat64(0x4a1c14, 0x7fe00e48)            = 0
wait4(-1, 0x7fe01870, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe01870, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe010f0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe01230, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe01370, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe00f38, WNOHANG, NULL)    = -1 ECHILD (No child processes)
stat64(0x4a1c14, 0x7fe00a88)            = 0
fork()                                  = 1827
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1827
--- SIGCHLD (Child exited) @ 0 (0) ---
fork()                                  = 1828
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1828
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, 0x7fe01730, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe019b0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe019b0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
fork()                                  = 1829
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1829
--- SIGCHLD (Child exited) @ 0 (0) ---
fork()                                  = 1830
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1830
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, 0x7fe01d70, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe01eb0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe01eb0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe01ff0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe01ff0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02130, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02130, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02270, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02130, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02130, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02270, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02270, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe024f0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe024f0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02630, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02630, WNOHANG, NULL)    = -1 ECHILD (No child processes)
pipe([0, 0])                            = 3
fork()                                  = 1831
close(4)                                = 0
read(3, "192.168.1.*\n", 128)           = 12
read(3, "", 128)                        = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
close(3)                                = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1831
wait4(-1, 0x7fe028b0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe028b0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe028b0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe028b0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe029f0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02b30, WNOHANG, NULL)    = -1 ECHILD (No child processes)
stat64(0x4a1b94, 0x7fe027c8)            = 0
stat64(0x4a1c14, 0x7fe027a0)            = 0
geteuid()                               = 0
stat64(0x4a1c14, 0x7fe027a0)            = 0
wait4(-1, 0x7fe02b30, WNOHANG, NULL)    = -1 ECHILD (No child processes)
open(".", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents64(3, /* d_reclen == 0, problem here *//* 1 entries */, 4096) = 80
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
fcntl64(1, F_DUPFD, 10)                 = 11
dup2(3, 1)                              = 1
close(3)                                = 0
fork()                                  = 1832
wait4(-1, start-stop-daemon: can't start transmission-daemon: Permission denied
[{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 1832
--- SIGCHLD (Child exited) @ 0 (0) ---
dup2(11, 1)                             = 1
close(11)                               = 0
wait4(-1, 0x7fe02ef0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02db0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02ef0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02ab8, WNOHANG, NULL)    = -1 ECHILD (No child processes)
fcntl64(1, F_GETFL)                     = 0x2002 (flags O_RDWR|O_LARGEFILE)
write(1, "failed.\n", 8failed.
)                = 8
wait4(-1, 0x7fe02838, WNOHANG, NULL)    = -1 ECHILD (No child processes)
wait4(-1, 0x7fe02838, WNOHANG, NULL)    = -1 ECHILD (No child processes)
exit(1)                                 = ?
 
Damit hast Du strace auf die Shell laufen lassen, die das Skript ausführt. Die Meldung kommt aber anscheinend von start-stop-daemon. Also ruf das mal direkt auf:
Code:
strace start-stop-daemon -S -N 5 -p /var/run/transmission.pid -x transmission-daemon -c bittorrent -- --no-portmap --incomplete-dir /var/media/ftp/FritzBox/bittorrent/download/incomplete --no-finish-dir -P 9090 -L 120 -l 30 -et -b --auth --username transmission --password transmission -p 9091 -a 192.168.1.* --no-global-seedratio --config-dir /var/media/ftp/FritzBox/bittorrent/config --download-dir /var/media/ftp/FritzBox/bittorrent/download
 
Oh...sorry, wie gesagt so gut kenne ich mich mit Unix dann doch nicht aus.

Hier einmal die neue Ausgabe:

Code:
/var/mod/root # strace start-stop-daemon -S -N 5 -p /var/run/transmission.pid -x transmission-daemon -c bittorrent -- --no-portmap --incomplete-dir /var/media/ftp/FritzBox/bittorrent/download/incomplete --no-finish-dir -P 9090 -L 120 -l
30 -et -b --auth --username transmission --password transmission -p 9091 -a 192.168.1.* --no-global-seedratio --config-dir /var/media/ftp/FritzBox/bittorrent/config --download-dir /var/media/ftp/FritzBox/bittorrent/download
execve("/sbin/start-stop-daemon", ["start-stop-daemon", "-S", "-N", "5", "-p", "/var/run/transmission.pid", "-x", "transmission-daemon", "-c", "bittorrent", "--", "--no-portmap", "--incomplete-dir", "/var/media/ftp/FritzBox/bittorre"..., "--no-finish-dir", "-P", ...], [/* 181 vars */]) = 0
old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaad000
stat("/etc/ld-uClibc.so.cache", 0x7f88f5e8) = -1 ENOENT (No such file or directory)
open("/usr/lib/freetz/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/mod/lib/libc.so.0", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/lib/libc.so.0", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=698564, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\220\253\0\0004\0\0\0"..., 4096) = 4096
old_mmap(NULL, 741376, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabe000
old_mmap(0x2aabe000, 643172, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aabe000
old_mmap(0x2ab6b000, 8200, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x9d000) = 0x2ab6b000
old_mmap(0x2ab6e000, 18128, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ab6e000
close(3)                                = 0
munmap(0x2aaae000, 4096)                = 0
stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=22772, ...}) = 0
mprotect(0x2ab6b000, 4096, PROT_READ)   = 0
mprotect(0x2aabc000, 4096, PROT_READ)   = 0
ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
getuid()                                = 0
brk(0)                                  = 0x4a0000
brk(0x4a1000)                           = 0x4a1000
open("/var/run/transmission.pid", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/etc/passwd", O_RDONLY)           = 3
ioctl(3, TIOCNXCL, 0x7f88f690)          = -1 ENOTTY (Inappropriate ioctl for device)
brk(0x4a2000)                           = 0x4a2000
read(3, "root:x:0:0:root:/mod/root:/bin/s"..., 4096) = 182
close(3)                                = 0
setuid(2)                               = 0
getpriority(PRIO_PROCESS, 0)            = 20
setpriority(PRIO_PROCESS, 0, 5)         = 0
execve("/sbin/transmission-daemon", ["transmission-daemon", "--no-portmap", "--incomplete-dir", "/var/media/ftp/FritzBox/bittorre"..., "--no-finish-dir", "-P", "9090", "-L", "120", "-l", "30", "-et", "-b", "--auth", "--username", "transmission", ...], [/* 181 vars */]) = -1 ENOENT (No such file or directory)
execve("/bin/transmission-daemon", ["transmission-daemon", "--no-portmap", "--incomplete-dir", "/var/media/ftp/FritzBox/bittorre"..., "--no-finish-dir", "-P", "9090", "-L", "120", "-l", "30", "-et", "-b", "--auth", "--username", "transmission", ...], [/* 181 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/sbin/transmission-daemon", ["transmission-daemon", "--no-portmap", "--incomplete-dir", "/var/media/ftp/FritzBox/bittorre"..., "--no-finish-dir", "-P", "9090", "-L", "120", "-l", "30", "-et", "-b", "--auth", "--username", "transmission", ...], [/* 181 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/bin/transmission-daemon", ["transmission-daemon", "--no-portmap", "--incomplete-dir", "/var/media/ftp/FritzBox/bittorre"..., "--no-finish-dir", "-P", "9090", "-L", "120", "-l", "30", "-et", "-b", "--auth", "--username", "transmission", ...], [/* 181 vars */]) = -1 EACCES (Permission denied)
ioctl(2147483647, TIOCNXCL, 0x7f88f670) = -1 EBADF (Bad file descriptor)
brk(0x4a3000)                           = 0x4a3000
write(2, "start-stop-daemon: can't start t"..., 70start-stop-daemon: can't start transmission-daemon: Permission denied
) = 70
exit(1)                                 = ?
 
Poste uns mal bitte die Ausgabe von
Code:
f=/var/media/ftp/FritzBox/external/usr/bin/transmission-daemon; while [ -n "$(dirname $f)" -a "$(dirname $f)" != "/" ]; do f="$(dirname $f)"; ls -ld "$f"; done

und das gleiche für /usr/bin/transmission-daemon
 
Hier die Ausgaben:

Code:
/var/mod/root # f=/var/media/ftp/FritzBox/external/usr/bin/transmission-daemon; while [ -n "$(dirname $f)" -a "$(dirname $f)" != "/" ]; do f="$(dirname $f)"; ls -ld "$f"; done
drwxr-xr-x    2 root     root          4096 Jun 21 16:14 /var/media/ftp/FritzBox/external/usr/bin
drwxr-xr-x    5 root     root          4096 Jun 21 16:14 /var/media/ftp/FritzBox/external/usr
drwxr-xr-x    3 root     root          4096 Jun 21 16:13 /var/media/ftp/FritzBox/external
drwx------    6 1000     1000          4096 Jun 21 17:04 /var/media/ftp/FritzBox
drwxr-xr-x    3 root     root             0 Jan  1  2000 /var/media/ftp
drwxr-xr-x    3 root     root             0 Jun 21 16:25 /var/media
drwxrwxr-x   15 root     root             0 Jun 21 20:36 /var
/var/mod/root # f=/usr/bin/transmission-daemon; while [ -n "$(dirname $f)" -a "$(dirname $f)" != "/" ]; do f="$(dirname $f)"; ls -ld "$f"; done
drwxr-xr-x    1 root     root           990 Jun 21 16:10 /usr/bin
drwxr-xr-x    1 root     root            51 Apr  8 19:29 /usr

Aha...der USB-Stick selber ist also das Problem. Habe jetzt ein chown root:root und ein chmod +x (auf FritzBox) gemacht und schon geht es.

Danke allen für die Hilfe.
 
Zuletzt bearbeitet:
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.