Python 使用uwsgitop和显示JSONDecodeError的套接字的uWSGI统计

Python 使用uwsgitop和显示JSONDecodeError的套接字的uWSGI统计,python,django,server,uwsgi,uwsgi-stats-server,Python,Django,Server,Uwsgi,Uwsgi Stats Server,我没有使用uwsgitop和套接字获取uwsgi统计数据。我已将uwsgi配置用于socket统计数据,当我尝试使用命令获取统计数据时: uwsgitop /var/www/uwsgi/proj.socket 它抛出了错误 JSONDecodeError: Expecting value: line 1 column 1 (char 0) 我正在使用uwsgi版本2.0.17.1 这是我的uwsgi ini文件 [uwsgi] # Multi Thread Support enable-t

我没有使用uwsgitop和套接字获取uwsgi统计数据。我已将uwsgi配置用于socket统计数据,当我尝试使用命令获取统计数据时:

uwsgitop /var/www/uwsgi/proj.socket
它抛出了错误

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
我正在使用uwsgi版本2.0.17.1

这是我的uwsgi ini文件

[uwsgi]

# Multi Thread Support
enable-threads = true

# Django-related settings
# the base directory (full path)
chdir           = /home/user/base-dir/proj-path/
# Django's wsgi file
module          = proj.wsgi
# the virtualenv (full path)
home            = /home/user/base-path/

# process-related settings
# master
master          = true
# maximum number of worker processes
processes       = 10

socket = /var/www/uwsgi/proj.socket
# ... with appropriate permissions - may be needed
chmod-socket    = 666
# clear environment on exit
vacuum          = true
daemonize = /var/www/uwsgi/uwsgi.log
pidfile = /var/www/uwsgi/uwsgi_hub.pid
logto = /var/log/proj_uwsgi%n.log
uid = user
gid = user
http-auto-gzip = true

memory-report = True

py-tracebacker=/var/www/uwsgi/proj.socket

--stats /var/www/uwsgi/proj.socket

我认为您的配置文件中应该有如下内容:

socket=/var/www/uwsgi/proj.socket

stats=/var/www/uwsgi/stats.socket
我认为您的配置文件中应该有如下内容:

socket=/var/www/uwsgi/proj.socket

stats=/var/www/uwsgi/stats.socket
hi@Claudiu我甚至试过了,但还是不起作用,你为stats socket运行了uwsgitop吗?类似这样的东西:uwsgitop/var/www/uwsgi/stats.sockethi@Claudiu我甚至试过,但仍然不起作用,你是否为stats套接字运行了uwsgitop?类似这样的内容:uwsgitop/var/www/uwsgi/stats.socket