Giter VIP home page Giter VIP logo

zbn's Issues

en locale

How to enable en locale in its default dashboard?

docker运行报错

docker的方式运行项目,登陆页面可以正常显示,但是当用默认的admin和12345678登陆的时候,会报错
Error: Request failed with status code 500(前端的报错,进入docker后台日志无错误)

剧本执行报错

run_exec(socket=socket, uuid=uuid)
File "core.py", line 138, in core.run_exec
File "core.py", line 69, in core.get_app_data
File "core.py", line 50, in core.execute
UnboundLocalError: local variable 'import_path' referenced before assignment

点击开始按钮后,报错信息如上。烦请支持。

image

剧本执行报错。

生成了一个端口扫描的剧本执行没反应?后台看有报错提示

  • Welcome to ZBN SOAR service
    ===========================
  • Web : https://zbn.io
  • Github : https://github.com/zbnio/zbn
    ===========================
  • Running on http://0.0.0.0:8888/ (Press CTRL+C to quit)
    Traceback (most recent call last):
    File "C:\Program Files\Python37\lib\site-packages\gevent\pywsgi.py", line 970, in handle_one_response self.run_application()
    File "C:\Program Files\Python37\lib\site-packages\geventwebsocket\handler.py", line 75, in run_application self.run_websocket()
    File "C:\Program Files\Python37\lib\site-packages\geventwebsocket\handler.py", line 52, in run_websocket
    list(self.application(self.environ, lambda s, h, e=None: [])) File "C:\Program Files\Python37\lib\site-packages\flask\app.py", line 2464, in__call__ return self.wsgi_app(environ, start_response)
    File "C:\Program Files\Python37\lib\site-packages\flask_sockets.py", line 45,in __call__handler(environment, **values)
    File "D:\software\ZBN\app\handler\workflow\view.py", line 113, in echo_socket run_exec(socket=socket, uuid=uuid)
    File "core.py", line 138, in core.run_exec
    File "core.py", line 69, in core.get_app_data
    File "core.py", line 50, in core.execute
    UnboundLocalError: local variable 'import_path' referenced before assignment2020-11-16T05:01:05Z {'REMOTE_ADDR': '192.168.10.200', 'REMOTE_PORT': '52564', 'HTTP_HOST': '192.168.10.222:8888', (hidden keys: 32)} failed with UnboundLocalError

项目首次运行报错

ImportError: /root/zbn/app/core/linux/core.so: undefined symbol: PyInterpreterState_GetID

image

系统:Ubuntu 18.04.3 LTS
python 版本:3.6.9(是不是一定要3.7才能用?)

后台登录访问仪表盘报错

点击仪表盘报错:Error: Request failed with status code 500
报错日志:
Traceback (most recent call last): File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/python3/lib/python3.7/site-packages/flask_cors/extension.py", line 165, in wrapped_function return cors_after_request(app.make_response(f(*args, **kwargs))) File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/python3/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise raise value File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/export/Packages/zbn/app/handler/dashboard/view.py", line 67, in get_dashboard_exec exec_data = db.select(sql) File "/usr/local/python3/lib/python3.7/site-packages/orator/connections/connection.py", line 35, in _run e, query, bindings, wrapped File "/usr/local/python3/lib/python3.7/site-packages/orator/connections/connection.py", line 357, in _try_again_if_caused_by_lost_connection raise QueryException(query, bindings, e) orator.exceptions.query.QueryException: (1055, "Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'zbn_db.zbn_logs.create_time' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by") (SQL: SELECT DATE_FORMAT(create_time, '%%m-%%d') as timex, count(id) as value FROM zbn_logs WHERE DATE(create_time) > DATE_SUB(CURDATE(), INTERVAL 7 DAY) GROUP BY DATE(create_time); (None))

运行出错

第一次登陆的时候就报错:
* Running on http://0.0.0.0:8888/ (Press CTRL+C to quit)
[2020-11-16 11:17:02,411] ERROR in app: Exception on /api/v1/login [POST]
Traceback (most recent call last):
File "D:\python\python37\lib\site-packages\flask_sockets.py", line 40, in call
handler, values = adapter.match()
File "D:\python\python37\lib\site-packages\werkzeug\routing.py", line 1945, in match
raise NotFound()
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

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.