Answer the question
In order to leave comments, you need to log in
How to fix error when running uwsgi conf.ini: "socket.error: [Errno 98] Address already in use"?
I want to check the work of uwsgi: I write a command sudo uwsgi freechips.ini
and get the following:
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
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question