UI_JWT_SECRET is not set (Genieacs 1.2.3)

Hello
I followed the oficial instructions.
I built from source: clone genieacs 1.2.3 then cd into the source directory then run:
npm install
npm run build

I followed installation guide:

when I wrote in my web browser: http://IP:3000 a fabulous Wizard page appears and the message:
“An administrator user has been created for you. Use admin/admin to log in. Don’t forget to change the default password”

Then I tried to log in with admin/admin and
UI_JWT_SECRET is not set

I found someone with similar problem: A sneak peek at GenieACS’s new UI but at Genieacs 1.2.3 where is the config.json file?
What could I do?

Thank you.

There is no config.json file anymore.
You should have a file named genieacs.env in your install folder and this should contain (among other things) a line like this:
GENIEACS_UI_JWT_SECRET= very_secret_secret

Furthermore my systemd entry for the ui looks like this:

[Unit]
Description=GenieACS UI
After=network.target mongod.service genieacs-cwmp.service

[Service]
User=genieacs
EnvironmentFile=$installdir/genieacs/genieacs.env
ExecStart=$installdir/genieacs/dist/bin/genieacs-ui --ui-jwt-secret very_secret_secret
KillMode=process

[Install]
WantedBy=multi-user.target

Note the ending --ui-jwt-secret very_secret_secret
also noe that I have a variable named $installdir. Please replace that with your actual path, this is snagged from my install-script (yes, I install this on a semi-regular basis…).

Thank you gittela
I had the genieacs.env at /opt/genieacs/ folder
I moved it to installdir and I changed systemd entry for ui like:

[Unit]
Description=GenieACS UI
After=network.target mongod.service genieacs-cwmp.service

[Service]
User=genieacs
EnvironmentFile=$installdir/genieacs/genieacs.env
ExecStart=$installdir/genieacs/dist/bin/genieacs-ui 
KillMode=process

[Install]
WantedBy=multi-user.target

And it works. THANK YOU.

1 Like

Awesome, glad it worked!