
hi people i keep getting this error from our server * Network Error (tcp_error) * * A communication error occurred: "Connection refused" * * The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. * some one advised that is my web server Apache which has issues , i repaired and am still the same network error , some one please advise thanks -- http://xkcd.com/154/

Get a dump of the network traffic using wireshark or tcpdump sudo tcpdump -s0 -i eth0 -w /path/to/capture.pcap port 80 <connect and offend server> <stop capture> <anonymize data> <post the pcap to the forum - my.co.ke/phpbb > On Thu, Sep 3, 2009 at 10:10 AM, I. Ati <mueni0@gmail.com> wrote:
hi people
i keep getting this error from our server
* Network Error (tcp_error)
* * A communication error occurred: "Connection refused" * * The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. * some one advised that is my web server Apache which has issues , i repaired and am still the same network error , some one please advise
thanks -- http://xkcd.com/154/
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

*hi mwangi, am sure it nothing to do with the network traffic because there is only one application running in the server and there only two people accessing it * On Thu, Sep 3, 2009 at 9:38 AM, Lmwangi <lmwangi@gmail.com> wrote:
Get a dump of the network traffic using wireshark or tcpdump sudo tcpdump -s0 -i eth0 -w /path/to/capture.pcap port 80 <connect and offend server> <stop capture> <anonymize data> <post the pcap to the forum - my.co.ke/phpbb >
On Thu, Sep 3, 2009 at 10:10 AM, I. Ati <mueni0@gmail.com> wrote:
hi people
i keep getting this error from our server
* Network Error (tcp_error)
* * A communication error occurred: "Connection refused" * * The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. * some one advised that is my web server Apache which has issues , i repaired and am still the same network error , some one please advise
thanks -- http://xkcd.com/154/
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

On Thu, Sep 3, 2009 at 9:10 AM, I. Ati <mueni0@gmail.com> wrote:
hi people
i keep getting this error from our server
* Network Error (tcp_error)
* * A communication error occurred: "Connection refused" * * The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. * some one advised that is my web server Apache which has issues , i repaired and am still the same network error , some one please advise
From the command line, you could try:
telnet webserver_ip_address_here 80 (or whatever port you configured it to listen on) GET / [press enter twice and see if you see some html code] Basically that should give you a clue. Perhaps the webserver is not running for some reason (check your httpd-error.log) or perhaps the firewall is blocking port 80 on the webserver. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube

Did u change the default port of apache (8080)? What is the load on the server i.e. How many requests from the server on average? What is the OS of the server? Was the server workin before? If so, what changes were done before the server stopped working? --- On Thu, 9/3/09, I. Ati <mueni0@gmail.com> wrote: From: I. Ati <mueni0@gmail.com> Subject: [Skunkworks] Network Error (tcp_error) To: "skunkworks" <skunkworks@my.co.ke>, "Skunkworks forum" <skunkworks@lists.my.co.ke> Date: Thursday, September 3, 2009, 9:10 AM hi people i keep getting this error from our server Network Error (tcp_error) A communication error occurred: "Connection refused" The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. some one advised that is my web server Apache which has issues , i repaired and am still the same network error , some one please advise thanks -- http://xkcd.com/154/ -----Inline Attachment Follows----- _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

On Thu, Sep 3, 2009 at 10:19 AM, wesley kirinya <kiriinya2000@yahoo.com>wrote:
Did u change the default port of apache (8080)?
*no i did not change the port*
What is the load on the server i.e. How many requests from the server on average?
*its under 1.00 hence minimum*
What is the OS of the server?
*linux fedora*
Was the server workin before? If so, what changes were done before the server stopped working?
*yes it was working before ,i was trying to create an upload folder in the /var/www/ for my uploaded content but because my site was being denied access to the file i changed the file permission using chmod 777 as root , then after that my network started failing*
--- On *Thu, 9/3/09, I. Ati <mueni0@gmail.com>* wrote:
From: I. Ati <mueni0@gmail.com> Subject: [Skunkworks] Network Error (tcp_error) To: "skunkworks" <skunkworks@my.co.ke>, "Skunkworks forum" < skunkworks@lists.my.co.ke> Date: Thursday, September 3, 2009, 9:10 AM
hi people
i keep getting this error from our server
*Network Error (tcp_error)
* *A communication error occurred: "Connection refused" * *The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. * some one advised that is my web server Apache which has issues , i repaired and am still the same network error , some one please advise
thanks -- http://xkcd.com/154/
-----Inline Attachment Follows-----
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke<http://us.mc1120.mail.yahoo.com/mc/compose?to=Skunkworks@lists.my.co.ke> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

