mp328 Posted May 13, 2010 Share Posted May 13, 2010 im still having trouble with this thing every time i reboot my unraid box. so it was running just fine last month, then i had to reboot last night due some other stuff i was doing and now as usual rtorrent won't start anymore also i can see the php warnings but not sure why they are coming up or what i have to do to fix the libraries that are missing. could it be that php installed from the package manager on the unmenu page is interfering here somehow??? root@unRaid:~# untorrent stop root@unRaid:~# untorrent start root@unRaid:~# screen -ls No Sockets found in /root/.screen. root@unRaid:~# lighttpd -v lighttpd-1.4.19 (ssl) - a light and fast webserver Build-Date: Aug 5 2008 17:13:05 root@unRaid:~# php -v PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/gd.so' - libt1.so.5: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/mhash.so' - libmhash.so.2: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/mysql.so' - libmysqlclient.so.15: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/mysqli.so' - libmysqlclient.so.15: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/pdo_mysql.so' - libmysqlclient.so.15: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/pspell.so' - libaspell.so.15: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/snmp.so' - libnetsnmp.so.15: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/xsl.so' - libexslt.so.0: cannot open shared object file: No such file or directory in Unknown on line 0 PHP 5.2.8 (cli) (built: Dec 8 2008 04:38:12) Copyright © 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright © 1998-2008 Zend Technologies root@unRaid:~# rtorrent rtorrent: Invalid DHT cache. root@unRaid:~# the log is pretty obvious that nothing got changed, but yet it wont work anymore Thu May 13 16:04:51 GMT+4 2010 ##### Starting the untorrent 2.8.5 installation... ##### Found existing .rtorrent.rc in /boot/custom/rtorrent/ and left it unchanged. Found existing php.ini in /boot/custom/php/ and left it unchanged. Found existing mod_php.conf in /boot/custom/php/ and left it unchanged. Found existing lighttpd.conf in /boot/custom/lighttpd/ and left it unchanged. Found existing lighttpd.conf.include in /boot/custom/lighttpd/ and left it unchanged. Found existing rc.local_shutdown in /boot/config/ and left it unchanged. untorrent services: rtorrent ---- NOT started! lighttpd 4480 root 4u IPv4 9345 TCP *:89 (LISTEN) lighttpd 4480 root 5u IPv4 9346 TCP *:8089 (LISTEN) Thu May 13 16:04:56 GMT+4 2010 ##### Finished the untorrent 2.8.5 installation... ##### and here again is the go script #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & sleep 90 installpkg /boot/packages/untorrent-2.8.5.full-i486-1pur.tgz echo "/boot/unmenu/uu" | at now + 1 minute PATH=$PATH:/boot/custom/bin cache_dirs -w -e "Backup" -d 5 Link to comment
Joe L. Posted May 13, 2010 Share Posted May 13, 2010 When "php" is installed through unMENU it specifically edits the /etc/httpd/php.ini file to comment out the following lines: sed -i "s/^\(extension=curl.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=gd.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=mhash.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=mysql.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=mysqli.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=pdo_mysql.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=pspell.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=snmp.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=xsl.so\)/;\1/" /etc/httpd/php.ini Therefore, it appears as if you are overwriting those edits, as those are the libraries being complained about. Does untorrent install PHP? If so, you don't need to install it with unMENU. You might need to make the equivalent edits that unMENU performs using the lines I posted in this thread in your "go" script. Link to comment
mp328 Posted May 13, 2010 Share Posted May 13, 2010 When "php" is installed through unMENU it specifically edits the /etc/httpd/php.ini file to comment out the following lines: sed -i "s/^\(extension=curl.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=gd.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=mhash.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=mysql.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=mysqli.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=pdo_mysql.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=pspell.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=snmp.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=xsl.so\)/;\1/" /etc/httpd/php.ini as u can tell im a linux noob, no clue what the hell i'm doing half the time lol. anyhow if i just turn off the automatic install at reboot for php in the package manager, would that stop installing the php script thru unmenu or do i have to delete some files and let untorrent reinstall it. Therefore, it appears as if you are overwriting those edits, as those are the libraries being complained about. Does untorrent install PHP? If so, you don't need to install it with unMENU. You might need to make the equivalent edits that unMENU performs using the lines I posted in this thread in your "go" script. Link to comment
Joe L. Posted May 13, 2010 Share Posted May 13, 2010 When "php" is installed through unMENU it specifically edits the /etc/httpd/php.ini file to comment out the following lines: sed -i "s/^\(extension=curl.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=gd.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=mhash.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=mysql.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=mysqli.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=pdo_mysql.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=pspell.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=snmp.so\)/;\1/" /etc/httpd/php.ini sed -i "s/^\(extension=xsl.so\)/;\1/" /etc/httpd/php.ini as u can tell im a linux noob, no clue what the hell i'm doing half the time lol. anyhow if i just turn off the automatic install at reboot for php in the package manager, would that stop installing the php script thru unmenu or do i have to delete some files and let untorrent reinstall it. Therefore, it appears as if you are overwriting those edits, as those are the libraries being complained about. Does untorrent install PHP? If so, you don't need to install it with unMENU. You might need to make the equivalent edits that unMENU performs using the lines I posted in this thread in your "go" script. If you disable the auto-re-install on re-boot, PHP will not get re-installed when you next reboot. You can still press the manual install button if you ever need. You do not need to delete anything "unMENU" installed in any way other than to reboot. Link to comment
purko Posted May 13, 2010 Author Share Posted May 13, 2010 When "php" is installed through unMENU it specifically edits the /etc/httpd/php.ini file to comment out ... This must be something new. UnTorrent was tested to work well with unmenu, as well as with unRAID-Web, and with Bubba-raid. It must be a recent addition to unmennu that is now overwriting the config files and messing things up. @mp328: I see that your unTorrent reported this: Found existing php.ini in /boot/custom/php/ and left it unchanged. If you manually delete the (messed up) /boot/custom/php/php.ini file from your flash disk, unTorrent will put a fresh new one in there the next time you install the unTorrent package. Link to comment
Joe L. Posted May 13, 2010 Share Posted May 13, 2010 When "php" is installed through unMENU it specifically edits the /etc/httpd/php.ini file to comment out ... This must be something new. UnTorrent was tested to work well with unmenu, as well as with unRAID-Web, and with Bubba-raid. It must be a recent addition to unmennu that is now overwriting the config files and messing things up. @mp328: I see that your unTorrent reported this: Found existing php.ini in /boot/custom/php/ and left it unchanged. If you manually delete the (messed up) /boot/custom/php/php.ini file from your flash disk, unTorrent will put a fresh new one in there the next time you install the unTorrent package. Other than the link to download PHP possibly being updated, I don't think is has changed. I know that php installs a "php.ini" file that attempts to include all those extensions. I know that the unMENU install comments out the libraries not installed. If you tested, perhaps you did it in an environment where they were installed, so you did not get the errors. Link to comment
purko Posted May 13, 2010 Author Share Posted May 13, 2010 If you tested, perhaps you did it in an environment where they were installed, so you did not get the errors. I just tested unTorrent again, on a fresh stock unRAID with nothing else installed, and it worked. Link to comment
mp328 Posted May 13, 2010 Share Posted May 13, 2010 i did some testing with php and other things and i believe i'm back to my original issue with the .rc file. if i delete the .rc file it starts working. so it's still the original issue from a few months ago that im struggling here, not the php issue. (SORRY GUYS) after a few tests, if i delete .rc file and creates a new one it works. but if i change the file using notepad++ (shows UNIX on bottom) so i assume it's saved in the right format, and i do untorrent stop then change the directory location and do untorrent start it wont work anymore. only lines im changing is instead of using directory = /mnt/disk1/torrents/downloading im changing it to directory = /mnt/cache/.torrents/downloading and i changed all the following disk1 to cache/.torrents and after that i do untorrent start it wont work anymore maybe im just that retarded when it comes to linux edited-rtorrent.zip Link to comment
purko Posted May 14, 2010 Author Share Posted May 14, 2010 only lines im changing is instead of using directory = /mnt/disk1/torrents/downloading im changing it to directory = /mnt/cache/.torrents/downloading and i changed all the following disk1 to cache/.torrents and after that i do untorrent start it wont work anymore After you make the change, just issue the rtorrent command. It should display some sort of a message about why it is not starting. Link to comment
mp328 Posted May 14, 2010 Share Posted May 14, 2010 After you make the change, just issue the rtorrent command. It should display some sort of a message about why it is not starting. it says like i showed in my logs, root@unRaid:~# rtorrent rtorrent: Invalid DHT cache. but as u guessed, if i just rename the files and do the command with the default .rc file i get the rtorrent window Link to comment
purko Posted May 14, 2010 Author Share Posted May 14, 2010 it says like i showed in my logs, root@unRaid:~# rtorrent rtorrent: Invalid DHT cache. but as u guessed, if i just rename the files and do the command with the default .rc file i get the rtorrent window Well, there's something in your change that it doesn't like. Does that directory even exist? Does it have proper access permissions? Can you copy a file to/from that place? Link to comment
mp328 Posted May 14, 2010 Share Posted May 14, 2010 Well, there's something in your change that it doesn't like. Does that directory even exist? Does it have proper access permissions? Can you copy a file to/from that place? yeah there sure is lol, but i just dont understand why or what and yeah i can move/create/edit files there. like i said it worked for over a month until i just rebooted the other day and now it wont do it anymore, i even have some unfinished files in the downloading directory and in the torrent.session folder there are files too Link to comment
Rajahal Posted May 16, 2010 Share Posted May 16, 2010 First of all, I just want to say thank you for making this. I finally got around to installing it on my server, and it was so very easy. Now that I have it up and running, I'm encountering a few problems with the ruTorrent interface. There's at least one function in uTorrent that seems to be missing in ruTorrent. How can I specify where a file is so that rTorrent can re-check it and start seeding it? In uTorrent the process is right click>advanced>set download location. What's the equivalent in ruTorrent? Another problem I just ran into is that ruTorrent isn't allowing my unRAID server to shut down. I restricted my torrent share to disk1 (so disk1 holds all my torrent files, though I set my download folder to use my cache drive). I'm trying to upgrade to unRAID 4.5.4. I stopped the array and disk1 is stuck on 'unmounting'. I can still access the ruTorrent web interface. How do I tell r/ruTorrent to quit and let the server cleanly shut down? Edit: Nevermind, I just had to stop all my torrents. That took care of it. Link to comment
Phorte Posted May 24, 2010 Share Posted May 24, 2010 hi all, this looks very promising. my linux knowledge is limited so please excuse me if this post seems idiotic. im currently running unRAID 4.5.4 and have also installed SABnzbd via the 0.5.2 all-in-one package (as per this post). will this unTorrent package work in conjunction with what i have already?? Link to comment
JonL Posted May 24, 2010 Share Posted May 24, 2010 I installed untorrent with installpkg and everything went great. But, as soon as I reboot the machine, untorrent completely disappears from the system. Even the 'untorrent ' command is no longer available. So, what am I doing wrong?? Link to comment
Joe L. Posted May 25, 2010 Share Posted May 25, 2010 I installed untorrent with installpkg and everything went great. But, as soon as I reboot the machine, untorrent completely disappears from the system. Even the 'untorrent ' command is no longer available. So, what am I doing wrong?? You need to re-install every time you reboot. It is installed to an in-memory file-system that goes away every time you reboot. Link to comment
rainmaker002 Posted May 25, 2010 Share Posted May 25, 2010 I've noticed that since switching to UnTorrent the ratios on a few torrent sites I use have gone to the dogs. When I look at the web interface, it looks as though for most of my torrents there are no peers and I'm not really uploading much. I don't have a single torrent at 1.00 ratio including some on big sites that have been seeding for weeks. I did not have this issue when using uTorrent for windows. I have forwarded the port I'm using in UnTorrent on my router/firewall, but this doesn't seem to be helping. I believe the term is "not connectable" though I can't figure out how to definitively test this with unTorrent. I wonder if anyone has encountered something similar and has any suggestions on something I might be missing? Link to comment
Rajahal Posted May 26, 2010 Share Posted May 26, 2010 I installed untorrent with installpkg and everything went great. But, as soon as I reboot the machine, untorrent completely disappears from the system. Even the 'untorrent ' command is no longer available. So, what am I doing wrong?? You need to edit your 'go' file to automatically install untorrent every time your server boots. Check the first post of this thread for instructions. Link to comment
JonL Posted May 26, 2010 Share Posted May 26, 2010 I installed untorrent with installpkg and everything went great. But, as soon as I reboot the machine, untorrent completely disappears from the system. Even the 'untorrent ' command is no longer available. So, what am I doing wrong?? You need to re-install every time you reboot. It is installed to an in-memory file-system that goes away every time you reboot. Thanks. So I might as well install it in some start-up script, then. Link to comment
JonL Posted May 26, 2010 Share Posted May 26, 2010 I installed untorrent with installpkg and everything went great. But, as soon as I reboot the machine, untorrent completely disappears from the system. Even the 'untorrent ' command is no longer available. So, what am I doing wrong?? You need to edit your 'go' file to automatically install untorrent every time your server boots. Check the first post of this thread for instructions. Thank you. Will do so. Link to comment
JonL Posted May 30, 2010 Share Posted May 30, 2010 I've been running unTorrent for a few days now, and it's sweet as a breeze. Now, I'd find useful a way to uncompress the files I downloaded (rar, zip, etc.) to some destination directory. Is there an unRaid package for that? Thanks. Link to comment
rainmaker002 Posted May 30, 2010 Share Posted May 30, 2010 I've noticed that since switching to UnTorrent the ratios on a few torrent sites I use have gone to the dogs. When I look at the web interface, it looks as though for most of my torrents there are no peers and I'm not really uploading much. I don't have a single torrent at 1.00 ratio including some on big sites that have been seeding for weeks. I did not have this issue when using uTorrent for windows. I have forwarded the port I'm using in UnTorrent on my router/firewall, but this doesn't seem to be helping. I believe the term is "not connectable" though I can't figure out how to definitively test this with unTorrent. I wonder if anyone has encountered something similar and has any suggestions on something I might be missing? Just thought I'd bump this to see if anyone has any thoughts... Link to comment
DocBlock Posted May 31, 2010 Share Posted May 31, 2010 I've noticed that since switching to UnTorrent the ratios on a few torrent sites I use have gone to the dogs. When I look at the web interface, it looks as though for most of my torrents there are no peers and I'm not really uploading much. I don't have a single torrent at 1.00 ratio including some on big sites that have been seeding for weeks. I did not have this issue when using uTorrent for windows. I have forwarded the port I'm using in UnTorrent on my router/firewall, but this doesn't seem to be helping. I believe the term is "not connectable" though I can't figure out how to definitively test this with unTorrent. I wonder if anyone has encountered something similar and has any suggestions on something I might be missing? I noticed that rtorrent doesn't apply settings immediately for the port(s) to listen on. By default, it's a range of 200ish ports, and it picks one at random. Are you using that default set, and are you sure you have the entire range forwarded? I changed the configuration file on disk to a single port and forwarded it in, and it's working exactly as I'd expect, in terms of ratios. Link to comment
theone Posted June 18, 2010 Share Posted June 18, 2010 Hello, I just installed the torrent package - worked without problems and is currently downloading OK. 1. Can anyone point me to a url where all the ruTorrent settings are described - for tweaking performance - the settings pages seems a bit different from utorrent (which I am familiar with)? 2. I can't find the rtorrent.rc file on my flash drive /root/custom/rtorrent/no rc file ! 3. How do I install the plugins on the 1st post? edited 6/20/2010: Anyone ? 4. Does the rtorrent also support encryption like utorrent because many utorrent peers might be blocking the connection because it is not encrypted. Link to comment
theone Posted June 21, 2010 Share Posted June 21, 2010 Hello, I just installed the torrent package - worked without problems and is currently downloading OK. 1. Can anyone point me to a url where all the ruTorrent settings are described - for tweaking performance - the settings pages seems a bit different from utorrent (which I am familiar with)? 2. I can't find the rtorrent.rc file on my flash drive /root/custom/rtorrent/no rc file ! 3. How do I install the plugins on the 1st post? edited 6/20/2010: Anyone ? 4. Does the rtorrent also support encryption like utorrent because many utorrent peers might be blocking the connection because it is not encrypted. Can't anyone help ? Link to comment
Recommended Posts