Giter VIP home page Giter VIP logo

Comments (2)

w675881684 avatar w675881684 commented on August 15, 2024

这个问题还存在啊

暂时无法访问,请联系管理员。

Error: 'NoneType' object has no attribute 'cursor'

Traceback:
Traceback (most recent call last):
File "/root/open-falcon/dashboard/env/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/root/open-falcon/dashboard/env/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "/root/open-falcon/dashboard/rrd/view/portal/alarm.py", line 31, in alarm_dash_case_get
cases, total = EventCase.query(page, limit, endpoint_q, metric_q, status)
File "/root/open-falcon/dashboard/rrd/model/portal/alarm.py", line 90, in query
vs = cls.select_vs(where=where, params=params, page=page, limit=limit, order='update_at desc')
File "/root/open-falcon/dashboard/rrd/model/portal/bean.py", line 105, in select_vs
rows = cls.select(where=where, params=params, order=order, limit=limit, page=page, offset=offset)
File "/root/open-falcon/dashboard/rrd/model/portal/bean.py", line 101, in select
return cls._db.query_all(sql, params)
File "/root/open-falcon/dashboard/rrd/store.py", line 106, in query_all
cursor = self.execute(*a, **kw)
File "/root/open-falcon/dashboard/rrd/store.py", line 71, in execute
cursor = self.get_conn().cursor()
AttributeError: 'NoneType' object has no attribute 'cursor'

from falcon-plus.

iceqing avatar iceqing commented on August 15, 2024

这个需要手工改这个文件dashbard/rrd/config.py

将一下信息替换为你的账户与密码

PORTAL_DB_USER = os.environ.get("PORTAL_DB_USER","账户")
PORTAL_DB_PASS = os.environ.get("PORTAL_DB_PASS","你的密码")

ALARM_DB_USER = os.environ.get("ALARM_DB_USER","账户")
ALARM_DB_PASS = os.environ.get("ALARM_DB_PASS","你的密码")

image

from falcon-plus.

Related Issues (20)

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.