Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Polskie forum (Polish) Polish OTW
  • Search

rTorrent + Wtorrent <-- Problem.

Rozmowy nie związane ściśle z Gentoo

Moderator: SlashBeast

Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
Author
Message
Biacho
n00b
n00b
User avatar
Posts: 25
Joined: Thu Sep 01, 2005 5:24 pm
Location: Poland / Opole
Contact:
Contact Biacho
Website

rTorrent + Wtorrent <-- Problem.

  • Quote

Post by Biacho » Mon Oct 26, 2009 5:47 pm

Jak w temacie. Chciałem uruchomić rtorrent'a na serwerze i za pomocą wtorrenta i www się z nim komunikować. Tak jak sama instalacja przebiegła bez żadnych problemów tak samo działanie już nie do końca. Problem w tym, że wtorrent nie chce się połączyć z rtorrentem o czym ładnie komunikuje :

Code: Select all

Error: cannot connect to rtorrent, please check host, folder and port values (and user/password if you have auth set up). 
Sam proces konfiguracji przechodziłem z pomocą tych opisów : 1, 2, 3, 4.
Próbowałem i z konfiguracją dla lightTPD i dla Apache czy też dla obydwu na raz. Niestety zawsze wyrzuca mi błąd połączenia z rtorrentem. wtorrent ma jeszcze opcje wstępnej konfiguracji przez www i podczas jej zapisywania wyrzuca mi bład :

Code: Select all

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1 table tor_passwd already exists' in /var/www/localhost/htdocs/wtorrent/lib/cls/PDOe.cls.php:66 Stack trace: #0 /var/www/localhost/htdocs/wtorrent/lib/cls/PDOe.cls.php(66): PDO->prepare('CREATE TABLE to...') #1 /var/www/localhost/htdocs/wtorrent/lib/cls/PDOe.cls.php(208): PDOe->prepareAndBind('CREATE TABLE to...', Array) #2 /var/www/localhost/htdocs/wtorrent/cls/install.cls.php(190): PDOe->modify('CREATE TABLE to...') #3 /var/www/localhost/htdocs/wtorrent/cls/install.cls.php(75): install->saveConfig(Array) #4 /var/www/localhost/htdocs/wtorrent/lib/cls/Web.cls.php(106): install->__construct() #5 /var/www/localhost/htdocs/wtorrent/install.php(32): Web::getClass('install') #6 {main} thrown in /var/www/localhost/htdocs/wtorrent/lib/cls/PDOe.cls.php on line 66
Istotne w samej konfiguracji pliki :

cat wtorrent/conf/user.conf.php

Code: Select all

<?php
/* wTorrent autoconfiguration file. Created 26/10/2009 */
define ('LANGUAGE', 'pl_PL');
define ('DB_FILE', 'db/database.db');
define ('RT_HOST', 'localhost');
define ('RT_PORT', 80);
define ('RT_DIR', '/RPC2');
define ('RT_AUTH', false);
define ('RT_USER', 'biacho');
define ('RT_PASSWD', 'xxxxxx');
define ('NO_MULTICALL', true);
define ('EFFECTS', true);
define ('DIR_TORRENTS', '/home/biacho/torrenty/pobrane');
define ('DIR_EXEC', '/var/www/localhost/htdocs/wtorrent/');
define ('DIR_DOWNLOAD', '/home/biacho/torrenty/pliki-ziarna');
?>
cat /etc/apache2/httpd.conf

Code: Select all

# This is a modification of the default Apache 2.2 configuration file
# for Gentoo Linux.
#
# Support:
#   http://www.gentoo.org/main/en/lists.xml   [mailing lists]
#   http://forums.gentoo.org/                 [web forums]
#   irc://irc.freenode.net#gentoo-apache      [irc chat]
#
# Bug Reports:
#   http://bugs.gentoo.org                    [gentoo related bugs]
#   http://httpd.apache.org/bug_report.html   [apache httpd related bugs]
#
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "var/log/apache2/foo_log"
# with ServerRoot set to "/usr" will be interpreted by the
# server as "/usr/var/log/apache2/foo.log".

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.

ServerRoot "/usr/lib/apache2"
ServerName Zion

# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
# GENTOO: Automatically defined based on APACHE2_MODULES USE_EXPAND variable.
#         Do not change manually, it will be overwritten on upgrade.
#
# The following modules are considered as the default configuration.
# If you wish to disable one of them, you may have to alter other
# configuration directives.
#
# Change these at your own risk!

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
<IfDefine CACHE>
LoadModule cache_module modules/mod_cache.so
</IfDefine>
LoadModule cgi_module modules/mod_cgi.so
<IfDefine DAV>
LoadModule dav_module modules/mod_dav.so
</IfDefine>
<IfDefine DAV>
LoadModule dav_fs_module modules/mod_dav_fs.so
</IfDefine>
<IfDefine DAV>
LoadModule dav_lock_module modules/mod_dav_lock.so
</IfDefine>
LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
<IfDefine CACHE>
LoadModule disk_cache_module modules/mod_disk_cache.so
</IfDefine>
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
LoadModule ext_filter_module modules/mod_ext_filter.so
<IfDefine CACHE>
LoadModule file_cache_module modules/mod_file_cache.so
</IfDefine>
LoadModule filter_module modules/mod_filter.so
LoadModule headers_module modules/mod_headers.so
LoadModule include_module modules/mod_include.so
<IfDefine INFO>
LoadModule info_module modules/mod_info.so
</IfDefine>
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
<IfDefine CACHE>
LoadModule mem_cache_module modules/mod_mem_cache.so
</IfDefine>
LoadModule mime_module modules/mod_mime.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule speling_module modules/mod_speling.so
<IfDefine SSL>
LoadModule ssl_module modules/mod_ssl.so
</IfDefine>
<IfDefine STATUS>
LoadModule status_module modules/mod_status.so
</IfDefine>
LoadModule unique_id_module modules/mod_unique_id.so
<IfDefine USERDIR>
LoadModule userdir_module modules/mod_userdir.so
</IfDefine>
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so



# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
User apache
Group apache

# Supplemental configuration
#
# Most of the configuration files in the /etc/apache2/modules.d/ directory can
# be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra features
# or to modify the default configuration of the server.
#
# To know which flag to add to APACHE2_OPTS, look at the first line of the
# the file, which will usually be an <IfDefine OPTION> where OPTION is the
# flag to use.
Include /etc/apache2/modules.d/*.conf

# Virtual-host support
#
# Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we
# include a default vhost (enabled by adding -D DEFAULT_VHOST to
# APACHE2_OPTS in /etc/conf.d/apache2).
Include /etc/apache2/vhosts.d/*.conf

# vim: ts=4 filetype=apache
<Ifmodule mod_userdir.c>
UserDir public_html
UserDir disable
UserDir enabled 
</Ifmodule>

<Ifmodule mod_rewrite.c>
RewriteEngine on
</Ifmodule>


<Directory  /home/*/public_html>
#<Directory  />
AllowOverride FileInfo
AllowOverride Options
AllowOverride All
# to ma byc u gory :P AuthConfig Limit
Options  indexes  includesNoExec  execCGI
Allow from all
</Directory>

<Location /RPC2>
AuthName "Private"
AuthType Basic
AuthBasicProvider file
AuthUserFile /home/biacho/.htpasswd
Require user biacho
</Location>
cat /etc/apache2/modules.d/20_mod_scgi.conf

Code: Select all

<IfDefine SCGI>
LoadModule scgi_module modules/mod_scgi.so

SCGIMount /RPC2 127.0.0.1:5000

# Apache2 example
#<Location "/dynamic">
#	SetHandler scgi-handler
#	SCGIServer localhost:4000
#	SCGIHandler On
#	Options -Multiviews
#</Location>
#<LocationMatch "^/(dynamic|login)($|/)">
#	SetHandler scgi-handler
#	SCGIServer localhost:4000
#	SCGIHandler On
#	Options -Multiviews
#</Location>
#<Location "/foo">
#	SCGIServer localhost:4000
#	SCGIHandler On
#	Options -Multiviews
#</Location>
#<Location "/bar">
#	SCGIServer localhost:4001
#	SCGIHandler On
#	SCGIServerTimeout 10
#	Options -Multiviews
#</Location>
#<Location "/bar/images">
#	SCGIHander Off
#</Location>
</IfDefine>

# vim: ts=4 filetype=apache
Co do praw plików to folder wtorrent/ i wszystko co w nim ma prawa 777.
Always Gentoo !
Top
Bialy
Guru
Guru
User avatar
Posts: 486
Joined: Mon Mar 20, 2006 4:51 pm

Re: rTorrent + Wtorrent <-- Problem.

  • Quote

Post by Bialy » Thu Nov 12, 2009 11:26 am

Witam,

