<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    <br>
    1.<br>
    Can you check   /root/.ssh/authorized_keys (in master host) ?  <br>
    It should contain only entries starting with "command=" .<br>
    If there is any duplicate entry without "command=" , delete the
    same.<br>
    and check the geo-rep status again.<br>
    <br>
    <br>
    2.<br>
    This is to confirm ssh connection between master and slave:<br>
    When do run the following, you should get gsynd prompt(from master
    to slave).<br>
    <br>
    ssh -i /var/lib/glusterd/geo-replication/secret.pem root@slave<br>
    <br>
    3.<br>
    check your firewall settings<br>
    <br>
    <br>
    Thanks,<br>
    Saravana<br>
    <br>
    <div class="moz-cite-prefix">On 07/25/2016 02:24 AM, Alexandre
      Besnard wrote:<br>
    </div>
    <blockquote
      cite="mid:2DD7F20A-B47B-421F-B183-9C035AF72FBB@gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Anybody, any clue ?
      <div class=""><br class="">
        <div>
          <blockquote type="cite" class="">
            <div class="">On 20 Jul 2016, at 01:59, Alexandre Besnard
              &lt;<a moz-do-not-send="true"
                href="mailto:besnard.alexandre@gmail.com" class="">besnard.alexandre@gmail.com</a>&gt;
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <meta http-equiv="Content-Type" content="text/html;
                charset=windows-1252" class="">
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space;" class="">Hello
                <div class=""><br class="">
                </div>
                <div class="">I deleted the content of
                  /root/.ssh/authorized_keys on the slave (ks4)</div>
                <div class=""><br class="">
                </div>
                <div class="">Then I configured passwordless
                  authentication from the host (ks16):</div>
                <div class=""><br class="">
                </div>
                <div class=""><i class="">ssh-copy-id root@ks4</i></div>
                <div class=""><i class=""><br class="">
                  </i></div>
                <div class="">Also did from the host:</div>
                <div class=""><br class="">
                </div>
                <div class=""><i class="">gluster system:: execute
                    gsec_create</i></div>
                <div class=""><br class="">
                </div>
                <div class="">which created a file
                  in /var/lib/glusterd/geo-replication/common_secret.pem.pub</div>
                <div class=""><br class="">
                </div>
                <div class="">Then created the geo-replicated volume
                  successfully:</div>
                <div class=""><br class="">
                </div>
                <div class=""><i class="">gluster volume geo-replication
                    backupvol ks4::backupvol create push-pem force</i></div>
                <div class=""><br class="">
                </div>
                <div class="">but still getting the same errors in the
                  log after starting the volume:</div>
                <div class=""><br class="">
                </div>
                <div class="">
                  <div class=""><i class="">[2016-07-19 23:52:14.900583]
                      I [monitor(monitor):266:monitor] Monitor:
                      ------------------------------------------------------------</i></div>
                  <div class=""><i class="">[2016-07-19 23:52:14.900752]
                      I [monitor(monitor):267:monitor] Monitor: starting
                      gsyncd worker</i></div>
                  <div class=""><i class="">[2016-07-19 23:52:14.958281]
                      I [gsyncd(/gluster/backupvol):710:main_i]
                      &lt;top&gt;: syncing: <a moz-do-not-send="true"
                        href="gluster://localhost:backupvol" class="">gluster://localhost:backupvol</a>
                      -&gt; <a moz-do-not-send="true"
                        href="ssh://root@ks4:gluster://localhost:backupvol"
                        class="">ssh://root@ks4:gluster://localhost:backupvol</a></i></div>
                  <div class=""><i class="">[2016-07-19 23:52:14.958520]
                      I [changelogagent(agent):73:__init__]
                      ChangelogAgent: Agent listining...</i></div>
                  <div class=""><i class="">[2016-07-19 23:52:15.81407]
                      E
                      [syncdutils(/gluster/backupvol):252:log_raise_exception]
                      &lt;top&gt;: connection to peer is broken</i></div>
                  <div class=""><i class="">[2016-07-19 23:52:15.81645]
                      E [resource(/gluster/backupvol):226:errlog] Popen:
                      command "ssh -oPasswordAuthentication=no
                      -oStrictHostKeyChecking=no -i <b class="">/var/lib/glusterd/geo-replication/secret.pem
                      </b>-p 22 -oControlMaster=auto -S
                      /tmp/gsyncd-aux-ssh-Aux8JK/b63292d563144e7818235d683516731d.sock
                      root@ks4 /nonexistent/gsyncd --session-owner
                      3281242a-ab45-4a0d-99e5-2965b4ac5840 -N --listen
                      --timeout 120 <a moz-do-not-send="true"
                        href="gluster://localhost:backupvol" class="">gluster://localhost:backupvol</a>"
                      returned with 255, saying:</i></div>
                  <div class=""><i class="">[2016-07-19 23:52:15.81733]
                      E [resource(/gluster/backupvol):230:logerr] Popen:
                      ssh&gt; key_load_public: invalid format</i></div>
                  <div class=""><i class="">[2016-07-19 23:52:15.81804]
                      E [resource(/gluster/backupvol):230:logerr] Popen:
                      ssh&gt; Permission denied (publickey,password).</i></div>
                  <div class=""><i class="">[2016-07-19 23:52:15.81947]
                      I [syncdutils(/gluster/backupvol):220:finalize]
                      &lt;top&gt;: exiting.</i></div>
                  <div class=""><i class="">[2016-07-19 23:52:15.82798]
                      I [repce(agent):92:service_loop] RepceServer:
                      terminating on reaching EOF.</i></div>
                  <div class=""><i class="">[2016-07-19 23:52:15.82946]
                      I [syncdutils(agent):220:finalize] &lt;top&gt;:
                      exiting.</i></div>
                  <div class=""><i class="">[2016-07-19 23:52:15.82858]
                      I [monitor(monitor):333:monitor] Monitor:
                      worker(/gluster/backupvol) died before
                      establishing connection</i></div>
                </div>
                <div class=""><br class="">
                </div>
                <div class=""><br class="">
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
    <blockquote
      cite="mid:2DD7F20A-B47B-421F-B183-9C035AF72FBB@gmail.com"
      type="cite">
      <div class="">
        <div>
          <blockquote type="cite" class="">
            <div class="">
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space;" class="">
                <div class="">Any thoughts ?</div>
                <div class=""><br class="">
                </div>
                <div class=""><br class="">
                  <div class="">
                    <blockquote type="cite" class="">
                      <div class="">On 19 Jul 2016, at 06:33, Aravinda
                        &lt;<a moz-do-not-send="true"
                          href="mailto:avishwan@redhat.com" class="">avishwan@redhat.com</a>&gt;
                        wrote:</div>
                      <br class="Apple-interchange-newline">
                      <div class="">
                        <div class="">Hi,<br class="">
                          <br class="">
                          Looks like Master Pem keys are not copied to
                          Slave nodes properly, Please cleanup
                          /root/.ssh/authorized_keys in Slave nodes and
                          run Geo-rep create force again.<br class="">
                          <br class="">
                          gluster volume geo-replication
                          &lt;MASTERVOL&gt;
                          &lt;SLAVEHOST&gt;::&lt;SLAVEVOL&gt; create
                          push-pem force<br class="">
                          <br class="">
                          Do you observe any errors related to hook
                          scripts in glusterd log file?<br class="">
                          <br class="">
                          regards<br class="">
                          Aravinda<br class="">
                          <br class="">
                          On 07/18/2016 10:11 PM, Alexandre Besnard
                          wrote:<br class="">
                          <blockquote type="cite" class="">Hello<br
                              class="">
                            <br class="">
                            On a fresh Gluster 3.8 install, I am not
                            able to configure a geo-replicated volume.
                            Everything works fine up to starting of the
                            volume however Gluster reports a faulty
                            status.<br class="">
                            <br class="">
                            When looking at the logs (gluster_error):<br
                              class="">
                            <br class="">
                            [2016-07-18 16:30:04.371686] I
                            [cli.c:730:main] 0-cli: Started running
                            gluster with version 3.8.0<br class="">
                            [2016-07-18 16:30:04.435854] I [MSGID:
                            101190]
                            [event-epoll.c:628:event_dispatch_epoll_worker]
                            0-epoll: Started thread with index 1<br
                              class="">
                            [2016-07-18 16:30:04.435921] I
                            [socket.c:2468:socket_event_handler]
                            0-transport: disconnecting now<br class="">
                            [2016-07-18 16:30:04.997986] I
                            [input.c:31:cli_batch] 0-: Exiting with: 0<br
                              class="">
                            <br class="">
                            <br class="">
                            <br class="">
                            From the geo-replicated logs, it seems I
                            have a SSH configuration issue:<br class="">
                            <br class="">
                            2016-07-18 16:35:28.293524] I
                            [monitor(monitor):266:monitor] Monitor:
                            ------------------------------------------------------------<br
                              class="">
                            [2016-07-18 16:35:28.293740] I
                            [monitor(monitor):267:monitor] Monitor:
                            starting gsyncd worker<br class="">
                            [2016-07-18 16:35:28.352266] I
                            [gsyncd(/gluster/backupvol):710:main_i]
                            &lt;top&gt;: syncing: <a
                              moz-do-not-send="true"
                              href="gluster://localhost:backupvol"
                              class="">gluster://localhost:backupvol</a>
                            -&gt; <a moz-do-not-send="true"
                              href="ssh://root@ks4:gluster://localhost:backupvol"
                              class="">ssh://root@ks4:gluster://localhost:backupvol</a><br
                              class="">
                            [2016-07-18 16:35:28.352489] I
                            [changelogagent(agent):73:__init__]
                            ChangelogAgent: Agent listining...<br
                              class="">
                            [2016-07-18 16:35:28.492474] E
                            [syncdutils(/gluster/backupvol):252:log_raise_exception]
                            &lt;top&gt;: connection to peer is broken<br
                              class="">
                            [2016-07-18 16:35:28.492706] E
                            [resource(/gluster/backupvol):226:errlog]
                            Popen: command "ssh
                            -oPasswordAuthentication=no
                            -oStrictHostKeyChecking=no -i
                            /var/lib/glusterd/geo-replication/secret.pem
                            -p 22 -oControlMaster=auto -S
                            /tmp/gsyncd-aux-ssh-Fs2XND/b63292d563144e7818235d683516731d.sock
                            root@ks4 /nonexistent/gsyncd --session-owner
                            3281242a-ab45-4a0d-99e5-2965b4ac5840 -N
                            --listen --timeout 120 <a
                              moz-do-not-send="true"
                              href="gluster://localhost:backupvol"
                              class="">gluster://localhost:backupvol</a>"
                            returned with 255, saying:<br class="">
                            [2016-07-18 16:35:28.492794] E
                            [resource(/gluster/backupvol):230:logerr]
                            Popen: ssh&gt; key_load_public: invalid
                            format<br class="">
                            [2016-07-18 16:35:28.492863] E
                            [resource(/gluster/backupvol):230:logerr]
                            Popen: ssh&gt; Permission denied
                            (publickey,password).<br class="">
                            [2016-07-18 16:35:28.493004] I
                            [syncdutils(/gluster/backupvol):220:finalize]
                            &lt;top&gt;: exiting.<br class="">
                            [2016-07-18 16:35:28.494045] I
                            [repce(agent):92:service_loop] RepceServer:
                            terminating on reaching EOF.<br class="">
                            [2016-07-18 16:35:28.494204] I
                            [syncdutils(agent):220:finalize]
                            &lt;top&gt;: exiting.<br class="">
                            [2016-07-18 16:35:28.494143] I
                            [monitor(monitor):333:monitor] Monitor:
                            worker(/gluster/backupvol) died before
                            establishing connection<br class="">
                            <br class="">
                            <br class="">
                            I tried to fix them to the best of my
                            knowledge but I am missing something.<br
                              class="">
                            <br class="">
                            Can you help me to fix it?<br class="">
                            <br class="">
                            Thanks,<br class="">
                            Alex<br class="">
_______________________________________________<br class="">
                            Gluster-users mailing list<br class="">
                            <a moz-do-not-send="true"
                              href="mailto:Gluster-users@gluster.org"
                              class="">Gluster-users@gluster.org</a><br
                              class="">
                            <a moz-do-not-send="true"
                              href="http://www.gluster.org/mailman/listinfo/gluster-users"
                              class="">http://www.gluster.org/mailman/listinfo/gluster-users</a><br
                              class="">
                          </blockquote>
                          <br class="">
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br class="">
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>