FAQ
I have installed CF on one VM, and I want to scale it to a cluster by
snapshot and template function.

So I create a new VM by snapshot,and I changed the IPs of the host
in ../devbox/config files to the new VM (xxx.xxx.xxx.229).

But I can not get my CF start up well.

The CC log is below:

can not connect to server.Connection refused.
Is the server running on host "xxx.xxx.xxx.229" and
accepting TCP/IP connections on port 5432?

As I have changed the IP in config directory, are there anything else
I need to change in other directories? Or I cannot install CF like
this at all?

Search Discussions

  • Yongkun Anfernee Gui at Jun 14, 2012 at 3:26 am
    Make sure your CCDB (which is a postgresql) is working well.

    Since you cloned a vm, probably you need to reconfig postgresql in
    /etc/postgresql/8.4/main/postgresql.conf, change listen_addresses
    and restart it.

    Thanks,
    Anfernee
    On Thu, Jun 14, 2012 at 11:12 AM, 张 磊 wrote:

    I have installed CF on one VM, and I want to scale it to a cluster by
    snapshot and template function.

    So I create a new VM by snapshot,and I changed the IPs of the host
    in ../devbox/config files to the new VM (xxx.xxx.xxx.229).

    But I can not get my CF start up well.

    The CC log is below:

    can not connect to server.Connection refused.
    Is the server running on host "xxx.xxx.xxx.229" and
    accepting TCP/IP connections on port 5432?

    As I have changed the IP in config directory, are there anything else
    I need to change in other directories? Or I cannot install CF like
    this at all?
  • Chunjie Zhu at Jun 14, 2012 at 3:31 am
    On your vm xxx.xxx.xxx.229, have a try to edit /etc/postgresql/8.4/main/pg_hba.conf (assume you are using 8.4 postgresql) to add cloud_controller host into the "allowed client" list.

    Regards,
    Chunjie

    ----- Original Message -----

    From: "Yongkun Anfernee Gui" <agui@rbcon.com>
    To: vcap-dev@cloudfoundry.org
    Sent: Thursday, June 14, 2012 11:26:03 AM
    Subject: Re: [vcap-dev] Launch CloudFoundry by snapshot. Can not connect to server problem.


    Make sure your CCDB (which is a postgresql) is working well.


    Since you cloned a vm, probably you need to reconfig postgresql in
    /etc/postgresql/8.4/main/postgresql.conf, change listen_addresses
    and restart it.


    Thanks,
    Anfernee




    On Thu, Jun 14, 2012 at 11:12 AM, 张 磊 wrote:


    I have installed CF on one VM, and I want to scale it to a cluster by
    snapshot and template function.

    So I create a new VM by snapshot,and I changed the IPs of the host
    in ../devbox/config files to the new VM (xxx.xxx.xxx.229).

    But I can not get my CF start up well.

    The CC log is below:

    can not connect to server.Connection refused.
    Is the server running on host "xxx.xxx.xxx.229" and
    accepting TCP/IP connections on port 5432?

    As I have changed the IP in config directory, are there anything else
    I need to change in other directories? Or I cannot install CF like
    this at all?
  • 张 磊 at Jun 14, 2012 at 3:36 am
    Thank you very much. It works.

    By the way, have you ever tried or know something about latest
    dev_setup and uaa? I got compilation error in TestAccountSetup in uaa
    component even I have tried to update uaa to latest version.
    On Jun 14, 11:26 am, Yongkun Anfernee Gui wrote:
    Make sure your CCDB (which is a postgresql) is working well.

    Since you cloned a vm, probably you need to reconfig postgresql in
    /etc/postgresql/8.4/main/postgresql.conf, change listen_addresses
    and restart it.

    Thanks,
    Anfernee






    On Thu, Jun 14, 2012 at 11:12 AM, 张 磊 wrote:
    I have installed CF on one VM, and I want to scale it to a cluster by
    snapshot and template function.
    So I create a new VM by snapshot,and I changed the IPs of the host
    in ../devbox/config files to the new VM (xxx.xxx.xxx.229).
    But I can not get my CF start up well.
    The CC log is below:
    can not connect to server.Connection refused.
    Is the server running on host "xxx.xxx.xxx.229" and
    accepting TCP/IP connections on port 5432?
    As I have changed the IP in config directory, are there anything else
    I need to change in other directories? Or I cannot install CF like
    this at all?

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupvcap-dev @
postedJun 14, '12 at 3:12a
activeJun 14, '12 at 3:36a
posts4
users3

People

Translate

site design / logo © 2022 Grokbase