# Logstash Docker on GCP Cloud Run: Failed to find a usable hardware address from the network interfaces

**URL:** <https://discuss.elastic.co/t/logstash-docker-on-gcp-cloud-run-failed-to-find-a-usable-hardware-address-from-the-network-interfaces/253181>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [October 23, 2020, 9:41pm UTC](https://discuss.elastic.co/t/logstash-docker-on-gcp-cloud-run-failed-to-find-a-usable-hardware-address-from-the-network-interfaces/253181 "2020-10-23T21:41:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NickyW1995](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickyw1995/32/48731_2.png) [@NickyW1995](https://discuss.elastic.co/u/NickyW1995)\
**Post date:** [October 23, 2020, 9:41pm UTC](https://discuss.elastic.co/t/logstash-docker-on-gcp-cloud-run-failed-to-find-a-usable-hardware-address-from-the-network-interfaces/253181/1 "2020-10-23T21:41:00Z")

</div>

Hi all,

I'm coupling PubSub with a Logstash custom image running on GCP Cloud Run, this image will output messages to an Elastic Cloud configuration.

I'm currently hitting some errors on Cloud Run which I can't seem to fix related to:  
_Failed to find a usable hardware address from the network interfaces_

The Dockerfile looks like this:

```auto
    FROM docker.elastic.co/logstash/logstash:7.9.0
    ADD pipeline/ /usr/share/logstash/pipeline/
    ADD config/ /usr/share/logstash/config/
    RUN bin/logstash-plugin install logstash-input-google_pubsub
    RUN chown -R logstash:root /usr/share/logstash/config 
    RUN ls -al /usr/share/logstash/config/
    EXPOSE 5000

```

The config file looks like this:

```auto
    input {

        google_pubsub {

            project_id => "${PROJECT_ID}"
            topic => "${PUBSUB_TOPIC}"
            subscription => "logstash-sub"
            create_subscription => false
        }
    }
    output {
      elasticsearch {
        hosts => "${HOSTS}"
        user => "${USERNAME}" 
        password => "${PASSWORD}"  
        index => "${INDEX}"
        }
      stdout {
      }
    }

```

If anyone helping with this requires any other data please let me know. I'm new to handling Logstash.

A little extra info on what I see happening:  
The Container spins up fine, sets up a pipeline that already fetches the input from Pub/Sub, then after about a minute the aforementioned error comes up and I get a _[logstash.runner] SIGTERM received. Shutting down._ message before the container deployment fails.

---

<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:** [November 20, 2020, 9:41pm UTC](https://discuss.elastic.co/t/logstash-docker-on-gcp-cloud-run-failed-to-find-a-usable-hardware-address-from-the-network-interfaces/253181/2 "2020-11-20T21:41:08Z")

</div>

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