Strona 1 z 1
rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 20 maja 2012, 17:57
autor: grzechuoo
Robiłem wszystko według tego poradnika
http://code.google.com/p/rtgui/wiki/ubuntu_rtgui
w logu /var/log/apache2. mam takie cos
Kod: Zaznacz cały
[Sun May 20 17:47:35 2012] [error] [client 127.0.0.1] (111)Connection refused: scgi: scgi: can't connect to server
a takie cos mam jak kombinuje
Kod: Zaznacz cały
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
jakieś pomysły
Re: rtorrent+rtGUi konfig
: 20 maja 2012, 18:34
autor: bear7
Zmień tytuł tematu tak, aby w sposób możliwie precyzyjny przedstawiał sedno sprawy, w której piszesz. Miej na uwadze również zgodność z
REGULAMINEMTytuł tematu zmienisz edytując pierwszy post W razie wątpliwości/zastrzeżeń odnośnie powyższej informacji skontaktuj się z moderatorem, który ją wstawił.
Re: rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 20 maja 2012, 21:11
autor: grzechuoo
sprawdzałem jeszcze rutorrent i mam takie cos...
Kod: Zaznacz cały
[20.05.2012 21:05:35] WebUI started.
[20.05.2012 21:05:35] Bad link to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file.
... a w rtGui
Kod: Zaznacz cały
Cannot connect to rtorrent :(
Please, ensure that rtorrent is running.
Re: rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 20 maja 2012, 22:27
autor: 3miel
ja bym próbował skonfigurować ruTorrent ( inny projekt web GUI do rtorrenta )
tutaj projekt ->
http://code.google.com/p/rutorrent/
jak zainstalować ->
http://code.google.com/p/rutorrent/wiki/Installation
wg mnie lepsze, a ty widocznie masz błędy w konfiguracji apacha
Re: rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 21 maja 2012, 00:02
autor: zet120
W tym tutorialu brak mi jednego wpisu w pliku ~/.rtorrent.rc, a mianowice:
Drugi błąd to niepoprawna konfiguracja apache, rozwiązanie:
http://blog.milczarek.it/2011/03/jak-us ... determine/
Re: rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 21 maja 2012, 07:29
autor: grzechuoo
Dzięki zet120 jestem troche dalej ale nadal mam cos nie tak mianowicie
Kod: Zaznacz cały
[21.05.2012 07:27:07] WebUI started.
[21.05.2012 07:27:08] Bad response from server: (404 [error,list]) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /RPC2 was not found on this server.</p> <hr> <address>Apache/2.2.22 (Ubuntu) Server at localhost Port 80</address> </body></html>
[21.05.2012 07:27:15] Torrent został prawidłowo dodany dla rTorrent.
Torrent zostaje dodany ale tylko do rtorrenta w rutorrent go nie widac ;/
Re: rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 21 maja 2012, 07:46
autor: zet120
Błąd wskazuje na brak w konfiguracji apache czyli np. w pliku
/etc/apache2/sites-available/default
Kod: Zaznacz cały
LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so
SCGIMount /RPC2 127.0.0.1:5000
Re: rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 21 maja 2012, 07:50
autor: grzechuoo
chce tez dodac rtorrent do uruchamiania sie przy starcie robie tak
Kod: Zaznacz cały
Następnie edytujemy skrypt dodając info skryptu LSB (zaraz po #!/bin/sh..) i zastępując nazwę user swoją nazwą użytkownika
sudo nano /etc/init.d/rtorrent
### BEGIN INIT INFO
# Provides: rtorrent
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
user="user"
sudo chmod +x /etc/init.d/rtorrent
sudo update-rc.d rtorrent defaults
sudo /etc/init.d/rtorrent start
Podczas następnego startu systemu (serwera) rTorrent zostanie automatycznie uruchomiony w sesji screen’a
a mi wyskakuje takie cholerstwo
Kod: Zaznacz cały
cannot find readable session directory from config /home/gogo/.rtorrent.rc. check permissions
Re: rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 21 maja 2012, 08:02
autor: zet120
Plik
~/.rtorrent.rc powinien mieć standardowe uprawnienia czyli:
Kod: Zaznacz cały
zet120@mail:~$ ls -la /home/zet120/.rtorrent.rc
-rw-r--r-- 1 zet120 zet120 520 04-12 18:23 /home/zet120/.rtorrent.rc
oraz powinien należeć do usera, którego wpiszesz w skrypt do automatycznego uruchamiania rtorrenta czyli w owym skrypcie:
Re: rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 21 maja 2012, 08:29
autor: grzechuoo
zet120 pisze:Plik
~/.rtorrent.rc powinien mieć standardowe uprawnienia czyli:
Kod: Zaznacz cały
zet120@mail:~$ ls -la /home/zet120/.rtorrent.rc
-rw-r--r-- 1 zet120 zet120 520 04-12 18:23 /home/zet120/.rtorrent.rc
oraz powinien należeć do usera, którego wpiszesz w skrypt do automatycznego uruchamiania rtorrenta czyli w owym skrypcie:
takie mam uprawnienia
Kod: Zaznacz cały
gogo@gogo:~$ ls -la /home/gogo/.rtorrent.rc
-rwxrwxrwx 1 gogo gogo 3725 maj 21 07:18 /home/gogo/.rtorrent.rc
a tak mam w configu
Kod: Zaznacz cały
#Do not put a space on either side of the equal signs e.g.
# user = user
# will not work
# system user to run as
user="gogo"
i dalej nie teges
Kod: Zaznacz cały
cannot find readable session directory from config /home/gogo/.rtorrent.rc. check permissions
Re: rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 21 maja 2012, 08:51
autor: zet120
A po reboot' cie automatycznie nie wystartuje?
Jeżeli nie to dalsze badanie problemu tylko
tak
Re: rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 21 maja 2012, 08:53
autor: grzechuoo
nie niestety nie startuje ;/
przy okazji jeszcze torrent ktory mialem usuna sie z rutorrenta i rtorrenta sam :/
no nic Dzięki wielce mi pomogłeś!
poczekam moze ktos jeszcze coś doda do wątku.
pozdrawiam
Re: rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 21 maja 2012, 09:00
autor: zet120
Tak jak pisałem wyżej wpisz ten błąd bez nazwy użytkownika w google i szukaj rozwiązania, okazuje się, że ów błąd jest dosyć popularny zatem i lektury i możliwości sporo.
Re: rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 21 maja 2012, 09:02
autor: grzechuoo
a moze miec to zwiazek z takim komunikatem w rtorrencie
Kod: Zaznacz cały
( 9:01:15) Using 'epoll' based polling.
( 9:01:15) Using 'epoll' based polling.
( 9:01:15) XMLRPC initialized with 897 functions.
( 9:01:15) The SCGI socket is bound to a specific network device yet may still pose a security risk, consider using 'scgi_local'.
( 9:01:15) Closed XMLRPC log.
[Throttle off/off KB] [Rate 0,0/ 0,0 KB] [Port: 6922] [U 0/0] [D 0/0] [H 0/32] [S 0/2/768] [F 0/128]
Re: rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 21 maja 2012, 09:09
autor: zet120
Raczej, a nawet na pewno nie.
Spróbuj jeszcze z moim skryptem:
Kod: Zaznacz cały
#!/bin/sh
### BEGIN INIT INFO
# Provides: rtorrent
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
#############
###<Notes>###
#############
# This script depends on screen.
# For the stop function to work, you must set an
# explicit session directory using ABSOLUTE paths (no, ~ is not absolute) in your rtorrent.rc.
# If you typically just start rtorrent with just "rtorrent" on the
# command line, all you need to change is the "user" option.
# Attach to the screen session as your user with
# "screen -dr rtorrent". Change "rtorrent" with srnname option.
# Licensed under the GPLv2 by lostnihilist: lostnihilist _at_ gmail _dot_ com
##############
###</Notes>###
##############
#######################
##Start Configuration##
#######################
# You can specify your configuration in a different file
# (so that it is saved with upgrades, saved in your home directory,
# or whateve reason you want to)
# by commenting out/deleting the configuration lines and placing them
# in a text file (say /home/user/.rtorrent.init.conf) exactly as you would
# have written them here (you can leave the comments if you desire
# and then uncommenting the following line correcting the path/filename
# for the one you used. note the space after the ".".
# . /etc/rtorrent.init.conf
#Do not put a space on either side of the equal signs e.g.
# user = user
# will not work
# system user to run as
user="zet120"
# the system group to run as, not implemented, see d_start for beginning implementation
# group=`id -ng "$user"`
# the full path to the filename where you store your rtorrent configuration
config="`su -c 'echo $HOME' $user`/.rtorrent.rc"
# set of options to run with
options=""
# default directory for screen, needs to be an absolute path
base="`su -c 'echo $HOME' $user`"
# name of screen session
srnname="rtorrent"
# file to log to (makes for easier debugging if something goes wrong)
logfile="/var/log/rtorrentInit.log"
#######################
###END CONFIGURATION###
#######################
PATH=/usr/bin:/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin
DESC="rtorrent"
NAME=rtorrent
DAEMON=$NAME
SCRIPTNAME=/etc/init.d/$NAME
checkcnfg() {
exists=0
for i in `echo "$PATH" | tr ':' '\n'` ; do
if [ -f $i/$NAME ] ; then
exists=1
break
fi
done
if [ $exists -eq 0 ] ; then
echo "cannot find rtorrent binary in PATH $PATH" | tee -a "$logfile" >&2
exit 3
fi
if ! [ -r "${config}" ] ; then
echo "cannot find readable config ${config}. check that it is there and permissions are appropriate" | tee -a "$logfile" >&2
exit 3
fi
session=`getsession "$config"`
if ! [ -d "${session}" ] ; then
echo "cannot find readable session directory ${session} from config ${config}. check permissions" | tee -a "$logfile" >&2
exit 3
fi
}
d_start() {
[ -d "${base}" ] && cd "${base}"
stty stop undef && stty start undef
su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "screen -dm -S ${srnname} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2
# this works for the screen command, but starting rtorrent below adopts screen session gid
# even if it is not the screen session we started (e.g. running under an undesirable gid
#su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "sg \"$group\" -c \"screen -fn -dm -S ${srnname} 2>&1 1>/dev/null\"" ${user} | tee -a "$logfile" >&2
su -c "screen -S "${srnname}" -X screen rtorrent ${options} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2
}
d_stop() {
session=`getsession "$config"`
if ! [ -s ${session}/rtorrent.lock ] ; then
return
fi
pid=`cat ${session}/rtorrent.lock | awk -F: '{print($2)}' | sed "s/[^0-9]//g"`
if ps -A | grep -sq ${pid}.*rtorrent ; then # make sure the pid doesn't belong to another process
kill -s INT ${pid}
fi
}
getsession() {
session=`cat "$1" | grep "^[[:space:]]*session[[:space:]]*=" | sed "s/^[[:space:]]*session[[:space:]]*=[[:space:]]*//" `
echo $session
}
checkcnfg
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
d_start
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
d_stop
echo "."
;;
restart|force-reload)
echo -n "Restarting $DESC: $NAME"
d_stop
sleep 1
d_start
echo "."
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
Re: rtorrent+rtGUi/Nie moze sie połączyc z rtorrent
: 21 maja 2012, 14:03
autor: grzechuoo
zet120 pisze:Raczej, a nawet na pewno nie.
Spróbuj jeszcze z moim skryptem:
Kod: Zaznacz cały
#!/bin/sh
### BEGIN INIT INFO
# Provides: rtorrent
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
#############
###<Notes>###
#############
# This script depends on screen.
# For the stop function to work, you must set an
# explicit session directory using ABSOLUTE paths (no, ~ is not absolute) in your rtorrent.rc.
# If you typically just start rtorrent with just "rtorrent" on the
# command line, all you need to change is the "user" option.
# Attach to the screen session as your user with
# "screen -dr rtorrent". Change "rtorrent" with srnname option.
# Licensed under the GPLv2 by lostnihilist: lostnihilist _at_ gmail _dot_ com
##############
###</Notes>###
##############
#######################
##Start Configuration##
#######################
# You can specify your configuration in a different file
# (so that it is saved with upgrades, saved in your home directory,
# or whateve reason you want to)
# by commenting out/deleting the configuration lines and placing them
# in a text file (say /home/user/.rtorrent.init.conf) exactly as you would
# have written them here (you can leave the comments if you desire
# and then uncommenting the following line correcting the path/filename
# for the one you used. note the space after the ".".
# . /etc/rtorrent.init.conf
#Do not put a space on either side of the equal signs e.g.
# user = user
# will not work
# system user to run as
user="zet120"
# the system group to run as, not implemented, see d_start for beginning implementation
# group=`id -ng "$user"`
# the full path to the filename where you store your rtorrent configuration
config="`su -c 'echo $HOME' $user`/.rtorrent.rc"
# set of options to run with
options=""
# default directory for screen, needs to be an absolute path
base="`su -c 'echo $HOME' $user`"
# name of screen session
srnname="rtorrent"
# file to log to (makes for easier debugging if something goes wrong)
logfile="/var/log/rtorrentInit.log"
#######################
###END CONFIGURATION###
#######################
PATH=/usr/bin:/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin
DESC="rtorrent"
NAME=rtorrent
DAEMON=$NAME
SCRIPTNAME=/etc/init.d/$NAME
checkcnfg() {
exists=0
for i in `echo "$PATH" | tr ':' '\n'` ; do
if [ -f $i/$NAME ] ; then
exists=1
break
fi
done
if [ $exists -eq 0 ] ; then
echo "cannot find rtorrent binary in PATH $PATH" | tee -a "$logfile" >&2
exit 3
fi
if ! [ -r "${config}" ] ; then
echo "cannot find readable config ${config}. check that it is there and permissions are appropriate" | tee -a "$logfile" >&2
exit 3
fi
session=`getsession "$config"`
if ! [ -d "${session}" ] ; then
echo "cannot find readable session directory ${session} from config ${config}. check permissions" | tee -a "$logfile" >&2
exit 3
fi
}
d_start() {
[ -d "${base}" ] && cd "${base}"
stty stop undef && stty start undef
su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "screen -dm -S ${srnname} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2
# this works for the screen command, but starting rtorrent below adopts screen session gid
# even if it is not the screen session we started (e.g. running under an undesirable gid
#su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "sg \"$group\" -c \"screen -fn -dm -S ${srnname} 2>&1 1>/dev/null\"" ${user} | tee -a "$logfile" >&2
su -c "screen -S "${srnname}" -X screen rtorrent ${options} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2
}
d_stop() {
session=`getsession "$config"`
if ! [ -s ${session}/rtorrent.lock ] ; then
return
fi
pid=`cat ${session}/rtorrent.lock | awk -F: '{print($2)}' | sed "s/[^0-9]//g"`
if ps -A | grep -sq ${pid}.*rtorrent ; then # make sure the pid doesn't belong to another process
kill -s INT ${pid}
fi
}
getsession() {
session=`cat "$1" | grep "^[[:space:]]*session[[:space:]]*=" | sed "s/^[[:space:]]*session[[:space:]]*=[[:space:]]*//" `
echo $session
}
checkcnfg
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
d_start
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
d_stop
echo "."
;;
restart|force-reload)
echo -n "Restarting $DESC: $NAME"
d_stop
sleep 1
d_start
echo "."
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
problem tkwił w rtorrent.rc konfiguracji ale nie wiem jaki bo napisałem tak samo a komunikat mialem taki
Kod: Zaznacz cały
gogo@gogo:~$ sudo /etc/init.d/rtorrent start
Starting rtorrent: rtorrent.
Piwo się dla Ciebie się nalezy
