Troubleshooting#
Solutions to common problems you might encounter.
No Network Interface Detected#
Problem: lanup can’t detect your local IP address.
Error message:
Error: Failed to detect local IP addressSolutions:
Check network connection
# macOS/Linux ifconfig # Windows ipconfigRun diagnostics
lanup doctorVerify network interface is active
- Ensure you’re connected to Wi-Fi or Ethernet
- Check that your network adapter is enabled
Check for VPN interference
- Some VPNs can interfere with local network detection
- Try disconnecting from VPN temporarily
Docker Auto-Detection Not Working#
Problem: Docker containers are not being detected.
Solutions:
Verify Docker is running
docker psCheck Docker permissions
# Linux: Add user to docker group sudo usermod -aG docker $USER # Then log out and back inRun diagnostics
lanup doctorDisable auto-detection and configure manually
# .lanup.yaml vars: MY_SERVICE_PORT: "http://localhost:8080" auto_detect: docker: false
Environment File Not Updating#
Problem: The .env.local file is not being updated.
Solutions:
Check file permissions
ls -la .env.local chmod 644 .env.localVerify output path
# .lanup.yaml output: ".env.local" # Check this pathTry dry-run mode
lanup start --dry-runCheck logs
lanup logs --tail 50Verify disk space
df -h
Network Changes Not Detected in Watch Mode#
Problem: Watch mode doesn’t update when switching networks.
Solutions:
Check interval setting
# ~/.lanup/config.yaml check_interval: 5 # Increase if neededVerify stable connection
- Ensure network connection is stable
- Wait a few seconds after switching networks
Restart watch mode
# Stop with Ctrl+C lanup start --watchCheck logs
lanup logs --follow
Permission Denied Errors#
Problem: lanup can’t write files or access logs.
Error message:
Error: Permission deniedSolutions:
Check project directory permissions
ls -la chmod 755 .Check ~/.lanup/ permissions
ls -la ~/.lanup/ chmod 755 ~/.lanup/ chmod 600 ~/.lanup/config.yamlRun without sudo
- lanup should not require sudo
- If you used sudo before, fix permissions:
sudo chown -R $USER:$USER ~/.lanup/
Services Not Accessible from Other Devices#
Problem: Other devices can’t access the exposed URLs.
Solutions:
Verify same network
- Ensure all devices are on the same Wi-Fi/network
- Check device IP addresses are in same subnet
Check firewall settings
# macOS: System Preferences > Security & Privacy > Firewall # Linux: Check iptables or ufw # Windows: Windows Defender FirewallTest from development machine
curl http://192.168.1.100:3000Verify service is running
curl http://localhost:3000Check network restrictions
- Corporate networks may block device-to-device communication
- Public Wi-Fi often isolates devices
- Try a different network or use mobile hotspot
Supabase Not Detected#
Problem: Supabase services are not being detected.
Solutions:
Verify Supabase is running
supabase statusCheck Supabase CLI installation
supabase --versionStart Supabase
supabase startDisable auto-detection and configure manually
# .lanup.yaml vars: SUPABASE_URL: "http://localhost:54321" auto_detect: supabase: false
Configuration File Not Found#
Problem: lanup can’t find .lanup.yaml.
Error message:
Error: Failed to load project configurationSolutions:
Initialize lanup
lanup initCheck current directory
pwd ls -la .lanup.yamlVerify file name
- Must be
.lanup.yaml(with leading dot) - Check for typos
- Must be
Invalid YAML Syntax#
Problem: Configuration file has syntax errors.
Error message:
Error: failed to parse config fileSolutions:
Validate YAML syntax
- Use online YAML validator
- Check indentation (use spaces, not tabs)
Common issues:
# ❌ Wrong - missing quotes vars: URL: http://localhost:8000 # ✓ Correct vars: URL: "http://localhost:8000"Regenerate config
lanup init --force
Logs Not Being Created#
Problem: Log file is not being created or updated.
Solutions:
Check log path
# ~/.lanup/config.yaml log_path: "~/.lanup/logs/lanup.log"Verify directory exists
ls -la ~/.lanup/logs/ mkdir -p ~/.lanup/logs/Check permissions
chmod 755 ~/.lanup/logs/Enable logging
lanup start --log
Getting Help#
If you’re still experiencing issues:
Run diagnostics
lanup doctorCheck logs
lanup logs --tail 100Enable verbose mode
lanup start --verboseReport an issue
- Visit GitHub Issues
- Include output from
lanup doctor - Include relevant log entries
- Describe your environment (OS, network setup)