Master DNL Class4

Troubleshoot Your Installation

Unable to open up UI

After your installation, if you are not able to bring up Login page and you see this kind of error in your browser, then it is likely due to Selinux setting.
Because we put our software in the /opt path, and Selinux policies does not allow to run web app from anything that it is not /var/www.
Since we don't want to change system policies on the customer servers, we set it just temporarily and give user a warning to change if he want permanent setting.
When this issue occurs, you will see the following error in nginx.log file:
2022/08/10 09:22:47 [crit] 14588#14588: *1 connect() to failed (13: Permission denied) while connecting to upstream, client:, server: localhost, request: "GET /api_dnl/v1/swagger.json HTTP/1.1", upstream: "", host: ""
The command you can use to check the Selinux policy is as follows:
# getenforce
You can use the followig command to set it to Permissive mode:
# getenforce

License Module Initialization Error

If you are seeing the following error in /opt/denovov6/dnl_softswitch/log/dnl_softswitch.log, you should reset your license IP here.
Aug 21 23:26:18 dnl_softswitch[9387]: 2022-08-21 23:26:18 [ERROR] dnl_core.c:1760 Failed to initialize license module

Unable to open Web Portal

When you do "rpm update", the nginx config may get overwritten.
In this case, you can rerun the following command to reset the correct nginx config:
yum install dnlv6-webbackend.noarch dnlv6-webui.x86_64

API is not responding due to Postgres is down

If API is no responding, then you may also want to check if Postgres is running:
# systemctl status postgresql.service
● postgresql.service - PostgreSQL 11 database server
Loaded: loaded (/etc/systemd/system/postgresql.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2022-09-30 02:26:21 UTC; 8s ago
Process: 14612 ExecStartPre=/usr/pgsql-11/bin/postgresql-11-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)
Main PID: 14618 (postmaster)
CGroup: /system.slice/postgresql.service
├─14618 /usr/pgsql-11/bin/postmaster -D /opt/pgsql/11/data/
├─14620 postgres: logger
├─14631 postgres: checkpointer
├─14632 postgres: background writer
├─14633 postgres: walwriter
├─14634 postgres: autovacuum launcher
├─14635 postgres: stats collector
├─14636 postgres: logical replication launcher
├─14643 postgres: class4_user class4_dnl idle
├─14645 postgres: webbackend class4_dnl idle
└─14648 postgres: class4_user class4_dnl idle
If it is showing down, then you can start with the following command. After you restart Postgresql, you can also restart dnl_api:
systemctl start postgresql.service
systemctl restart dnl_api_core