Spaces:
Runtime error
Runtime error
debug
Browse files
start.sh
CHANGED
@@ -9,6 +9,8 @@ echo "Waiting for MongoDB to start..."
|
|
9 |
max_attempts=30
|
10 |
attempt=1
|
11 |
|
|
|
|
|
12 |
while ! mongosh --quiet --eval "db.version()" > /dev/null 2>&1; do
|
13 |
if [ $attempt -gt $max_attempts ]; then
|
14 |
echo "MongoDB failed to start. Showing logs:"
|
|
|
9 |
max_attempts=30
|
10 |
attempt=1
|
11 |
|
12 |
+
ls -l /data/
|
13 |
+
|
14 |
while ! mongosh --quiet --eval "db.version()" > /dev/null 2>&1; do
|
15 |
if [ $attempt -gt $max_attempts ]; then
|
16 |
echo "MongoDB failed to start. Showing logs:"
|