Skip to content

Commit e1d63c7

Browse files
committed
fix: resolve docker-compose.yml path issue
- Add fallback logic to locate docker-compose.yml in alternative paths - Update installation script to copy file to scripts directory - Add troubleshooting documentation for the issue - Mark TASK-021 as resolved
1 parent b600029 commit e1d63c7

File tree

4 files changed

+48
-6
lines changed

4 files changed

+48
-6
lines changed

docs/installation_issues.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Installation Issues Tracker
22

3-
## TASK-021: Fix installation script paths
3+
## TASK-021: Fix installation script paths [RESOLVED]
44

55
### Description
66
The installation process is failing when users try to run the `files-db-mcp` command. The script is unable to find the docker-compose.yml file at the expected location.
@@ -29,11 +29,22 @@ The command should start the files-db-mcp service without errors.
2929
### Root Cause
3030
After the repository reorganization (TASK-019 and TASK-020), the paths in the installation scripts weren't properly updated to reflect the new file structure.
3131

32-
### Priority
33-
High - This affects all new users trying to use the tool.
32+
### Fix Implemented
33+
1. Added a fallback mechanism in `scripts/run.sh` to check for docker-compose.yml in the base directory and the `.files-db-mcp` directory
34+
2. Modified the installation script to copy docker-compose.yml to the scripts directory
35+
3. Updated troubleshooting documentation with a manual fix for existing installations
3436

35-
### Assigned to
37+
### Verification
38+
The fix has been tested with a fresh installation and works correctly. Existing installations can be fixed by manually copying the docker-compose.yml file to the scripts directory:
39+
```bash
40+
cp ~/.files-db-mcp/docker-compose.yml ~/.files-db-mcp/scripts/
41+
```
42+
43+
### Status
44+
RESOLVED
45+
46+
### Resolved by
3647
Claude
3748

38-
### Due Date
39-
ASAP
49+
### Resolution Date
50+
March 24, 2025

docs/troubleshooting.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,17 @@ This guide helps you diagnose and solve common issues with Files-DB-MCP.
256256
257257
## Common Error Messages
258258
259+
### "open /Users/janni/.files-db-mcp/scripts/docker-compose.yml: no such file or directory"
260+
261+
**Cause:** Path issue in the installation script after repository reorganization
262+
263+
**Solution:**
264+
- Update to the latest version of Files-DB-MCP
265+
- If issue persists, manually copy docker-compose.yml to the scripts directory:
266+
```bash
267+
cp ~/.files-db-mcp/docker-compose.yml ~/.files-db-mcp/scripts/
268+
```
269+
259270
### "ImportError: cannot import name 'cached_download' from 'huggingface_hub'"
260271
261272
**Cause:** Version incompatibility between sentence-transformers and huggingface-hub

install/install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ chmod +x "$INSTALL_DIR/files-db-mcp"
121121
# Create symlinks for convenience if needed
122122
ln -sf "$INSTALL_DIR/scripts/run.sh" "$INSTALL_DIR/run.sh"
123123

124+
# Fix a potential path issue - copy docker-compose.yml to root directory for easier access
125+
cp "$INSTALL_DIR/docker-compose.yml" "$INSTALL_DIR/scripts/" 2>/dev/null || true
126+
124127
echo
125128
echo "Installation complete!"
126129
echo

scripts/run.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,23 @@ else
4545
docker compose down
4646
fi
4747

48+
# Check if docker-compose.yml exists in the base directory
49+
if [ ! -f "$BASE_DIR/docker-compose.yml" ]; then
50+
echo "Error: docker-compose.yml not found at $BASE_DIR/docker-compose.yml"
51+
echo "This usually happens when the installation paths are incorrect."
52+
53+
# Check the common installation directory
54+
if [ -f "$HOME/.files-db-mcp/docker-compose.yml" ]; then
55+
echo "Found docker-compose.yml in the default installation directory."
56+
BASE_DIR="$HOME/.files-db-mcp"
57+
echo "Using $BASE_DIR as the base directory."
58+
else
59+
echo "Could not find docker-compose.yml in the expected locations."
60+
echo "Please make sure files-db-mcp is properly installed."
61+
exit 1
62+
fi
63+
fi
64+
4865
# Run Docker Compose with proper timeout for startup
4966
echo "Starting Docker Compose services..."
5067
# Use the docker-compose.yml from the base directory

0 commit comments

Comments
 (0)