Giter VIP home page Giter VIP logo

oncall-admin's People

Contributors

dwang159 avatar seuf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

oncall-admin's Issues

[ERROR] Error handling request /api/users/

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 "-" "-"

make error

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?

Host oncall-admin behind reverse proxy location

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)

No authorization/login screen for Oncall Admin

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.