Hi to all
we are trying to run all 4-services. But they are displaying error WORKER DIED , can any one explain, how to fix this
Hi to all
we are trying to run all 4-services. But they are displaying error WORKER DIED , can any one explain, how to fix this
Hi, as you can see here, there are many reasons why the services can exit with an error. Without additional info, we can only tell you that you made a mistake somewhere … if you share the output of the following commands, we might be able to spot exactly where:
systemctl cat genieacs-cwmp
systemctl cat genieacs-nbi
systemctl cat genieacs-ui
cat $(systemctl cat genieacs-cwmp | grep EnvironmentFile | cut -d = -f2)
systemctl status genieacs-cwmp
systemctl status genieacs-nbi
systemctl status genieacs-ui
systemctl cat genieacs-cwmp
systemctl cat genieacs-cwmp
[Unit]
Description=GenieACS CWMP
After=network.target
[Service]
User=genieacs
EnvironmentFile=/opt/genieacs/genieacs.env
ExecStart=/usr/bin/genieacs-cwmp
systemctl cat genieacs-nbi
[Unit]
Description=GenieACS NBI
After=network.target
[Service]
User=genieacs
EnvironmentFile=/opt/genieacs/genieacs.env
ExecStart=/usr/bin/genieacs-nbi
systemctl cat genieacs-ui
[Unit]
Description=GenieACS UI
After=network.target
[Service]
User=genieacs
EnvironmentFile=/opt/genieacs/genieacs.env
ExecStart=/usr/bin/genieacs-ui
[Install]
WantedBy=default.target
cat $(systemctl cat genieacs-cwmp | grep EnvironmentFile | cut -d = -f2)
GENIEACS_CWMP_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-cwmp-access.log
GENIEACS_NBI_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-nbi-access.log
GENIEACS_FS_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-fs-access.log
GENIEACS_UI_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-ui-access.log
GENIEACS_DEBUG_FILE=/var/log/genieacs/genieacs-debug.yaml
NODE_OPTIONS=–enable-source-maps
GENIEACS_UI_JWT_SECRET=“secret”
[Unit]
Description=GenieACS cwmp
After=network.target
[Service]
User=genieacs
EnvironmentFile=/opt/genieacs/genieacs.env
ExecStart=/usr/bin/genieacs-cwmp
[Install]
WantedBy=default.target
[Unit]
Description=GenieACS nbi
After=network.target
[Service]
User=genieacs
EnvironmentFile=/opt/genieacs/genieacs.env
ExecStart=/usr/bin/genieacs-nbi
[Install]
WantedBy=default.target
[Unit]
Description=GenieACS fs
After=network.target
[Service]
User=genieacs
EnvironmentFile=/opt/genieacs/genieacs.env
ExecStart=/usr/bin/genieacs-fs
[Install]
WantedBy=default.target
[Unit]
Description=GenieACS ui
After=network.target
[Service]
User=genieacs
EnvironmentFile=/opt/genieacs/genieacs.env
ExecStart=/usr/bin/genieacs-ui
[Install]
WantedBy=default.target
status genieacs-cwmp
● genieacs-cwmp.service - GenieACS CWMP
Loaded: loaded (/etc/systemd/system/genieacs-cwmp.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-06-06 21:19:59 PDT; 7h ago
Main PID: 804 (node)
Tasks: 33 (limit: 3711)
Memory: 71.2M
CGroup: /system.slice/genieacs-cwmp.service
├─ 804 node /usr/bin/genieacs-cwmp
├─1177 /usr/bin/node /usr/bin/genieacs-cwmp
└─1190 /usr/bin/node /usr/bin/genieacs-cwmp
systemctl status genieacs-nbi
● genieacs-nbi.service - GenieACS NBI
Loaded: loaded (/etc/systemd/system/genieacs-nbi.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-06-06 21:19:59 PDT; 7h ago
Main PID: 807 (node)
Tasks: 33 (limit: 3711)
Memory: 65.7M
CGroup: /system.slice/genieacs-nbi.service
├─ 807 node /usr/bin/genieacs-nbi
├─1161 /usr/bin/node /usr/bin/genieacs-nbi
└─1171 /usr/bin/node /usr/bin/genieacs-nbi
Jun 06 21:19:59 ubuntu systemd[1]: Started GenieACS NBI.
Jun 06 21:20:09 ubuntu genieacs-nbi[807]: 2021-06-07T04:20:09.886Z [INFO] genieacs-nbi starting; pid=807 version="1.2.>
Jun 06 21:20:13 ubuntu genieacs-nbi[807]: 2021-06-07T04:20:13.091Z [INFO] Worker listening; pid=1161 address=“0.0.0.0”>
Jun 06 21:20:13 ubuntu genieacs-nbi[807]: 2021-06-07T04:20:13.091Z [INFO] Worker listening; pid=1171 address=“0.0.0.0”>
lines 1-15/15 (END)
systemctl status genieacs-ui
● genieacs-ui.service - GenieACS UI
Loaded: loaded (/etc/systemd/system/genieacs-ui.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-06-06 21:19:59 PDT; 7h ago
Main PID: 809 (node)
Tasks: 33 (limit: 3711)
Memory: 96.5M
CGroup: /system.slice/genieacs-ui.service
├─ 809 node /usr/bin/genieacs-ui
├─1203 /usr/bin/node /usr/bin/genieacs-ui
└─1209 /usr/bin/node /usr/bin/genieacs-ui
Jun 06 21:19:59 ubuntu systemd[1]: Started GenieACS UI.
Jun 06 21:20:11 ubuntu genieacs-ui[809]: 2021-06-07T04:20:11.524Z [INFO] genieacs-ui starting; pid=809 version="1.2.5+>
Jun 06 21:20:13 ubuntu genieacs-ui[809]: 2021-06-07T04:20:13.268Z [INFO] Worker listening; pid=1203 address=“0.0.0.0” >
Jun 06 21:20:13 ubuntu genieacs-ui[809]: 2021-06-07T04:20:13.387Z [INFO] Worker listening; pid=1209 address=“0.0.0.0” >
lines 1-15/15 (END)
pls check
from what I see, the services are active and listening, so whatever the problem was, it’s now solved. The /opt/genieacs/genieacs.env is missing many variables, so you are using the default options. If you want to change some of them, open the file with a editor and add the config options you want to change (prefixed with GENIEACS_). Also, you did not change the GENIEACS_UI_JWT_SECRET
to a random string but it should work anyway … just try to access the UI at http://ip-of-server:3000/
yes i am using the same http://ipserver:3000, I am able to login with admin. BUT DEVICES (ONU) are not DETECTING BY GENIEACS.
Ok, so no more “worker died” issues … did you configured those devices? This means:
if the answer is yes to all, reboot the device and follow the log of the CWMP process (journalctl -f -u genieacs-cwmp
) … if your device is not sending any informs, contact your device vendor and ask them for help.
services are going to died, eventhough i am able to login http://ipaddress:3000. But ONU s are not detecting my Genieacs server
they don’t just detect your acs, you must configure them