if you are using a squid proxy, check its status. mis configured squid proxies usually result in frequent outages too. why dont you roll back your changes, then see if that sorts out your problem. re starting some fedora servers may also result in loss of iptable settings On 03/09/2009, I. Ati <mueni0@gmail.com> wrote:
On Thu, Sep 3, 2009 at 10:19 AM, wesley kirinya <kiriinya2000@yahoo.com>wrote:
Did u change the default port of apache (8080)?
*no i did not change the port*
What is the load on the server i.e. How many requests from the server on average?
*its under 1.00 hence minimum*
What is the OS of the server?
*linux fedora*
Was the server workin before? If so, what changes were done before the server stopped working?
*yes it was working before ,i was trying to create an upload folder in the /var/www/ for my uploaded content but because my site was being denied access to the file i changed the file permission using chmod 777 as root ,
then after that my network started failing*
--- On *Thu, 9/3/09, I. Ati <mueni0@gmail.com>* wrote:
From: I. Ati <mueni0@gmail.com> Subject: [Skunkworks] Network Error (tcp_error) To: "skunkworks" <skunkworks@my.co.ke>, "Skunkworks forum" < skunkworks@lists.my.co.ke> Date: Thursday, September 3, 2009, 9:10 AM
hi people
i keep getting this error from our server
*Network Error (tcp_error)
* *A communication error occurred: "Connection refused" * *The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. * some one advised that is my web server Apache which has issues , i repaired and am still the same network error , some one please advise
thanks -- http://xkcd.com/154/
-----Inline Attachment Follows-----
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke<http://us.mc1120.mail.yahoo.com/mc/compose?to=Skunkworks@lists.my.co.ke> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
-- with Regards: Kazi kwa vijana and other idiots, all at my blog: http://gramware.blogspot.com

On Thu, Sep 3, 2009 at 10:34 AM, I. Ati <mueni0@gmail.com> wrote:
On Thu, Sep 3, 2009 at 10:19 AM, wesley kirinya <kiriinya2000@yahoo.com>wrote:
Did u change the default port of apache (8080)?
*no i did not change the port*
What is the load on the server i.e. How many requests from the server on average?
*its under 1.00 hence minimum*
What is the OS of the server?
*linux fedora*
Was the server workin before? If so, what changes were done before the server stopped working?
*yes it was working before ,i was trying to create an upload folder in the /var/www/ for my uploaded content but because my site was being denied access to the file i changed the file permission using chmod 777 as root ,
then after that my network started failing*
Please elaborate on this creation of an upload folder again. You needed to upload via Apache or via some other application? Mode 777 compromises your server badly. If I were you, I'd do mode 1777 instead, but that's just a suggestion. Is httpd running? Is there an errors you can see on the logs? Always look at the logs first as the clues are most likely there. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube

On Thu, Sep 3, 2009 at 10:56 AM, Odhiambo Washington <odhiambo@gmail.com>wrote:
Please elaborate on this creation of an upload folder again.
* i created a directory in /var/www/ called upload (mkdir upload), *
You needed to upload via Apache or via some other application?
*i have a site where i allow people to upload stuff , hence wanted the stuff uploaded to go to this folder called upload.....*t*han directly to my db*
Mode 777 compromises your server badly. If I were you, I'd do mode 1777 instead, but that's just a suggestion.
*n suggestion how i can rollback all the changes i made** ?*
Is httpd running? Is there an errors you can see on the logs? Always look at the logs first as the clues are most likely there.
*oops my httpd is not working ,what next advise ,,...... *
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

how do i restart my httpd On Thu, Sep 3, 2009 at 11:23 AM, I. Ati <mueni0@gmail.com> wrote:
On Thu, Sep 3, 2009 at 10:56 AM, Odhiambo Washington <odhiambo@gmail.com>wrote:
Please elaborate on this creation of an upload folder again.
* i created a directory in /var/www/ called upload (mkdir upload),
*
You needed to upload via Apache or via some other application?
*i have a site where i allow people to upload stuff , hence wanted the stuff uploaded to go to this folder called upload.....*t*han directly to my db*
Mode 777 compromises your server badly. If I were you, I'd do mode 1777 instead, but that's just a suggestion.
*n suggestion how i can rollback all the changes i made** ?*
Is httpd running? Is there an errors you can see on the logs? Always look at the logs first as the clues are most likely there.
*oops my httpd is not working ,what next advise ,,...... *
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