Zaintrygował mnie Twój post. Od dłuższego czasu chciałem zrobić sobie taki serwis (ale wtedy rTorrent nie miał trybu demona).
A więc (p. Frau, niech Pani nie krzyczy :wink:):
Biacho wrote:cat wtorrent/conf/user.conf.php
Tu nic nie grzebałem.
Biacho wrote:cat /etc/apache2/httpd.conf
Dopisałem tylko:

Code: Select all

SCGIMount /RPC2 127.0.0.1:5000
LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so
Wersja apache:

Code: Select all

[ebuild   R   ] www-servers/apache-2.2.14-r1  USE="ssl -debug -doc -ldap (-selinux) -static -suexec -threads" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -substitute -version" APACHE2_MPMS="-event -itk -peruser -prefork -worker"
Biacho wrote:cat /etc/apache2/modules.d/20_mod_scgi.conf
Dopisałem tylko:

Code: Select all

<Location /RPC2>
        AuthName "Private"
        AuthType Basic
        AuthBasicProvider file
        AuthUserFile /KATALOG/DOMOWY/USERA/htpasswd
        Require user rtorrent
</Location>
Wersja mod_scgi:

Code: Select all

[ebuild   R   ] www-apache/mod_scgi-1.13
Oprócz tego:
/etc/apache2/vhosts.d/00_default_vhost.conf

Code: Select all

<VirtualHost *:80>
    ServerAdmin webmaster@TWOJA.DOMENA
    ServerName ADRES.TWOJA.DOMENA:80
    DocumentRoot "SCIEZKA/DO/WTORRENTA"
    <Directory "SCIEZKA/DO/WTORRENTA">
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    SCGIMount /RPC2 127.0.0.1:5000
 </VirtualHost>
/etc/portage/package.keywords

Code: Select all

www-apache/mod_scgi ~x86
/etc/portage/package.use

Code: Select all

dev-lang/php cgi curl pdo sqlite xmlrpc force-cgi-redirect
net-p2p/rtorrent daemon xmlrpc
+ flagi pdo i sqlite do /etc/make.conf
wtorrent svn z dnia 11 listopada 2009r.
Biacho wrote:Problem w tym, że wtorrent nie chce się połączyć z rtorrentem o czym ładnie komunikuje :

Code: Select all

Error: cannot connect to rtorrent, please check host, folder and port values (and user/password if you have auth set up).

Code: Select all

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1 table tor_passwd already exists' in /var/www/localhost/htdocs/wtorrent/lib/cls/PDOe.cls.php:66 Stack trace: #0 /var/www/localhost/htdocs/wtorrent/lib/cls/PDOe.cls.php(66): PDO->prepare('CREATE TABLE to...') #1 /var/www/localhost/htdocs/wtorrent/lib/cls/PDOe.cls.php(208): PDOe->prepareAndBind('CREATE TABLE to...', Array) #2 /var/www/localhost/htdocs/wtorrent/cls/install.cls.php(190): PDOe->modify('CREATE TABLE to...') #3 /var/www/localhost/htdocs/wtorrent/cls/install.cls.php(75): install->saveConfig(Array) #4 /var/www/localhost/htdocs/wtorrent/lib/cls/Web.cls.php(106): install->__construct() #5 /var/www/localhost/htdocs/wtorrent/install.php(32): Web::getClass('install') #6 {main} thrown in /var/www/localhost/htdocs/wtorrent/lib/cls/PDOe.cls.php on line 66
I na tym samym utknąłem, ale w rodzinie mam wujka google i znalazłem to.
Czyli oprócz powyższego zrobiłem:

Code: Select all

chmod 777 -R /SCIEZKA/DO/WTORRENTA/wtorrent/
rm -r /SCIEZKA/DO/WTORRENTA/wtorrent/db/*
W prawdzie nadal miałem ten

Code: Select all

Error: cannot connect to rtorrent, please check host, folder and port values (and user/password if you have auth set up).
komunikat przy próbie sprawdzenia konfiguracji, ale jak kliknąłem zapisz, to zrobił to bez żadnego błędu.

PS. na stronie */install.php pole z portem RPC jest zmyłką, tzn. chodzi o port 80 :o

Mam nadzieję, że pomogłem :wink:
Top
Bialy
Guru
Guru
User avatar
Posts: 486
Joined: Mon Mar 20, 2006 4:51 pm

  • Quote

Post by Bialy » Tue Nov 17, 2009 1:44 pm

Proszę zajrzyj tutaj.

Rozwiązałem wszystkie problemy.
Top
Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Polish OTW”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic