You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1605,6 +1606,64 @@ devpi-web - Open devpi web interface
1605
1606
```
1606
1607
</details>
1607
1608
1609
+
## 🔍 Troubleshooting
1610
+
1611
+
<details>
1612
+
<summary><strong>Port publishing on WSL2 (rootless Podman & Docker Desktop)</strong></summary>
1613
+
1614
+
### Diagnose the listener
1615
+
1616
+
```bash
1617
+
# Inside your WSL distro
1618
+
ss -tlnp | grep 4444 # Use ss
1619
+
netstat -anp | grep 4444 # or netstat
1620
+
```
1621
+
1622
+
*Seeing `:::4444 LISTEN rootlessport` is normal* – the IPv6 wildcard
1623
+
socket (`::`) also accepts IPv4 traffic **when**
1624
+
`net.ipv6.bindv6only = 0` (default on Linux).
1625
+
1626
+
### Why localhost fails on Windows
1627
+
1628
+
WSL 2's NAT layer rewrites only the *IPv6* side of the dual-stack listener. From Windows, `http://127.0.0.1:4444` (or Docker Desktop's "localhost") therefore times-out.
1629
+
1630
+
#### Fix (Podman rootless)
1631
+
1632
+
```bash
1633
+
# Inside the WSL distro
1634
+
echo "wsl" | sudo tee /etc/containers/podman-machine
1635
+
systemctl --user restart podman.socket
1636
+
```
1637
+
1638
+
`ss` should now show `0.0.0.0:4444` instead of `:::4444`, and the
1639
+
service becomes reachable from Windows *and* the LAN.
1640
+
1641
+
#### Fix (Docker Desktop > 4.19)
1642
+
1643
+
Docker Desktop adds a "WSL integration" switch per-distro.
1644
+
Turn it **on** for your distro, restart Docker Desktop, then restart the
1645
+
container:
1646
+
1647
+
```bash
1648
+
docker restart mcpgateway
1649
+
```
1650
+
1651
+
</details>
1652
+
1653
+
<details>
1654
+
<summary><strong>Gateway starts but immediately exits ("Failed to read DATABASE_URL")</strong></summary>
1655
+
1656
+
Copy `.env.example` to `.env` first:
1657
+
1658
+
```bash
1659
+
cp .env.example .env
1660
+
```
1661
+
1662
+
Then edit `DATABASE_URL`, `JWT_SECRET_KEY`, `BASIC_AUTH_PASSWORD`, etc.
1663
+
Missing or empty required vars cause a fast-fail at startup.
1664
+
1665
+
</details>
1666
+
1608
1667
## Contributing
1609
1668
1610
1669
1. Fork the repo, create a feature branch.
@@ -1631,7 +1690,7 @@ Licensed under the **Apache License 2.0** – see [LICENSE](./LICENSE)
1631
1690
Special thanks to our contributors for helping us improve ContextForge MCP Gateway:
0 commit comments