{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21536","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21536/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21536/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21536/events","html_url":"https://github.com/kubernetes/kubernetes/issues/21536","id":134847278,"number":21536,"title":"examples: guestbook: redis slave cannot sync with master (\"Bad protocol from MASTER\")","user":{"login":"alban","id":27575,"avatar_url":"https://avatars.githubusercontent.com/u/27575?v=3","gravatar_id":"","url":"https://api.github.com/users/alban","html_url":"https://github.com/alban","followers_url":"https://api.github.com/users/alban/followers","following_url":"https://api.github.com/users/alban/following{/other_user}","gists_url":"https://api.github.com/users/alban/gists{/gist_id}","starred_url":"https://api.github.com/users/alban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alban/subscriptions","organizations_url":"https://api.github.com/users/alban/orgs","repos_url":"https://api.github.com/users/alban/repos","events_url":"https://api.github.com/users/alban/events{/privacy}","received_events_url":"https://api.github.com/users/alban/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-19T11:55:17Z","updated_at":"2016-02-26T23:19:17Z","closed_at":"2016-02-26T23:19:17Z","body":"I am following the instructions in the example \"guestbook\" on a CoreOS cluster with `GET_HOSTS_FROM=env`:\r\nhttps://github.com/kubernetes/kubernetes/tree/master/examples/guestbook/\r\n\r\nIt didn't work for me: redis-master and redis-slave cannot communicate together. I get the following logs for redis-slave:\r\n```\r\n$ kubectl logs redis-slave-v23f4\r\n                _._                                                  \r\n           _.-``__ ''-._                                             \r\n      _.-``    `.  `_.  ''-._           Redis 3.0.3 (00000000/0) 64 bit\r\n  .-`` .-```.  ```\\/    _.,_ ''-._                                   \r\n (    '      ,       .-`  | `,    )     Running in standalone mode\r\n |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379\r\n |    `-._   `._    /     _.-'    |     PID: 7\r\n  `-._    `-._  `-./  _.-'    _.-'                                   \r\n |`-._`-._    `-.__.-'    _.-'_.-'|                                  \r\n |    `-._`-._        _.-'_.-'    |           http://redis.io        \r\n  `-._    `-._`-.__.-'_.-'    _.-'                                   \r\n |`-._`-._    `-.__.-'    _.-'_.-'|                                  \r\n |    `-._`-._        _.-'_.-'    |                                  \r\n  `-._    `-._`-.__.-'_.-'    _.-'                                   \r\n      `-._    `-.__.-'    _.-'                                       \r\n          `-._        _.-'                                           \r\n              `-.__.-'                                               \r\n\r\n7:S 19 Feb 10:44:46.782 # Server started, Redis version 3.0.3\r\n7:S 19 Feb 10:44:46.782 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.\r\n7:S 19 Feb 10:44:46.782 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.\r\n7:S 19 Feb 10:44:46.782 * The server is now ready to accept connections on port 6379\r\n7:S 19 Feb 10:44:46.782 * Connecting to MASTER 10.100.157.194:6379\r\n7:S 19 Feb 10:44:46.785 * MASTER <-> SLAVE sync started\r\n7:S 19 Feb 10:44:46.785 * Non blocking connect for SYNC fired the event.\r\n7:S 19 Feb 10:44:46.785 * Master replied to PING, replication can continue...\r\n7:S 19 Feb 10:44:51.790 * (Non critical) Master does not understand REPLCONF listening-port: -Reading from master: Connection timed out\r\n7:S 19 Feb 10:44:51.790 * Partial resynchronization not possible (no cached master)\r\n7:S 19 Feb 10:44:56.795 # Unexpected reply to PSYNC from master: -Reading from master: Connection timed out\r\n7:S 19 Feb 10:44:56.795 * Retrying with SYNC...\r\n7:S 19 Feb 10:44:56.796 # Bad protocol from MASTER, the first byte is not '$' (we received '+OK'), are you sure the host and port are right?\r\n7:S 19 Feb 10:44:57.698 * Connecting to MASTER 10.100.157.194:6379\r\n7:S 19 Feb 10:44:57.698 * MASTER <-> SLAVE sync started\r\n7:S 19 Feb 10:44:57.698 * Non blocking connect for SYNC fired the event.\r\n7:S 19 Feb 10:44:57.699 * Master replied to PING, replication can continue...\r\n7:S 19 Feb 10:45:02.704 * (Non critical) Master does not understand REPLCONF listening-port: -Reading from master: Connection timed out\r\n7:S 19 Feb 10:45:02.704 * Partial resynchronization not possible (no cached master)\r\n7:S 19 Feb 10:45:07.709 # Unexpected reply to PSYNC from master: -Reading from master: Connection timed out\r\n7:S 19 Feb 10:45:07.709 * Retrying with SYNC...\r\n7:S 19 Feb 10:45:07.709 # Bad protocol from MASTER, the first byte is not '$' (we received '+OK'), are you sure the host and port are right?\r\n```\r\n\r\nThen, it continues looping with the same errors.\r\n\r\nAt first, I thought that it was because `all-in-one/guestbook-all-in-one.yaml` selects different versions of redis with a different protocol:\r\n- redis-slave (image: `gcr.io/google_samples/gb-redisslave:v1`) is 3.0.3\r\n- redis-master (image: `redis`) is currently 3.0.7\r\n\r\nBut changing redis-master to image `redis:3.0.0` didn't help.\r\n\r\nAny ideas what is wrong?"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/189522795","html_url":"https://github.com/kubernetes/kubernetes/issues/21536#issuecomment-189522795","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21536","id":189522795,"user":{"login":"fabioy","id":6294975,"avatar_url":"https://avatars.githubusercontent.com/u/6294975?v=3","gravatar_id":"","url":"https://api.github.com/users/fabioy","html_url":"https://github.com/fabioy","followers_url":"https://api.github.com/users/fabioy/followers","following_url":"https://api.github.com/users/fabioy/following{/other_user}","gists_url":"https://api.github.com/users/fabioy/gists{/gist_id}","starred_url":"https://api.github.com/users/fabioy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabioy/subscriptions","organizations_url":"https://api.github.com/users/fabioy/orgs","repos_url":"https://api.github.com/users/fabioy/repos","events_url":"https://api.github.com/users/fabioy/events{/privacy}","received_events_url":"https://api.github.com/users/fabioy/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T23:19:17Z","updated_at":"2016-02-26T23:19:17Z","body":"Please re-post your question to [stackoverflow](http://stackoverflow.com/questions/tagged/kubernetes).\r\n\r\nWe are trying to consolidate the channels to which questions for help/support are posted so that we can improve our efficiency in responding to your requests, and to make it easier for you to find answers to frequently asked questions and how to address common use cases.\r\n\r\nWe regularly see messages posted in multiple forums, with the full response thread only in one place or, worse, spread across multiple forums. Also, the large volume of support issues on github is making it difficult for us to use issues to identify real bugs.\r\n\r\nThe Kubernetes team scans stackoverflow on a regular basis, and will try to ensure your questions don't go unanswered.\r\n\r\nBefore posting a new question, please search stackoverflow for answers to similar questions, and also familiarize yourself with:\r\n   * [the user guide](http://kubernetes.io/v1.0/)\r\n   * [the troubleshooting guide](http://kubernetes.io/v1.0/docs/troubleshooting.html)\r\n\r\nAgain, thanks for using Kubernetes.\r\n\r\nThe Kubernetes Team"}}