forms-flow-ai
forms-flow-ai copied to clipboard
Install hangs with "Finishing setup."
Bug Report
Please provide information about your setup
- formsflow.ai Version: Latest download from install page
- Linux (Ubuntu 22.04.3 LTS)
Steps to Reproduce
- Run sudo ./install.bash
Observed Behaviour
After installing most of the components, it gets stuck doing and endless loop:
+ HTTP=000
+ '[' 000 == 200 ']'
+ echo 'Finishing setup.'
Finishing setup.
+ sleep 6
+ true
++ curl -LI http://192.168.64.6:5001 -o /dev/null -w '%{http_code}' -s
+ HTTP=000
+ '[' 000 == 200 ']'
+ echo 'Finishing setup.'
Finishing setup.
+ sleep 6
+ true
++ curl -LI http://192.168.64.6:5001 -o /dev/null -w '%{http_code}' -s
+ HTTP=000
+ '[' 000 == 200 ']'
+ echo 'Finishing setup.'
Finishing setup.
+ sleep 6
+ true
++ curl -LI http://192.168.64.6:5001 -o /dev/null -w '%{http_code}' -s
+ HTTP=000
+ '[' 000 == 200 ']'
+ echo 'Finishing setup.'
Finishing setup.
+ sleep 6
Expected Behaviour
Install finished.
Note, the output above is gleaned by changing the shebang to "#!/bin/bash -x"
After killing the install, this is what I see from "docker ps -a":
$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0e9614930db9 formsflow/forms-flow-data-analysis-api:v5.3.1 "/bin/sh entrypoint" 2 hours ago Restarting (1) 40 seconds ago formsflow-ai-forms-flow-data-analysis-api-1
69186fa25b2d postgres:14 "docker-entrypoint.s…" 2 hours ago Up 2 hours 0.0.0.0:5430->5432/tcp, :::5430->5432/tcp formsflow-ai-forms-flow-data-analysis-db-1
ca11898a54f9 postgres:9.6-alpine "docker-entrypoint.s…" 2 hours ago Up 2 hours 0.0.0.0:7432->5432/tcp, :::7432->5432/tcp formsflow-ai-postgres-1
ff53332b8552 redis:6-alpine "docker-entrypoint.s…" 2 hours ago Up 2 hours 6379/tcp formsflow-ai-redis-1
dd3be15b092d formsflow/forms-flow-web:v5.3.1 "/bin/sh -c '/usr/sh…" 2 hours ago Up 2 hours 80/tcp, 0.0.0.0:3000->8080/tcp, :::3000->8080/tcp formsflow-ai-forms-flow-web-1
2773bb368698 formsflow/forms-flow-webapi:v5.3.1 "/wait-for-service.s…" 2 hours ago Up 14 seconds 0.0.0.0:5001->5000/tcp, :::5001->5000/tcp formsflow-ai-forms-flow-webapi-1
c2305c2be876 postgres:14 "docker-entrypoint.s…" 2 hours ago Up 2 hours 0.0.0.0:6432->5432/tcp, :::6432->5432/tcp formsflow-ai-forms-flow-webapi-db-1
1bb73325f57f formsflow/forms-flow-forms:v5.3.0 "node main" 2 hours ago Up 2 hours 0.0.0.0:3001->3001/tcp, :::3001->3001/tcp formsflow-ai-forms-flow-forms-1
62f2e686e967 mongo:5.0 "docker-entrypoint.s…" 2 hours ago Up 2 hours 0.0.0.0:27018->27017/tcp, :::27018->27017/tcp formsflow-ai-forms-flow-forms-db-1
3746cb704c69 quay.io/keycloak/keycloak:14.0.0 "/opt/jboss/tools/do…" 2 hours ago Exited (1) About an hour ago formsflow-ai-keycloak-1
b0e248128a76 postgres:14 "docker-entrypoint.s…" 2 hours ago Up 2 hours 5432/tcp formsflow-ai-keycloak-db-1
Ok, a little further research. This is caused by the forms_flow_api not getting installed. I'm not sure how this script worked in the past, but at https://github.com/AOT-Technologies/forms-flow-ai-deployment/blame/edba60ae0dfa4316e8aca31a74d6fd36dce9719a/scripts/install.bash#L236, you call:
main "." "$analytics"
However, that "." gets checked against "1" in two places, which will never be true: https://github.com/AOT-Technologies/forms-flow-ai-deployment/blame/edba60ae0dfa4316e8aca31a74d6fd36dce9719a/scripts/install.bash#L192 https://github.com/AOT-Technologies/forms-flow-ai-deployment/blame/edba60ae0dfa4316e8aca31a74d6fd36dce9719a/scripts/install.bash#L206
@alanraju-aot please check
@d1rewolf Please install with the latest changes that has been added.. will attach the new link. Sorry for the issues faced.
- If the problem still persist, please check the running tasks in the background and crosscheck to see if there are same port number running in the system. this can also cost the same issue.
- Feel free to ask any doubts.
https://github.com/AOT-Technologies/forms-flow-ai-deployment/pull/66