{"action":"created","issue":{"url":"https://api.github.com/repos/mage2tv/magento-cache-clean/issues/3","repository_url":"https://api.github.com/repos/mage2tv/magento-cache-clean","labels_url":"https://api.github.com/repos/mage2tv/magento-cache-clean/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mage2tv/magento-cache-clean/issues/3/comments","events_url":"https://api.github.com/repos/mage2tv/magento-cache-clean/issues/3/events","html_url":"https://github.com/mage2tv/magento-cache-clean/issues/3","id":352188237,"node_id":"MDU6SXNzdWUzNTIxODgyMzc=","number":3,"title":"Not Working With Redis Over Socket","user":{"login":"JosephLeedy","id":3091468,"node_id":"MDQ6VXNlcjMwOTE0Njg=","avatar_url":"https://avatars0.githubusercontent.com/u/3091468?v=4","gravatar_id":"","url":"https://api.github.com/users/JosephLeedy","html_url":"https://github.com/JosephLeedy","followers_url":"https://api.github.com/users/JosephLeedy/followers","following_url":"https://api.github.com/users/JosephLeedy/following{/other_user}","gists_url":"https://api.github.com/users/JosephLeedy/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephLeedy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephLeedy/subscriptions","organizations_url":"https://api.github.com/users/JosephLeedy/orgs","repos_url":"https://api.github.com/users/JosephLeedy/repos","events_url":"https://api.github.com/users/JosephLeedy/events{/privacy}","received_events_url":"https://api.github.com/users/JosephLeedy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-20T15:34:09Z","updated_at":"2018-08-21T00:55:54Z","closed_at":null,"author_association":"NONE","body":"## Expected Behavior\r\n\r\nThe cache should be cleared.\r\n\r\n## Actual Behavior\r\n\r\nThe following error is thrown:\r\n\r\n```\r\n$ vendor/bin/cache-clean.js\r\nSponsored by https://www.mage2.tv\r\n\r\nFlushing all caches\r\nevents.js:167\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nError: Redis connection to /tmp/redis.sock:6379 failed - getaddrinfo ENOTFOUND /tmp/redis.sock /tmp/redis.sock:6379\r\n    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:57:26)\r\nEmitted 'error' event at:\r\n    at RedisClient.on_error (/Volumes/Development/Sites/mage22/vendor/mage2tv/magento-cache-clean/node_modules/redis/index.js:406:14)\r\n    at Socket.<anonymous> (/Volumes/Development/Sites/mage22/vendor/mage2tv/magento-cache-clean/node_modules/redis/index.js:279:14)\r\n    at Socket.emit (events.js:182:13)\r\n    at emitErrorNT (internal/streams/destroy.js:82:8)\r\n    at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)\r\n    at process._tickCallback (internal/process/next_tick.js:63:19)\r\n```\r\n\r\n## Steps to Reproduce the Problem\r\n\r\n  1. Set up Redis to a use a socket\r\n  2. Configure Magento to connect to Redis over that socket for Cache, FPC and sessions\r\n  3. Run the CLI tool\r\n\r\n## Specifications\r\n\r\n  - Magento Version: 2.2.5 (Vanilla, no third-party extensions or themes)\r\n  - PHP Version: 7.1.20\r\n  - Node.js Version: 10.9.0\r\n  - Platform: MacOS 10.13.6\r\n\r\n## Additional Details\r\n\r\nHere is my Redis configuration, which works fine with Magento:\r\n\r\n```\r\n    'session' => [\r\n        'save' => 'redis',\r\n        'redis' => [\r\n            'host' => '/tmp/redis.sock',\r\n            'port' => '6379',\r\n            'password' => '',\r\n            'timeout' => '2.5',\r\n            'persistent_identifier' => '',\r\n            'database' => '3',\r\n            'compression_threshold' => '2048',\r\n            'compression_library' => 'gzip',\r\n            'log_level' => '1',\r\n            'max_concurrency' => '6',\r\n            'break_after_frontend' => '5',\r\n            'break_after_adminhtml' => '30',\r\n            'first_lifetime' => '600',\r\n            'bot_first_lifetime' => '60',\r\n            'bot_lifetime' => '7200',\r\n            'disable_locking' => '0',\r\n            'min_lifetime' => '60',\r\n            'max_lifetime' => '2592000'\r\n        ]\r\n    ],\r\n    'cache' => [\r\n        'frontend' => [\r\n            'default' => [\r\n                'backend' => 'Cm_Cache_Backend_Redis',\r\n                'backend_options' => [\r\n                    'server' => '/tmp/redis.sock',\r\n                    'port' => '6379',\r\n                    'database' => '5'\r\n                ]\r\n            ],\r\n            'page_cache' => [\r\n                'backend' => 'Cm_Cache_Backend_Redis',\r\n                'backend_options' => [\r\n                    'server' => '/tmp/redis.sock',\r\n                    'port' => '6379',\r\n                    'database' => '4',\r\n                    'compress_data' => '0'\r\n                ]\r\n            ]\r\n        ]\r\n    ],\r\n```"},"comment":{"url":"https://api.github.com/repos/mage2tv/magento-cache-clean/issues/comments/414513703","html_url":"https://github.com/mage2tv/magento-cache-clean/issues/3#issuecomment-414513703","issue_url":"https://api.github.com/repos/mage2tv/magento-cache-clean/issues/3","id":414513703,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDUxMzcwMw==","user":{"login":"Vinai","id":72463,"node_id":"MDQ6VXNlcjcyNDYz","avatar_url":"https://avatars0.githubusercontent.com/u/72463?v=4","gravatar_id":"","url":"https://api.github.com/users/Vinai","html_url":"https://github.com/Vinai","followers_url":"https://api.github.com/users/Vinai/followers","following_url":"https://api.github.com/users/Vinai/following{/other_user}","gists_url":"https://api.github.com/users/Vinai/gists{/gist_id}","starred_url":"https://api.github.com/users/Vinai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vinai/subscriptions","organizations_url":"https://api.github.com/users/Vinai/orgs","repos_url":"https://api.github.com/users/Vinai/repos","events_url":"https://api.github.com/users/Vinai/events{/privacy}","received_events_url":"https://api.github.com/users/Vinai/received_events","type":"User","site_admin":false},"created_at":"2018-08-21T00:55:54Z","updated_at":"2018-08-21T00:55:54Z","author_association":"CONTRIBUTOR","body":"Could you do me a favor and install the `redis-socket` branch version and check if that works as expected?\r\n\r\nI think the following commands should do the trick:\r\n```\r\ncomposer remove --dev mage2tv/magento-cache-clean\r\ncomposer require --dev mage2tv/magento-cache-clean:dev-redis-socket\r\n```"}}
{"actor":{"display_login":"Vinai"}}