Can't detect UID or rtorrent user

somus1735

Member
May 25, 2018
833
0
16
I'm trying to upgrade from 3.1 -> 3.2. I've backed up 3.1 and copied across the rutorrent/conf and rutorrent/share directories. When accessing rutorrent, I get the error message "rutorrent can't detect the UID or rtorrent user. Some functionality will be unavailable".
 

simur612

Member
May 25, 2018
879
0
16
Probably, you have a not GNU compliant 'id' program. Try to put in console two commands
Code:
id -U
and
Code:
id -g
and paste here it's output.
 

peshua19

Member
May 25, 2018
897
0
16
Quote:
Probably, you have a not GNU compliant 'id' program. Try to put in console two commands
Code:
id -U
and
Code:
id -g
and paste here it's output.


Both output '1020'
 

saroos1

Member
May 25, 2018
718
0
16
Same issue:

Code:
[06.07.2011 23:01:07] WebUI started.
[06.07.2011 23:01:09] ruTorrent can't detect the uid or rtorrent user. Some functionality will be unavailable.
[06.07.2011 23:01:09] autotools: plugin can't start for unknown reason.
[06.07.2011 23:01:09] erasedata: plugin can't start for unknown reason.
[06.07.2011 23:01:09] retrackers: plugin can't start for unknown reason.
[06.07.2011 23:01:09] unpack: plugin can't start for unknown reason.
[06.07.2011 23:01:09] ratio: plugin can't start for unknown reason.
[06.07.2011 23:01:09] seedingtime: plugin can't start for unknown reason.
3.1 works fine, 3.2 in a seperate directory does not work. id -U and -g both return my id correctly
 

simur612

Member
May 25, 2018
879
0
16
1) Check dbg variables in conf/config.php
Its must be setted to
Code:
$do_diagnostic = true;
$log_file = '/tmp/errors.log';
2) Paste here contents of /tmp/errors.log
3) Paste here additional info. Web-server's version, rTorrent version etc.
 

das329717

Member
May 25, 2018
928
0
16
The only log file on my box with the name errors.log (thats what its defined in config.php) is @ /home/myusername/www/rutorrent/plugins/httprpc/errors.log

I don't think thats the file you want. Heres info on my box.

rTorrent: 0.8.6/
lighttpd/1.4.19
PHP Version 5.2.6-1+lenny10
System Linux 2.6.34.6-xxxx-grs-ipv6-64 #3 SMP Fri Sep 17 16:06:38 UTC 2010 x86_64
 

peshua19

Member
May 25, 2018
897
0
16
I'm having this same problem with rutorrent 3.5.

The host is an Asus RT-N16 running Tomato Firmware v1.28.9054 MIPSR2-beta K26 USB vpn3.6

rtorrent 0.8.6
rutorrent 3.5
lighttpd 1.4.32
php 5.2.17
php-fcgi 5.2.17
php-mbstring 5.2.17
php-xmlrpc 5.2.17

# id --version
id (GNU coreutils) 8.4

# id -g
0

# id -u
0

rutorrent log:
[13.12.2012 12:10:32] WebUI started.
[13.12.2012 12:10:32] ruTorrent cannot determine the UID of rTorrent user. Some functionality will be unavailable.

# cat /tmp/errors.log
[13.12.12 12:10:28] <?xml version="1.0" encoding="UTF-8"?><methodCall><methodName>system.multicall</methodName><params><param><value><array><data>
<value><struct><member><name>methodName</name><value><string>get_directory</string></value></member><member><name>params</name><value><array><data>
</data></array></value></member></struct></value>
<value><struct><member><name>methodName</name><value><string>get_session</string></value></member><member><name>params</name><value><array><data>
</data></array></value></member></struct></value>
<value><struct><member><name>methodName</name><value><string>system.library_version</string></value></member><member><name>params</name><value><array><data>
</data></array></value></member></struct></value>
<value><struct><member><name>methodName</name><value><string>set_xmlrpc_size_limit</string></value></member><member><name>params</name><value><array><data>
<value><i4>7-11//,3</i4></value>
</data></array></value></member></struct></value>
<value><struct><member><name>methodName</name><value><string>get_name</string></value></member><member><name>params</name><value><array><data>
</data></array></value></member></struct></value>
<value><struct><member><name>methodName</name><value><string>get_port_range</string></value></member><member><name>params</name><value><array><data>
</data></array></value></member></struct></value>
</data></array></value></param></params></methodCall>
[13.12.12 12:10:28] Status: 200 OK
Content-Type: text/xml
Content-Length: 384

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<fault>
<value><struct>
<member><name>faultCode</name>
<value><i4>-503</i4></value></member>
<member><name>faultString</name>
<value><string>Call XML not a proper XML-RPC call. &lt;int&gt; value '7-11//,3' contains non-numerical junk: '-11//,3'</string></value></member>
</struct></value>
</fault>
</methodResponse>

snippets from lighttpd.conf:
server.event-handler = "poll"
server.pid-file = "/var/run/lighttpd.pid"

scgi.server = (
"/RPC2" =>
( "127.0.0.1" =>
(
"host" => "127.0.0.1",
"port" => 5000,
"check-local" => "disable"
)
)
)

# ll /var/r
un
-rw-r--r-- 1 root root 6 Dec 13 11:46 crond.pid
-rw-r--r-- 1 root root 6 Dec 13 11:46 dnsmasq.pid
-rw-r--r-- 1 root root 4 Dec 31 1969 dropbear.pid
-rw-r--r-- 1 root root 5 Dec 13 11:46 httpd.pid
-rw-r--r-- 1 root root 6 Dec 13 12:09 lighttpd.pid
-rw-r--r-- 1 root root 6 Dec 13 11:46 miniupnpd.pid
-rw-r--r-- 1 root root 4 Dec 31 1969 p9100d.pid
drwxrwxrwx 2 root root 80 Dec 13 11:46 samba/
-rw-r--r-- 1 root root 6 Dec 13 11:46 syslogd.pid
drwxrwxrwx 2 root root 40 Dec 9 11:48 vsftpd/

# ll /tmp
-rw-rw-rw- 1 root root 7660 Dec 13 12:10 errors.log
drwxr-xr-x 6 root root 660 Dec 13 11:46 etc/
drwxr-xr-x 3 root root 60 Dec 31 1969 home/
drwxr-xr-x 4 root root 80 Dec 9 11:47 mnt/
srwxr-xr-x 1 root root 0 Dec 13 12:09 php-fcgi.sock-0=
srwxr-xr-x 1 root root 0 Dec 13 12:09 php-fcgi.sock-1=
srwxr-xr-x 1 root root 0 Dec 13 12:09 php-fcgi.sock-2=
srwxr-xr-x 1 root root 0 Dec 13 12:09 php-fcgi.sock-3=
srw------- 1 root root 0 Dec 9 11:50 rtorrent=
-rwx------ 1 root root 113 Dec 13 11:46 script_fire.sh*
drwxr-xr-x 2 root root 40 Dec 31 1969 share/
drwxr-xr-x 11 root root 220 Dec 31 1969 var/

from rtorrent.conf:
session = /opt/share/torrent/session
encoding_list = UTF-8
scgi_port = 127.0.0.1:5000

/opt/share/torrent# ll
drwxr-xr-x 2 root root 4096 Feb 16 2012 dl/
drwxr-xr-x 2 root root 4096 Dec 13 12:50 session/
drwxr-xr-x 2 root root 4096 Feb 16 2012 work/

from config.php:
$scgi_port = 5000;
$scgi_host = "127.0.0.1";