Forum Discussion

Pisitpongv's avatar
Pisitpongv
Icon for Nimbostratus rankNimbostratus
May 27, 2022

Nginx instance manager service Active: active (exited)

Hi all

I have issue with Nginx instance manage service. I completed deploy my NMS on digital ocean droplet according to officail nginx document. Everything working fine, I am able to manage instance, deploy configuration to Nginx instance and deploy certificate. At the end of the day, I shutdowned my Droplet via digital ocean. Today, I tried turn on my droplet and found the there is problem with my NMS service. I tried restart nms service. The issue still occur. The service status is Active(Exited)

 

 

 

root@ubuntu-s-1vcpu-1gb-sgp1-01:/var/run/nms# sudo systemctl status nms
● nms.service - NGINX Management Suite
     Loaded: loaded (/lib/systemd/system/nms.service; enabled; vendor preset: enabled)
     Active: active (exited) since Fri 2022-05-27 08:58:55 UTC; 6min ago
       Docs: https://docs.nginx.com/nginx-instance-manager/
    Process: 4646 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 4646 (code=exited, status=0/SUCCESS)

May 27 08:58:55 ubuntu-s-1vcpu-1gb-sgp1-01 systemd[1]: nms.service: Succeeded.
May 27 08:58:55 ubuntu-s-1vcpu-1gb-sgp1-01 systemd[1]: Stopped NGINX Management Suite.
May 27 08:58:55 ubuntu-s-1vcpu-1gb-sgp1-01 systemd[1]: Stopping NGINX Management Suite...
May 27 08:58:55 ubuntu-s-1vcpu-1gb-sgp1-01 systemd[1]: Starting NGINX Management Suite...
May 27 08:58:55 ubuntu-s-1vcpu-1gb-sgp1-01 systemd[1]: Finished NGINX Management Suite.
root@ubuntu-s-1vcpu-1gb-sgp1-01:/var/run/nms# ^C
root@ubuntu-s-1vcpu-1gb-sgp1-01:/var/run/nms# ps aufx | grep nms
root        4859  0.0  0.0   8160   720 pts/0    S+   09:11   0:00          \_ grep --color=auto nms
nms         4677  0.0  2.5 1172676 25204 ?       Ssl  08:58   0:00 /usr/bin/nms-ingestion
nms         4711  0.0  4.2 1357212 42380 ?       Ssl  08:58   0:00 /usr/bin/nms-core
nms         4712  0.5  9.3 1325976 93792 ?       Ssl  08:58   0:04 /usr/bin/nms-dpm
root@ubuntu-s-1vcpu-1gb-sgp1-01:/var/run/nms#

 

 

 

 From the /var/log/nms/nms.log, I look to be problem with license, but I am not sure. Anyone have face this issue before?

 

 

 

root@ubuntu-s-1vcpu-1gb-sgp1-01:/var/run/nms# tail 50 /var/log/nms/nms.log
tail: cannot open '50' for reading: No such file or directory
==> /var/log/nms/nms.log <==
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Restored 2 messages for stream '$G > REPORTS'
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Recovering 3 consumers for stream - '$G > ACTIVITIES'
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Recovering 2 consumers for stream - '$G > DEPLOYMENTS'
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Recovering 4 consumers for stream - '$G > EVENTS'
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF] Listening for client connections on 127.0.0.1:9100
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF] Server is ready
May 27 08:58:57 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: ⇨ http server started on /var/run/nms/dpm.sock
May 27 08:59:01 ubuntu-s-1vcpu-1gb-sgp1-01 <COR>[4711]: ⇨ http server started on /var/run/nms/core.sock
May 27 08:59:01 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: 2022-05-27T08:59:01.382Z#011[ERROR]#011dpm            #011license/license.go:97              #011Failed to verify license status: getting license: Get "http://unix-socket/api/platform/v1/license/status": context canceled
May 27 08:59:01 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: 2022-05-27T08:59:01.383Z#011[ERROR]#011dpm            #011errors/http.go:76                  #011http failure with code '131042': dbos: failed to count nginxes rows: context canceled: database context canceled
root@ubuntu-s-1vcpu-1gb-sgp1-01:/var/run/nms# tail -n 30 /var/log/nms/nms.log
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Name:     NADYAPHRXEQKOLO572QGTEERNZMP56NNWCG5N5AFAEEMKUVBYLTTES27
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Node:     7QtzWmlB
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   ID:       NADYAPHRXEQKOLO572QGTEERNZMP56NNWCG5N5AFAEEMKUVBYLTTES27
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF] Starting JetStream
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]     _ ___ _____ ___ _____ ___ ___   _   __  __
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]  _ | | __|_   _/ __|_   _| _ \ __| /_\ |  \/  |
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF] | || | _|  | | \__ \ | | |   / _| / _ \| |\/| |
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]  \__/|___| |_| |___/ |_| |_|_\___/_/ \_\_|  |_|
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]          https://docs.nats.io/jetstream
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF] ---------------- JETSTREAM ----------------
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Max Memory:      1.00 GB
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Max Storage:     10.00 GB
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Store Directory: "/var/lib/nms/streaming/jetstream"
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF] -------------------------------------------
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Restored 0 messages for stream '$G > ACTIVITIES'
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Restored 0 messages for stream '$G > DEPLOYMENTS'
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Restored 0 messages for stream '$G > EVENTS'
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Restored 0 messages for stream '$G > NOTIFICATIONS'
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Restored 2 messages for stream '$G > REPORTS'
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Recovering 3 consumers for stream - '$G > ACTIVITIES'
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Recovering 2 consumers for stream - '$G > DEPLOYMENTS'
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF]   Recovering 4 consumers for stream - '$G > EVENTS'
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF] Listening for client connections on 127.0.0.1:9100
May 27 08:58:56 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: [4712] [INF] Server is ready
May 27 08:58:57 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: ⇨ http server started on /var/run/nms/dpm.sock
May 27 08:59:01 ubuntu-s-1vcpu-1gb-sgp1-01 <COR>[4711]: ⇨ http server started on /var/run/nms/core.sock
May 27 08:59:01 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: 2022-05-27T08:59:01.382Z#011[ERROR]#011dpm            #011license/license.go:97              #011Failed to verify license status: getting license: Get "http://unix-socket/api/platform/v1/license/status": context canceled
May 27 08:59:01 ubuntu-s-1vcpu-1gb-sgp1-01 <DPM>[4712]: 2022-05-27T08:59:01.383Z#011[ERROR]#011dpm            #011errors/http.go:76                  #011http failure with code '131042': dbos: failed to count nginxes rows: context canceled: database context canceled