I?ve been trying to setup geo-replication using Gluster 3.7.3 on OEL 6.5 It keeps giving me faulty session. I?ve tried to use root user instead, it works fine! I?ve followed literally the documentation but no luck getting the unprivileged user working. I?ve tried running /usr/libexec/glusterfs/gsyncd on the slave node using the unprivileged user, and that?s what I get. /usr/libexec/glusterfs/gsyncd --session-owner ef9ccae5-0def-4a47-9a96-881a1896755c -N --listen --timeout 120 gluster://localhost:vol01dr <gluster://localhost:vol01dr> [2016-03-29 00:52:49.058244] I [cli.c:720:main] 0-cli: Started running /usr/sbin/gluster with version 3.7.3 [2016-03-29 00:52:49.058297] I [cli.c:608:cli_rpc_init] 0-cli: Connecting to remote glusterd at localhost [2016-03-29 00:52:49.174686] I [MSGID: 101190] [event-epoll.c:632:event_dispatch_epoll_worker] 0-epoll: Started thread with index 1 [2016-03-29 00:52:49.174768] I [socket.c:2409:socket_event_handler] 0-transport: disconnecting now [2016-03-29 00:52:49.177482] I [cli-rpc-ops.c:6230:gf_cli_getwd_cbk] 0-cli: Received resp to getwd [2016-03-29 00:52:49.177545] I [input.c:36:cli_batch] 0-: Exiting with: 0 ERROR:root:FAIL: Traceback (most recent call last): File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 165, in main main_i() File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 638, in main_i startup(go_daemon=go_daemon, log_file=log_file, label=label) File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 144, in startup GLogger._gsyncd_loginit(**kw) File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 107, in _gsyncd_loginit cls.setup(label=kw.get('label'), **lkw) File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 79, in setup logging_handler = handlers.WatchedFileHandler(lprm['filename']) File "/usr/lib64/python2.6/logging/handlers.py", line 377, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.6/logging/__init__.py", line 835, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib64/python2.6/logging/__init__.py", line 854, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/var/log/glusterfs/geo-replication-slaves/mbr/ef9ccae5-0def-4a47-9a96-881a1896755c:gluster%3A%2F%2F127.0.0.1%3Avol01dr.log' failed with IOError. ? Bishoy -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20160329/713362c6/attachment.html>
Serkan Çoban
2016-Mar-29 07:28 UTC
[Gluster-users] geo-replication unprivileged user error
I think you should give write permission for your user to /var/log/glusterfs directory. The error says it cannot write there.. On Tue, Mar 29, 2016 at 10:21 AM, Gmail <b.s.mikhael at gmail.com> wrote:> I?ve been trying to setup geo-replication using Gluster 3.7.3 on OEL 6.5 > It keeps giving me faulty session. > I?ve tried to use root user instead, it works fine! > > I?ve followed literally the documentation but no luck getting the > unprivileged user working. > > I?ve tried running /usr/libexec/glusterfs/gsyncd on the slave node using the > unprivileged user, and that?s what I get. > > /usr/libexec/glusterfs/gsyncd --session-owner > ef9ccae5-0def-4a47-9a96-881a1896755c -N --listen --timeout 120 > gluster://localhost:vol01dr > [2016-03-29 00:52:49.058244] I [cli.c:720:main] 0-cli: Started running > /usr/sbin/gluster with version 3.7.3 > [2016-03-29 00:52:49.058297] I [cli.c:608:cli_rpc_init] 0-cli: Connecting to > remote glusterd at localhost > [2016-03-29 00:52:49.174686] I [MSGID: 101190] > [event-epoll.c:632:event_dispatch_epoll_worker] 0-epoll: Started thread with > index 1 > [2016-03-29 00:52:49.174768] I [socket.c:2409:socket_event_handler] > 0-transport: disconnecting now > [2016-03-29 00:52:49.177482] I [cli-rpc-ops.c:6230:gf_cli_getwd_cbk] 0-cli: > Received resp to getwd > [2016-03-29 00:52:49.177545] I [input.c:36:cli_batch] 0-: Exiting with: 0 > ERROR:root:FAIL: > Traceback (most recent call last): > File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 165, in > main > main_i() > File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 638, in > main_i > startup(go_daemon=go_daemon, log_file=log_file, label=label) > File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 144, in > startup > GLogger._gsyncd_loginit(**kw) > File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 107, in > _gsyncd_loginit > cls.setup(label=kw.get('label'), **lkw) > File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 79, in > setup > logging_handler = handlers.WatchedFileHandler(lprm['filename']) > File "/usr/lib64/python2.6/logging/handlers.py", line 377, in __init__ > logging.FileHandler.__init__(self, filename, mode, encoding, delay) > File "/usr/lib64/python2.6/logging/__init__.py", line 835, in __init__ > StreamHandler.__init__(self, self._open()) > File "/usr/lib64/python2.6/logging/__init__.py", line 854, in _open > stream = open(self.baseFilename, self.mode) > IOError: [Errno 13] Permission denied: > '/var/log/glusterfs/geo-replication-slaves/mbr/ef9ccae5-0def-4a47-9a96-881a1896755c:gluster%3A%2F%2F127.0.0.1%3Avol01dr.log' > failed with IOError. > > > ? Bishoy > > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://www.gluster.org/mailman/listinfo/gluster-users
Geo-replication command should be run as privileged user itself. gluster volume geo-replication <MASTERVOL> <SLAVEUSER>@<SLAVEHOST> start and then check the status, if it shows Faulty then please share the log files present in /var/log/glusterfs/geo-replication/<MASTERVOL>/*.log regards Aravinda On 03/29/2016 12:51 PM, Gmail wrote:> I?ve been trying to setup geo-replication using Gluster 3.7.3 on OEL 6.5 > It keeps giving me faulty session. > I?ve tried to use root user instead, it works fine! > > I?ve followed literally the documentation but no luck getting the > unprivileged user working. > > I?ve tried running /usr/libexec/glusterfs/gsyncd on the slave node > using the unprivileged user, and that?s what I get. > > /usr/libexec/glusterfs/gsyncd --session-owner > ef9ccae5-0def-4a47-9a96-881a1896755c -N --listen --timeout 120 > gluster://localhost:vol01dr > [2016-03-29 00:52:49.058244] I [cli.c:720:main] 0-cli: Started running > /usr/sbin/gluster with version 3.7.3 > [2016-03-29 00:52:49.058297] I [cli.c:608:cli_rpc_init] 0-cli: > Connecting to remote glusterd at localhost > [2016-03-29 00:52:49.174686] I [MSGID: 101190] > [event-epoll.c:632:event_dispatch_epoll_worker] 0-epoll: Started > thread with index 1 > [2016-03-29 00:52:49.174768] I [socket.c:2409:socket_event_handler] > 0-transport: disconnecting now > [2016-03-29 00:52:49.177482] I [cli-rpc-ops.c:6230:gf_cli_getwd_cbk] > 0-cli: Received resp to getwd > [2016-03-29 00:52:49.177545] I [input.c:36:cli_batch] 0-: Exiting with: 0 > ERROR:root:FAIL: > Traceback (most recent call last): > File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 165, > in main > main_i() > File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 638, > in main_i > startup(go_daemon=go_daemon, log_file=log_file, label=label) > File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 144, > in startup > GLogger._gsyncd_loginit(**kw) > File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 107, > in _gsyncd_loginit > cls.setup(label=kw.get('label'), **lkw) > File "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 79, > in setup > logging_handler = handlers.WatchedFileHandler(lprm['filename']) > File "/usr/lib64/python2.6/logging/handlers.py", line 377, in __init__ > logging.FileHandler.__init__(self, filename, mode, encoding, delay) > File "/usr/lib64/python2.6/logging/__init__.py", line 835, in __init__ > StreamHandler.__init__(self, self._open()) > File "/usr/lib64/python2.6/logging/__init__.py", line 854, in _open > stream = open(self.baseFilename, self.mode) > IOError: [Errno 13] Permission denied: > '/var/log/glusterfs/geo-replication-slaves/mbr/ef9ccae5-0def-4a47-9a96-881a1896755c:gluster%3A%2F%2F127.0.0.1%3Avol01dr.log' > failed with IOError. > > > *? Bishoy* > > > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://www.gluster.org/mailman/listinfo/gluster-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20160329/294c788a/attachment.html>