Issue with SSE and fcgiwrap in nginx (RESTCONF)
Rostyslav Zalevskyy
rostyslav.z at yumaworks.com
Mon May 19 17:55:03 UTC 2025
Hi Sergey,
Could you please:
>
> - share the `/etc/nginx/nginx.conf' configuration file;
> - describe how do you run `fcgiwrap', please provide as much
> as much details as you can; do not forget to share its
> configuration file as well.
>
> Also, are you using `spawn-fcgi'? If so, please provide arguments
> to launch the `fcgiwrap'.
>
Here are the attached files I could find:
- /etc/nginx/nginx.conf
- /etc/init.d/fcgiwrap
- /lib/systemd/system/fcgiwrap.service
Actually, all of these files are using the default config; I have not made
any manual changes.
I only followed the docs here:
https://docs.yumaworks.com/en/latest/install/restconf.html#nginx-support
so I don't have any custom config.
Regarding spawn-fcgi, I cannot find its files. Not sure where there are.
I just installed it as the docs mentioned: sudo apt-get install nginx
fcgiwrap nginx-doc spawn-fcgi
Here is the output from systemctl and the package versions:
rostyslav at Rostyslav-i9-dev:~$ sudo apt-get install nginx fcgiwrap nginx-doc
spawn-fcgi
[sudo] password for rostyslav:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
fcgiwrap is already the newest version (1.1.0-12).
spawn-fcgi is already the newest version (1.6.4-2).
nginx-doc is already the newest version (1.18.0-6ubuntu14.6).
nginx is already the newest version (1.28.0-1~jammy).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
rostyslav at Rostyslav-i9-dev:~$ systemctl status sp
speech-dispatcherd.service speech-dispatcher.service
spice-vdagentd.service spice-vdagentd.socket
spice-vdagent.service
rostyslav at Rostyslav-i9-dev:~$ systemctl status fcgiwrap
● fcgiwrap.service - Simple CGI Server
Loaded: loaded (/lib/systemd/system/fcgiwrap.service; indirect; vendor
preset: enabled)
Active: active (running) since Thu 2025-05-15 13:39:17 PDT; 3 days ago
TriggeredBy: ● fcgiwrap.socket
Main PID: 3843322 (fcgiwrap)
Tasks: 3 (limit: 76880)
Memory: 1.0M
CPU: 1.535s
CGroup: /system.slice/fcgiwrap.service
├─ 108130 /bin/bash /var/www/yang-api/restconf-test.sh
├─ 108479 sleep 2
└─3843322 /usr/sbin/fcgiwrap -f
May 15 13:39:17 Rostyslav-i9-dev systemd[1]: Started Simple CGI Server.
rostyslav at Rostyslav-i9-dev:~$ systemctl status spawn-fcgi
Unit spawn-fcgi.service could not be found.
rostyslav at Rostyslav-i9-dev:~$
Thank you,
Rostyslav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250519/9e1fc9cd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fcgiwrap.service
Type: text/x-dbus-service
Size: 273 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250519/9e1fc9cd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fcgiwrap
Type: application/octet-stream
Size: 7231 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250519/9e1fc9cd/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx.conf
Type: application/octet-stream
Size: 644 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250519/9e1fc9cd/attachment-0001.obj>
More information about the nginx
mailing list