Nginx inactive after boot

  • Hello,

    I have changed the ram on my server. Since then, every time I start up, nginx doesn't start properly:

    Result of the command line : systemctl status nginx

    Code
    root@nas:/# systemctl status nginx
    ○ nginx.service - A high performance web server and a reverse proxy server
         Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
         Active: inactive (dead)
           Docs: man:nginx(8)

    And after several minutes, nginx is activated and my server works correctly.

    In the 3 starts that followed the ram change, I received these 10 e-mails:

    _________________________________________________________

    [nas.local] Monitoring alert -- Execution failed rrdcached

    ---------------------------------------------------------------------------

    The system monitoring needs your attention.

    Host: nas

    Date: Sun, 05 May 2024 02:01:50

    Service: rrdcached

    Event: Execution failed

    Description: failed to start (exit status -1) -- Program '/bin/systemctl start rrdcached' timed out after 30 s

    This triggered the monitoring system to: alert

    You have received this notification because you have enabled the system monitoring on this host.

    To change your notification preferences, please go to the 'System | Notification' or 'System | Monitoring' page in the web interface.

    ______________________________________________________

    [nas.local] Monitoring restart -- Does not exist collectd

    -----------------------------------------------------------------------

    The system monitoring needs your attention.

    Host: nas

    Date: Sun, 05 May 2024 13:37:38

    Service: collectd

    Event: Does not exist

    Description: process is not running

    This triggered the monitoring system to: restart

    You have received this notification because you have enabled the system monitoring on this host.

    To change your notification preferences, please go to the 'System | Notification' or 'System | Monitoring' page in the web interface.


    _____________________________________________________

    [nas.local] Monitoring restart -- Does not exist nginx

    ----------------------------------------------------------------------

    The system monitoring needs your attention.

    Host: nas

    Date: Sun, 05 May 2024 02:01:50

    Service: nginx

    Event: Does not exist

    Description: process is not running

    This triggered the monitoring system to: restart

    You have received this notification because you have enabled the system monitoring on this host.

    To change your notification preferences, please go to the 'System | Notification' or 'System | Monitoring' page in the web interface.


    _____________________________________________________

    [nas.local] Monitoring alert -- Execution failed nginx

    ----------------------------------------------------------------------

    The system monitoring needs your attention.

    Host: nas

    Date: Sun, 05 May 2024 13:37:38

    Service: nginx

    Event: Execution failed

    Description: failed to start (exit status -1) -- Program '/bin/systemctl start nginx' timed out after 30 s

    This triggered the monitoring system to: alert

    You have received this notification because you have enabled the system monitoring on this host.

    To change your notification preferences, please go to the 'System | Notification' or 'System | Monitoring' page in the web interface.


    _________________________________________________________
    [nas.local] Monitoring restart -- Does not exist rrdcached

    ---------------------------------------------------------------------------

    The system monitoring needs your attention.

    Host: nas

    Date: Sun, 05 May 2024 02:01:20

    Service: rrdcached

    Event: Does not exist

    Description: process is not running

    This triggered the monitoring system to: restart

    You have received this notification because you have enabled the system monitoring on this host.

    To change your notification preferences, please go to the 'System | Notification' or 'System | Monitoring' page in the web interface.


    ______________________________________________

    [nas.local] Monitoring alert -- Exists rrdcached

    ------------------------------------------------------------

    The system monitoring needs your attention.

    Host: nas

    Date: Sun, 05 May 2024 13:38:37

    Service: rrdcached

    Event: Exists

    Description: process is running with pid 1229

    This triggered the monitoring system to: alert

    You have received this notification because you have enabled the system monitoring on this host.

    To change your notification preferences, please go to the 'System | Notification' or 'System | Monitoring' page in the web interface.


    _______________________________________________________________
    [nas.local] Monitoring alert -- Execution succeeded rrdcached

    -----------------------------------------------------------------------------------

    The system monitoring needs your attention.

    Host: nas

    Date: Sun, 05 May 2024 13:38:37

    Service: rrdcached

    Event: Execution succeeded

    Description: process is running after previous exec error (slow starting or manually recovered?)

    This triggered the monitoring system to: alert

    You have received this notification because you have enabled the system monitoring on this host.

    To change your notification preferences, please go to the 'System | Notification' or 'System | Monitoring' page in the web interface.


    _________________________________________

    [nas.local] Monitoring alert -- Exists nginx

    ------------------------------------------------------

    The system monitoring needs your attention.

    Host: nas

    Date: Sun, 05 May 2024 13:38:37

    Service: nginx

    Event: Exists

    Description: process is running with pid 1181

    This triggered the monitoring system to: alert

    You have received this notification because you have enabled the system monitoring on this host.

    To change your notification preferences, please go to the 'System | Notification' or 'System | Monitoring' page in the web interface.


    _________________________________________________________

    [nas.local] Monitoring alert -- Execution succeeded nginx

    ---------------------------------------------------------------------------

    The system monitoring needs your attention.

    Host: nas

    Date: Sun, 05 May 2024 13:38:37

    Service: nginx

    Event: Execution succeeded

    Description: process is running after previous exec error (slow starting or manually recovered?)

    This triggered the monitoring system to: alert

    You have received this notification because you have enabled the system monitoring on this host.

    To change your notification preferences, please go to the 'System | Notification' or 'System | Monitoring' page in the web interface.


    ___________________________________________
    [nas.local] Monitoring alert -- Exists collectd

    ---------------------------------------------------------

    The system monitoring needs your attention.

    Host: nas

    Date: Sun, 05 May 2024 13:38:37

    Service: collectd

    Event: Exists

    Description: process is running with pid 1248

    This triggered the monitoring system to: alert

    You have received this notification because you have enabled the system monitoring on this host.

    To change your notification preferences, please go to the 'System | Notification' or 'System | Monitoring' page in the web interface.


    _____________________________________________


    Can you help me ?

    • Neu
    • Offizieller Beitrag

    Don't start a new thread just because you haven't received help yet...

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Neu
    • Offizieller Beitrag

    What is the output of:


    systemctl is-enabled nginx

    sudo omv-salt deploy run nginx phpfpm

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Neu
    • Offizieller Beitrag

    When do you want me to run these commands? when nginx is inactive or not?

    Doesn't matter.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I executed the command when nginx was inactive (at startup) :


    • Neu
    • Offizieller Beitrag

    Does it work after reboot now?

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Neu
    • Offizieller Beitrag

    I'm guessing your network adapter is taking too long to start or get an ip address. What kind of system? Are you using dhcp?

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • In reality, I had configured 2 network cards:

    - 1 for general use in 2.5 GB (fixed ip)

    - 1 just for wake-on-line (also fixed ip)


    and I'd disconnected this cable for testing purposes


    by deleting the network card configuration or plugging in the cable, the problem disappears.


    Thank you very much for your help

  • Stanislas

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!