# Logstash Docker on GCP Cloud Run: Expected the service InnerService \[FAILED\] to be TERMINATED, but the service has FAILED

**URL:** <https://discuss.elastic.co/t/logstash-docker-on-gcp-cloud-run-expected-the-service-innerservice-failed-to-be-terminated-but-the-service-has-failed/306785>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [June 9, 2022, 10:42am UTC](https://discuss.elastic.co/t/logstash-docker-on-gcp-cloud-run-expected-the-service-innerservice-failed-to-be-terminated-but-the-service-has-failed/306785 "2022-06-09T10:42:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hegdesandesh25](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hegdesandesh25/32/106822_2.png) [@hegdesandesh25](https://discuss.elastic.co/u/hegdesandesh25)\
**Post date:** [June 9, 2022, 10:42am UTC](https://discuss.elastic.co/t/logstash-docker-on-gcp-cloud-run-expected-the-service-innerservice-failed-to-be-terminated-but-the-service-has-failed/306785/1 "2022-06-09T10:42:36Z")

</div>

Continuing the discussion from [Logstash Docker on GCP Cloud Run: Failed to find a usable hardware address from the network interfaces](https://discuss.elastic.co/t/logstash-docker-on-gcp-cloud-run-failed-to-find-a-usable-hardware-address-from-the-network-interfaces/253181):  
I have a similar use-case, running custom logstash container from gcloud-run with the below configuration but the container is unable to pull anything from the subscriber, all the access to service accounts have been provided.

```auto
input
{
   google_pubsub {
       project_id => "XXXXXXXX"
       topic => "topic1"
       subscription => "logstash-sub"
       include_metadata => true
       codec => "json"
   }

    output {
      elasticsearch {
        hosts => "${HOSTS}"
        user => "${USERNAME}" 
        password => "${PASSWORD}"  
        index => "${INDEX}"
        }
      stdout {
      }
    }`Preformatted text`

```

```auto
Logs:
  "textPayload": "java.lang.IllegalStateException: Expected the service InnerService [FAILED] to be RUNNING, but the service has FAILED\n\tat com.google.common.util.concurrent.AbstractService.checkCurrentState(AbstractService.java:381)\n\tat com.google.common.util.concurrent.AbstractService.awaitRunning(AbstractService.java:305)\n\tat com.google.api.core.AbstractApiService.awaitRunning(AbstractApiService.java:96)\n\tat com.google.cloud.pubsub.v1.Subscriber.startConnections(Subscriber.java:390)\n\tat com.google.cloud.pubsub.v1.Subscriber.startStreamingConnections(Subscriber.java:355)\n\tat com.google.cloud.pubsub.v1.Subscriber.access$200(Subscriber.java:93)\n\tat com.google.cloud.pubsub.v1.Subscriber$3.run(Subscriber.java:299)\n\tat java.base/java.lang.Thread.run(Thread.java:829)\nCaused by: java.lang.NoSuchMethodError: 'void com.google.common.util.concurrent.Futures.addCallback(com.google.common.util.concurrent.ListenableFuture, com.google.common.util.concurrent.FutureCallback)'\n\tat com.google.cloud.pubsub.v1.StreamingSubscriberConnection.initialize(StreamingSubscriberConnection.java:218)\n\tat com.google.cloud.pubsub.v1.StreamingSubscriberConnection.doStart(StreamingSubscriberConnection.java:110)\n\tat com.google.api.core.AbstractApiService$InnerService.doStart(AbstractApiService.java:148)\n\tat com.google.common.util.concurrent.AbstractService.startAsync(AbstractService.java:251)\n\tat com.google.api.core.AbstractApiService.startAsync(AbstractApiService.java:120)\n\tat com.google.cloud.pubsub.v1.Subscriber.startConnections(Subscriber.java:387)\n\t... 4 more",
    "insertId": "62a1ca8500045d3deeab2266",
    "resource": {
      "type": "cloud_run_revision",

```

---

<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 7, 2022, 10:43am UTC](https://discuss.elastic.co/t/logstash-docker-on-gcp-cloud-run-expected-the-service-innerservice-failed-to-be-terminated-but-the-service-has-failed/306785/2 "2022-07-07T10:43:15Z")

</div>

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