# How to get Rasa X password

**URL:** <https://forum.rasa.com/t/how-to-get-rasa-x-password/11488>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [June 13, 2019, 5:51pm UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488 "2019-06-13T17:51:49Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrianYing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/brianying/32/3287_2.png) [@BrianYing](https://forum.rasa.com/u/BrianYing)\
**Post date:** [June 13, 2019, 5:51pm UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/1 "2019-06-13T17:51:49Z")

</div>

Hi! I am trying to have rasa x running on my aws instance as a service. So under /etc/systemd/system I created a service with the cmd to execute `rasa x --enable-api`. Everything else works well except I can not access the UI through the port 5002/login because I need the password.

Usually on local machine, I can see the password(complete url) get logged after the rasa x cmd has been executed, then I can just open it on browser. However, on aws server I tried `systemctl status rasa.service --all`, there is not log of url with password. Then when I used `journalctl -u rasa.service`, I found that the logging of that url will only be printed after the service is dead or get stopped. Do anyone know why this is the case and how can I retrieve those password?

Thanks!

Here is the pic of logging:

 ![log](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/7/76f7ac6817111aeb912f0c1e558562f85db99a56.jpeg)

---

<div class="post-metadata">

**Author:** ![ricwo](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ricwo](https://forum.rasa.com/u/ricwo)\
**Post date:** [June 17, 2019, 4:38pm UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/2 "2019-06-17T16:38:15Z")

</div>

Hi @BrianYing, you can set an environment variable `RASA_X_PASSWORD=<PASSWORD>` which will be used if set instead of the randomly generated one. I’m not sure why those logs aren’t printed earlier but we’ll look into it!

---

<div class="post-metadata">

**Author:** ![BrianYing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/brianying/32/3287_2.png) [@BrianYing](https://forum.rasa.com/u/BrianYing)\
**Post date:** [June 18, 2019, 8:06pm UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/3 "2019-06-18T20:06:06Z")

</div>

It works! Thank you so much!

---

<div class="post-metadata">

**Author:** ![PureLogics](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@PureLogics](https://forum.rasa.com/u/PureLogics)\
**Post date:** [August 9, 2019, 9:56am UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/4 "2019-08-09T09:56:00Z")

</div>

hey @ricwo can you please explain how to set password locally on rasa x instead of randomly generated password? if i have to set environment variable here too, then where to set it

---

<div class="post-metadata">

**Author:** ![nbeuchat](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nbeuchat/32/13688_2.png) [@nbeuchat](https://forum.rasa.com/u/nbeuchat)\
**Post date:** [August 9, 2019, 4:23pm UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/5 "2019-08-09T16:23:02Z")

</div>

@PureLogics which OS are you using? On Linux for example, you can either set the environment variable :

- when calling rasa x: `RASA_X_PASSWORD=<yourpassword> rasa x`
- by adding `export RASA_X_PASSWORD=<yourpassword>` in your `~/.bashrc` file

Hope that helps

---

<div class="post-metadata">

**Author:** ![sheggam\_harshith](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@sheggam\_harshith](https://forum.rasa.com/u/sheggam_harshith)\
**Post date:** [May 6, 2020, 8:09am UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/7 "2020-05-06T08:09:53Z")

</div>

how to find the exsiting rasa x password

---

<div class="post-metadata">

**Author:** ![Meet](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/meet/32/10354_2.png) [@Meet](https://forum.rasa.com/u/Meet)\
**Post date:** [September 3, 2020, 6:37am UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/8 "2020-09-03T06:37:00Z")

</div>

how to do this on a Mac OS Catalina

---

<div class="post-metadata">

**Author:** ![ricwo](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ricwo](https://forum.rasa.com/u/ricwo)\
**Post date:** [September 7, 2020, 6:48am UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/9 "2020-09-07T06:48:07Z")

</div>

@Meet how did you install Rasa X? Are you running it from the command line or using Docker or the Helm chart?

---

<div class="post-metadata">

**Author:** ![Meet](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/meet/32/10354_2.png) [@Meet](https://forum.rasa.com/u/Meet)\
**Post date:** [September 7, 2020, 3:12pm UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/10 "2020-09-07T15:12:56Z")

</div>

> [@nbeuchat](#):
>
> ~/.bashrc

Command line I entered command export RASA\_X\_PASSWORD= but it doesn’t change

---

<div class="post-metadata">

**Author:** ![ricwo](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ricwo](https://forum.rasa.com/u/ricwo)\
**Post date:** [September 9, 2020, 2:12pm UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/11 "2020-09-09T14:12:32Z")

</div>

@Meet, did you restart your terminal after apply the changes to `~/.bashrc`?

---

<div class="post-metadata">

**Author:** ![Grogak](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@Grogak](https://forum.rasa.com/u/Grogak)\
**Post date:** [September 14, 2020, 2:15pm UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/12 "2020-09-14T14:15:46Z")

</div>

Hello, I’m facing more or less the same problem.

I made a Service for Rasa X:

```auto
[Unit]
Description=Rasa Core
After=multi-user.target
Requires=rocketchat.service
[Service]
Type=simple
WorkingDirectory=/opt/rasaVicious/
ExecStart=/opt/anaconda3/envs/rasaEnv/bin/python3 -m rasa x -p 5006
User=root
Group=daemon

```

This will start Rasa X as root on port 5006 and works fine. Problem now is that I can’t see the password using “service rasaVicious status”.

So I tried to add the following line to root’s .bashrc:

```auto
export RASA_X_PASSWORD=test

```

Afterwards I reloaded the bashrc with

```auto
source .bashrc

```

But this won’t help. Everytime I start the rasa-Service, it’s a random password and not “test”. I also tried to close and reopen my shell, but still the same problem.

Someone a suggestion how I can set the password?

Edit: Changing the ExecStart line to:

```auto
ExecStart=/opt/anaconda3/envs/rasaEnv/bin/python3 -m RASA_X_PASSWORD=test rasa x -p 5006

```

won’t help either. Doing that my service won’t even start and I get the following error message:

```auto
/opt/anaconda3/envs/rasaEnv/bin/python3: No module named RASA_X_PASSWORD=test

```

---

<div class="post-metadata">

**Author:** ![ricwo](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ricwo](https://forum.rasa.com/u/ricwo)\
**Post date:** [September 14, 2020, 6:36pm UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/13 "2020-09-14T18:36:12Z")

</div>

your exec command should be

```auto
ExecStart="RASA_X_PASSWORD=test /opt/anaconda3/envs/rasaEnv/bin/python3 -m rasa x -p 5006"

```

(note the env var comes before the python command)

can you try again and report if it’s working or not?

---

<div class="post-metadata">

**Author:** ![Grogak](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@Grogak](https://forum.rasa.com/u/Grogak)\
**Post date:** [September 14, 2020, 11:06pm UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/14 "2020-09-14T23:06:42Z")

</div>

With " " get the following error:

```auto
Sep 15 00:59:26 systemd[1]: rasaVicious.service: /etc/systemd/system/rasaVicious.service:9: Neither a valid executable name nor an absolute path: RASA_X_PASSWORD=test /opt/anaconda3/envs/rasaEnv/bin/python3 -m rasa x -p 5006
Sep 15 00:59:26 systemd[1]: rasaVicious.service: Unit configuration has fatal error, unit will not be started.

```

And withouth " " I get the following error:

```auto
Sep 15 01:01:07 systemd[1]: /etc/systemd/system/rasaVicious.service:9: Executable "RASA_X_PASSWORD=test" not found in path "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Sep 15 01:01:07 systemd[1]: rasaVicious.service: Unit configuration has fatal error, unit will not be started.

```

---

<div class="post-metadata">

**Author:** ![Grogak](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@Grogak](https://forum.rasa.com/u/Grogak)\
**Post date:** [September 14, 2020, 11:10pm UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/15 "2020-09-14T23:10:44Z")

</div>

I managed to solve my problem by adding the following line to my Service:

```auto
Environment="RASA_X_PASSWORD=test"

```

And the entire working service looks like this:

```auto
[Unit]
Description=Rasa Core
After=multi-user.target
Requires=rocketchat.service
[Service]
Environment="RASA_X_PASSWORD=test"
Type=simple
WorkingDirectory=/opt/rasaVicious/
ExecStart= /opt/anaconda3/envs/rasaEnv/bin/python3 -m rasa x -p 5006
User=root
Group=daemon

```

Hope this will help some people struggling with the same problem. Would be nice to be able to define the Rasa X password in a config file somewhere in the Rasa folder…

---

<div class="post-metadata">

**Author:** ![sprabinkumar85](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sprabinkumar85/32/13749_2.png) [@sprabinkumar85](https://forum.rasa.com/u/sprabinkumar85)\
**Post date:** [March 8, 2021, 5:32pm UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/16 "2021-03-08T17:32:23Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/5/5a7806c2584bd85c30b1167fcd9e22e1c0424504.png)

---

<div class="post-metadata">

**Author:** ![shreehari](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@shreehari](https://forum.rasa.com/u/shreehari)\
**Post date:** [February 8, 2022, 4:28pm UTC](https://forum.rasa.com/t/how-to-get-rasa-x-password/11488/17 "2022-02-08T16:28:04Z")

</div>

Hey where were you able to see this generated password?
