Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: SuperGrover on February 27, 2011, 04:14:34 PM

Title: Torrentflux suddenly not working anymore
Post by: SuperGrover on February 27, 2011, 04:14:34 PM
Since today, I cannot login to b4rt anymore. I (ofcourse) tried removing, killing both the user AND the b4rt database and reinstalling.

I get to see the login screen the first time, it makes my user and the database (both b4rt), but when I try to login to http://myserversip/torrent/index.php?iid=index I get nothing. Only a white screen in FireFox. I have used b4rt since a couple of years (6 maybe) and this has never happened before.

Anybody who can help me to find the error?

Recent updates have (to my opinion) no influence on b4rt:

from yum.log
Code: [Select]
Feb 13 13:16:04 Updated: libuser.i386 0.52.5-1.1.el4_8.1
Feb 13 13:16:05 Updated: postgresql-libs.i386 7.4.30-1.el4_8.2
Feb 13 13:16:05 Updated: unrar.i386 4.0.4-1.el4.rf
Feb 20 11:15:30 Updated: unrar.i386 4.0.6-1.el4.rf
Feb 27 12:38:38 Installed: tf-b4rt.noarch 1.0.beta2-1.el4.sme
Feb 27 12:38:41 Installed: smeserver-tf-b4rt.noarch 1.0-1.el4.sme
Feb 27 12:46:09 Installed: tf-b4rt.noarch 1.0.beta2-1.el4.sme
Feb 27 12:46:12 Installed: smeserver-tf-b4rt.noarch 1.0-1.el4.sme
Feb 27 12:52:48 Installed: tf-b4rt.noarch 1.0.beta2-1.el4.sme
Feb 27 12:52:51 Installed: smeserver-tf-b4rt.noarch 1.0-1.el4.sme
Feb 27 16:07:43 Installed: tf-b4rt.noarch 1.0.beta2-1.el4.sme
Feb 27 16:07:46 Installed: smeserver-tf-b4rt.noarch 1.0-1.el4.sme

I worked YESTERDAY  :? :?
Title: Re: Torrentflux suddenly not working anymore
Post by: Stefano on February 27, 2011, 04:39:10 PM
what about looking into logs searching for the reason?

the "remove and reinstall" approach is something that should apply only to windows

(my 5000th post ;-) )
Title: Re: Torrentflux suddenly not working anymore
Post by: Curly on February 27, 2011, 04:45:55 PM
I had the same, found this

[Sat Feb 26 13:26:30 2011] [notice] child pid 15690 exit signal Segmentation fault (11)

in the error_log of apache. I did several things that did not help:
- restart apache
- rebooted
In the end I cleared out some of the tables associated with Torrentflux, and it worked again. I think I cleared out tf_transfers and tf_transfer_totals). I would advise you to make a backup before you try this.

I had already noticed Torrentflux becoming slower, especially when I started to run a new torrent.

I'm not sure a remove-install wipes the database.
Title: Re: Torrentflux suddenly not working anymore
Post by: SuperGrover on February 27, 2011, 04:48:40 PM
Hmmm, tried one other thing which I forgot before:

after installing a rm -rf on the b4rt directory

Reinstalled, and it's up and running again  :-P

Thanks for the help, in phpMyAdmin, its easy to delete both the user AND the database b4rt from the PRIVILEGES function.

Grtz
Title: Re: Torrentflux suddenly not working anymore
Post by: muzzy on March 09, 2011, 10:12:33 PM
Update: using phpmyadmin i cleared the below mentioned bits but i still have the same problem any help would be great to try sort this.

Hi

i just started having this problem this afternoon out of the blue can i ask how you clear out the tables its driving me nuts.

cheers

Andy

I had the same, found this

[Sat Feb 26 13:26:30 2011] [notice] child pid 15690 exit signal Segmentation fault (11)

in the error_log of apache. I did several things that did not help:
- restart apache
- rebooted
In the end I cleared out some of the tables associated with Torrentflux, and it worked again. I think I cleared out tf_transfers and tf_transfer_totals). I would advise you to make a backup before you try this.

I had already noticed Torrentflux becoming slower, especially when I started to run a new torrent.

I'm not sure a remove-install wipes the database.
Title: Re: Torrentflux suddenly not working anymore
Post by: Curly on March 10, 2011, 07:08:31 PM
I used phpmyadmin to clear the tables, so you're good with that.

I think that the tables tf_xfer and tf_log could be cleared also, although I didn't clear the last one.

Somewhere inside Torrentflux must be a query that generates too much results, causing Apache to crash. 
Title: Re: Torrentflux suddenly not working anymore
Post by: muzzy on March 10, 2011, 07:31:32 PM
ok just tried clearing those entrys still no joy its got me confused there is no evidence of apache crashing i thought maybe the php was crashing but it also looks fine.
Title: Re: Torrentflux suddenly not working anymore
Post by: Curly on March 10, 2011, 09:03:53 PM
>> there is no evidence of apache crashing

Check the logs of Apache for what's happening. /var/log/httpd/error_log should tell you what's going wrong. I had:

