我已经安装了使用 Graphite 和 Graphana 所需的一切
- 更新系统
- 安装软件 (
apt-get install build-essential graphite-web graphite-carbon python-dev apache2 libapache2-mod-wsgi libpq-dev python-psycopg2
) - 配置 Carbon
- 安装和配置 PostgreSQL
- 配置石墨 (
user: graphite, on localhost, engine: django.db.backends.postgresql_psycopg2
) - 在 Apache for Graphite 步骤上:我添加了
<VirtualHost *:8080>
并/etc/apache2/sites-available/apache2-graphite.conf
添加Listen 8080
了/etc/apache2/ports.conf
:a2dissite 000-default
a2ensite apache2-graphite
service apache2 reload
和须藤特权。
问题是,当我进入网络浏览器(localhost:8080)时,它给出了一个错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator at [no address given] to
inform them of the time this error occurred, and the actions you
performed just before this error.
More information about this error may be available in the server error
log.
Apache/2.4.18 (Ubuntu) Server at localhost Port 8080
这应该是 Graphite Web 界面,但它不起作用。Apache、carbon、postgres 正在运行。
任何想法?
答案1
您要检查的两个错误日志是:
/var/log/apache2/error.log
/var/log/apache2/graphite-web_error.log {更有用}
我发现了一些导致出现此错误屏幕的原因。就我而言,我看到“/usr/lib/python2.7/dist-packages/django/db/models/query.py”文件的错误。