{"id":165,"date":"2013-08-10T14:56:01","date_gmt":"2013-08-10T12:56:01","guid":{"rendered":"http:\/\/catyellow.net\/blog\/?p=165"},"modified":"2018-06-02T22:56:17","modified_gmt":"2018-06-02T20:56:17","slug":"percona-xtradb-cluster-and-selinux","status":"publish","type":"post","link":"https:\/\/catyellow.net\/blog\/?p=165","title":{"rendered":"Percona XtraDB Cluster and SELinux"},"content":{"rendered":"<p>Today I tried to setup <a href=\"http:\/\/www.percona.com\/software\/percona-xtradb-cluster\" title=\"Percona XtraDB Cluster\" target=\"_blank\">Percona XtraDB Cluster<\/a>, but got permission denied error:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n130709 16:15:35 [Note] WSREP: gcomm: connecting to group 'cluster0', peer ''\r\n130709 16:15:35 [ERROR] WSREP: Permission denied\r\n130709 16:15:35 [ERROR] WSREP: failed to open gcomm backend connection: 13: error while trying to listen 'tcp:\/\/0.0.0.0:4567?socket.non_blocking=1', asio error 'Permission denied': 13 (Permission denied)\r\n\t at gcomm\/src\/asio_tcp.cpp:listen():813\r\n130709 16:15:35 [ERROR] WSREP: gcs\/src\/gcs_core.c:gcs_core_open():195: Failed to open backend connection: -13 (Permission denied)\r\n130709 16:15:35 [ERROR] WSREP: gcs\/src\/gcs.c:gcs_open():1289: Failed to open channel 'cluster0' at 'gcomm:\/\/': -13 (Permission denied)\r\n130709 16:15:35 [ERROR] WSREP: gcs connect failed: Permission denied\r\n130709 16:15:35 [ERROR] WSREP: wsrep::connect() failed: 6\r\n130709 16:15:35 [ERROR] Aborting\r\n<\/pre>\n<p><!--more--><\/p>\n<p>After a quick search I found that this problem could be related to SELinux so I decided to disable it.<\/p>\n<p>When I tried to disable SELinux I got permission denied error:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo setenforce 0\r\nsudo echo 0 &gt;\/selinux\/enforce\r\n-bash: \/selinux\/enforce: Permission denied\r\n<\/pre>\n<p>So finally this command allowed me to disable SELinux:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo setenforce 0\r\nsudo sh -c &quot;echo 0 &gt; \/selinux\/enforce&quot;\r\n<\/pre>\n<p>And start PXC:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo \/etc\/init.d\/mysql start\r\nStarting MySQL (Percona XtraDB Cluster).... SUCCESS! \r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Today I tried to setup Percona XtraDB Cluster, but got permission denied error:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[43,44],"_links":{"self":[{"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/165"}],"collection":[{"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=165"}],"version-history":[{"count":6,"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/165\/revisions"}],"predecessor-version":[{"id":351,"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/165\/revisions\/351"}],"wp:attachment":[{"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}