dwang159 / oncall-admin Goto Github PK
View Code? Open in Web Editor NEWUser creation/edit tool for Oncall (https://github.com/linkedin/oncall)
License: BSD 2-Clause "Simplified" License
User creation/edit tool for Oncall (https://github.com/linkedin/oncall)
License: BSD 2-Clause "Simplified" License
Probably related to the latest oncall commits, none of the functions no longer seem to work:
[2019-03-30 14:35:36 +0000] [7155] [ERROR] Error handling request /api/users/
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base_async.py", line 56, in handle
self.handle_request(listener_name, req, client, addr)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/ggevent.py", line 160, in handle_request
addr)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base_async.py", line 107, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/local/lib/python2.7/dist-packages/falcon-1.1.0-py2.7.egg/falcon/api.py", line 209, in call
responder(req, resp, **params)
File "/home/stryker/develop/oncall-admin/src/oncall_admin/api.py", line 88, in on_post
connection = db.engine.raw_connection()
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 2104, in raw_connection
self.pool.unique_connection, _connection)
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 2074, in _wrap_pool_connect
return fn()
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 318, in unique_connection
return _ConnectionFairy._checkout(self)
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 713, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 480, in checkout
rec = pool._do_get()
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 1060, in _do_get
self._dec_overflow()
File "build/bdist.linux-x86_64/egg/sqlalchemy/util/langhelpers.py", line 60, in exit
compat.reraise(exc_type, exc_value, exc_tb)
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 1057, in _do_get
return self._create_connection()
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 323, in _create_connection
return _ConnectionRecord(self)
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 449, in init
self.connection = self.__connect()
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 607, in __connect
connection = self.__pool._invoke_creator(self)
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/strategies.py", line 97, in connect
return dialect.connect(*cargs, **cparams)
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/default.py", line 385, in connect
return self.dbapi.connect(*cargs, **cparams)
File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.7.2-py2.7.egg/pymysql/init.py", line 88, in Connect
return Connection(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.7.2-py2.7.egg/pymysql/connections.py", line 679, in init
self.connect()
File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.7.2-py2.7.egg/pymysql/connections.py", line 890, in connect
self._get_server_information()
File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.7.2-py2.7.egg/pymysql/connections.py", line 1214, in _get_server_information
self.server_charset = charset_by_id(lang).name
File "/usr/local/lib/python2.7/dist-packages/PyMySQL-0.7.2-py2.7.egg/pymysql/charset.py", line 34, in by_id
return self._by_id[id]
KeyError: 255
172.18.100.65 - - [30/Mar/2019:14:35:36 +0800] "POST /api/users/ HTTP/1.1" 500 0 "-" "-"
Hi,
I'm getting the following error:
gunicorn --reload --access-logfile=- -b '0.0.0.0:16652' --worker-class gevent \
-e CONFIG=./configs/config.dev.yaml oncall_admin.gunicorn:application
[2020-08-13 21:10:48 +0000] [19394] [INFO] Starting gunicorn 19.7.1
[2020-08-13 21:10:48 +0000] [19394] [INFO] Listening at: http://0.0.0.0:16652 (19394)
[2020-08-13 21:10:48 +0000] [19394] [INFO] Using worker: gevent
[2020-08-13 21:10:48 +0000] [19398] [INFO] Booting worker with pid: 19398
[2020-08-13 21:10:49 +0000] [19398] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/root/oncall-admin/env/local/lib/python2.7/site-packages/gunicorn-19.7.1-py2.7.egg/gunicorn/arbiter.py", line 578, in spawn_worker
worker.init_process()
File "/root/oncall-admin/env/local/lib/python2.7/site-packages/gunicorn-19.7.1-py2.7.egg/gunicorn/workers/ggevent.py", line 190, in init_process
super(GeventWorker, self).init_process()
File "/root/oncall-admin/env/local/lib/python2.7/site-packages/gunicorn-19.7.1-py2.7.egg/gunicorn/workers/base.py", line 126, in init_process
self.load_wsgi()
File "/root/oncall-admin/env/local/lib/python2.7/site-packages/gunicorn-19.7.1-py2.7.egg/gunicorn/workers/base.py", line 135, in load_wsgi
self.wsgi = self.app.wsgi()
File "/root/oncall-admin/env/local/lib/python2.7/site-packages/gunicorn-19.7.1-py2.7.egg/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/root/oncall-admin/env/local/lib/python2.7/site-packages/gunicorn-19.7.1-py2.7.egg/gunicorn/app/wsgiapp.py", line 65, in load
return self.load_wsgiapp()
File "/root/oncall-admin/env/local/lib/python2.7/site-packages/gunicorn-19.7.1-py2.7.egg/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
return util.import_app(self.app_uri)
File "/root/oncall-admin/env/local/lib/python2.7/site-packages/gunicorn-19.7.1-py2.7.egg/gunicorn/util.py", line 352, in import_app
__import__(module)
File "/root/oncall-admin/env/local/lib/python2.7/site-packages/gevent-1.1.2-py2.7-linux-x86_64.egg/gevent/builtins.py", line 93, in __import__
result = _import(*args, **kwargs)
File "/root/oncall-admin/src/oncall_admin/gunicorn.py", line 1, in <module>
from oncall_admin.api import get_app
File "/root/oncall-admin/env/local/lib/python2.7/site-packages/gevent-1.1.2-py2.7-linux-x86_64.egg/gevent/builtins.py", line 93, in __import__
result = _import(*args, **kwargs)
File "/root/oncall-admin/src/oncall_admin/api.py", line 4, in <module>
import ujson
File "/root/oncall-admin/env/local/lib/python2.7/site-packages/gevent-1.1.2-py2.7-linux-x86_64.egg/gevent/builtins.py", line 93, in __import__
result = _import(*args, **kwargs)
File "build/bdist.linux-x86_64/egg/ujson.py", line 7, in <module>
File "build/bdist.linux-x86_64/egg/ujson.py", line 6, in __bootstrap__
ImportError: /root/.cache/Python-Eggs/ujson-1.35-py2.7-linux-x86_64.egg-tmp/ujson.so: undefined symbol: Buffer_AppendShortHexUnchecked
[2020-08-13 21:10:49 +0000] [19398] [INFO] Worker exiting (pid: 19398)
[2020-08-13 21:10:49 +0000] [19394] [INFO] Shutting down: Master
[2020-08-13 21:10:49 +0000] [19394] [INFO] Reason: Worker failed to boot.
Makefile:4: recipe for target 'serve' failed
make: *** [serve] Error 3
How can I fix it?
Is it possible to start oncall-admin behind a reverse proxy location ?
For example I want to access oncall-admin on /admin url.
I didn't find how to configure nginx reverse proxy or gunicorn parameters to rewrite rules correctly. (ie static files and api urls)
hello, can you put the sample config.dev.yaml file please. the configs directory is missing
The Oncall Admin config contains the following line
disable_auth: True
Giving the impression that setting this to false will require login to access. Unfortunately this doesn't do that. As far as I can tell this option does nothing and there are no Auth files and no "Login Splash" files in this repo. Is this something that's being added? or am I missing something?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.