[Bugs] [Bug 1649054] glustereventsd does not start on Ubuntu 16.04 LTS

bugzilla at redhat.com bugzilla at redhat.com
Fri Dec 28 04:52:57 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1649054



--- Comment #13 from dchang0 <dchang at silverlakecorp.com> ---
Okay, I just put the original files from source back (using make install) and
then applied your new patches from Attachment #1517165. I'm getting a different
error (probably an easier one to solve).

Strangely, the patch command does not create the .orig files. Perhaps my patch
command is broken or non-standard...


Here are the diffs:

-----

root at datastore2c:/home/pi# diff
/root/glusterfs-5.1/events/src/glustereventsd.py
/usr/local/libexec/glusterfs/events/glustereventsd.py
31c31
< class GlusterEventsRequestHandler(SocketServer.BaseRequestHandler):
---
> class GlusterEventsRequestHandler(socketserver.BaseRequestHandler):
101c101
<         server = SocketServer.ThreadingUDPServer(
---
>         server = socketserver.ThreadingUDPServer(

------

root at datastore2c:/usr/local/libexec# diff 
/root/glusterfs-5.1/events/src/utils.py
/usr/local/libexec/glusterfs/events/utils.py
29,35c29,46
< from .eventsapiconf import (LOG_FILE,
<                            WEBHOOKS_FILE,
<                            DEFAULT_CONFIG_FILE,
<                            CUSTOM_CONFIG_FILE,
<                            UUID_FILE,
<                            CERTS_DIR)
< from . import eventtypes
---
> try:
>     from .eventsapiconf import (LOG_FILE,
>                                 WEBHOOKS_FILE,
>                                 DEFAULT_CONFIG_FILE,
>                                 CUSTOM_CONFIG_FILE,
>                                 UUID_FILE,
>                                 CERTS_DIR)
> except (ImportError, SystemError):
>     from eventsapiconf import (LOG_FILE,
>                                WEBHOOKS_FILE,
>                                DEFAULT_CONFIG_FILE,
>                                CUSTOM_CONFIG_FILE,
>                                UUID_FILE,
>                                CERTS_DIR)
> try:
>     from . import eventtypes
> except (ImportError, SystemError):
>     import eventtypes


-----

Here is the new error when attempting to run:

service glustereventsd start

It appears to be a simple path error (can't find the gluster command).



root at datastore2c:/usr/local/libexec# journalctl -xe
Dec 27 20:46:15 datastore2c glustereventsd[14033]:     import utils
Dec 27 20:46:15 datastore2c glustereventsd[14033]:   File
"/usr/local/libexec/glusterfs/events/utils.py", line 37, in <module>
Dec 27 20:46:15 datastore2c glustereventsd[14033]:     from eventsapiconf
import (LOG_FILE,
Dec 27 20:46:15 datastore2c glustereventsd[14033]:   File
"/usr/local/libexec/glusterfs/events/eventsapiconf.py", line 33, in <modul
Dec 27 20:46:15 datastore2c glustereventsd[14033]:     CUSTOM_CONFIG_FILE =
get_glusterd_workdir() + CUSTOM_CONFIG_FILE_TO_SYNC
Dec 27 20:46:15 datastore2c glustereventsd[14033]:   File
"/usr/local/libexec/glusterfs/events/eventsapiconf.py", line 22, in get_gl
Dec 27 20:46:15 datastore2c glustereventsd[14033]:     universal_newlines =
True)
Dec 27 20:46:15 datastore2c glustereventsd[14033]:   File
"/usr/lib/python3.5/subprocess.py", line 676, in __init__
Dec 27 20:46:15 datastore2c glustereventsd[14033]:     restore_signals,
start_new_session)
Dec 27 20:46:15 datastore2c glustereventsd[14033]:   File
"/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child
Dec 27 20:46:15 datastore2c glustereventsd[14033]:     raise
child_exception_type(errno_num, err_msg)
Dec 27 20:46:15 datastore2c glustereventsd[14033]: FileNotFoundError: [Errno 2]
No such file or directory: 'gluster'
Dec 27 20:46:15 datastore2c systemd[1]: glustereventsd.service: Control process
exited, code=exited status=1
Dec 27 20:46:15 datastore2c systemd[1]: Failed to start LSB: Gluster Events
Server.
-- Subject: Unit glustereventsd.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit glustereventsd.service has failed.
-- 
-- The result is failed.
Dec 27 20:46:15 datastore2c systemd[1]: glustereventsd.service: Unit entered
failed state.
Dec 27 20:46:15 datastore2c systemd[1]: glustereventsd.service: Failed with
result 'exit-code'.


-----

The gluster command is at this path:

root at datastore2c:/usr/local/libexec# which gluster
/usr/local/sbin/gluster


I confirm that it runs insofar as it can put me into the interactive command
line mode and respond to simple commands like help.

Thanks for your help so far. Let me know what I can do to help.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Bugs mailing list