error_log.20110222011202:[Sat Feb 26 13:34:17 2011] [notice] child pid 16336 exit signal Segmentation fault (11)

Title: Re: Torrentflux suddenly not working anymore
Post by: muzzy on March 10, 2011, 11:06:53 PM
this is what i get

[Thu Mar 10 17:21:28 2011] [notice] child pid 9156 exit signal Segmentation fault (11)
[Thu Mar 10 18:29:54 2011] [notice] child pid 9154 exit signal Segmentation fault (11)
[Thu Mar 10 18:33:12 2011] [error] [client 189.126.109.137] File does not exist: /home/e-smith/files/ibays/Primary/html/web-console
[Thu Mar 10 19:37:20 2011] [notice] child pid 9159 exit signal Segmentation fault (11)
[Thu Mar 10 19:37:20 2011] [notice] child pid 9534 exit signal Segmentation fault (11)
[Thu Mar 10 19:37:21 2011] [notice] child pid 9746 exit signal Segmentation fault (11)
[Thu Mar 10 20:23:50 2011] [error] [client 174.129.217.195] File does not exist: /home/e-smith/files/ibays/Primary/html/web-console
[Thu Mar 10 22:04:40 2011] [notice] child pid 9691 exit signal Segmentation fault (11)
 

Title: Re: Torrentflux suddenly not working anymore
Post by: CharlieBrady on March 11, 2011, 08:52:39 PM
:
error_log.20110222011202:[Sat Feb 26 13:34:17 2011] [notice] child pid 16336 exit signal Segmentation fault (11)

"Segmentation fault (11)" indicates either a hardware problem, or a bug in apache or one of the apache modules you have installed. I think in your case it is most likely a bug in php.
Title: Re: Torrentflux suddenly not working anymore
Post by: imcintyre on April 19, 2011, 04:14:58 AM
After last updates, I have similar issue;
I receive this message:
Quote
While trying to retrieve the URL: http://www.mydomain.ca/torrent/index.php?
The following error was encountered:
•Zero Sized Reply
Squid did not receive any data for this request.
Your cache administrator is admin@mydomain.ca.


I also checked error logs
Quote
[notice] child pid 5413 exit signal Segmentation fault (11)

Did anybody else receive the error above? 
Title: Re: Torrentflux suddenly not working anymore
Post by: Curly on April 19, 2011, 03:20:07 PM
I don't use squid, but the segmentation fault looks familiar.

>> the "remove and reinstall" approach is something that should apply only to windows

I cleared out some tables and the hidden directory .transfers . The windows-approach should do the same, so that would work imho. For me, the cleaning has worked twice.

I agree that a "remove and reinstall" is ugly.
Title: Re: Torrentflux suddenly not working anymore
Post by: muzzy on April 19, 2011, 05:22:29 PM
I did post a bug in the bug tracker but nothing more has come of it and to cap it all off it ended up killing my webpage and webmail access. after a restart to resolve this the server now fails to start. so i am now looking at have to format and start again.

After last updates, I have similar issue;
I receive this message:

I also checked error logs
Did anybody else receive the error above?
Title: Re: Torrentflux suddenly not working anymore
Post by: CharlieBrady on April 19, 2011, 10:37:27 PM
I did post a bug in the bug tracker but nothing more has come of it and to cap it all off it ended up killing my webpage and webmail access. after a restart to resolve this the server now fails to start. so i am now looking at have to format and start again.

That won't help you if it is a problem with your RAM (you should do a memory test) or if there is a bug in PHP, which is the other possibility.  I guess if you are lucky, it is a bug in PHP which only manifests when you have certain files on your system. If you reformat, it will work for a little time, until those files get created again, when you will see the problem again.
Title: Re: Torrentflux suddenly not working anymore
Post by: imcintyre on April 22, 2011, 04:53:39 AM
I ran memtest+ for 9 hours with no errors, so I uninstalled and will reinstall.

Did it, not good.

Used instruction in wiki (rpm -e tf-b4rt smeserver-tf-b4rt) to uninstall and dropped database using phpmyadmin.

Reinstalled as per wiki, apparently ok.

So I'm able to log on as superadmin, update various settings but when I try to go to the home page, I get the cannot connect  error message.

Time to raise a bug?



Title: Re: Torrentflux suddenly not working anymore
Post by: Curly on May 29, 2011, 04:30:29 PM
It happend to me again, and this time there was no easy fix. I even re-installed after I completely removed (uninstall, dropped database), and still it would not work.

I found another blog http://blog.jimmybell.co.uk/2011/03/11/torrentflux-b4rt-seg-fault/ (http://blog.jimmybell.co.uk/2011/03/11/torrentflux-b4rt-seg-fault/) and http://tf-b4rt.berlios.de/forum/index.php?topic=1051.0 (http://tf-b4rt.berlios.de/forum/index.php?topic=1051.0) that pointed me to the admin page (server/torrent/admin.php) and I used superadmin --> Maintenance --> Main --> Extended maintenance run. I've used some other options also, and for now it works again.