# \[غير محلول\] GCloud: فشل في الإبلاغ عن الخطأ: خطأ في الاتصال بـ Redis على localhost:6379

**URL:** <https://meta.discourse.org/t/unsolved-gcloud-failed-to-report-error-error-connecting-to-redis-on-localhost-6379/100084>\
**Category:** Self-hosting\
**Created:** [20 أكتوبر 2018، 11:24م UTC](https://meta.discourse.org/t/unsolved-gcloud-failed-to-report-error-error-connecting-to-redis-on-localhost-6379/100084 "2018-10-20T23:24:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![empireofryan](https://avatars.discourse-cdn.com/v4/letter/e/e99b99/32.png) [@empireofryan](https://meta.discourse.org/u/empireofryan)\
**Post date:** [20 أكتوبر 2018، 11:24م UTC](https://meta.discourse.org/t/unsolved-gcloud-failed-to-report-error-error-connecting-to-redis-on-localhost-6379/100084/1 "2018-10-20T23:24:48Z")

</div>

Looking to connect a Discourse app to a Google Cloud instance of a Rails app running redis and postgres ala [https://cloud.google.com/community/tutorials/setting-up-ruby-discourse](https://cloud.google.com/community/tutorials/setting-up-ruby-discourse). Have an instance of redis running on localhost and Google cloud configured through [community/archived/setting-up-redis.md at master · GoogleCloudPlatform/community · GitHub](https://cloud.google.com/community/tutorials/setting-up-redis). Both seem to be connected. Went through entire process including pinging the server from the cloud instance and returning PONG.

Config file has also been altered as mentioned in the docs. When pushing the command

`VERSION=$(date +%Y%m%dt%H%M%S); gcloud app deploy --version=$VERSION --promote &amp;&amp; bundle exec rake appengine:exec -- bundle exec rake db:migrate &amp;&amp; gcloud app services set-traffic default $VERSION=1`

returning the following error and not sure where to go from here:

```
(Errno::ECONNREFUSED) 2 Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED) subscribe failed, reconnecting in 1 second. Call stack ["/app/vendor/bundle/ruby/2.4.0/gems/redis-4.0.1/lib/redis/client.rb:344:in `rescue in establish_connection'", "/app/vendor/bundle/ruby/2.4.0/gems/redis-4.0.1/lib/redis/client.rb:328:in `establish_connection'", "/app/vendor/bundle/ruby/2.4.0/gems/redis-4.0.1/lib/redis/client.rb:99:in `block in connect'", "/app/vendor/bundle/ruby/2.4.0/gems/redis-4.0.1/lib/redis/client.rb:291:in `with_reconnect'", "/app/vendor/bundle/ruby/2.4.0/gems/redis-4.0.1/lib/redis/client.rb:98:in `connect'", "/app/vendor/bundle/ruby/2.4.0/gems/redis-4.0.1/lib/redis/client.rb:274:in `with_socket_timeout'", "/app/vendor/bundle/ruby/2.4.0/gems/redis-4.0.1/lib/redis/client.rb:131:in `call_loop'", "/app/vendor/bundle/ruby/2.4.0/gems/redis-4.0.1/lib/redis/subscribe.rb:43:in `subscription'", "/app/vendor/bundle/ruby/2.4.0/gems/redis-4.0.1/lib/redis/subscribe.rb:12:in `subscribe'", "/app/vendor/bundle/ruby/2.4.0/gems/redis-4.0.1/lib/redis.rb:2824:in `_subscription'", "/app/vendor/bundle/ruby/2.4.0/gems/redis-4.0.1/lib/redis.rb:2192:in `block in subscribe'", "/app/vendor/bundle/ruby/2.4.0/gems/redis-4.0.1/lib/redis.rb:45:in `block in synchronize'", "/opt/rbenv/versions/2.4.4/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'", "/app/vendor/bundle/ruby/2.4.0/gems/redis-4.0.1/lib/redis.rb:45:in `synchronize'", "/app/vendor/bundle/ruby/2.4.0/gems/redis-4.0.1/lib/redis.rb:2191:in `subscribe'", "/app/vendor/bundle/ruby/2.4.0/gems/message_bus-2.1.6/lib/message_bus/backends/redis.rb:337:in `global_subscribe'", "/app/vendor/bundle/ruby/2.4.0/gems/message_bus-2.1.6/lib/message_bus.rb:533:in `global_subscribe_thread'", "/app/vendor/bundle/ruby/2.4.0/gems/message_bus-2.1.6/lib/message_bus.rb:481:in `block in new_subscriber_thread'"] 

Step #1: No connection to db, unable to retrieve site settings! (normal when running db:create)

Step #1: fatal: Not a git repository (or any of the parent directories): .git

Step #1: rake aborted!

```

---

_[View the full topic](https://meta.discourse.org/t/unsolved-gcloud-failed-to-report-error-error-connecting-to-redis-on-localhost-6379/100084)._
