<div dir="ltr">Hi Behrooz,<br><br>The error says about &quot;testvol2&quot; where the &#39;gluster volume info&#39; you provided is on &quot;testvol&quot;<br><br> [2015-03-25 22:50:08.079884] E [glfs-mgmt.c:599:mgmt_getspec_<div>cbk] 0-glfs-mgmt: failed to fetch volume file (key:testvol2)<br><br></div><div>Can you please cross-check on this ?<br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>--Humble<br></div><br></div></div></div>
<br><div class="gmail_quote">On Thu, Mar 26, 2015 at 4:30 AM, Behrooz Shafiee <span dir="ltr">&lt;<a href="mailto:shafiee01@gmail.com" target="_blank">shafiee01@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello everyone, <br><br></div> I want to use libgfapi c api in my code. I have installed glusterfs on my host with two bricks and created a volume called &#39;testvol&#39;; however, in my code &#39;glfs_init&#39; fails with -1 when I run my program without sudo access. If I run it as root it will connect fine. I saw an email in the mailing list with this solution:<br clear="all"><div><div>1. add ” option rpc-auth-allow-insecure on” to *.vol file<br>2. set &lt;volname&gt; server.allow-insecure on<br>3. stop and start the volume<br><br></div><div>so I added ” option rpc-auth-allow-insecure on” to every .vol file in /var/lib/glusterd/vols/testvol including (testvol.IP.media-behrooz-Backup-gluster-brick1.vol  testvol-rebalance.vol  trusted-testvol.tcp-fuse.vol<br>testvol.IP.media-behrooz-Backup-gluster-brick2.vol  testvol.tcp-fuse.vol) as well as /etc/glusterfs/glusterd.vol. And also set testvol server.allow-insecure on and stop and start. Here is the info of my volume:<br><br>Volume Name: testvol<br>Type: Replicate<br>Volume ID: 3754bf24-d6b0-4af7-a4c9-d2a63c55455c<br>Status: Started<br>Number of Bricks: 1 x 2 = 2<br>Transport-type: tcp<br>Bricks:<br>Brick1: IP:/media/behrooz/Backup/gluster/brick1<br>Brick2: IP:/media/behrooz/Backup/gluster/brick2<br>Options Reconfigured:<br>server.allow-insecure: on<br>auth.allow: *<br><br></div><div>But still no luck and here is what I see in my program output:<br>[2015-03-25 22:50:08.079273] W [socket.c:611:__socket_rwv] 0-gfapi: readv on <a href="http://129.97.170.232:24007" target="_blank">129.97.170.232:24007</a> failed (No data available)<br>[2015-03-25 22:50:08.079806] E [rpc-clnt.c:362:saved_frames_unwind] (--&gt; /usr/lib/x86_64-linux-gnu/libglusterfs.so.0(_gf_log_callingfn+0x186)[0x7fdb253f3da6] (--&gt; /usr/lib/x86_64-linux-gnu/libgfrpc.so.0(saved_frames_unwind+0x1de)[0x7fdb2589cc7e] (--&gt; /usr/lib/x86_64-linux-gnu/libgfrpc.so.0(saved_frames_destroy+0xe)[0x7fdb2589cd8e] (--&gt; /usr/lib/x86_64-linux-gnu/libgfrpc.so.0(rpc_clnt_connection_cleanup+0x82)[0x7fdb2589e602] (--&gt; /usr/lib/x86_64-linux-gnu/libgfrpc.so.0(rpc_clnt_notify+0x48)[0x7fdb2589ed98] ))))) 0-gfapi: forced unwinding frame type(GlusterFS Handshake) op(GETSPEC(2)) called at 2015-03-25 22:50:08.079120 (xid=0x1)<br>[2015-03-25 22:50:08.079884] E [glfs-mgmt.c:599:mgmt_getspec_cbk] 0-glfs-mgmt: failed to fetch volume file (key:testvol2)<br>[2015-03-25 22:50:08.079908] E [glfs-mgmt.c:696:mgmt_rpc_notify] 0-glfs-mgmt: failed to connect with remote-host: IP (No data available)<br>[2015-03-25 22:50:08.079924] I [glfs-mgmt.c:701:mgmt_rpc_notify] 0-glfs-mgmt: Exhausted all volfile servers<br><br><br></div><div>And I use:<br>glusterfs 3.6.2 built on Feb  7 2015 06:29:50<br><br><br><br></div><div>Any help or comment is highly appreciated!<br><br></div><div>Thanks,</div><span class="HOEnZb"><font color="#888888"><div>-- <br><div><div dir="ltr"><font color="#888888">Behrooz</font><br></div></div>
</div></font></span></div></div>
<br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div><br></div>