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

**URL:** <https://forum.genieacs.com/t/every-time-theres-an-error-directory-failure-ubuntu/5046>\
**Category:** Uncategorized\
**Created:** [February 2, 2024, 4:50am UTC](https://forum.genieacs.com/t/every-time-theres-an-error-directory-failure-ubuntu/5046 "2024-02-02T04:50:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GabrielOliveira](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@GabrielOliveira](https://forum.genieacs.com/u/GabrielOliveira)\
**Post date:** [February 2, 2024, 4:53am UTC](https://forum.genieacs.com/t/every-time-theres-an-error-directory-failure-ubuntu/5046/2 "2024-02-02T04:53:15Z")

</div>

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:

1. 

Sudo -i

1. 

sudo npm install -g genieacs@1.2.9

1. 

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

1. 

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

1. 

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

1. 

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

1. 

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

1. 

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

1. 

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

1. 

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

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

[Install]  
WantedBy=default.target

1. 

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

1. 

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

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

[Install]  
WantedBy=default.target

1. 

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

1. 

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

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

[Install]  
WantedBy=default.target

1. 

sudo systemctl edit --force --full genieacs-ui

1. 

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

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

[Install]  
WantedBy=default.target

1. 

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

1. 

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…

---

_[View the full topic](https://forum.genieacs.com/t/every-time-theres-an-error-directory-failure-ubuntu/5046)._
