nevermind, fixed it and created pull request on github filename / makefile problems Am 07.11.2017 um 10:51 schrieb InterNetX - Juergen Gotteswinter: > Hi, > > i am currently struggling around with gluster restapi (not heketi), > somehow i am a bit stuck. During startup of glusterrestd service it > drops some python errors, heres a error log output with increased loglevel. > > Maybe someone can give me a hint how to fix this > > -- snip -- > [2017-11-07 10:29:04 +0000] [30982] [DEBUG] Current configuration: > proxy_protocol: False > worker_connections: 1000 > statsd_host: None > max_requests_jitter: 0 > post_fork: <function post_fork at 0x28470c8> > errorlog: /var/log/glusterrest/errors.log > enable_stdio_inheritance: False > worker_class: sync > ssl_version: 2 > suppress_ragged_eofs: True > syslog: False > syslog_facility: user > when_ready: <function when_ready at 0x2842d70> > pre_fork: <function pre_fork at 0x2842ed8> > cert_reqs: 0 > preload_app: False > keepalive: 2 > accesslog: /var/log/glusterrest/access.log > group: 0 > graceful_timeout: 30 > do_handshake_on_connect: False > spew: False > workers: 2 > proc_name: None > sendfile: None > pidfile: /var/run/glusterrest.pid > umask: 0 > on_reload: <function on_reload at 0x2842c08> > pre_exec: <function pre_exec at 0x2847668> > worker_tmp_dir: None > limit_request_fields: 100 > pythonpath: None > on_exit: <function on_exit at 0x2847e60> > config: /usr/local/etc/glusterrest/gunicorn_config.py > logconfig: None > check_config: False > statsd_prefix: > secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', > 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'} > reload_engine: auto > proxy_allow_ips: ['127.0.0.1'] > pre_request: <function pre_request at 0x28477d0> > post_request: <function post_request at 0x28478c0> > forwarded_allow_ips: ['127.0.0.1'] > worker_int: <function worker_int at 0x2847398> > raw_paste_global_conf: [] > threads: 1 > max_requests: 0 > chdir: /usr/libexec/glusterfs/glusterrest > daemon: False > user: 0 > limit_request_line: 4094 > access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" > "%(a)s" > certfile: None > on_starting: <function on_starting at 0x2842aa0> > post_worker_init: <function post_worker_init at 0x2847230> > child_exit: <function child_exit at 0x2847a28> > worker_exit: <function worker_exit at 0x2847b90> > paste: None > default_proc_name: main:app > syslog_addr: udp://localhost:514 > syslog_prefix: None > ciphers: TLSv1 > worker_abort: <function worker_abort at 0x2847500> > loglevel: debug > bind: [':8080'] > raw_env: [] > initgroups: False > capture_output: False > reload: False > limit_request_field_size: 8190 > nworkers_changed: <function nworkers_changed at 0x2847cf8> > timeout: 30 > keyfile: None > ca_certs: None > tmp_upload_dir: None > backlog: 2048 > logger_class: gunicorn.glogging.Logger > [2017-11-07 10:29:04 +0000] [30982] [INFO] Starting gunicorn 19.7.1 > [2017-11-07 10:29:04 +0000] [30982] [DEBUG] Arbiter booted > [2017-11-07 10:29:04 +0000] [30982] [INFO] Listening at: > http://0.0.0.0:8080 (30982) > [2017-11-07 10:29:04 +0000] [30982] [INFO] Using worker: sync > [2017-11-07 10:29:04 +0000] [30991] [INFO] Booting worker with pid: 30991 > [2017-11-07 10:29:04 +0000] [30991] [ERROR] Exception in worker process > Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 578, > in spawn_worker > worker.init_process() > File "/usr/lib/python2.7/site-packages/gunicorn/workers/base.py", line > 126, in init_process > self.load_wsgi() > File "/usr/lib/python2.7/site-packages/gunicorn/workers/base.py", line > 135, in load_wsgi > self.wsgi = self.app.wsgi() > File "/usr/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, > in wsgi > self.callable = self.load() > File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line > 65, in load > return self.load_wsgiapp() > File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line > 52, in load_wsgiapp > return util.import_app(self.app_uri) > File "/usr/lib/python2.7/site-packages/gunicorn/util.py", line 352, in > import_app > __import__(module) > ImportError: No module named main > [2017-11-07 10:29:04 +0000] [30991] [INFO] Worker exiting (pid: 30991) > [2017-11-07 10:29:04 +0000] [30982] [INFO] Shutting down: Master > [2017-11-07 10:29:04 +0000] [30993] [INFO] Booting worker with pid: 30993 > [2017-11-07 10:29:04 +0000] [30982] [INFO] Reason: Worker failed to boot. > [2017-11-07 10:29:04 +0000] [30993] [ERROR] Exception in worker process > Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 578, > in spawn_worker > worker.init_process() > File "/usr/lib/python2.7/site-packages/gunicorn/workers/base.py", line > 126, in init_process > self.load_wsgi() > File "/usr/lib/python2.7/site-packages/gunicorn/workers/base.py", line > 135, in load_wsgi > self.wsgi = self.app.wsgi() > File "/usr/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, > in wsgi > self.callable = self.load() > File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line > 65, in load > return self.load_wsgiapp() > File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line > 52, in load_wsgiapp > return util.import_app(self.app_uri) > File "/usr/lib/python2.7/site-packages/gunicorn/util.py", line 352, in > import_app > __import__(module) > ImportError: No module named main > [2017-11-07 10:29:04 +0000] [30993] [INFO] Worker exiting (pid: 30993) > -- snip -- > > > another thing which drops an error message is "gluster-restapi" > > root@node2 ~]# gluster-restapi -h > Traceback (most recent call last): > File "/usr/local/sbin/gluster-restapi", line 27, in <module> > from glusterrest.conf import APPS_FILE_TO_SYNC, APPS_FILE, \ > ImportError: No module named glusterrest.conf > [root@node2 ~]# > > > so far, i was not able to figure out what exactly is missing in that case. > > > thanks > > Juergen > _______________________________________________ Gluster-users mailing list Gluster-users@xxxxxxxxxxx http://lists.gluster.org/mailman/listinfo/gluster-users