transmission failed

Posted:
Wed Jul 01, 2015 9:56 pm
by fraumo
Hello
Today I have do a NAS restart and then I cannot use anymore transmission
I have acess to all but when i try to reinstall transmission server I get this message:
Fail: install command failed : init-tr-daemon
Can anybody help ?
Thanks in advance
Re: transmission failed

Posted:
Thu Jul 02, 2015 7:39 am
by Jocko
Hi fraumo,
What firmware version do you use ? (there are some changes with version 16.0).
fraumo wrote:Fail: install command failed : init-tr-daemon
This error is no longer reported with version 16.0.
Re: transmission failed

Posted:
Thu Jul 02, 2015 8:14 am
by fraumo
Hello
I am using last version 16.0
Re: transmission failed

Posted:
Thu Jul 02, 2015 9:03 am
by Jocko
Ok, I forgot to look at another file and now I understand at what step the script fails.
So can you see if the outputs are ok for:
- Code: Select all
ls -l /direct-usb (should return symlink toward /share/1000)
ls -dl /share/1000/tr-daemon
ls -ld /share/1000/tr-downloads (should find these folders)
ls -l /usr/bin/transmission-daemon
grep '<transmission>' -A 4 /etc/nas_conf_db.xml (you should see credential tags for transmission)
And last test, check if sda8 is mounted on /share/1000 with the command mount
Re: transmission failed

Posted:
Thu Jul 02, 2015 11:36 am
by fraumo
I get
ls -l /direct-usb (should return symlink toward /share/1000)
lrwxrwxrwx 1 root root 11 2015-07-02 12:22 /direct-usb -> /share/1000
ls -dl /share/1000/tr-daemon
drwxrwxrwx 5 root root 4096 2015-07-01 08:36 /share/1000/tr-daemon
ls -ld /share/1000/tr-downloads (should find these folders)
drwxrwxrwx 19 root root 12288 2015-07-01 08:16 /share/1000/tr-downloads
ls -l /usr/bin/transmission-daemon
-rwxr-xr-x 1 root root 402532 2014-03-15 12:34 /usr/bin/transmission-daemon
grep '<transmission>' -A 4 /etc/nas_conf_db.xml (you should see credential tags for transmission)
i have done this - nothing happen
finally i have done mount and I get
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
/dev/sda2 on / type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw,relatime,mode=600)
/dev/sda5 on /rw_fs type ext3 (rw,noatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
tmpfs on /rw_fs/tmp/usr/var type tmpfs (rw,relatime,size=5000k)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sda8 on /share/1000 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
/dev/root on /lacie-boot type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered)
still get failure message
Re: transmission failed

Posted:
Thu Jul 02, 2015 12:17 pm
by Jocko
So something to deepen on the nas database...
To be sure that we work on the same files: did you install this patch
viewtopic.php?f=11&t=2077?
So can you post also
- Code: Select all
ls -l /etc/nas_conf_db.xml
Re: transmission failed

Posted:
Thu Jul 02, 2015 2:15 pm
by fvdw
grep '<transmission>' -A 4 /etc/nas_conf_db.xml
should this not be
- Code: Select all
grep '<transmission>' -A 4 /rw_fs/etc/nas_conf_db.xml
and
ls -l /etc/nas_conf_db.xml
should be
- Code: Select all
ls -l /rw_fs/etc/nas_conf_db.xml
The installation could fail because the executable is already present and in use and running
- Code: Select all
ps -ef | grep transmission
to see what is happening the install script could be run manually from the command line (after ssh log on)
Re: transmission failed

Posted:
Thu Jul 02, 2015 2:53 pm
by Jocko
fvdw wrote:should this not be
- Code: Select all
grep '<transmission>' -A 4 /rw_fs/etc/nas_conf_db.xml
and
- Code: Select all
ls -l /etc/nas_conf_db.xml
You are wrong fvdw
There is a symlink in /etc and it is why I asked the last output to see if the symlink is still here (note sda5 is also mounted) ;)
fvdw wrote:The installation could fail because the executable is already present and in use and running
- Code: Select all
ps -ef | grep transmission
This should not happen because when you do a reset the script checks if transmission is running and in this case the script kills all transmission processes and waits some seconds to be sure that there is no orphan process.
to see what is happening the install script could be run manually from the command line (after ssh log on)
This is no longer true with version 16.0 (need to parse the nas database to get the credentials settings)
Re: transmission failed

Posted:
Thu Jul 02, 2015 10:29 pm
by fraumo
I have instal patch-upload patch menu
2015-07-02 22:16:52 fvdw-sl-16.0-trdownload-11may15.zip(fvdw-sl-16.0-trdownload-11may15.tar) OK
with the command ls -l /etc/nas_conf_db.xml i get
lrwxrwxrwx 1 root root 26 2015-07-02 23:18 /etc/nas_conf_db.xml -> /rw_fs/etc/nas_conf_db.xml
i try to reinstall server and I get
Transmission Server
Status server is not running
Status server is not installed
Fail: install command failed : init-tr-daemon
Re: transmission failed

Posted:
Thu Jul 02, 2015 10:51 pm
by Jocko
The environment seems to be OK to install transmission...
So enable the debug mode to understand better what happens.
- Reload the transmission menu
- start the debug mode
- Code: Select all
/etc/nas_status.sh --start-debug
- try to reinstall transmission
- stop the debug mode
- Code: Select all
/etc/nas_status.sh --stop-debug
Then post the content of /var/log/messages