[Spce-user] [EXTERNAL] Re: nginx and prometheus-nginx-exporter fail to load after reboot
Cesar Mora
cesarluis89 at gmail.com
Mon Jan 27 06:18:38 EST 2025
I’m so sorry! My email client keeps messing up the TO address.
I found a conflict of port 8081 with nginx and tproxy, not sure if this is a part of nginx.
root at spce:/# grep -Rn "tproxy" /etc/ngcp-config/
/etc/ngcp-config/templates/etc/services.tt2:339:tproxy 8081/tcp # Transparent Proxy
/etc/ngcp-config/templates/etc/services.tt2:383:#nginx-status [% nginx.status_port %]/tcp # Conflicts with tproxy
/etc/ngcp-config/templates/etc/kamailio/proxy/proxy.cfg.tt2:921: # for BYE, mark whether or not to stop rtproxy
root at spce:/#
Further digging, I only found 2 references to port 8081 on /etc/nginx/
root at spce:~# grep -Rn "8081" /etc/nginx/
/etc/nginx/sites-enabled/nginx-status:2: listen localhost:8081;
/etc/nginx/sites-available/nginx-status:2: listen localhost:8081;
But I’m guessing the sites-enabled entry is a symlink
Other than this, only tproxy refers to 8081 under the config.
> On Jan 27, 2025, at 6:08 AM, Michael Prokop via Spce-user <spce-user at lists.sipwise.com> wrote:
>
> Hi,
>
> * Cesar Mora [Mon Jan 27, 2025 at 10:02:36AM +0000]:
>
>> Thanks for the reply! Yes, as I included in the previous message:
>>
>> root at spce:/etc/nginx/sites-enabled# ls
>> ngcp-panel_admin_api ngcp-panel_csc ngcp-panel_system_api nginx-status
>>
>> There is no file or directory called nginx in /etc/nginx/sites-enabled/. What you see there is what is in there. Inside /etc/nginx/sites-enabled are:
> [...]
>
> It's about all the files inside the /etc/nginx directory, not a file
> named "nginx" inside /etc/nginx/sites-enabled.
>
> But if there really is no other file referring to port 8081, this is
> about the issue that Guillem already pointed you to. quoting from
> his mail:
>
> | This is a known limitation from this prometheus exporter, which fails
> | to start if nginx is not running. This has been fixed upstream with
> | https://github.com/nginx/nginx-prometheus-exporter/pull/504, so on
> | the future NGCP release where we rebase on top of Debian trixie,
> | we'll get that new fixed behavior.
>
> PS: No need to Cc me, I'm subscribed to the mailing list.
>
> regards
> -mika-
>
> --
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20250127/d49fd440/attachment.htm>
More information about the Spce-user
mailing list