| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| gerasimos_h Site Admin
 
 
 Joined: 09 Aug 2007
 Posts: 1757
 Location: Greece
 
 | 
			
				|  Posted: Sun Sep 06, 2009 4:54 pm    Post subject: |   |  
				| 
 |  
				| Well I just install the packages in rtorrent+wtorrent plus cxxlibs and screen to a clean SMS-1.4.3 installation do a /etc/rc.d/rc.rtorrent start and had no issues with wtorrent install.php 
  	  | Code: |  	  | Configuration seems fine, you can save it now. | 
 
 Have you tried to install rtorrent+wtorrent it in the past by yourself, if so maybe something left and causes the error.
 Either you start the script or manual (root or administrator) you should see something like
 
  	  | Code: |  	  | root@sms:~# ps aux | grep rtorrent 1005      9018  0.0  0.0   2988   856 ?        Ss   17:45   0:00 SCREEN -d -m rtorrent
 1005      9019  0.0  0.4  12536  4668 pts/1    Ss+  17:45   0:00 rtorrent
 | 
 
 Have you install all the required packages?
 
  	  | Code: |  	  | libsigc++-2.2.4.1-i486-1sms.txz libtorrent-0.12.4-i486-1sms.txz
 lighttpd-1.4.23-i486-1sms.txz
 rtorrent-0.8.4-i486-1sms.txz
 xmlrpc_c-1.06.35-i486-1sms.txz
 cxxlibs-6.0.10-i486-1.txz
 screen-4.0.3-i486-1.txz
 | 
 
 gerasimos_h
 _________________
 Superb! Mini Server Project Manager
 http://sms.it-ccs.com
 |  | 
	
		| Back to top |  | 
	
		| semiRocket Member
 
 
 Joined: 28 Jul 2009
 Posts: 26
 
 
 | 
			
				|  Posted: Sun Sep 06, 2009 5:23 pm    Post subject: |   |  
				| 
 |  
				|  	  | gerasimos_h wrote: |  	  | Have you tried to install rtorrent+wtorrent it in the past by yourself, if so maybe something left and causes the error. | 
 No, I haven't
 
 
  	  | gerasimos_h wrote: |  	  | Have you install all the required packages? 
 | 
 Well, this is what is strange, I have did all that you did and installed exactly the same packages as you have.
 
 I will try to reboot the machine later, as I can't do it right now. If that doesn't help, I will try with another SMS version, or I will wait for 1.4.6 to be released.
 
 Thank you,
 |  | 
	
		| Back to top |  | 
	
		| gerasimos_h Site Admin
 
 
 Joined: 09 Aug 2007
 Posts: 1757
 Location: Greece
 
 | 
			
				|  Posted: Sun Sep 06, 2009 5:33 pm    Post subject: |   |  
				| 
 |  
				| No need to wait for SMS-1.4.6 as it worked in SMS-1.4.3 and in SMS-1.4.5. Actually you don't have to do anything other than install the packages.
 Have you checked your permissions of /home/administrator
 do a
 chmod -R 777 /var/www/lighttpd/htdocs
 if you edit a file.
 
 gerasimos_h
 _________________
 Superb! Mini Server Project Manager
 http://sms.it-ccs.com
 |  | 
	
		| Back to top |  | 
	
		| semiRocket Member
 
 
 Joined: 28 Jul 2009
 Posts: 26
 
 
 | 
			
				|  Posted: Sun Sep 06, 2009 5:54 pm    Post subject: |   |  
				| 
 |  
				| administrator home looks ok to me: 
  	  | Code: |  	  | root@sms:/home/administrator# ls -Al total 20
 -rw------- 1 administrator users 1031 2009-09-06 18:07 .bash_history
 -rw------- 1 administrator users   41 2009-09-06 14:52 .lesshst
 -rw-r--r-x 1 administrator users 3661 2009-09-05 14:10 .rtorrent.rc*
 drwx------ 2 administrator users   48 2009-09-06 18:46 .screen/
 -rw-r--r-- 1 administrator users   47 2009-09-05 14:32 .wtorrent_users
 -rw-r--r-- 1 administrator users  779 2008-08-20 11:42 .xsession
 drwx------ 5 administrator users  120 2009-07-28 19:23 Maildir/
 -rwxrwxrwx 1 administrator users    0 2009-09-06 17:29 rtorrent.log*
 | 
 .screen/ dir is empty
 
 I did chmod -R 777 /var/www/lighttpd/htdocs, and still nothing.
 |  | 
	
		| Back to top |  | 
	
		| gerasimos_h Site Admin
 
 
 Joined: 09 Aug 2007
 Posts: 1757
 Location: Greece
 
 | 
			
				|  Posted: Sun Sep 06, 2009 6:03 pm    Post subject: |   |  
				| 
 |  
				| if you disable auth in install.php does it work? 
 gerasimos_h
 _________________
 Superb! Mini Server Project Manager
 http://sms.it-ccs.com
 |  | 
	
		| Back to top |  | 
	
		| semiRocket Member
 
 
 Joined: 28 Jul 2009
 Posts: 26
 
 
 | 
			
				|  Posted: Sun Sep 06, 2009 6:13 pm    Post subject: |   |  
				| 
 |  
				| Can't run rtorrent using screen 
 
  	  | Code: |  	  | administrator@sms:~$ screen -d -m rtorrent administrator@sms:~$ ps aux | grep rtorrent
 1005     20080  0.0  0.3   2204   632 pts/1    S+   19:09   0:00 grep rtorrent
 administrator@sms:~$
 
 | 
 
 If I run rtorrent by issuing:
 
  	  | Code: |  	  | administrator@sms:~$ rtorrent | 
 ps aux shows a running process, and I see rtorrent interface, but wtorrent web interface still doesn't work. EDIT: I managed to get 'Configuration seems fine, you can save it now.' but still can't save it. If I try to save it it shows browser error "Error!  Remote server or file not found" f*** it.
 
 And the screen issue still remains.
 
 EDIT: Just rebooted, still the same, I thought maybe filesystem got corrupted.
 |  | 
	
		| Back to top |  | 
	
		| gerasimos_h Site Admin
 
 
 Joined: 09 Aug 2007
 Posts: 1757
 Location: Greece
 
 | 
			
				|  Posted: Sun Sep 06, 2009 7:21 pm    Post subject: |   |  
				| 
 |  
				|  	  | semiRocket wrote: |  	  | EDIT: I managed to get 'Configuration seems fine, you can save it now.' but still can't save it. If I try to save it it shows browser error "Error!  Remote server or file not found" f*** it. | 
 
 What /var/log/lighttpd/error.log says about that?
 
 Try removing the rtorrent+wtorrent  packages and install them back.
 use removepkg and installpkg.
 
 gerasimos_h
 _________________
 Superb! Mini Server Project Manager
 http://sms.it-ccs.com
 |  | 
	
		| Back to top |  | 
	
		| semiRocket Member
 
 
 Joined: 28 Jul 2009
 Posts: 26
 
 
 | 
			
				|  Posted: Sun Sep 06, 2009 8:05 pm    Post subject: |   |  
				| 
 |  
				|  	  | semiRocket wrote: |  	  | EDIT: I managed to get 'Configuration seems fine, you can save it now.' but still can't save it. If I try to save it it shows browser error "Error!  Remote server or file not found" f*** it. | 
 
 Althought that error shows up, it manages somehow to save new configuraton. I managed to login, add and download a torrent.
 
 
  	  | gerasimos_h wrote: |  	  | What /var/log/lighttpd/error.log says about that?
 
 | 
 
 
  	  | Code: |  	  | 2009-09-06 21:04:08: (mod_fastcgi.c.2605) FastCGI-stderr: PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1 table tor_passwd already exists' in /var/www/lighttpd/htdocs/lib/cls/PDOe.cls.php:66 Stack trace:
 #0 /var/www/lighttpd/htdocs/lib/cls/PDOe.cls.php(66): PDO->prepare('CREATE TABLE to...')
 #1 /var/www/lighttpd/htdocs/lib/cls/PDOe.cls.php(208): PDOe->prepareAndBind('CREATE TABLE to...', Array)
 #2 /var/www/lighttpd/htdocs/cls/install.cls.php(190): PDOe->modify('CREATE TABLE to...')
 #3 /var/www/lighttpd/htdocs/cls/install.cls.php(75): install->saveConfig(Array)
 #4 /var/www/lighttpd/htdocs/lib/cls/Web.cls.php(106): install->__construct()
 #5 /var/www/lighttpd/htdocs/install.php(32): Web::getClass('install')
 #6 {main}
 thrown in /var/www/lighttpd/htdocs/lib/cls/PDOe.cls.php on line 66
 
 | 
 
 
  	  | gerasimos_h wrote: |  	  | Try removing the rtorrent+wtorrent  packages and install them back.
 use removepkg and installpkg.
 | 
 
 I did that, and it appears that nothing changed.
 
 
 If I run rtorrent without using screen it seems that all is working like it should now. With settings that you suggested:
 
 
  	  | Quote: |  	  | On the install.php (through http://sms:81/install.php) check port 81 (by default it's 80)
 authentication true ( by default it's false)
 user: admin
 pass:admin
 download directory /var/smb/samba (by default it's /data)
 and try configuration, you shouldn't have any problem.
 If it's OK put on the right a username and a password and press 'save configuration'.
 | 
 |  | 
	
		| Back to top |  | 
	
		| gerasimos_h Site Admin
 
 
 Joined: 09 Aug 2007
 Posts: 1757
 Location: Greece
 
 | 
			
				|  Posted: Sun Sep 06, 2009 8:17 pm    Post subject: |   |  
				| 
 |  
				| It seems you are getting a lot of pdo errors, wtorrent requires php-pdo I didn't install it though and got no issues, not on error logs, but you are getting a lot. Try removing lighttpd package delete /var/www/lighttpd and install the package again.
 Also try the command "screen --help" do you get any errors.
 Also you must run /etc/rc.d/rc.rtorrent script as root and not as administrator.
 
 gerasimos_h
 _________________
 Superb! Mini Server Project Manager
 http://sms.it-ccs.com
 |  | 
	
		| Back to top |  | 
	
		| semiRocket Member
 
 
 Joined: 28 Jul 2009
 Posts: 26
 
 
 | 
			
				|  Posted: Mon Sep 07, 2009 12:59 pm    Post subject: |   |  
				| 
 |  
				|  	  | gerasimos_h wrote: |  	  | Try removing lighttpd package delete /var/www/lighttpd and install the package again. | 
 
 Yes that helped. But if I try to configure settings second time in 'install.php' browser error and pdo errors in log appears again but it saves settings anyway. Other than that is working normally in this 12 hours with one torrent seeding.
 
 In the beginning there was these errors, but they don't appear again
 
  	  | Code: |  	  | 2009-09-07 01:55:25: (mod_fastcgi.c.2605) FastCGI-stderr: XML-RPC: xmlrpcmsg::pa rseResponse: HTTP error, got response: HTTP/1.0 500 Internal Server Error
 PHP Fatal error:  Call to a member function get_tied_to_file() on a non-object i
 n /var/www/lighttpd/htdocs/wt/cls/General.cls.php on line 40
 
 2009-09-07 01:55:27: (mod_fastcgi.c.2605) FastCGI-stderr: XML-RPC: xmlrpcmsg::pa
 rseResponse: HTTP error, got response: HTTP/1.0 500 Internal Server Error
 PHP Fatal error:  Call to a member function get_peers_connected() on a non-objec
 t in /var/www/lighttpd/htdocs/wt/cls/Peers.cls.php on line 38
 
 2009-09-07 01:55:31: (mod_fastcgi.c.2605) FastCGI-stderr: XML-RPC: xmlrpcmsg::parseResponse: HTTP error, got response: HTTP/1.0 500 Internal Server Error
 
 2009-09-07 01:55:32: (mod_fastcgi.c.2605) FastCGI-stderr: XML-RPC: xmlrpcmsg::parseResponse: HTTP error, got response: HTTP/1.0 500 Internal Server Error
 
 2009-09-07 01:55:47: (mod_fastcgi.c.2605) FastCGI-stderr: XML-RPC: xmlrpcmsg::parseResponse: HTTP error, got response: HTTP/1.0 500 Internal Server Error
 XML-RPC: xmlrpcmsg::parseResponse: HTTP error, got response: HTTP/1.0 500 Internal Server Error
 XML-RPC: xmlrpcmsg::parseResponse: HTTP error, got response: HTTP/1.0 500 Internal Server Error
 
 2009-09-07 01:56:26: (mod_scgi.c.2089) fcgi-server re-enabled: 127.0.0.1 5000
 | 
 
 
  	  | gerasimos_h wrote: |  	  | Also try the command "screen --help" do you get any errors. 
 | 
 Some playing around with screen and it popped out an error "Error opening terminal: vt100". A little googling and I found out that this could be caused by missing ncurses package. Screen is working fine now
   
 ncurses-5.7-i486-1.txz
 
 
 Thank you for all your help
 |  | 
	
		| Back to top |  | 
	
		| gerasimos_h Site Admin
 
 
 Joined: 09 Aug 2007
 Posts: 1757
 Location: Greece
 
 | 
			
				|  Posted: Mon Sep 07, 2009 5:27 pm    Post subject: |   |  
				| 
 |  
				| I'm glad it worked   ncurses-5.6 was included in SMS-1.4.4 something probably break something, cause in SMS-1.4.3 I had no issues with screen although it was older system and older kernel.
 PHP-PDO might needed for sqlite connection, although php-pdo support only sqlite 2.x, anyway it's not a must for working wtorrent.
 I saw some files for supporting  mysql with wtorrent, so in the future we will use those.
 
 gerasimos_h
 _________________
 Superb! Mini Server Project Manager
 http://sms.it-ccs.com
 |  | 
	
		| Back to top |  | 
	
		| semiRocket Member
 
 
 Joined: 28 Jul 2009
 Posts: 26
 
 
 | 
			
				|  Posted: Mon Sep 07, 2009 9:37 pm    Post subject: |   |  
				| 
 |  
				| Great, 
 You could enable rtorrent session to be created by default also, because right now if server get rebooted or rtorrent closed, torrent list is not remembered. Or at least not in my situation...
 
 In .rtorrent.rc session line must be uncommented:
 
  	  | Code: |  	  | # Default session directory. Make sure you don't run multiple instance # of rtorrent using the same session directory. Perhaps using a
 # relative path?
 session = ./session
 | 
 The 'session' directory must be present otherwise rtorrent would present missing ./session file, so I created it 'mkdir ~/session/' as user administrator.
 |  | 
	
		| Back to top |  | 
	
		| gerasimos_h Site Admin
 
 
 Joined: 09 Aug 2007
 Posts: 1757
 Location: Greece
 
 | 
			
				|  Posted: Tue Sep 08, 2009 5:59 am    Post subject: |   |  
				| 
 |  
				| Yes I know, I 'll add the .session directory and log line to /etc/rc.d/rc.rtorrent. 
 gerasimos_h
 _________________
 Superb! Mini Server Project Manager
 http://sms.it-ccs.com
 |  | 
	
		| Back to top |  | 
	
		| semiRocket Member
 
 
 Joined: 28 Jul 2009
 Posts: 26
 
 
 | 
			
				|  Posted: Sun Sep 13, 2009 4:57 pm    Post subject: rtorrent + wtorrent |   |  
				| 
 |  
				| Well, I'm using it in a week now, and my old Celeron 667MHz 192RAM  fealth a huge relief on the server load compared to BitTornado/TFlux combination. BitTornado/TFlux was sucking all my system resources, and they were barely usable on my old system. I'm now really surprised with rtorrent/wtorrent low system usage, and wtorrent faster responds. This is a real BINGO for old systems. 
 I'm happy with a tons of options which can be used in rtorrent, too.
 
 Server loads after some heavy 1min wtorrent usage (rtorrent runs 8 torrents)
 
  	  | Code: |  	  | 18:03:46 up 6 days, 22:19,  4 users,  load average: 0.32, 0.10, 0.03
 
 | 
 When wtorrent is not in use loads are 0.00. With BitTornado/TFlux this values were unthinkable! There were cases were a single python process was doing a heavy server load over 24.0 and continuing. TFlux in a browser was doing very slow responses with my old system because of heavy BitTornado system resources usages.
 
 Cheers and Thank you once again for implementation
  |  | 
	
		| Back to top |  | 
	
		|  |