[uWSGI] unable to load pypy library: libpypy-c.so: cannot open shared object file: No such file or directory
I thought uwsgi was supposed out of the box but it does not. This is how I install /opt/pypy3/bin/pip3 install uwsgi==2.0.18 So I was under i build with pypy it will work. Did does not. I even added the below to my yaml file: pypy-lib: /opt/pypy3/bin/libpypy-c.so uwsgi: pidfile: /var/run/<%=@server_type%>.pid loop: gevent gevent: 100 socket: 127.0.0.1:8030 processes: <%= node["cpu"]["total"] %> b: 32768 master: true enable-threads: true pypy-lib: /opt/pypy3/bin/libpypy-c.so listen: 100 logto2: /tmp/<%=@server_type %>.log touch-reload: /var/geoaiServer<%=@Server_type%>/wsgi.py master-fifo: /tmp/uwsgi_api_master_fifo wsgi-file: /var/geoaiServer<%=@Server_type%>/wsgi.py pp: [/var/geoaiServer<%=@Server_type%>] logformat: {"city":"%(city)","region_name":"%(region_name)","time_zone" :"%(time_zone)","longitude":"%(longitude)","latitude":"%(latitude)", "country_code":"%(country_code)","country_name":"%(country_name)","region" :"%(region)","forwarded":"%(forwarded)","STATUS_CODE":"%(status)", "REQUEST_CONTENT_BODY_SIZE":"%(cl)","switches":"%(switches)","UNIX_TIME" :"%(epoch)","HTTP_REFERER":"%(referer)","HTTP_USER_AGENT":"%(uagent)", "REQUEST_URI":"%(uri)","REQUEST_METHOD":" %(method)","REMOTE_USER" :"%(user)","REMOTE_ADDR":"%(addr)","HTTP_HOST":"%(host)","SERVER_PROTOCOL" :"%(proto)"} your processes number limit is 64064 your memory page size is 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8030 fd 3 uWSGI running as root, you can use --uid/--gid/--chroot options *** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** unable to load pypy library: /opt/pypy3/bin/libpypy-c.so: cannot open shared object file: No such file or directory ___ uWSGI mailing list uWSGI@lists.unbit.it http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
Re: [uWSGI] uWSGI will not start
ps I increased the below sysctl -w net.core.somaxconn=1 Now I get unable to load pypy library: /opt/pypy3/bin/libpypy-c.so: cannot open shared object file: No such file or directory even though I added the below to supervisor: environment=PYTHONPATH=/var/geoaiServer<%=@Server_type%>,LD_LIBRARY_PATH= /opt/pypy3/bin/libpypy-c.so On Sat, Apr 6, 2019 at 7:25 PM David Montgomery wrote: > Why? I dont get it. Below are the limits I set on ubuntu 18.04 > > cat /proc/sys/fs/file-max > 20 > > ulimit -Hn > 10 > > ulimit -Sn > 10 > > ulimit > unlimited > > Here is my yaml file: > > uwsgi: > pidfile: /var/run/<%=@server_type%>.pid > loop: gevent > gevent: 20 > socket: 127.0.0.1:8030 > processes: <%= node["cpu"]["total"] %> > b: 32768 > master: true > enable-threads: true > pypy-lib: /opt/pypy3/bin/libpypy-c.so > listen: 1024 > logto2: /tmp/<%=@server_type %>.log > touch-reload: /var/geoaiServer<%=@Server_type%>/wsgi.py > master-fifo: /tmp/uwsgi_api_master_fifo > wsgi-file: /var/geoaiServer<%=@Server_type%>/wsgi.py > pp: [/var/geoaiServer<%=@Server_type%>] > > > > > your processes number limit is 64064 > > your memory page size is 4096 bytes > > detected max file descriptor number: 1024 > > lock engine: pthread robust mutexes > > thunder lock: disabled (you can enable it with --thunder-lock) > > Listen queue size is greater than the system max net.core.somaxconn (128). > > your processes number limit is 64064 > > your memory page size is 4096 bytes > > detected max file descriptor number: 1024 > > lock engine: pthread robust mutexes > > thunder lock: disabled (you can enable it with --thunder-lock) > > Listen queue size is greater than the system max net.core.somaxconn (128). > > your processes number limit is 64064 > > your memory page size is 4096 bytes > > detected max file descriptor number: 1024 > > lock engine: pthread robust mutexes > > thunder lock: disabled (you can enable it with --thunder-lock) > > Listen queue size is greater than the system max net.core.somaxconn (128). > > your processes number limit is 64064 > > your memory page size is 4096 bytes > > detected max file descriptor number: 1024 > > lock engine: pthread robust mutexes > > thunder lock: disabled (you can enable it with --thunder-lock) > > Listen queue size is greater than the system max net.core.somaxconn (128). > ___ uWSGI mailing list uWSGI@lists.unbit.it http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
[uWSGI] uWSGI will not start
Why? I dont get it. Below are the limits I set on ubuntu 18.04 cat /proc/sys/fs/file-max 20 ulimit -Hn 10 ulimit -Sn 10 ulimit unlimited Here is my yaml file: uwsgi: pidfile: /var/run/<%=@server_type%>.pid loop: gevent gevent: 20 socket: 127.0.0.1:8030 processes: <%= node["cpu"]["total"] %> b: 32768 master: true enable-threads: true pypy-lib: /opt/pypy3/bin/libpypy-c.so listen: 1024 logto2: /tmp/<%=@server_type %>.log touch-reload: /var/geoaiServer<%=@Server_type%>/wsgi.py master-fifo: /tmp/uwsgi_api_master_fifo wsgi-file: /var/geoaiServer<%=@Server_type%>/wsgi.py pp: [/var/geoaiServer<%=@Server_type%>] your processes number limit is 64064 your memory page size is 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) Listen queue size is greater than the system max net.core.somaxconn (128). your processes number limit is 64064 your memory page size is 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) Listen queue size is greater than the system max net.core.somaxconn (128). your processes number limit is 64064 your memory page size is 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) Listen queue size is greater than the system max net.core.somaxconn (128). your processes number limit is 64064 your memory page size is 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) Listen queue size is greater than the system max net.core.somaxconn (128). ___ uWSGI mailing list uWSGI@lists.unbit.it http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi