<div dir="auto">Many thanks! <div dir="auto"><br></div><div dir="auto"> I'll back up the server and give it a try.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 9, 2024, 5:01 PM Michael Stauber via Blueonyx <<a href="mailto:blueonyx@mail.blueonyx.it">blueonyx@mail.blueonyx.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ken,<br>
<br>
> I am seeing this error in the FPM logs<br>
> [09-May-2024 13:50:20] ERROR: unable to bind listening socket for <br>
> address '<a href="http://127.0.0.1:9090" rel="noreferrer noreferrer" target="_blank">127.0.0.1:9090</a> <<a href="http://127.0.0.1:9090" rel="noreferrer noreferrer" target="_blank">http://127.0.0.1:9090</a>>': Address already in use <br>
> (98)<br>
> [09-May-2024 13:50:20] ERROR: FPM initialization failed<br>
> <br>
> <br>
> In the conf file<br>
> grep 9090  /etc/php-fpm*/site*.conf<br>
> /etc/php-fpm-7.4.d/site89.conf:listen = <a href="http://127.0.0.1:9090" rel="noreferrer noreferrer" target="_blank">127.0.0.1:9090</a> <br>
> <<a href="http://127.0.0.1:9090" rel="noreferrer noreferrer" target="_blank">http://127.0.0.1:9090</a>><br>
> <br>
> netstat shows<br>
> netstat -tupan | grep 9090<br>
> tcp        0      0 <a href="http://127.0.0.1:9090" rel="noreferrer noreferrer" target="_blank">127.0.0.1:9090</a> <<a href="http://127.0.0.1:9090" rel="noreferrer noreferrer" target="_blank">http://127.0.0.1:9090</a>>         <br>
>   0.0.0.0:*               LISTEN      143/prometheus<br>
> tcp        0      0 <a href="http://127.0.0.1:38586" rel="noreferrer noreferrer" target="_blank">127.0.0.1:38586</a> <<a href="http://127.0.0.1:38586" rel="noreferrer noreferrer" target="_blank">http://127.0.0.1:38586</a>> <br>
> <a href="http://127.0.0.1:9090" rel="noreferrer noreferrer" target="_blank">127.0.0.1:9090</a> <<a href="http://127.0.0.1:9090" rel="noreferrer noreferrer" target="_blank">http://127.0.0.1:9090</a>>          ESTABLISHED 143/prometheus<br>
> tcp        0      0 <a href="http://127.0.0.1:9090" rel="noreferrer noreferrer" target="_blank">127.0.0.1:9090</a> <<a href="http://127.0.0.1:9090" rel="noreferrer noreferrer" target="_blank">http://127.0.0.1:9090</a>> <br>
> <a href="http://127.0.0.1:38586" rel="noreferrer noreferrer" target="_blank">127.0.0.1:38586</a> <<a href="http://127.0.0.1:38586" rel="noreferrer noreferrer" target="_blank">http://127.0.0.1:38586</a>>         ESTABLISHED 143/prometheus<br>
> <br>
> Possibly FPM can be set to not use that port?<br>
<br>
<br>
I just checked the code that does this and it wasn't good enough. It ran <br>
off some assumptions that ports in the given port range were free, but <br>
didn't really check if that was true.<br>
<br>
Excluding the Prometheus port 9090 would help, but if we (or you) ever <br>
try to bind something else in that port range we'd have similar problems.<br>
<br>
So I extended the code to actually check if the desired port is free and <br>
if not, we increment the port number and test again until we either find <br>
a free port, or run out of port numbers to use:<br>
<br>
<a href="https://devel.blueonyx.it/trac/changeset?reponame=&new=5261%40%2F&old=5259%40%2F" rel="noreferrer noreferrer" target="_blank">https://devel.blueonyx.it/trac/changeset?reponame=&new=5261%40%2F&old=5259%40%2F</a><br>
<br>
However: I'm not entirely comfortable with how invasive this code change <br>
is and don't want to publish it to the regular YUM repositories right <br>
away this short before a long weekend.<br>
<br>
So I published it to the "Testing" YUM repositories of BlueOnyx 5210R <br>
and 5211R.<br>
<br>
If you want to test it, edit /etc/yum.repos.d/BlueOnyx.repo and find the <br>
section ...<br>
<br>
[BlueOnyx-5210R-Testing]<br>
... or ...<br>
[BlueOnyx-5211R-Testing]<br>
<br>
... and within that section set the line ...<br>
<br>
enabled=0<br>
<br>
... to ...<br>
<br>
enabled=1<br>
<br>
... and save the changes.<br>
<br>
Then do a "yum clean all" and "yum update" to get the newest <br>
base-apache-* RPMs with this change.<br>
<br>
Let me know if it works for you.<br>
<br>
-- <br>
With best regards<br>
<br>
Michael Stauber<br>
_______________________________________________<br>
Blueonyx mailing list<br>
<a href="mailto:Blueonyx@mail.blueonyx.it" target="_blank" rel="noreferrer">Blueonyx@mail.blueonyx.it</a><br>
<a href="http://mail.blueonyx.it/mailman/listinfo/blueonyx" rel="noreferrer noreferrer" target="_blank">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a><br>
</blockquote></div>