Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-06-25, 08:11:55

Author Topic: Could not Connect to the server localhost  (Read 9492 times)

0 Members and 1 Guest are viewing this topic.

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Could not Connect to the server localhost
« 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"
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Tsanten

  • Global Moderator
  • Junior Member
  • *****
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: Could not Connect to the server localhost
« Reply #1 on: 2013-01-27, 04:39:31 »
You ad some server slave before this error?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: Could not Connect to the server localhost
« Reply #2 on: 2013-01-27, 08:34:47 »
try kloxo restart :
Code: [Select]
/etc/init.d/kloxo restart
« Last Edit: 1970-01-01, 01:00:00 by Guest »
easy, secure and speed up web panel ===> Kloxo-MR

Offline lupetalo

  • Senior Member
  • *
  • Posts: 182
  • Karma: +0/-0
    • View Profile
Re: Could not Connect to the server localhost
« Reply #3 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...
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Could not Connect to the server localhost
« Reply #4 on: 2013-07-14, 21:07:57 »
This is happening to others as well.  Mustafa is aware of it.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline lupetalo

  • Senior Member
  • *
  • Posts: 182
  • Karma: +0/-0
    • View Profile
Re: Could not Connect to the server localhost
« Reply #5 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...
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Could not Connect to the server localhost
« Reply #6 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.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Could not Connect to the server localhost
« Reply #7 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.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline lupetalo

  • Senior Member
  • *
  • Posts: 182
  • Karma: +0/-0
    • View Profile
Re: Could not Connect to the server localhost
« Reply #8 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
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Could not Connect to the server localhost
« Reply #9 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.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Could not Connect to the server localhost
« Reply #10 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.

:)
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.028 seconds with 18 queries.

web stats analysis