Page 1 of 1

Spartacus / Connection refused

Posted: Sat Sep 09, 2006 5:27 am
by phabulosa
I installed S9y on Qweb TS-101 NAS server. It runs PPC linux 2.16 and Apache plus PHP4+Sqlite. The installation works smoothly.

But I was not able to run "Spartacus" plugin. It gives me the "connection refused" error.

Can any one help me to resolve this problem.

Below is the error message.


Sidebar Plugins

Trying to open URL package_sidebar_en.xml...
Connection refused
Notice: Connection refused in /share/HDA_DATA/Qweb/serendipity/bundled-libs/PEAR.php on line 848
Connection refused

Posted: Sat Sep 09, 2006 8:10 am
by carl_galloway
package_sidebar_en.xml
package_template.xml
package_event_en.xml

Are all the files that the Spartacus plugin needs to save to your server and contains a list of plugins/templates available. These are stored in your templates_c folder and if this folder isn't writable by Apache then you get this error message.

Simply making the folder 777 should fix the problem, although one of the other developers might suggest another set of permissions. Hope that helps, Carl

Posted: Sat Sep 09, 2006 1:28 pm
by garvinhicking
Hi!

Actually if you get a "Connection refused" error it means your webserver is not able to create an outgoing connection.

This is because your server seems to be firewalled for outgoing connections. Are you able to change that, to allow outgoing port 80?

Regards,
Garvin

Posted: Wed Mar 28, 2007 2:41 pm
by baetmaen
garvinhicking wrote:Hi!

Actually if you get a "Connection refused" error it means your webserver is not able to create an outgoing connection.

This is because your server seems to be firewalled for outgoing connections. Are you able to change that, to allow outgoing port 80?

Regards,
Garvin
Hi,

I have a similiar error:

Code: Select all

Versuche URL package_sidebar_de.xml zu öffnen...
Connection refused
Notice: Connection refused in /home/username/www.domainname.de/bundled-libs/PEAR.php on line 848
Connection refused
I checked up with my provider, nothing is firewalled, the templates_c folder is chmod 777 and I edited php.ini (I added a own file for our domain), with the following entry:

Code: Select all

allow_url_fopen = On
All those Solutionsideas came from this forum, now I'm stuck :(

Thanks in advance
joerg

Posted: Wed Mar 28, 2007 4:40 pm
by garvinhicking
Hi!

Which mirror did you configure to be used by the spartacus event plugin? Set it to 'netmirror.org' or 'sf.net' only, one of those would need to work.

If it doesn't, it actually really only can mean that the server is firewalling outgoing port 80...

Regards,
Garvin

Posted: Thu Mar 29, 2007 11:30 am
by baetmaen
garvinhicking wrote:Hi!

Which mirror did you configure to be used by the spartacus event plugin? Set it to 'netmirror.org' or 'sf.net' only, one of those would need to work.

If it doesn't, it actually really only can mean that the server is firewalling outgoing port 80...

Regards,
Garvin
Hi,

