Spaces:
Running
Running
MVPilgrim
commited on
Commit
·
419c06b
1
Parent(s):
1eb1fc6
debug
Browse files- app.py +1 -1
- startup.sh +4 -2
app.py
CHANGED
@@ -52,7 +52,7 @@ try:
|
|
52 |
subprocess.Popen(["/app/startup.sh"])
|
53 |
# Wait for text2vec-transformers and Weaviate DB to initialize.
|
54 |
time.sleep(120)
|
55 |
-
|
56 |
except Exception as e:
|
57 |
emsg = str(e)
|
58 |
logger.ERROR(f"### subprocess.run EXCEPTION. e: {emsg}")
|
|
|
52 |
subprocess.Popen(["/app/startup.sh"])
|
53 |
# Wait for text2vec-transformers and Weaviate DB to initialize.
|
54 |
time.sleep(120)
|
55 |
+
subprocess.run(["ps -ef"])
|
56 |
except Exception as e:
|
57 |
emsg = str(e)
|
58 |
logger.ERROR(f"### subprocess.run EXCEPTION. e: {emsg}")
|
startup.sh
CHANGED
@@ -28,6 +28,7 @@ chmod -R 777 $weaviateDir
|
|
28 |
echo "#### Before /app/text2vec-transformers"
|
29 |
cd /app/text2vec-transformers
|
30 |
/app/text2vec-transformers/bin/uvicorn app:app --host 0.0.0.0 --port 8081 --log-level warning --timeout-keep-alive 1440 &
|
|
|
31 |
cd /app
|
32 |
|
33 |
|
@@ -42,10 +43,11 @@ export AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
|
42 |
LOG_LEVEL=warning \
|
43 |
MODULES_CLIENT_TIMEOUT=600s
|
44 |
/app/weaviate/weaviate --host 127.0.0.1 --port 8080 --scheme http --write-timeout 600s &
|
|
|
45 |
|
46 |
-
|
47 |
#wait
|
48 |
-
|
49 |
|
50 |
ps -ef
|
51 |
echo "### Returning from startup.sh"
|
|
|
28 |
echo "#### Before /app/text2vec-transformers"
|
29 |
cd /app/text2vec-transformers
|
30 |
/app/text2vec-transformers/bin/uvicorn app:app --host 0.0.0.0 --port 8081 --log-level warning --timeout-keep-alive 1440 &
|
31 |
+
echo "### After text2vec start. RC=$?"
|
32 |
cd /app
|
33 |
|
34 |
|
|
|
43 |
LOG_LEVEL=warning \
|
44 |
MODULES_CLIENT_TIMEOUT=600s
|
45 |
/app/weaviate/weaviate --host 127.0.0.1 --port 8080 --scheme http --write-timeout 600s &
|
46 |
+
echo "### After Weaviate DB start. RC=$?"
|
47 |
|
48 |
+
echo "### Before sleep 120"
|
49 |
#wait
|
50 |
+
sleep 120
|
51 |
|
52 |
ps -ef
|
53 |
echo "### Returning from startup.sh"
|