[solved]intall transmissiond OK, but it do not work.

This forum is for all other ARMv5 devices

[solved]intall transmissiond OK, but it do not work.

Postby vic » Wed Jan 02, 2013 6:23 pm

Hi all A.L.Arm community.
Here I am posting again, still noob and still unable to sort out myself where is my problem.
I have a Pogo-P24 with the root-fs as from ArchLinuxARM-2012.12-oxnas.tar.gz (latest), updated by pacman-syu. Installed a couple of tools such htop and sudo and changed the device name, but except this neglectable changes it IS virtually a "vanilla" pogo arch.

The problem (I believe) is located in the triangle: transmission - rc.d - systemd.

I installed transmission-cli. Followed the wiki instructions to set up a "torrent" user to run the daemon. At first I tried in /etc/conf.d/transmissiond but it did not work. All I can say is that:

$this->bbcode_second_pass_code('', '
[root@sufferance ~]# rc.d start transmissiond
:: Starting Transmission Daemon [DONE]
[root@sufferance ~]# rc.d stop transmissiond
:: Stopping Transmission Daemon [FAIL]
')
and no transmission process spawn in the processes list (I mean: after the start command, and this make it obvious why stop fails).

So i tried the systemd version of the wiki instructions.
$this->bbcode_second_pass_code('', '
systemd-tmpfiles --create transmission.conf
')
goes on quietly.
But then both:
$this->bbcode_second_pass_code('', '
[root@sufferance ~]# systemctl stop transmission
Failed to get D-Bus connection: No connection to service manager.
')
and
$this->bbcode_second_pass_code('', '
[root@sufferance ~]# systemctl start transmission
Failed to get D-Bus connection: No connection to service manager.
')
fails.

Systemd is already installed
$this->bbcode_second_pass_code('', '
[root@sufferance ~]# pacman -Q systemd
systemd 196-2
')
so I thought all should be fine with it but
$this->bbcode_second_pass_code('', '
[root@sufferance ~]# cat /proc/1/comm
cat: /proc/1/comm: No such file or directory
')

I also tried to re-install sustemd, but nothing changed.

So, if someone could kindly show me where should I direct my attention in this mess... :?

Many thanks to everyone for the time spent reading my long post!!
Last edited by vic on Thu Jan 03, 2013 10:09 pm, edited 1 time in total.
vic
 
Posts: 6
Joined: Wed Nov 14, 2012 6:09 pm

Re: intall transmissiond OK, but it do not work.

Postby WarheadsSE » Wed Jan 02, 2013 7:06 pm

systemd provides udev. Oxnas based devices are still using sysvinit, DO NOT ATTEMPT to make the change to systemd-init at this time.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: intall transmissiond OK, but it do not work.

Postby vic » Wed Jan 02, 2013 7:18 pm

$this->bbcode_second_pass_quote('WarheadsSE', 's')ystemd provides udev. Oxnas based devices are still using sysvinit, DO NOT ATTEMPT to make the change to systemd-init at this time.


Ok, I will certainly not try to make the change.

Ah, a couple of things I forgot to say in the last post: effectively I've screwed up my p24 back in december when I tried to pass to systemd-init (my fault). This brings me to memory that it happened right after an update of transmission-cli (after which it stopped working).

So, at this point I think that the problem is transmissiond, am I right?
Does anyone had my same problem? Maybe downgrading transmission is a possible solution?

Again, thanks to everyone reading, especially to WarheadsSE.
vic
 
Posts: 6
Joined: Wed Nov 14, 2012 6:09 pm

Re: intall transmissiond OK, but it do not work.

Postby karog » Wed Jan 02, 2013 9:05 pm

Did you look in /var/log/messages for transmission related messages that might tell you what is going on?
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: intall transmissiond OK, but it do not work.

Postby slycat » Wed Jan 02, 2013 10:57 pm

could it be the problem that udev caused before?

the fix I still use
$this->bbcode_second_pass_code('', 'MAKEDEV tty
rm /dev/random && mknod -m 666 /dev/random c 1 8
rm /dev/urandom && mknod -m 666 /dev/urandom c 1 9
rm /dev/null && mknod -m 0666 /dev/null c 1 3
rm /dev/mem && mknod -m 640 /dev/mem c 1 1
rm /dev/full && mknod -m 666 /dev/full c 1 7
rm /dev/kmem && mknod -m 640 /dev/kmem c 1 2
rm /dev/kmsg && mknod -m 660 /dev/kmsg c 1 11
rm /dev/port && mknod -m 640 /dev/port c 1 4')
then start transmissiond
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL

Re: intall transmissiond OK, but it do not work.

Postby pepedog » Wed Jan 02, 2013 11:14 pm

Or, who owns /var/lib/transmission
Did you edit /etc/conf./transmissiond and set TRANS_USER=
Test if permissions by making root, otherwise the user needs to own /var/lib/transmission
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: intall transmissiond OK, but it do not work.

Postby vic » Thu Jan 03, 2013 6:51 pm

$this->bbcode_second_pass_quote('karog', 'D')id you look in /var/log/messages for transmission related messages that might tell you what is going on?


I had not done it, but I've just gave it a shot now. Sadly nothing seems to be happening:

$this->bbcode_second_pass_code('', '
[root@sufferance log]# rc.d start transmissiond
:: Starting Transmission Daemon [DONE]
[root@sufferance log]# cat daemon.log | grep transmission
[root@sufferance log]# cat messages.log | grep transmission
[root@sufferance log]# rc.d stop transmissiond
:: Stopping Transmission Daemon [FAIL]
[root@sufferance log]# cat daemon.log | grep transmission
[root@sufferance log]# cat messages.log | grep transmission
')

$this->bbcode_second_pass_quote('pepedog', 'O')r, who owns /var/lib/transmission
Did you edit /etc/conf./transmissiond and set TRANS_USER=
Test if permissions by making root, otherwise the user needs to own /var/lib/transmission

well the directory is as follows
$this->bbcode_second_pass_code('', '
[root@sufferance lib]# ls -lah | grep transmission
drwx------ 2 transmission transmission 4.0K Jan 2 07:43 transmission
')
but I have already edited TRANS_USER in /etc/conf with my own "trorrent" user, as specified on the wiki page. Last time I had installed transmission on pogo w/ alarm that worked fine...

$this->bbcode_second_pass_quote('slycat', 'c')ould it be the problem that udev caused before?

the fix I still use
$this->bbcode_second_pass_code('', 'MAKEDEV tty
rm /dev/random && mknod -m 666 /dev/random c 1 8
rm /dev/urandom && mknod -m 666 /dev/urandom c 1 9
rm /dev/null && mknod -m 0666 /dev/null c 1 3
rm /dev/mem && mknod -m 640 /dev/mem c 1 1
rm /dev/full && mknod -m 666 /dev/full c 1 7
rm /dev/kmem && mknod -m 640 /dev/kmem c 1 2
rm /dev/kmsg && mknod -m 660 /dev/kmsg c 1 11
rm /dev/port && mknod -m 640 /dev/port c 1 4')
then start transmissiond

I have not yet tried that. But I'll give it a shot too. Nothing to lose in the end... :mrgreen:
vic
 
Posts: 6
Joined: Wed Nov 14, 2012 6:09 pm
Top

Re: intall transmissiond OK, but it do not work.

Postby karog » Thu Jan 03, 2013 7:42 pm

If all else fails you could look at /etc/rc.d/transmissiond (the rc.d startup script) and execute the commands one by one and see what's happening.

Another approach to the /dev/urandom et al problem is
Create /usr/lib/udev/rules.d/50-mode-dev-null-full-zero-random-urandom.rules containing the following lines:
$this->bbcode_second_pass_code('', '
# mem
SUBSYSTEM=="mem", KERNEL=="null|zero|full|random|urandom", MODE="0666"
')
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: intall transmissiond OK, but it do not work.

Postby vic » Thu Jan 03, 2013 10:08 pm

$this->bbcode_second_pass_quote('karog', 'I')f all else fails you could look at /etc/rc.d/transmissiond (the rc.d startup script) and execute the commands one by one and see what's happening.

Another approach to the /dev/urandom et al problem is
Create /usr/lib/udev/rules.d/50-mode-dev-null-full-zero-random-urandom.rules containing the following lines:
$this->bbcode_second_pass_code('', '
# mem
SUBSYSTEM=="mem", KERNEL=="null|zero|full|random|urandom", MODE="0666"
')


WOW! karog, you are great! I've made your rules file, now the rc.d script works (and transmission too)! :lol:

Thank you all very much, I would have never figured out myself that the problem was related to udev! :mrgreen:
vic
 
Posts: 6
Joined: Wed Nov 14, 2012 6:09 pm
Top

Re: [solved]intall transmissiond OK, but it do not work.

Postby matjaz » Wed Jan 09, 2013 4:56 pm

Had the same problem and managed to resolve it with your help. Transmission starts and it works, but I have a permission problem. Whenever I add a new torrent, the status of it is this: "Error: Permission denied (/media/Entertainment/name_of_file.avi)". I tried to run Transmission as root and torrent, in both cases this is the output. ls -lah says that Entertainment (and everything in it) is owned by root:users. I tried setting the permissions to torrent (chown -R torrent:users Entertainment) but the permissions are still set for root:users. Am I doing something wrong here? Entertainment is a USB NTFS drive.
matjaz
 
Posts: 37
Joined: Thu Jan 05, 2012 11:00 pm


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 44 guests