# TypeError: Cannot destructure property 'type' of 'undefined' as it is undefined

**URL:** <https://discuss.elastic.co/t/typeerror-cannot-destructure-property-type-of-undefined-as-it-is-undefined/309160>\
**Category:** Kibana\
**Created:** [July 7, 2022, 9:48pm UTC](https://discuss.elastic.co/t/typeerror-cannot-destructure-property-type-of-undefined-as-it-is-undefined/309160 "2022-07-07T21:48:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alter1](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@alter1](https://discuss.elastic.co/u/alter1)\
**Post date:** [July 7, 2022, 9:48pm UTC](https://discuss.elastic.co/t/typeerror-cannot-destructure-property-type-of-undefined-as-it-is-undefined/309160/1 "2022-07-07T21:48:10Z")

</div>

Hi, I just installed kibana 8.3.2 on a local windows 10 pc, and when starting it I get this error:  
Unable to complete saved object migrations for the [.kibana] index. TypeError: Cannot destructure property 'type' of 'undefined' as it is undefined.

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [July 8, 2022, 1:41pm UTC](https://discuss.elastic.co/t/typeerror-cannot-destructure-property-type-of-undefined-as-it-is-undefined/309160/2 "2022-07-08T13:41:24Z")

</div>

Hi Carlos,

Are you upgrading from an older version of the Elastic Stack or is this a new installation?

---

<div class="post-metadata">

**Author:** ![alter1](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@alter1](https://discuss.elastic.co/u/alter1)\
**Post date:** [July 8, 2022, 2:12pm UTC](https://discuss.elastic.co/t/typeerror-cannot-destructure-property-type-of-undefined-as-it-is-undefined/309160/3 "2022-07-08T14:12:12Z")

</div>

Is a new installation, don't know what happened I restarted the PC and now kibana is working fine.

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [July 8, 2022, 2:16pm UTC](https://discuss.elastic.co/t/typeerror-cannot-destructure-property-type-of-undefined-as-it-is-undefined/309160/4 "2022-07-08T14:16:34Z")

</div>

Well, that is mysterious and frustrating. But I'm glad Kibana is working now. Feel free to create a new discussion if you run into more issues.

---

<div class="post-metadata">

**Author:** ![alter1](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@alter1](https://discuss.elastic.co/u/alter1)\
**Post date:** [July 8, 2022, 2:21pm UTC](https://discuss.elastic.co/t/typeerror-cannot-destructure-property-type-of-undefined-as-it-is-undefined/309160/5 "2022-07-08T14:21:02Z")

</div>

Yes, is a little frustrating, thanks for the fast reply. I'll let you know if I run into other issues.

Best Regards.

---

<div class="post-metadata">

**Author:** ![BoKu](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@BoKu](https://discuss.elastic.co/u/BoKu)\
**Post date:** [July 25, 2022, 8:36am UTC](https://discuss.elastic.co/t/typeerror-cannot-destructure-property-type-of-undefined-as-it-is-undefined/309160/6 "2022-07-25T08:36:06Z")

</div>

Hello,  
i just updated my test-server to 8.3.2 and got the same error:

```nohighlight
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at isClusterShardLimitExceeded (/usr/share/kibana/src/core/server/saved_objects/migrations/actions/es_errors.js:41:3)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at /usr/share/kibana/src/core/server/saved_objects/migrations/actions/create_index.js:119:61
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at runMicrotasks (<anonymous>)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at processTicksAndRejections (node:internal/process/task_queues:96:5)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at stateActionMachine (/usr/share/kibana/src/core/server/saved_objects/migrations/state_action_machine.js:67:28)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at migrationStateActionMachine (/usr/share/kibana/src/core/server/saved_objects/migrations/migrations_state_action_machine.js:92:24)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at async Promise.all (index 1)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at SavedObjectsService.start (/usr/share/kibana/src/core/server/saved_objects/saved_objects_service.js:214:9)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at Server.start (/usr/share/kibana/src/core/server/server.js:363:31)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at Root.start (/usr/share/kibana/src/core/server/root/index.js:69:14)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at bootstrap (/usr/share/kibana/src/core/server/bootstrap.js:120:5)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at Command.<anonymous> (/usr/share/kibana/src/cli/serve/serve.js:216:5)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: [2022-07-25T10:34:58.821+02:00][FATAL][root] [TypeError: Cannot destructure property 'type' of 'undefined' as it is undefined.
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at isClusterShardLimitExceeded (/usr/share/kibana/src/core/server/saved_objects/migrations/actions/es_errors.js:41:3)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at /usr/share/kibana/src/core/server/saved_objects/migrations/actions/create_index.js:119:61
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at runMicrotasks (<anonymous>)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at processTicksAndRejections (node:internal/process/task_queues:96:5)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at stateActionMachine (/usr/share/kibana/src/core/server/saved_objects/migrations/state_action_machine.js:67:28)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at migrationStateActionMachine (/usr/share/kibana/src/core/server/saved_objects/migrations/migrations_state_action_machine.js:92:24)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at async Promise.all (index 1)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at SavedObjectsService.start (/usr/share/kibana/src/core/server/saved_objects/saved_objects_service.js:214:9)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at Server.start (/usr/share/kibana/src/core/server/server.js:363:31)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at Root.start (/usr/share/kibana/src/core/server/root/index.js:69:14)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at bootstrap (/usr/share/kibana/src/core/server/bootstrap.js:120:5)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at Command.<anonymous> (/usr/share/kibana/src/cli/serve/serve.js:216:5)]
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: [2022-07-25T10:34:58.827+02:00][ERROR][savedobjects-service] TypeError: Cannot destructure property 'type' of 'undefined' as it is undefined.
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at isClusterShardLimitExceeded (/usr/share/kibana/src/core/server/saved_objects/migrations/actions/es_errors.js:41:3)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at /usr/share/kibana/src/core/server/saved_objects/migrations/actions/create_index.js:119:61
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at runMicrotasks (<anonymous>)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at processTicksAndRejections (node:internal/process/task_queues:96:5)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at runNextTicks (node:internal/process/task_queues:65:3)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at processTimers (node:internal/timers:499:9)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at stateActionMachine (/usr/share/kibana/src/core/server/saved_objects/migrations/state_action_machine.js:67:28)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at migrationStateActionMachine (/usr/share/kibana/src/core/server/saved_objects/migrations/migrations_state_action_machine.js:92:24)
Jul 25 10:34:58 KG-ELA99001P kibana[1115]: at async Promise.all (index 0)
Jul 25 10:35:28 KG-ELA99001P kibana[1115]: [2022-07-25T10:35:28.826+02:00][INFO][plugins-system.preboot] Stopping all plugins.
Jul 25 10:35:28 KG-ELA99001P kibana[1115]: [2022-07-25T10:35:28.827+02:00][INFO][plugins-system.standard] Stopping all plugins.
Jul 25 10:35:28 KG-ELA99001P kibana[1115]: [2022-07-25T10:35:28.828+02:00][INFO][plugins.monitoring.monitoring.kibana-monitoring] Monitoring stats collection is stopped
Jul 25 10:35:28 KG-ELA99001P kibana[1115]: FATAL Error: Unable to complete saved object migrations for the [.kibana_task_manager] index. TypeError: Cannot destructure property '

```

Restarting the server didn't help!

Any advise?

Kind regards  
Boris

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 22, 2022, 8:37am UTC](https://discuss.elastic.co/t/typeerror-cannot-destructure-property-type-of-undefined-as-it-is-undefined/309160/7 "2022-08-22T08:37:05Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
