# UI\_JWT\_SECRET is not set (Genieacs 1.2.3)

**URL:** <https://forum.genieacs.com/t/ui-jwt-secret-is-not-set-genieacs-1-2-3/1179>\
**Category:** Uncategorized\
**Created:** [November 1, 2020, 4:59pm UTC](https://forum.genieacs.com/t/ui-jwt-secret-is-not-set-genieacs-1-2-3/1179 "2020-11-01T16:59:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![telwaco](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@telwaco](https://forum.genieacs.com/u/telwaco)\
**Post date:** [November 1, 2020, 4:59pm UTC](https://forum.genieacs.com/t/ui-jwt-secret-is-not-set-genieacs-1-2-3/1179/1 "2020-11-01T16:59:33Z")

</div>

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:

> **[Installation Guide — GenieACS Documentation 1.2.3 documentation](http://docs.genieacs.com/en/latest/installation-guide.html#configure-systemd)**

when I wrote in my web browser: [http://IP:3000](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](https://forum.genieacs.com/t/a-sneak-peek-at-genieacs-s-new-ui/57/7) but at Genieacs 1.2.3 where is the config.json file?  
What could I do?

Thank you.

---

<div class="post-metadata">

**Author:** ![gittela](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@gittela](https://forum.genieacs.com/u/gittela)\
**Post date:** [November 4, 2020, 5:53pm UTC](https://forum.genieacs.com/t/ui-jwt-secret-is-not-set-genieacs-1-2-3/1179/2 "2020-11-04T17:53:58Z")

</div>

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…).

---

<div class="post-metadata">

**Author:** ![telwaco](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@telwaco](https://forum.genieacs.com/u/telwaco)\
**Post date:** [November 5, 2020, 9:57pm UTC](https://forum.genieacs.com/t/ui-jwt-secret-is-not-set-genieacs-1-2-3/1179/3 "2020-11-05T21:57:31Z")

</div>

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:

```auto
[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.

---

<div class="post-metadata">

**Author:** ![gittela](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@gittela](https://forum.genieacs.com/u/gittela)\
**Post date:** [November 5, 2020, 10:15pm UTC](https://forum.genieacs.com/t/ui-jwt-secret-is-not-set-genieacs-1-2-3/1179/4 "2020-11-05T22:15:42Z")

</div>

Awesome, glad it worked!

---

<div class="post-metadata">

**Author:** ![Oncho](https://avatars.discourse-cdn.com/v4/letter/o/97f17d/32.png) [@Oncho](https://forum.genieacs.com/u/Oncho)\
**Post date:** [June 10, 2021, 7:02am UTC](https://forum.genieacs.com/t/ui-jwt-secret-is-not-set-genieacs-1-2-3/1179/5 "2021-06-10T07:02:14Z")

</div>

Does this information still hold for Genieacs 1.2.5? Cause I’m getting the same error reply but couldn’t find the file genieacs.env anywhere on my system. If not, what to do in my case?

---

<div class="post-metadata">

**Author:** ![lavira](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@lavira](https://forum.genieacs.com/u/lavira)\
**Post date:** [June 10, 2021, 7:17am UTC](https://forum.genieacs.com/t/ui-jwt-secret-is-not-set-genieacs-1-2-3/1179/6 "2021-06-10T07:17:12Z")

</div>

Hi, yes, but you need to create it and pass it to the systemd service unit file.

From the [official installation guide:](http://docs.genieacs.com/en/latest/installation-guide.html)  
`Create the file /opt/genieacs/genieacs.env to hold our configuration options which we pass to GenieACS as environment variables. See Environment Variables section for a list of all available configuration options.`

---

<div class="post-metadata">

**Author:** ![rudymartin](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@rudymartin](https://forum.genieacs.com/u/rudymartin)\
**Post date:** [July 6, 2022, 4:56pm UTC](https://forum.genieacs.com/t/ui-jwt-secret-is-not-set-genieacs-1-2-3/1179/9 "2022-07-06T16:56:06Z")

</div>

that is strange, about two months ago I did two fresh installs in two linuxes (one Debian, one Slackware) and it worked just fine for me. Of course I used the latest stable version, as per documentation.

---

<div class="post-metadata">

**Author:** ![BernardoGatt0](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/bernardogatt0/32/948_2.png) [@BernardoGatt0](https://forum.genieacs.com/u/BernardoGatt0)\
**Post date:** [September 21, 2022, 2:20pm UTC](https://forum.genieacs.com/t/ui-jwt-secret-is-not-set-genieacs-1-2-3/1179/10 "2022-09-21T14:20:23Z")

</div>

Good morning, how did you change from /opt/genieacs to installdir?
