Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't start the uwsgi server with socket ports #1354

Closed
aibati2008 opened this issue Sep 1, 2016 · 1 comment
Closed

can't start the uwsgi server with socket ports #1354

aibati2008 opened this issue Sep 1, 2016 · 1 comment

Comments

@aibati2008
Copy link

aibati2008 commented Sep 1, 2016

I try to build the web server with nginx+flask+uwsgi , it works fine when I configure http ports, but it can't work when I change to socket ports.

http port config:
**
[uwsgi]

application's base folder

base = /data/scripts/token_server
buffer-size = 65535
post-buffering = 4096

python module to import

app = app_10053
module = %(app)

socket file's location

start port and way

http = 0.0.0.0:10053
socket-timeout=10

chdir = /data/scripts/token_server

the variable that holds a flask application inside the module imported at line #6

callable = app

open viriturl host

vhost = true

setting processes master and son

master = true
processes = 4
threads = 2
listen = 1024

stats = 0.0.0.0:1717

pid file

pidfile = /var/run/uwsgi_10053.pid

location of log files

logto = /data/logs/%n.log
**

I only change "http = 0.0.0.0:10053" to "socket = 0.0.0.0:10053", it return the below error:
image

can anyone knows what's the matter?

@xrmx
Copy link
Collaborator

xrmx commented Sep 1, 2016

Socket is for uwsgi protocol, not http, checkout http-socket. Please don't use github for support requests.

@xrmx xrmx closed this as completed Sep 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants