Хочу проверить работу uwsgi: пишу команду
sudo uwsgi freechips.ini
и получаю следующее:
Traceback (most recent call last):
File "/home/webuser/fcprj/fcapp/reqrpc.py", line 138, in <module>
sys.exit(main())
File "/home/webuser/fcprj/fcapp/reqrpc.py", line 133, in main
server = XMLRPCServer(('localhost', 4783))
File "/home/webuser/fcprj/fcapp/reqrpc.py", line 42, in __init__
bind_and_activate,
File "/usr/lib/python2.7/SocketServer.py", line 417, in __init__
self.server_bind()
File "/usr/lib/python2.7/SocketServer.py", line 431, in server_bind
self.socket.bind(self.server_address)
File "<string>", line 1, in bind
socket.error: [Errno 98] Address already in use
Вот мой конфигурационный файл : freechips.ini
plugins = python27
virtualenv = /home/webuser/venv
chdir = /home/webuser/fcprj
# python-path = /home/webuser/fcprj
pythonpath= /home/webuser/fcprj/fcprj/settings.py/
env = DJANGO_SETTINGS_MODULE=fcprj.production
module = fcprj.wsgi
uid = webuser
gid = www-data
# daemonize = /var/log/uwsgi/app/freechips/freechips.log
cron2 = minute=0 /home/webuser/venv/bin/python /home/webuser/fcprj/manage.py update_ranks
attach-daemon = /home/webuser/venv/bin/python /home/webuser/fcprj/fcapp/reqrpc.py
plugin = spooler
spooler = /home/webuser/fcprj/spooler
spooler-python-import = django_uwsgi.task
spooler-python-import = fcapp.tasks
attach-daemon = /home/webuser/venv/bin/uwsgi --python-path /home/webuser/fcprj --module fcapp.sseapp --socket /tmp/fcsse --gevent --gevent-monkey-patch --async 1000
offload-threads = 1
collect-header = X-Offload-to-SSE X_OFFLOAD
response-route-if-not = empty:${X_OFFLOAD} disableheaders:
response-route-if-not = empty:${X_OFFLOAD} uwsgi:/tmp/fcsse,0,0
autoload = true
master = true
enable-threads = true
processes = 4
threads = 2
thunder-lock = true
workers = 2
pidfile = /tmp/freechips.pid
socket = /tmp/freechips.socket
chmod-socket = 660
log-date = true
uid = webuser
gid = www-data
# logger = file:/var/log/uwsgi/app/freechips/freechips.log
# hook-as-root=exec:mkdir -vp /var/run/uwsgi/app/freechips; chown -R webuser:www-data /var/run/uwsgi
Я менял разные порты в файле /home/webuser/fcprj/fcapp/reqrpc.py но ошибка та же