# Kibana savej object giving error on import: migrating from 7.9.1 to 8.7.1 version full elk stack

**URL:** <https://discuss.elastic.co/t/kibana-savej-object-giving-error-on-import-migrating-from-7-9-1-to-8-7-1-version-full-elk-stack/338220>\
**Category:** Kibana\
**Created:** [July 12, 2023, 12:47pm UTC](https://discuss.elastic.co/t/kibana-savej-object-giving-error-on-import-migrating-from-7-9-1-to-8-7-1-version-full-elk-stack/338220 "2023-07-12T12:47:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![PRASHANT\_MEHTA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_mehta/32/101764_2.png) [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Post date:** [July 12, 2023, 12:47pm UTC](https://discuss.elastic.co/t/kibana-savej-object-giving-error-on-import-migrating-from-7-9-1-to-8-7-1-version-full-elk-stack/338220/1 "2023-07-12T12:47:46Z")

</div>

Hello All,

I'm migrating my full elk stack stack from 7.9.1 to 8.7.1 and facing issues while importing saved object in 8.7.1,below is the error in second image:

How do I save saved object and download -shown below 1st image, do I need to export **config option** also,will this cause issue while importing in 8.7.1?

NOTE: while doing migration already my 7.9.1 stack was UP and now kibana shows various issues to start properly 8.7.1.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/c/6cd661678678b8a9b38011601f03e68df8924128.png)

Plz tell how to migrate saved object correctly from 7.9.1 to 8.7.1 without conflicts.Does while exporting from 7.9.1 should i choose **config option**?, will this cause issue while importing to 8.7.1?.........Reason asking bcz in saved object config 7.9.1 is showing,so it will conflict in 8.7.1?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/e/2e5483fac5fc12796a1341af3d84f8126433d002.jpeg)

kibana.log

```auto
[2023-07-12T08:29:44.635+02:00][INFO][status] Kibana is now available (was degraded)
[2023-07-12T08:29:47.373+02:00][WARN][plugins.usageCollection.usage-collection.usage-counters-service**] ResponseError: index [.kibana_8.7.1_001] blocked by: [FORBIDDEN/8/index write (api)];: cluster_block_exception
	Root causes:
		cluster_block_exception: index [.kibana_8.7.1_001] blocked by: [FORBIDDEN/8/index write (api)];
    at KibanaTransport.request (/l/ppp/mis/tmp/kibana-8.7.1/node_modules/@elastic/transport/lib/Transport.js:479:27)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at KibanaTransport.request (/l/ppp/mis/tmp/kibana-8.7.1/node_modules/@kbn/core-elasticsearch-client-server-internal/src/create_transport.js:51:16)
    at ClientTraced.UpdateApi [as update] (/l/ppp/mis/tmp/kibana-8.7.1/node_modules/@elastic/elasticsearch/lib/api/api/update.js:50:12)
[2023-07-12T08:29:47.377+02:00][WARN][plugins.usageCollection.usage-collection.usage-counters-service] ResponseError: index [.kibana_8.7.1_001] blocked by: [FORBIDDEN/8/index write (api)];: cluster_block_exception

elastic 8.8.2 was upgraded just for tsesting but reverted back to 8.7.1 and kibana 8.8.2 was never installed,still error in kibana logs below:

 Automatically setting 'xpack.screenshotting.browser.chromium.disableSandbox: true'.
[2023-07-12T21:21:11.282+02:00][INFO][savedobjects-service] Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations...
[2023-07-12T21:21:11.283+02:00][INFO][savedobjects-service] Starting saved objects migrations
[2023-07-12T21:21:11.463+02:00][INFO][savedobjects-service] [.kibana_task_manager] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 122ms.
[2023-07-12T21:21:11.502+02:00][INFO][savedobjects-service] [.kibana] INIT -> FATAL. took: 168ms.
[2023-07-12T21:21:11.504+02:00][FATAL]`[root] Error: Unable to complete saved object migrations for the [.kibana] index: The .kibana alias is pointing to a newer version of Kibana: v8.8.2`
    at migrationStateActionMachine (/l/ppp/mis/tmp/kibana-8.7.1/node_modules/@kbn/core-saved-objects-migration-server-internal/src/migrations_state_action_machine.js:125:29)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 0)
    at SavedObjectsService.start (/l/ppp/mis/tmp/kibana-8.7.1/node_modules/@kbn/core-saved-objects-server-internal/src/saved_objects_service.js:179:9)
    at Server.start (/l/ppp/mis/tmp/kibana-8.7.1/node_modules/@kbn/core-root-server-internal/src/server.js:331:31)
    at Root.start (/l/ppp/mis/tmp/kibana-8.7.1/node_modules/@kbn/core-root-server-internal/src/root/index.js:63:14)
    at bootstrap (/l/app/cis/tmp/kibana-8.7.1/node_modules/@kbn/core-root-server-internal/src/bootstrap.js:105:5)

Thanx
```