I tried both settings :(

I'm able to ssh to the server. When I call W3m with www.google.com, it works. I think this makes sure port 80 is not blocked. Am I right with this assumption ?

Joerg

Posted: Thu Mar 29, 2007 11:48 am
by garvinhicking
Hi!
I'm able to ssh to the server. When I call W3m with www.google.com, it works. I think this makes sure port 80 is not blocked. Am I right with this assumption ?
That must not mean something, it can be that only PHP is firewalled.

Upload a script google.php in your s9y directory:

Code: Select all

<?php
echo htmlspecialchars(file_get_contents('http://www.google.de/'));
What does that show you?

Regards,
Garvin

Posted: Thu Mar 29, 2007 12:12 pm
by baetmaen
garvinhicking wrote:Hi!

What does that show you?

Regards,
Garvin
Hi,

Here is the output:

Code: Select all

<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Google</title><style><!-- body,td,a,p,.h{font-family:arial,sans-serif} .h{font-size:20px} .h{color:#3366cc} .q{color:#00c} --></style> <script> <!-- function sf(){document.f.q.focus();} // --> </script> </head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onload="sf();if(document.images){new Image().src='/images/nav_logo2.png'}" topmargin=3 marginheight=3><center><div align=right id=guser style="font-size:84%;padding-bottom:4px" width=100%><nobr><a href="/url?sa=p&pref=ig&pval=3&q=http://www.google.de/ig%3Fhl%3Dde&usg=__Z0CJbWM4HlSgUfAvcqREfrp5hxE=">Diese Seite personalisieren</a> | <a href="https://www.google.com/accounts/Login?continue=http://www.google.de/&hl=de">Anmelden</a></nobr></div><img alt="Google" height=110 src="/intl/de_de/images/logo.gif" width=301><br><br><form action="/search" name=f><script defer><!-- //--> </script><table border=0 cellspacing=0 cellpadding=4><tr><td nowrap><font size=-1><b>Web</b>    <a class=q href="http://images.google.de/imghp?ie=ISO-8859-1&oe=ISO-8859-1&hl=de&tab=wi">Bilder</a>    <a class=q href="http://groups.google.de/grphp?ie=ISO-8859-1&oe=ISO-8859-1&hl=de&tab=wg">Groups</a>    <a class=q href="http://news.google.de/nwshp?ie=ISO-8859-1&oe=ISO-8859-1&hl=de&tab=wn">News</a>    <a class=q href="http://froogle.google.de/frghp?ie=ISO-8859-1&oe=ISO-8859-1&hl=de&tab=wf">Froogle</a>    <b><a href="/intl/de/options/" class=q>Mehr »</a></b></font></td></tr></table><table cellpadding=0 cellspacing=0><tr valign=top><td width=25%> </td><td align=center nowrap><input name=hl type=hidden value=de><input type=hidden name=ie value="ISO-8859-1"><input maxlength=2048 name=q size=55 title="Google-Suche" value=""><br><input name=btnG type=submit value="Google-Suche"><input name=btnI type=submit value="Auf gut Glück!"></td><td nowrap width=25%><font size=-2>  <a href=/advanced_search?hl=de>Erweiterte Suche</a><br>  <a href=/preferences?hl=de>Einstellungen</a><br>  <a href=/language_tools?hl=de>Sprachtools</a></font></td></tr><tr><td align=center colspan=3><font size=-1>Suche: <input id=all type=radio name=meta value="" checked><label for=all> Das Web </label><input id=lgr type=radio name=meta value="lr=lang_de"><label for=lgr> Seiten auf Deutsch </label><input id=cty type=radio name=meta value="cr=countryDE"><label for=cty> Seiten aus Deutschland </label></font></td></tr></table></form><br><br><font size=-1><a href="/intl/de/ads/">Werbung</a> - <a href="/services/">Unternehmensangebote</a> - <a href="/intl/de/about.html">Über Google</a> - <a href=http://www.google.com/ncr>Google.com in English</a></font><p><font size=-2>©2007 Google</font></p></center></body></html>
Joerg

Posted: Thu Mar 29, 2007 12:15 pm
by garvinhicking
Hi!

Hhhhm. Okay, that means that the url fopen wrappers do work on your install.

It could be that sockets are specially triggered, can you try this PHP code:

Code: Select all

<?php
$fp = fsockopen("www.google.com", 80, $errno, $errstr, 30);
if (!$fp) {
    echo "$errstr ($errno)<br />\n";
} else {
    $out = "GET / HTTP/1.1\r\n";
    $out .= "Host: www.google.com\r\n";
    $out .= "Connection: Close\r\n\r\n";

    fwrite($fp, $out);
    while (!feof($fp)) {
        echo fgets($fp, 128);
    }
    fclose($fp);
}
?> 
Regards,
Garvin

Posted: Thu Mar 29, 2007 12:20 pm
by baetmaen
garvinhicking wrote:Hi!

It could be that sockets are specially triggered, can you try this PHP code:
Here is the output:

Code: Select all

HTTP/1.1 302 Found Location: http://www.google.de/ Cache-Control: private Set-Cookie: PREF=ID=6c209fe9b2dfe6ab:TM=1175163551:LM=1175163551:S=xyEvrRHVmwMR8Yg2; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com Content-Type: text/html Server: GWS/2.1 Content-Length: 218 Date: Thu, 29 Mar 2007 10:19:11 GMT
302 Moved
The document has moved here.
The last word (here) points to: http://www.google.de/

Joerg

Posted: Thu Mar 29, 2007 1:00 pm
by garvinhicking
Hi!

Hm, my last idea is that something might be fishy with your PEAR installation.

Can you edit your serendipity_config.inc.php file and search fur "serendipity['usePEAR']" and make sure that is set to false?

It might be that the PEAR libs required to make a connection are loaded from your webserver instead of s9y, and that your webserver does not allow readaccess to the global files...

Best regards,
Garvin

Posted: Thu Mar 29, 2007 1:48 pm
by baetmaen
garvinhicking wrote: Can you edit your serendipity_config.inc.php file and search fur "serendipity['usePEAR']" and make sure that is set to false?
Hi :)

Here is what I changed, was it the right place ? It did not change anything.

Code: Select all

if (!isset($serendipity['use_PEAR'])) {
    $serendipity['use_PEAR'] = false;
I think I do not understand you regading the included or the webservers PEAR. The errormessage:

Code: Select all

Versuche URL package_sidebar_de.xml zu öffnen...
Connection refused
Notice: Connection refused in /home/s1tokdbm/www.tokahabe.de/bundled-libs/PEAR.php on line 848
Connection refused
looks like it is using the budled-libs version anyways (the above setting was True before).

Joerg

Posted: Thu Mar 29, 2007 2:32 pm
by garvinhicking
Hi!

Yes, but the PEAR HTTP_Request component consists of several other components whose path is not revealed; those might have been included.

But you changed the right place, and since it did not make a difference, that can't be it either.

I suppose you are currently using netmirror.org as your mirror. If you ssh to your machine and use wget netmirror.org, do you get a connection there?

I'm quite at a loss where the Connection gets refused.

Regards,
Garvin