Report this

What is the reason for this report?

uwsgi: invalid option -- 'n' getopt_long() error

Posted on April 5, 2018

Hi, Iam stuck. I am following a tutorial “Full stack full stack web application raspberry pi” I am doing well, for a noob. The pi is a zero w with rasbian lite stretch, installed nginx, postgresql, php7, python3, pip, flask, installed uwsgi, The tutorial states ```>cd /var/www/heating/

vim heating_nginx.conf```

the code is

server {
listen
80;
server_name localhost;
charset
utf-8;
client_max_body_size 75M;
location /static {
root /var/www/heating/;
}
location / { try_files $uri @heating; }
location @heating {
include uwsgi_params;
uwsgi_pass unix:/var/www/heating/heating_uwsgi.sock;
}
}
You are configuring an app

and then create the link >ln -s /var/www/lab_app/lab_app_nginx.conf /etc/nginx/conf.d/

and then >vim /var/www/lab_app/lab_app_uwsgi.ini

[uwsgi]
#application’s base folder
base = /var/www/heating
#python module to import
app = hello
module = %(app)
home = %(base)/venv
pythonpath = %(base)
#socket file’s location
socket = /var/www/heating/%n.sock
#permissions for the socket file
chmod-socket
= 666
#the variable that holds a flask application inside the module imported at line #6
callable = app
#location of log files
logto = /var/log/uwsgi/%n.log

then the bit where it all goes wrong:

uwsgi —ini /var/www/heating/heating_uwsgi.ini

here I get the error message uwsgi: invalid option – ‘n’ getopt_long() error

Can any body point me in the right direction Kind regards Paul

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.