# Chef-server 14.7.1: chef-server-ctl upgrade failed

**URL:** <https://discourse.chef.io/t/chef-server-14-7-1-chef-server-ctl-upgrade-failed/20114>\
**Category:** Chef Infra (archive)\
**Created:** [July 22, 2021, 11:09am UTC](https://discourse.chef.io/t/chef-server-14-7-1-chef-server-ctl-upgrade-failed/20114 "2021-07-22T11:09:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yogesh](https://avatars.discourse-cdn.com/v4/letter/y/49beb7/32.png) [@yogesh](https://discourse.chef.io/u/yogesh)\
**Post date:** [July 22, 2021, 11:09am UTC](https://discourse.chef.io/t/chef-server-14-7-1-chef-server-ctl-upgrade-failed/20114/1 "2021-07-22T11:09:04Z")

</div>

Hello,

I am trying to run the chef-server-ctl upgrade (using chef-server 14.7.1 version) but it failed with error,

## Following is the log:

```auto
Recipe: private-chef:: elasticsearch
  * component_runit_service[elasticsearch] action start
  Recipe: <Dynamically Defined Resource>
    * service[elasticsearch] action nothing (skipped due to action :nothing)
    * runit_service[elasticsearch] action start (up to date)
     (up to date)
Recipe: private-chef::elasticsearch_index
  * elasticsearch_index[chef] action create

[2021-07-22T09:40:32+00:00] FATAL: Could not connect to Elasticsearch

  Recipe: private-chef::elasticsearch
    * component_runit_service[elasticsearch] action restart
    Recipe: <Dynamically Defined Resource>
      * service[elasticsearch] action nothing (skipped due to action :nothing)
      * runit_service[elasticsearch] action restart (up to date)
       (up to date)

  Running handlers:
  Running handlers complete
  Chef Infra Client failed. 47 resources updated in 08 minutes 05 seconds
[2021-07-22T09:45:39+00:00] FATAL: Stacktrace dumped to /var/opt/opscode/local-mode-cache/chef-stacktrace.out
[2021-07-22T09:45:39+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2021-07-22T09:45:39+00:00] FATAL: RuntimeError: Failed to connect to elasticsearch service at http://127.0.0.1:9200: Connection refused - Connection refused connecting to http://127.0.0.1:9200, giving up

```

Can anyone help me in this?
