MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: onemanarmy on 2013-01-27, 00:45:39

Title: Could not Connect to the server localhost
Post by: onemanarmy on 2013-01-27, 00:45:39
when i try to apache memory optimize to default it gives error "Alert: Could not Connect to the server localhost. This is most likely due to underlying network problem. Make sure that the server is accessible from this particular node by running telnet slave-id 7779 "

when i execute telnet slave-id 7779 then it gives "Trying ip...
telnet: connect to address ip: Connection refused"
Title: Re: Could not Connect to the server localhost
Post by: Tsanten on 2013-01-27, 04:39:31
You ad some server slave before this error?
Title: Re: Could not Connect to the server localhost
Post by: zenkul on 2013-01-27, 08:34:47
try kloxo restart :
Code: [Select]
/etc/init.d/kloxo restart
Title: Re: Could not Connect to the server localhost
Post by: lupetalo on 2013-07-14, 17:22:15
That is fine but to me this is happening all the time, without doing anything. You cant making service kloxo restart every 10 minutes...
Title: Re: Could not Connect to the server localhost
Post by: chrisf on 2013-07-14, 21:07:57
This is happening to others as well.  Mustafa is aware of it.
Title: Re: Could not Connect to the server localhost
Post by: lupetalo on 2013-07-14, 23:38:52
Quote from: "chrisf"
This is happening to others as well.  Mustafa is aware of it.
O, than it is all OK...
Title: Re: Could not Connect to the server localhost
Post by: chrisf on 2013-07-15, 08:31:44
Mustafa, this error is getting more and more frequent.  I clicked on the server tab and this message appeared.

I reset Kloxo-MR.  Everything worked.  A short time later I tried to add a domain. Same problem.  Cannot connect to local host.

What has happened that this error is now showing up A LOT

Please advise.
Title: Re: Could not Connect to the server localhost
Post by: MRatWork on 2013-07-15, 19:45:59
Add 'Cron Scheduled Tasks' in 'servers' (not admin) with code:

if using xen/kvm/dedi:
Code: [Select]
sh /script/clearcache --select=1; sh /script/restart
or (if using openvz):
Code: [Select]
sh /script/restart
where set for every day or every 3 hours.

In early Kloxo-MR, this issue tend to not appear. Possibility:
1. Centos
2. lxphp
3. lxlighttpd

I will try alternative using nginx+php52s instead lxlighttpd + lxphp.
Title: Re: Could not Connect to the server localhost
Post by: lupetalo on 2013-07-15, 20:58:49
Quote from: "MRatWork"
Add 'Cron Scheduled Tasks' in 'servers' (not admin) with code:

if using xen/kvm/dedi:
Code: [Select]
sh /script/clearcache --select=1; sh /script/restart
or (if using openvz):
Code: [Select]
sh /script/restart
where set for every day or every 3 hours.

In early Kloxo-MR, this issue tend to not appear. Possibility:
1. Centos
2. lxphp
3. lxlighttpd

I will try alternative using nginx+php52s instead lxlighttpd + lxphp.
what is impact of those command? What does it do?
Code: [Select]
sh /script/clearcache --select=1; sh /script/restart
Title: Re: Could not Connect to the server localhost
Post by: chrisf on 2013-07-15, 20:59:32
I hope you find a fix for this soon - even with a cron job set at 3 hours this error will occur.

If I restart Kloxo - then work in the control panel for a small amount of time, maybe 10 or 20 minutes, the cannot connect to local host error will appear.

Will wait for you to advise.
Title: Re: Could not Connect to the server localhost
Post by: chrisf on 2013-07-15, 21:04:02
Quote from: "lupetalo"
Quote from: "MRatWork"
Add 'Cron Scheduled Tasks' in 'servers' (not admin) with code:

if using xen/kvm/dedi:
Code: [Select]
sh /script/clearcache --select=1; sh /script/restart
or (if using openvz):
Code: [Select]
sh /script/restart
where set for every day or every 3 hours.

In early Kloxo-MR, this issue tend to not appear. Possibility:
1. Centos
2. lxphp
3. lxlighttpd

I will try alternative using nginx+php52s instead lxlighttpd + lxphp.
what is impact of those command? What does it do?
Code: [Select]
sh /script/clearcache --select=1; sh /script/restart

Those commands restart the Kloxo environment.  The first one is for a dedi server, the second is if you run a vps with openvz.

They will restart the processes that are currently failing until Mustafa can find a fix for the problem.

It is a temporary fix - however as I stated, my problem is more frequent than ever 3 hours - but I added it until Mustafa advises otherwise.

:)