@odhi so far this is what i have done am not getting anything what is wrg with my server [githinji@host-135 ~]$ ps aux | grep httpd githinji 2855 0.0 0.1 61144 712 pts/0 R+ 11:09 0:00 grep httpd [githinji@host-135 ~]$ [githinji@host-135 ~]$ service iptables stop /etc/init.d/iptables: line 45: /etc/sysconfig/iptables-config: Permission denied [githinji@host-135 ~]$ apachectl -k restart httpd not running, trying to start (13)Permission denied: make_sock: could not bind to address [::]:80 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs [githinji@host-135 ~]$ sudo apachectl -k restart Password: httpd not running, trying to start [githinji@host-135 ~]$ [githinji@host-135 ~]$ sudo apachectl -k stop [githinji@host-135 ~]$ sudo apachectl -k stop httpd (no pid file) not running [githinji@host-135 ~]$ sudo apachel -k start sudo: apachel: command not found [githinji@host-135 ~]$ sudo apachectl -k start [githinji@host-135 ~]$ On Thu, Sep 3, 2009 at 11:32 AM, I. Ati <mueni0@gmail.com> wrote:
how do i restart my httpd
On Thu, Sep 3, 2009 at 11:23 AM, I. Ati <mueni0@gmail.com> wrote:
On Thu, Sep 3, 2009 at 10:56 AM, Odhiambo Washington <odhiambo@gmail.com>wrote:
Please elaborate on this creation of an upload folder again.
* i created a directory in /var/www/ called upload (mkdir upload),
*
You needed to upload via Apache or via some other application?
*i have a site where i allow people to upload stuff , hence wanted the stuff uploaded to go to this folder called upload.....*t*han directly to my db*
Mode 777 compromises your server badly. If I were you, I'd do mode 1777 instead, but that's just a suggestion.
*n suggestion how i can rollback all the changes i made** ?*
Is httpd running? Is there an errors you can see on the logs? Always look at the logs first as the clues are most likely there.
*oops my httpd is not working ,what next advise ,,...... *
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

On Thu, Sep 3, 2009 at 11:47 AM, I. Ati <mueni0@gmail.com> wrote:
@odhi so far this is what i have done am not getting anything what is wrg with my server [githinji@host-135 ~]$ ps aux | grep httpd githinji 2855 0.0 0.1 61144 712 pts/0 R+ 11:09 0:00 grep httpd [githinji@host-135 ~]$ [githinji@host-135 ~]$ service iptables stop /etc/init.d/iptables: line 45: /etc/sysconfig/iptables-config: Permission denied [githinji@host-135 ~]$ apachectl -k restart httpd not running, trying to start (13)Permission denied: make_sock: could not bind to address [::]:80 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs [githinji@host-135 ~]$ sudo apachectl -k restart Password: httpd not running, trying to start [githinji@host-135 ~]$ [githinji@host-135 ~]$ sudo apachectl -k stop [githinji@host-135 ~]$ sudo apachectl -k stop httpd (no pid file) not running [githinji@host-135 ~]$ sudo apachel -k start sudo: apachel: command not found [githinji@host-135 ~]$ sudo apachectl -k start [githinji@host-135 ~]$
In this last invocation of "apachectl -k start", the exit code is worrying, but let me ask if `ps ax | grep httpd` shows anything. Is there something on the error_log? -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube

On Thu, Sep 3, 2009 at 11:32 AM, I. Ati <mueni0@gmail.com> wrote:
how do i restart my httpd
I have no idea how to do that on your linux, but perhaps: service httpd start, OR /etc/init.d/apache start (not sure) Sorry, I am a little clueless on Linux, unless I am logged in:-) -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube

I think there is another application using port 80; apachectl -k restart The line above is supposed to restart apache if its running or just start it if its not Permission denied: make_sock: could not bind to address 0.0.0.0:80<http://0.0.0.0/> The line above shows that it cannot use port 80. I am not sure what that "Permission denied:" there means, but making an educated guess, which user account is apache running with? Maybe that user account does not have sufficient permissions to "make_sock:" :-) Running apache as root is normally discouraged. Unable to open logs And is also unable to write the error to the log file On Thu, Sep 3, 2009 at 11:48 AM, Odhiambo Washington <odhiambo@gmail.com>wrote:
On Thu, Sep 3, 2009 at 11:32 AM, I. Ati <mueni0@gmail.com> wrote:
how do i restart my httpd
I have no idea how to do that on your linux, but perhaps:
service httpd start, OR /etc/init.d/apache start (not sure)
Sorry, I am a little clueless on Linux, unless I am logged in:-)
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

@peter runned it as sudo try scrolling down :) thanks guys , its finally working On Thu, Sep 3, 2009 at 11:54 AM, Peter Karunyu <pkarunyu@gmail.com> wrote:
I think there is another application using port 80; apachectl -k restart The line above is supposed to restart apache if its running or just start it if its not
Permission denied: make_sock: could not bind to address 0.0.0.0:80<http://0.0.0.0/> The line above shows that it cannot use port 80. I am not sure what that "Permission denied:" there means, but making an educated guess, which user account is apache running with? Maybe that user account does not have sufficient permissions to "make_sock:" :-) Running apache as root is normally discouraged.
Unable to open logs And is also unable to write the error to the log file
On Thu, Sep 3, 2009 at 11:48 AM, Odhiambo Washington <odhiambo@gmail.com>wrote:
On Thu, Sep 3, 2009 at 11:32 AM, I. Ati <mueni0@gmail.com> wrote:
how do i restart my httpd
I have no idea how to do that on your linux, but perhaps:
service httpd start, OR /etc/init.d/apache start (not sure)
Sorry, I am a little clueless on Linux, unless I am logged in:-)
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
participants (6)
-
Dennis Kioko
-
I. Ati
-
Lmwangi
-
Odhiambo Washington
-
Peter Karunyu
-
wesley kirinya