---

<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:** [July 12, 2023, 12:47pm UTC](https://discuss.elastic.co/t/kibana-savej-object-giving-error-on-import-migrating-from-7-9-1-to-8-7-1-version-full-elk-stack/338220/2 "2023-07-12T12:47:46Z")

</div>

7.9.1 is [EOL](https://www.elastic.co/support/eol) and no longer supported. Please upgrade ASAP.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<div class="post-metadata">

**Author:** ![PRASHANT\_MEHTA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_mehta/32/101764_2.png) [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Post date:** [July 12, 2023, 3:58pm UTC](https://discuss.elastic.co/t/kibana-savej-object-giving-error-on-import-migrating-from-7-9-1-to-8-7-1-version-full-elk-stack/338220/3 "2023-07-12T15:58:38Z")

</div>

I don't exactly understand the significance of config in the image provided,now while exporting 7.9.1 savedobject with **"config option"** , this could be the reason saved object causing issue while importing in 8.7.1 version?

Can someone plz assist?

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [July 12, 2023, 7:24pm UTC](https://discuss.elastic.co/t/kibana-savej-object-giving-error-on-import-migrating-from-7-9-1-to-8-7-1-version-full-elk-stack/338220/4 "2023-07-12T19:24:51Z")

</div>

Hi @PRASHANT_MEHTA, before upgrading to 8.x, you must upgrade your Elastic stack from 7.9 to 7.17. Try exporting your saved objects from 7.17, then to 8.x.

---

<div class="post-metadata">

**Author:** ![PRASHANT\_MEHTA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_mehta/32/101764_2.png) [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Post date:** [July 12, 2023, 7:30pm UTC](https://discuss.elastic.co/t/kibana-savej-object-giving-error-on-import-migrating-from-7-9-1-to-8-7-1-version-full-elk-stack/338220/5 "2023-07-12T19:30:51Z")

</div>

Hi @tsullivan  
Many thanx for your response.  
What I did was just installed kibana 7.17.11 version and tried it to connect with elasticsaerch 8.7.1 present version. Is this wrong? , kibana 7.17.11 version dosen't connect with 8.7.1 .

Do I need to **downgrade both kibana and elastic** to **7.17.11 version** and then export saved object and then import to 8.x ?  
If downgraded then in 7.9.1 version while exporting saved object I used to get CONFIG also exported,should I avoid this?, will this cause any issue while imported tp 8.7.1 version.

LOGS ABOVE shows circuit break and [root] Error: Unable to complete saved object migrations for the [.kibana] index: The .kibana alias is pointing to a newer version of Kibana: v8.8.2.  
Not getting exactly whats happening.

[2023-07-12T21:21:11.282+02:00][INFO][savedobjects-service] Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations...  
[2023-07-12T21:21:11.283+02:00][INFO][savedobjects-service] Starting saved objects migrations  
[2023-07-12T21:21:11.463+02:00][INFO][savedobjects-service] [.kibana\_task\_manager] INIT -\> WAIT\_FOR\_YELLOW\_SOURCE. took: 122ms.  
[2023-07-12T21:21:11.502+02:00][INFO][savedobjects-service] [.kibana] INIT -\> FATAL. took: 168ms.  
[2023-07-12T21:21:11.504+02:00][FATAL][root] Error: Unable to complete saved object migrations for the [.kibana] index: **The .kibana alias is pointing to a newer version of Kibana: v8.8.2**  
at migrationStateActionMachine (/l/app/mis/tmp/kibana-8.7.1/node\_modules/@kbn/core-saved-objects-migration-server-internal/src/migrations\_state\_action\_machine.js:125:29)  
at processTicksAndRejections (node:internal/process/task\_queues:96:5)  
at async Promise.all (index 0)  
at SavedObjectsService.start (/l/appmis/tmp/kibana-8.7.1/node\_modules/@kbn/core-saved-objects-server-internal/src/saved\_objects\_service.js:179:9)  
at Server.start (/l/ppp/mis/tmp/kibana-8.7.1/node\_modules/@kbn/core-root-server-internal/src/server.js:331:31)  
at Root.start (/l/ppp/mis/tmp/kibana-8.7.1/node\_modules/@kbn/core-root-server-internal/src/root/index.js:63:14)  
at bootstrap (/l/ppp/mis/tmp/kibana-8.7.1/node\_modules/@kbn/core-root-server-internal/src/bootstrap.js:105:5)

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [July 12, 2023, 9:12pm UTC](https://discuss.elastic.co/t/kibana-savej-object-giving-error-on-import-migrating-from-7-9-1-to-8-7-1-version-full-elk-stack/338220/6 "2023-07-12T21:12:52Z")

</div>

> [@PRASHANT\_MEHTA](#):
>
> Do I need to **downgrade both kibana and elastic** to **7.17.11 version** and then export saved object and then import to 8.x ?

You need to upgrade the 7.6 cluster to 7.17 and the Elasticsearch version also needs to be 7.17. In the 7.17 environment, you will need to use the [**Upgrade Assistant**](https://www.elastic.co/guide/en/kibana/current/upgrade-assistant.html), to prepare your data for migration and address any deprecated settings that will be removed. Make sure your saved objects are installed in 7.17 for this step. This step will rewrite your saved objects to be compatible for import into 8.x. You may choose to export your 7.17-based saved objects and keep them as a separate backup.

Then, you can upgrade your stack to 8.7. Your installed saved objects will be migrated to the latest schema when a Kibana 8.7 instance starts.

---

<div class="post-metadata">

**Author:** ![PRASHANT\_MEHTA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_mehta/32/101764_2.png) [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Post date:** [July 13, 2023, 4:15pm UTC](https://discuss.elastic.co/t/kibana-savej-object-giving-error-on-import-migrating-from-7-9-1-to-8-7-1-version-full-elk-stack/338220/7 "2023-07-13T16:15:41Z")

</div>

Hello @tsullivan ,

I've lot of confusion here,what is happening wrong here and would this cause issue later in current version in use i.e 8.8.2 now.

What I did is import my saved object is followed as you guided:7.9.1-\>7.17.11-\>8.8.2  
Plz observe how the config value in each version increases,is it normal?...I hope it wont create any coflicts.

Step 1:This is how I exported my saved object from 7.9.1:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/7/e7cd481a7d04d7e123645b4aea1db275099a22cd.png)

step 2: Imported this 7.17.11 version:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/e/0e6d9f3310520ad0e6af4c9de852dfcac3360606.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/0/e02a4ca549d642df741e5cbc21c3ed40e12cd814.png)

step3:  
exported from 7.17.11 to 8.8.2  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/8/b89b4d2f65c5ffdfd95b45101ef2b939f0be53ef.png)

plz observe how config no increases is it normal or will it cause issue?.HOW to check if everything worked fine?.  
i dont have data coming in any of my indices for now to check accuracy of migration done successfully or not ,any way to know this?

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [July 13, 2023, 6:26pm UTC](https://discuss.elastic.co/t/kibana-savej-object-giving-error-on-import-migrating-from-7-9-1-to-8-7-1-version-full-elk-stack/338220/8 "2023-07-13T18:26:57Z")

</div>

Hi @PRASHANT_MEHTA , I think you are making great progress!

The config objects you aren't familiar with are automatically added by Kibana to allow it to track what was migrated - that is why they accumulate with each upgrade. You can look at these objects if you want, by searching for the `config` type in **Stack Management \> Saved Objects** , then click "Inspect" under the actions menu in the table. You'll see it's basically just metadata that helps Kibana operate itself.

> [@PRASHANT\_MEHTA](#):
>
> HOW to check if everything worked fine?.

It looks like everything is going OK. To make sure, the way to make sure is to open up the dashboards and saved searches in Kibana. If there is an error with the saved object, there will be a message on the screen.

---

<div class="post-metadata">

**Author:** ![PRASHANT\_MEHTA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_mehta/32/101764_2.png) [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Post date:** [July 13, 2023, 6:35pm UTC](https://discuss.elastic.co/t/kibana-savej-object-giving-error-on-import-migrating-from-7-9-1-to-8-7-1-version-full-elk-stack/338220/9 "2023-07-13T18:35:47Z")

</div>

Hello @tsullivan ,

Many Thanx for your time to look into this and helping out with your suggestions and feedback on this.

---

<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 10, 2023, 6:36pm UTC](https://discuss.elastic.co/t/kibana-savej-object-giving-error-on-import-migrating-from-7-9-1-to-8-7-1-version-full-elk-stack/338220/10 "2023-08-10T18:36:45Z")

</div>

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