# No interface named 'gce' when trying to setup passwords

**URL:** <https://discuss.elastic.co/t/no-interface-named-gce-when-trying-to-setup-passwords/158818>\
**Category:** Elasticsearch\
**Created:** [November 29, 2018, 8:05pm UTC](https://discuss.elastic.co/t/no-interface-named-gce-when-trying-to-setup-passwords/158818 "2018-11-29T20:05:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brieuc\_Schaff](https://avatars.discourse-cdn.com/v4/letter/b/dfb087/32.png) [@Brieuc\_Schaff](https://discuss.elastic.co/u/Brieuc_Schaff)\
**Post date:** [November 29, 2018, 8:05pm UTC](https://discuss.elastic.co/t/no-interface-named-gce-when-trying-to-setup-passwords/158818/1 "2018-11-29T20:05:22Z")

</div>

Hi,

Trying to set up Elastic 6.5.1 on Compute Engine. I did previously install 6.2.x without issue on another Compute Engine VM, but now I'm facing an issue with GCE settings.

I did install discovery-gce plugin which seems to load properly as it shows in the logs:  
`[2018-11-29T19:59:05,606][INFO][o.e.p.PluginsService] [MUT_gNe] loaded plugin [discovery-gce]`

My elasticsearch.yml file looks like this:  
`path.data: /var/lib/elasticsearch`  
`path.logs: /var/log/elasticsearch`  
`network.host: _gce_`  
`xpack.security.transport.ssl.enabled: true`  
`xpack.security.transport.ssl.keystore.path: elastic-certificates.p12`  
`xpack.security.transport.ssl.truststore.path: elastic-certificates.p12`

which is the exact same config that I have on 6.2.x and works fine.

Elasticsearch seems to start properly, however when I try `bin/elasticsearch-setup-passwords interactive` I get the following error:  
`Exception in thread "main" java.lang.IllegalArgumentException: No interface named 'gce' found, got [name:lo (lo), name:eth0 (eth0)] at org.elasticsearch.common.network.NetworkUtils.getAddressesForInterface(NetworkUtils.java:231) at org.elasticsearch.common.network.NetworkService.resolveInternal(NetworkService.java:233) at org.elasticsearch.common.network.NetworkService.resolveInetAddresses(NetworkService.java:187) at org.elasticsearch.common.network.NetworkService.resolvePublishHostAddresses(NetworkService.java:145) at org.elasticsearch.xpack.security.authc.esnative.tool.CommandLineHttpClient.getDefaultURL(CommandLineHttpClient.java:146) at org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool$SetupCommand.setupOptions(SetupPasswordTool.java:267) at org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool$InteractiveSetup.execute(SetupPasswordTool.java:174) at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:77) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) at org.elasticsearch.cli.Command.main(Command.java:90) at org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool.main(SetupPasswordTool.java:107)`

Not sure what's going on, any insight on this ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 29, 2018, 8:31pm UTC](https://discuss.elastic.co/t/no-interface-named-gce-when-trying-to-setup-passwords/158818/2 "2018-11-29T20:31:25Z")

</div>

Sounds like a bug to me. Could you open an issue ?

---

<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:** [December 27, 2018, 8:41pm UTC](https://discuss.elastic.co/t/no-interface-named-gce-when-trying-to-setup-passwords/158818/3 "2018-12-27T20:41:39Z")

</div>

Closed on December 27, 2018, 8:41pm UTC

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