[Rspamd-Users] rspamd_proxy process 37 terminated abnormally
Gerald Galster
list+rspamd at gcore.biz
Thu May 11 18:20:08 UTC 2023
> Norbert Wegener <nwegener at 466buer.de>:
>
> Seems the problem disappears when starting rspamd additionally with option -g rspamd.
>
>> [...]
>> I am new to rspamd and have problems getting it up in a docker container.
>>
>> The log says:
>>
>> 2023-05-10 16:19:28 #36(main) <782d6b>; main; rspamd_fork_worker: prepare to fork process rspamd_proxy (0); listen on: localhost:11332
>> 2023-05-10 16:19:28 #37(rspamd_proxy) <782d6b>; main; rspamd_worker_drop_priv: cannot setgid to -1 (Invalid argument), aborting
For distributions with systemd there is a .service file:
# cat /usr/lib/systemd/system/rspamd.service
[Unit]
Description=rapid spam filtering system
After=nss-lookup.target network-online.target
Documentation=https://rspamd.com/doc/
[Service]
LimitNOFILE=1048576
NonBlocking=true
ExecStart=/usr/bin/rspamd -c /etc/rspamd/rspamd.conf -f
ExecReload=/bin/kill -HUP $MAINPID
User=_rspamd
^^^^^^^^^^^^
RuntimeDirectory=rspamd
RuntimeDirectoryMode=0755
Restart=always
[Install]
WantedBy=multi-user.target
For docker you can either contact the person providing the image
or see how others solve this:
https://github.com/mailcow/mailcow-dockerized/blob/355da03fba1e9e4d3387835108241c6399528e03/data/Dockerfiles/rspamd/Dockerfile
...
CMD ["/usr/bin/rspamd", "-f", "-u", "_rspamd", "-g", "_rspamd"]
Best regards,
Gerald
More information about the Users
mailing list