# Kibana custom plugin 7.13.3 installation fails

**URL:** <https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412>\
**Category:** Kibana\
**Created:** [July 22, 2021, 4:14pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412 "2021-07-22T16:14:43Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [July 22, 2021, 4:14pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/1 "2021-07-22T16:14:43Z")

</div>

Hello,

I am upgrading my elasticstack from version 7.9.2 to 7.13.3. I checked my plugin with the development environment I created for kibana 7.13.3. it works fine. now I need to add that plugin to my windows elasticstack and I think I found a way to Install that plugin.

> **[Kibana plugins | Kibana Guide \[7.13\] | Elastic](https://www.elastic.co/guide/en/kibana/current/kibana-plugins.html)**

According to this link above, first I need to run the following.

`$ bin/kibana-plugin install file:///local/path/to/custom_plugin.zip`

But when I run this it gives following errors.

```auto
Attempting to transfer from file:///C:/ELK7.13.3/kibana-7.13.3/plugins/myplugin.zip
Transferring 37053422 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Plugin installation was unsuccessful due to error "No kibana plugins found in archive"

```

Has anyone seen this error before?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![poff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/poff/32/81795_2.png) [@poff](https://discuss.elastic.co/u/poff)\
**Post date:** [July 22, 2021, 7:46pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/2 "2021-07-22T19:46:41Z")

</div>

Hey there! So I was looking through the code for the kibana-plugin CLI tool and it looks like it's trying to find a kibana.json file within the archive. Can you confirm that that exists within the root directory of the archive?

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [July 23, 2021, 3:47pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/3 "2021-07-23T15:47:01Z")

</div>

Hello @poff ,

yes, there is a kibana.json file within the root directory of the archive.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/2/22811f3e270e9566652ff6b69f63ed32e32c0c96.png)

And following are the contents of the kibana.json file.

```auto
{
  "id": "myplugin",
  "version": "1.0.0",
  "kibanaVersion": "kibana",
  "server": true,
  "ui": true,
  "requiredPlugins": ["navigation"],
  "optionalPlugins": []
}

```

Thanks for helping me!

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [July 26, 2021, 4:06pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/4 "2021-07-26T16:06:46Z")

</div>

Any thoughts? anyone?

---

<div class="post-metadata">

**Author:** ![joshdover](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshdover/32/42020_2.png) [@joshdover](https://discuss.elastic.co/u/joshdover)\
**Post date:** [July 26, 2021, 4:42pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/5 "2021-07-26T16:42:10Z")

</div>

Hello,

How are you current building your plugin for production? You should be able to run `yarn build` from your plugin's directory if it was generated with our tooling. This will produce a fully built plugin that looks like:

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

I do see that you do not have a package.json file so this may not work for you. I'd recommend either generating a new plugin (`node scripts/generate_plugin` from the Kibana repository) and copying your code into it or adding a package.json file with these contents:

```auto
{
  "name": "my-plugin",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "build": "yarn plugin-helpers build",
    "plugin-helpers": "node ../../scripts/plugin_helpers",
    "kbn": "node ../../scripts/kbn"
  }
}

```

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [July 26, 2021, 5:11pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/6 "2021-07-26T17:11:24Z")

</div>

Hello @joshdover,

Thanks for replying. So I have created development environment for kibana 7.13.3 using development guide. then I created a plugin called myplugin with following command.

node scripts/generate\_plugin my\_plugin\_name # replaced "my\_plugin\_name" with my custom plugin name that I was already using with version 7.9.2.

Then I ran elasticsearch and Kibana dev. Everything worked alright. so I changed the plugin with my original plugin and It still works. so, that means my plugin is compatible with version 7.13.3.  
The structure of plugin created by generate\_plugin script is same as my custom plugin that I already have.

Then I downloaded ELK 7.13.3 for windows and ran the script to install the plugin.

Now, what I added package.json to my plugin as you said but now it gives following error.

```auto
C:\ELK7.13.3\kibana-7.13.3\bin>kibana-plugin install file:///C:/TEMP/myplugin.zip
Found previous install attempt. Deleting...
Attempting to transfer from file:///C:/TEMP/myplugin.zip
Transferring 27055 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Plugin installation was unsuccessful due to error "Plugin myplugin[kibana] is incompatible with Kibana [7.13.3]"

```

This is not supposed to happend. because the same plugin is compatible with the development environment. why not compatible with regular environment?

Thanks.

---

<div class="post-metadata">

**Author:** ![joshdover](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshdover/32/42020_2.png) [@joshdover](https://discuss.elastic.co/u/joshdover)\
**Post date:** [July 26, 2021, 5:27pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/7 "2021-07-26T17:27:31Z")

</div>

Try updating the `version` in your kibana.json file to 7.13.3. I believe that should help.

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [July 26, 2021, 7:29pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/8 "2021-07-26T19:29:39Z")

</div>

Hi @joshdover,

I generated the plugin again, added data from my old plugin and changed the version to 7.13.3 in kibana.json. checked with development version and it is compatible and the new structure is like following.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/f/7f9a66c9ea46e7fa59ae2a399c679369eea11f50.png)

but it still gives me the same errors

```auto
Found previous install attempt. Deleting...
Attempting to transfer from file:///C:/TEMP/myplugin.zip
Transferring 36888369 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Plugin installation was unsuccessful due to error "Plugin myplugin[kibana] is incompatible with Kibana [7.13.3]"

```

Is there any way to get more information on what is happening or what is incompatible?

Thanks,

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [July 27, 2021, 4:23pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/9 "2021-07-27T16:23:05Z")

</div>

any thoughts? @tsullivan @tiagocosta

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [August 2, 2021, 9:42pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/10 "2021-08-02T21:42:20Z")

</div>

@Akhil2 could you please post the file contents present both on `kibana.json` and `package.json` inside your `myplugin.zip`?

Cheers

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [August 3, 2021, 12:25pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/11 "2021-08-03T12:25:28Z")

</div>

Hello @tiagocosta,

Here it is.

**Kibana.json**

```auto
{
  "id": "myplugin",
  "version": "7.13.3",
  "kibanaVersion": "kibana",
  "server": true,
  "ui": true,
  "requiredPlugins": ["navigation"],
  "optionalPlugins": []
}

```

**package.json**

```auto
{
  "name": "myplugin",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "build": "yarn plugin-helpers build",
    "plugin-helpers": "node ../../scripts/plugin_helpers",
    "kbn": "node ../../scripts/kbn"
  }
}

```

Thanks

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [August 9, 2021, 5:46pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/12 "2021-08-09T17:46:25Z")

</div>

Hello,

anyone? @tiagocosta @joshdover @poff

I have been stuck with this from long time. is there any other way I can try?

Thanks.

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [August 9, 2021, 8:10pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/13 "2021-08-09T20:10:41Z")

</div>

@Akhil2 could you try to setup your plugin's `kibana.json` and `package.json` as the following:

```auto
{
  "id": "myplugin",
  "kibanaVersion": "kibana",
  "server": true,
  "ui": true,
  "requiredPlugins": ["navigation"],
  "optionalPlugins": []
}

```

```auto
{
  "name": "myplugin",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "build": "yarn plugin-helpers build",
    "plugin-helpers": "node ../../scripts/plugin_helpers",
    "kbn": "node ../../scripts/kbn"
  }
}

```

After this just run `yarn build` on your plugin `cwd` and just try to install it again.

Cheers

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [August 11, 2021, 6:44pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/14 "2021-08-11T18:44:36Z")

</div>

Hello @tiagocosta,

I changed the plugin's kibana.json and package.json and tried to run yarn build in development version. but it gave me following errors.

```auto
$ yarn build
yarn run v1.21.1
$ node scripts/build --all-platforms
 info [global] Verifying environment meets requirements
   │ succ Node.js version verified
   │ succ ✓ 0 sec

 info [global] Cleaning artifacts from previous builds
   │ debg Deleting patterns: [
   │ 'C:\\TEMP\\kibana-development\\developed-kibana\\kibana\\build',
   │ 'C:\\TEMP\\kibana-development\\developed-kibana\\kibana\\target',
   │ 'C:\\TEMP\\kibana-development\\developed-kibana\\kibana\\.node_binaries'
   │ ]
   │ debg Deleted 1 files/directories
   │ succ ✓ 0 sec

 info [global] Downloading node.js builds for all platforms
   │ debg Downloading shasum values for node version 14.17.2 from https://us-central1-elastic-kibana-184716.cloudfunctions.net/kibana-ci-proxy-cache/dist/v14.17.2/SHASUMS256.txt
   │ERROR failure 0 sec
   │ERROR Error: getaddrinfo ENOTFOUND us-central1-elastic-kibana-184716.cloudfunctions.net
   │ at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:69:26)

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

```

Thanks

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [August 20, 2021, 2:20pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/15 "2021-08-20T14:20:53Z")

</div>

@Akhil2 where are you running the `yarn build` command? In order to build the plugin you should run the command in the `cwd` of the plugin not in the kibana repo one.

Cheers

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [August 20, 2021, 5:04pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/16 "2021-08-20T17:04:11Z")

</div>

it is working now. thank you for being patient @tiagocosta and help me get this working.

---

<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:** [September 17, 2021, 5:04pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin-7-13-3-installation-fails/279412/17 "2021-09-17T17:04:23Z")

</div>

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