# AWX install gets stucked in Redis saving and UI access fails

**URL:** <https://forum.ansible.com/t/awx-install-gets-stucked-in-redis-saving-and-ui-access-fails/4095>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [February 27, 2024, 5:53pm UTC](https://forum.ansible.com/t/awx-install-gets-stucked-in-redis-saving-and-ui-access-fails/4095 "2024-02-27T17:53:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aj-kyriba](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/aj-kyriba/32/2409_2.png) [@aj-kyriba](https://forum.ansible.com/u/aj-kyriba)\
**Post date:** [February 27, 2024, 5:53pm UTC](https://forum.ansible.com/t/awx-install-gets-stucked-in-redis-saving-and-ui-access-fails/4095/1 "2024-02-27T17:53:07Z")

</div>

**SUMMARY**

While executing “make docker-compose”, the process reports a loop in redis task trying to save changes.

##### ENVIRONMENT

- AWX version: 23.8.0 /23.8.1
- AWX install method: docker
- AWX deployment target: docker
- Operating System: Mac

**STEPS TO REPRODUCE**

on AWX installer, while executing  
make docker-compose

**EXPECTED RESULTS**

Finish AWX configuration

```auto
tools_awx_1 | 2024-02-27 17:26:13,514 WARNING [-] awx.main.dispatch.periodic Scheduler next run of pool_cleanup is -0.007032871246337891 seconds in the past
tools_redis_1 | 1:M 27 Feb 2024 17:27:21.077 * 100 changes in 300 seconds. Saving...
tools_redis_1 | 1:M 27 Feb 2024 17:27:21.078 * Background saving started by pid 32
tools_redis_1 | 32:C 27 Feb 2024 17:27:21.084 * DB saved on disk
tools_redis_1 | 32:C 27 Feb 2024 17:27:21.084 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
tools_redis_1 | 1:M 27 Feb 2024 17:27:21.179 * Background saving terminated with success
tools_awx_1 | [pid: 1087|app: 0|req: 8/14] 192.168.65.1 () {60 vars in 1145 bytes} [Tue Feb 27 17:29:14 2024] GET / => generated 2148 bytes in 105 msecs (HTTP/1.1 200) 9 headers in 438 bytes (1 switches on core 0)
tools_awx_1 | [pid: 1087|app: 0|req: 9/15] 192.168.65.1 () {58 vars in 1114 bytes} [Tue Feb 27 17:29:24 2024] GET / => generated 2148 bytes in 95 msecs (HTTP/1.1 200) 9 headers in 438 bytes (1 switches on core 0)
tools_redis_1 | 1:M 27 Feb 2024 17:32:22.018 * 100 changes in 300 seconds. Saving...
tools_redis_1 | 1:M 27 Feb 2024 17:32:22.018 * Background saving started by pid 33
tools_redis_1 | 33:C 27 Feb 2024 17:32:22.025 * DB saved on disk
tools_redis_1 | 33:C 27 Feb 2024 17:32:22.025 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
tools_redis_1 | 1:M 27 Feb 2024 17:32:22.119 * Background saving terminated with success
tools_redis_1 | 1:M 27 Feb 2024 17:37:23.001 * 100 changes in 300 seconds. Saving...
tools_redis_1 | 1:M 27 Feb 2024 17:37:23.002 * Background saving started by pid 34
tools_redis_1 | 34:C 27 Feb 2024 17:37:23.007 * DB saved on disk
tools_redis_1 | 34:C 27 Feb 2024 17:37:23.008 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
tools_redis_1 | 1:M 27 Feb 2024 17:37:23.102 * Background saving terminated with success
tools_awx_1 | 2024-02-27 17:41:13,512 WARNING [-] awx.main.dispatch.periodic Scheduler next run of pool_cleanup is -0.008401632308959961 seconds in the past

```

After running

```auto
docker exec tools_awx_1 make clean-ui ui-devel

```

in web UI [https://localhost:8043/#/home](https://localhost:8043/#/home)

 ![Screenshot 2024-02-27 at 18.11.06](https://us1.discourse-cdn.com/ansible/original/2X/a/adc2885fec8fa04eba1441a848bf22d691a7a618.png)

while [https://localhost:8043/api/v2](https://localhost:8043/api/v2)

```auto
Version 2
GET /api/v2/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
X-API-Node: awx_1
X-API-Product-Name: AWX
X-API-Product-Version: 23.8.0
X-API-Query-Count: 2
X-API-Query-Time: 0.002s
X-API-Time: 0.026s

```

---

<div class="post-metadata">

**Author:** ![TheRealHaoLiu](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/therealhaoliu/32/100_2.png) [@TheRealHaoLiu](https://forum.ansible.com/u/TheRealHaoLiu)\
**Post date:** [February 27, 2024, 7:29pm UTC](https://forum.ansible.com/t/awx-install-gets-stucked-in-redis-saving-and-ui-access-fails/4095/2 "2024-02-27T19:29:26Z")

</div>

try running `awx-manage collectstatic` inside the container using `docker exec -it tools_awx_1 sh`

---

<div class="post-metadata">

**Author:** ![aj-kyriba](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/aj-kyriba/32/2409_2.png) [@aj-kyriba](https://forum.ansible.com/u/aj-kyriba)\
**Post date:** [February 28, 2024, 8:09am UTC](https://forum.ansible.com/t/awx-install-gets-stucked-in-redis-saving-and-ui-access-fails/4095/3 "2024-02-28T08:09:11Z")

</div>

So I interrupted the running install

```auto
tools_awx_1 | 2024-02-28 07:37:47,512 WARNING [-] awx.main.dispatch.periodic Scheduler next run of send_subsystem_metrics is -0.008138895034790039 seconds in the past
tools_redis_1 | 1:M 28 Feb 2024 07:40:11.029 * 100 changes in 300 seconds. Saving...
tools_redis_1 | 1:M 28 Feb 2024 07:40:11.030 * Background saving started by pid 202
tools_redis_1 | 202:C 28 Feb 2024 07:40:11.036 * DB saved on disk
tools_redis_1 | 202:C 28 Feb 2024 07:40:11.036 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
tools_redis_1 | 1:M 28 Feb 2024 07:40:11.131 * Background saving terminated with success
tools_redis_1 | 1:M 28 Feb 2024 07:45:12.026 * 100 changes in 300 seconds. Saving...
tools_redis_1 | 1:M 28 Feb 2024 07:45:12.027 * Background saving started by pid 203
tools_redis_1 | 203:C 28 Feb 2024 07:45:12.032 * DB saved on disk
tools_redis_1 | 203:C 28 Feb 2024 07:45:12.033 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
tools_redis_1 | 1:M 28 Feb 2024 07:45:12.127 * Background saving terminated with success
tools_redis_1 | 1:M 28 Feb 2024 07:50:13.085 * 100 changes in 300 seconds. Saving...
tools_redis_1 | 1:M 28 Feb 2024 07:50:13.086 * Background saving started by pid 204
tools_redis_1 | 204:C 28 Feb 2024 07:50:13.092 * DB saved on disk
tools_redis_1 | 204:C 28 Feb 2024 07:50:13.093 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
tools_redis_1 | 1:M 28 Feb 2024 07:50:13.187 * Background saving terminated with success
^CGracefully stopping... (press Ctrl+C again to force)
Aborting on container exit...
[+] Stopping 3/3
 ✔ Container tools_awx_1 Stopped 4.8s 
 ✔ Container tools_postgres_1 Stopped 0.3s 
 ✔ Container tools_redis_1 Stopped 0.2s 
canceled
make: *** [docker-compose] Error 130

```

Then started the containers and ran the command **awx-manage collectstatic**

```auto
bash-5.1$ cd /var/lib/awx/public/static/
bash-5.1$ ls
api awx-spud-reading.svg custom_404.html custom_504.html debug_toolbar drf-yasg media	RedHatDisplay-Medium.ttf rest_framework
awx css custom_502.html custom_error.css django_extensions js polymorphic	RedHatDisplay-Regular.ttf
bash-5.1$ ls -l
total 188
drwxr-xr-x 2 awx root 4096 Feb 28 08:04 api
drwxr-xr-x 2 awx root 4096 Feb 28 08:04 awx
-rw-r--r-- 1 awx root 27482 Feb 28 08:04 awx-spud-reading.svg
drwxr-xr-x 3 awx root 4096 Feb 28 08:04 css
-rw-r--r-- 1 awx root 150 Feb 28 08:04 custom_404.html
-rw-r--r-- 1 awx root 650 Feb 28 08:04 custom_502.html
-rw-r--r-- 1 awx root 650 Feb 28 08:04 custom_504.html
-rw-r--r-- 1 awx root 1390 Feb 28 08:04 custom_error.css
drwxr-xr-x 4 awx root 4096 Feb 27 14:12 debug_toolbar
drwxr-xr-x 5 awx root 4096 Feb 27 14:12 django_extensions
drwxr-xr-x 5 awx root 4096 Feb 28 08:04 drf-yasg
drwxr-xr-x 2 awx root 4096 Feb 28 08:04 js
drwxr-xr-x 2 awx root 12288 Feb 28 08:04 media
drwxr-xr-x 4 awx root 4096 Feb 27 14:12 polymorphic
-rw-r--r-- 1 awx root 47388 Feb 28 08:04 RedHatDisplay-Medium.ttf
-rw-r--r-- 1 awx root 47356 Feb 28 08:04 RedHatDisplay-Regular.ttf
drwxr-xr-x 7 awx root 4096 Feb 27 14:12 rest_framework
bash-5.1$ cat api/api.
api.css api.js   
bash-5.1$ cat awx
awx/ awx-spud-reading.svg  
bash-5.1$ cat awx/index_awx.html 
<html>
  <head><title>UI Next Missing</title></head>
  <body style="background-color: black; color: white;">
    <div style="display: flex; justify-content: center; align-items: center; text-align: center; min-height: 100vh;">
       <h1>Oops... Looks like the UI Next wasn't properly built</h1>
    </div>
  </body>
</html>

```

---

<div class="post-metadata">

**Author:** ![fosterseth](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/fosterseth/32/101_2.png) [@fosterseth](https://forum.ansible.com/u/fosterseth)\
**Post date:** [February 28, 2024, 7:59pm UTC](https://forum.ansible.com/t/awx-install-gets-stucked-in-redis-saving-and-ui-access-fails/4095/4 "2024-02-28T19:59:12Z")

</div>

did this step say the UI was built successfully?

```auto
docker exec tools_awx_1 make clean-ui ui-devel

```

Seth

---

<div class="post-metadata">

**Author:** ![aj-kyriba](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/aj-kyriba/32/2409_2.png) [@aj-kyriba](https://forum.ansible.com/u/aj-kyriba)\
**Post date:** [February 29, 2024, 10:05am UTC](https://forum.ansible.com/t/awx-install-gets-stucked-in-redis-saving-and-ui-access-fails/4095/5 "2024-02-29T10:05:32Z")

</div>

Finally, I managed to get the awx 23.8.0 version running.

As the installation was running in a loop with the above error message, I exited the installation which led to all the containers to stop.  
Then I restarted the containers and when I ran the command

```auto
docker exec tools_awx_1 make clean-ui ui-devel

```

Once it was completed, I was able to access the web UI will success.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 30, 2024, 10:05am UTC](https://forum.ansible.com/t/awx-install-gets-stucked-in-redis-saving-and-ui-access-fails/4095/6 "2024-03-30T10:05:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
