Making an upgrade without ElasticSearch

Hi guys,

I'm trying to upgrade a Sugar instance from 7.5 to 7.7 but for the moment ElasticSearch service isn't available on our server. This cause that the upgrade can't execute as expected. The message "Couldn't connect to host. Elasticsearch down?" repeats every time I tried to did it.

Is there any way to make an upgrade if ElasticSearch service isn't running properly?

Parents
  • Hi Cristian,

    Upgrade would fail anyway due to Elasticsearch. If its on your local, i would recommend you to install elasticsearch and set it up as its. But if it's on cloud then i would recommend you to get your backup to your local then install your elasticsearch to your local and proceed the upgrade. Once you done you can upload the upgraded version to your cloud.

    Hope this helps.

    Best Regards

    Tevfik Tümer

    Developer Support Engineer

  • Hi Tevfik,

    I know ElasticSearch it's required component for install or upgrade Sugar, and for that it will be available in a few weeks. But now, I would like to save valuable time finishing the upgrade to make some test with my environment.

    I know that is not part of the best practices, but what if I force the script of the "pre" step that makes the validation of FTS connection?. I can hardcode and return "true" value in the function that makes the validation to pass the "pre" step.

    What do you think about that?

  • Hi Cristian,

    I perfectly understand your approach. But unfortunately there isn't easy way to skip over Elasticsearch in the upgrade progress. As far as i know elasticsearch isn't used in only one place. There are multiple places we check elasticsearch and we actually use it (especially for upgrade). So even if you skip in the pre check you might bump in the middle of progress.

    Like i mentioned in my first note, it would highly recommend you to have your backup to your local test machine.

    Proceed the upgrade in your local and just replace with your Cloud.

    Best Regards

    Tevfik Tümer

    Developer Support Engineer

Reply
  • Hi Cristian,

    I perfectly understand your approach. But unfortunately there isn't easy way to skip over Elasticsearch in the upgrade progress. As far as i know elasticsearch isn't used in only one place. There are multiple places we check elasticsearch and we actually use it (especially for upgrade). So even if you skip in the pre check you might bump in the middle of progress.

    Like i mentioned in my first note, it would highly recommend you to have your backup to your local test machine.

    Proceed the upgrade in your local and just replace with your Cloud.

    Best Regards

    Tevfik Tümer

    Developer Support Engineer

Children