2

Hubot の脳のストレージとして Azure Redis Cache を使用しようとしています。

ここの指示に従って、Redis ブレインを構成しました。Redis Node クライアントが SSL をサポートしていないことをここで読んだので、SSL と暗号化されていない接続の両方も試しました。

また、Redis クライアントをhubot-redis-brainから0.8.4に更新しました2.6.2が、Hubot はまだ Redis に接続できません。

Azure のポート構成のスクリーン ショットを次に示します。

ここに画像の説明を入力

そして、これは私のHubotが起動したときの出力です:

[Fri Sep 23 2016 09:00:14 GMT+0100 (GMT Daylight Time)] INFO hubot-redis-brain: Discovered redis from REDISTOGO_URL environment variable
node_redis: Deprecated: The AUTH command contains a "undefined" argument.
This is converted to a "undefined" string now and will return an error from v.3.0 on.
Please handle this in your code to make sure everything works as you intended it to.
[Fri Sep 23 2016 09:00:21 GMT+0100 (GMT Daylight Time)] ERROR hubot-redis-brain: Failed to authenticate to Redis
[Fri Sep 23 2016 09:00:21 GMT+0100 (GMT Daylight Time)] ERROR ReplyError: Ready check failed: NOAUTH Authentication required.
  at parseError (C:\projects\hubot-tryout\node_modules\redis-parser\lib\parser.js:163:12)
  at parseType (C:\projects\hubot-tryout\node_modules\redis-parser\lib\parser.js:224:14)

これに関するヘルプは大歓迎です。

アップデート

これは、暗号化されていない接続に使用しているコードです。

client = Redis.createClient("6379", "my-host.redis.cache.windows.net" , { auth_pass: "access-key" } )

そして、これは暗号化された接続の場合:

client = Redis.createClient("6380", "my-host.redis.cache.windows.net" , { auth_pass: "access-key" } ), tls: {servername: 'my-host.redis.cache.windows.net'} }) 
4

1 に答える 1

0

パスワードを URL エンコードしてみます。Azure Redis for PHP セッションを使用するためにここで説明されているのと同じ問題が発生しているのだろうか...

https://azure.microsoft.com/en-us/documentation/articles/cache-faq/#can-i-use-azure-redis-cache-as-a-php-session-cache

于 2016-09-23T16:13:33.253 に答える