[Spce-user] [EXTERNAL] Re: nginx and prometheus-nginx-exporter fail to load after reboot
Cesar Mora
cesarluis89 at gmail.com
Wed Jan 22 10:48:23 EST 2025
That’s weird, I haven’t directly modified any of those files in any of the clean installations I did, and the problem always shows up. All I can think of is that something gets messed up in there when I perform the initial "ngcp-network” to define neth0 as the main interface (my server has 2 NICs) with:
"ngcp-network --set-interface=neth0 --ip=auto --netmask=auto --hwaddr=auto”
And also to move the listening services from lo to neth0 with:
"ngcp-network --move-from=lo --move-to=neth0 --type=web_ext --type=sip_ext --type=rtp_ext --type=ssh_ext --type=web_int”
Anyways… The files under /etc/nginx/sites-enabled/ look as:
root at spce:/etc/nginx/sites-enabled# ls
ngcp-panel_admin_api ngcp-panel_csc ngcp-panel_system_api nginx-status
And inside nginx-status is:
server {
listen localhost:8081;
#server_name localhost;
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
allow ::1;
deny all;
}
}
Cesar
> On Jan 22, 2025, at 11:27 AM, Michael Prokop via Spce-user <spce-user at lists.sipwise.com> wrote:
>
> Hi,
>
> * Cesar Mora [Wed Jan 22, 2025 at 11:04:02AM -0400]:
>
>> root at spce:~# journalctl -u nginx
>> Jan 22 10:57:53 spce systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
>> Jan 22 10:57:53 spce nginx[688]: 2025/01/22 10:57:53 [emerg] 688#688: a duplicate listen 127.0.0.1:8081 in /etc/nginx/sites-enabled/nginx>
>
> And there we go.
>
> What do you have inside /etc/nginx/sites-enabled/nginx and what are
> the files looking like, where port 8081 is referred to? (One of them
> should be /etc/nginx/sites-available/nginx-status)
>
> regards
> -mika-
>
> --
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com
More information about the Spce-user
mailing list