Skip to content

Commit 69c99e0

Browse files
committed
more fixes on server stuck
1 parent b2f7cdb commit 69c99e0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ OpenSearch (for search/indexing), and Moqui itself.
132132
Start the server in the background and wait for it to be ready:
133133

134134
```bash
135+
# IMPORTANT: Stop any existing server first to avoid port conflicts
136+
pkill -f "gradlew run"
137+
# Also kill any java process using port 8080 (in case Gradle spawned it)
138+
kill $(ss -tlnp 2>/dev/null | grep :8080 | grep -oP 'pid=\K\d+' | head -1) 2>/dev/null || true
139+
sleep 2
140+
135141
# Start server in background (output goes to /tmp/moqui-server.log)
136142
nohup ./gradlew run > /tmp/moqui-server.log 2>&1 &
137143

@@ -166,6 +172,7 @@ ps aux | grep "gradlew run" | grep -v grep | awk '{print $2}' | xargs kill
166172
```
167173

168174
**Notes:**
175+
- **ALWAYS stop any existing server before starting** to avoid port 8080 conflicts
169176
- `./gradlew run` does NOT auto-start OpenSearch - start it manually first with
170177
`./gradlew startElasticSearch`
171178
- Server logs available in `/tmp/moqui-server.log` AND in `runtime/log/moqui.log`

0 commit comments

Comments
 (0)