Every time there's an error! Directory failure, Ubuntu

Just to give you an idea, I’ve already created a notepad with the step-by-step codes from the website and reinstalled the system three times, but the error persists… I’ve done the installation directly with the ‘sudo -i’ terminal command all the way to the end, without this special permission, trying to merge both approaches… Unfortunately, my ignorance and lack of time have been significant obstacles! Here’s how I try to install it:

Sudo -i

sudo npm install -g genieacs@1.2.9

sudo useradd --system --no-create-home --user-group genieacs

mkdir /opt/genieacs
mkdir /opt/genieacs/ext
chown genieacs:genieacs /opt/genieacs/ext

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_EXT_DIR=/opt/genieacs/ext

node -e “console.log("GENIEACS_UI_JWT_SECRET=" + require(‘crypto’).randomBytes(128).toString(‘hex’))” >> /opt/genieacs/genieacs.env

sudo chown genieacs:genieacs /opt/genieacs/genieacs.env
sudo chmod 600 /opt/genieacs/genieacs.env

mkdir /var/log/genieacs
chown genieacs:genieacs /var/log/genieacs

sudo systemctl edit --force --full genieacs-cwmp

[Unit]
Description=GenieACS CWMP
After=network.target

[Service]
User=genieacs
EnvironmentFile=/opt/genieacs/genieacs.env
ExecStart=/usr/bin/genieacs-cwmp

[Install]
WantedBy=default.target

sudo systemctl edit --force --full genieacs-nbi

[Unit]
Description=GenieACS NBI
After=network.target

[Service]
User=genieacs
EnvironmentFile=/opt/genieacs/genieacs.env
ExecStart=/usr/bin/genieacs-nbi

[Install]
WantedBy=default.target

sudo systemctl edit --force --full genieacs-fs

[Unit]
Description=GenieACS FS
After=network.target

[Service]
User=genieacs
EnvironmentFile=/opt/genieacs/genieacs.env
ExecStart=/usr/bin/genieacs-fs

[Install]
WantedBy=default.target

sudo systemctl edit --force --full 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

echo ‘/var/log/genieacs/.log /var/log/genieacs/.yaml {
daily
rotate 30
compress
delaycompress
dateext
}’ | sudo tee /etc/logrotate.d/genieacs

sudo systemctl enable genieacs-cwmp
sudo systemctl start genieacs-cwmp
sudo systemctl start genieacs-cwmp

At step 18, I always test, and it gives an error…

1 Like