Score:0

uwSGI as service

gy flag
s79

Version: Linux: Ubuntu 20.04.3 LTS uwsgi: 2.0.18-debian

I have this config "/etc/uwsgi/lemonldap.ini":

[uwsgi]
plugins = psgi
socket = 127.0.0.1:5000
psgi = /usr/share/lemonldap-ng/llng-server/llng-server.psgi
master = true
processes = 5
single-interpreter = true
uid = www-data
gid = www-data
vacuum = true
daemonize=/var/log/lemonldap-ng/lemonldap_trace.log
chown-socket = www-data:www-data
chmod-socket = 660

This config work when I use command "uwsgi --ini /etc/uwsgi/lemonldap.ini" I make service config:

[Unit]
    Description=LemonLdap
[Service]
    Environment=LLNG_DEFAULTCONFFILE=/etc/lemonldap-ng/lemonldap-ng.ini
    ExecStart=/usr/bin/uwsgi --ini /etc/uwsgi/lemonldap.ini
    KillSignal=SIGQUIT
    Type=forking
    NotifyAccess=all
    User=www-data
    Group=www-data
[Install]
    WantedBy=multi-user.target

I try start it, but get:


● ulemonldap.service - LemonLdap
     Loaded: loaded (/lib/systemd/system/ulemonldap.service; enabled; vendor preset: enabled)
     Active: inactive (dead) since Tue 2021-11-23 02:25:05 UTC; 3min 18s ago
    Process: 319431 ExecStart=/usr/bin/uwsgi --ini /etc/uwsgi/lemonldap.ini (code=exited, status=0/SUCCESS)
   Main PID: 319441 (code=exited, status=0/SUCCESS)
     Status: "initializing uWSGI"

Nov 23 02:25:05 rproxy systemd[1]: ulemonldap.service: Failed to read oom_kill field of memory.events cgroup attribute: No such file o
r directory
Nov 23 02:25:05 rproxy systemd[1]: ulemonldap.service: Child 319441 belongs to ulemonldap.service.
Nov 23 02:25:05 rproxy systemd[1]: ulemonldap.service: Main process exited, code=exited, status=0/SUCCESS
Nov 23 02:25:05 rproxy systemd[1]: ulemonldap.service: Changed running -> stop-sigterm
Nov 23 02:25:05 rproxy systemd[1]: ulemonldap.service: Failed to read oom_kill field of memory.events cgroup attribute: No such file or directory
Nov 23 02:25:05 rproxy systemd[1]: ulemonldap.service: Child 319442 belongs to ulemonldap.service.
Nov 23 02:25:05 rproxy systemd[1]: ulemonldap.service: Control group is empty.
Nov 23 02:25:05 rproxy systemd[1]: ulemonldap.service: Succeeded.
Nov 23 02:25:05 rproxy systemd[1]: ulemonldap.service: Service will not restart (restart setting)
Nov 23 02:25:05 rproxy systemd[1]: ulemonldap.service: Changed stop-sigterm -> dead

On version "Ubuntu 20.04.1 LTS" and "uwsgi: 2.0.18-debian", almost identical service (diff only user) work without problem.

What am I doing wrong? And what does it mean: "Failed to read oom_kill field of memory.events cgroup attribute: No such file or directory"

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.