Getting Help
Before diving into troubleshooting, here are the best ways to get help:Discord Community
GitHub Issues
Quick Diagnostics
Run these commands to quickly diagnose common issues:Installation Issues
Command not found: openportal
Command not found: openportal
openportal commandSolutions:-
Verify installation:
-
Reinstall globally:
-
Check Bun global bin path:
If not present, add to your shell profile:
-
Use bunx instead:
Command not found: opencode
Command not found: opencode
Installation fails with permission errors
Installation fails with permission errors
EACCES or permission denied errors during installSolutions:-
Don’t use sudo with Bun:
-
Fix Bun permissions:
-
Reinstall Bun:
Node.js compatibility issues
Node.js compatibility issues
Startup Issues
Portal won't start - Port already in use
Portal won't start - Port already in use
-
Let Portal auto-find ports:
-
Specify different ports:
-
Find what’s using the port:
-
Stop existing Portal instances:
OpenCode server fails to start
OpenCode server fails to start
-
Check if OpenCode port is accessible:
-
Try starting OpenCode manually:
Look for error messages in the output.
-
Check OpenCode logs:
-
Verify working directory exists:
-
Check disk space:
Portal starts but shows blank page
Portal starts but shows blank page
-
Hard refresh the page:
- Chrome/Firefox: Ctrl+Shift+R (Cmd+Shift+R on Mac)
- Safari: Cmd+Option+R
-
Clear browser cache:
- Chrome: Settings > Privacy > Clear browsing data
- Firefox: Preferences > Privacy > Clear Data
- Safari: Preferences > Privacy > Manage Website Data
-
Check browser console for errors:
- Open DevTools: F12 or Ctrl+Shift+I
- Look for errors in Console tab
-
Try different browser:
-
Check if server is actually responding:
Can't access Portal from other machines
Can't access Portal from other machines
-
Bind to all interfaces:
-
Check firewall rules:
-
Verify Portal is listening on 0.0.0.0:
-
Test connectivity:
Connection Issues
Lost connection to OpenCode server
Lost connection to OpenCode server
-
Check if OpenCode server is running:
-
Restart Portal:
-
Check server logs:
-
Verify network connectivity:
-
Check for resource issues:
Slow or laggy responses
Slow or laggy responses
-
Check system resources:
-
Check disk I/O:
-
Verify network latency (for remote access):
-
Check OpenCode model settings:
- Larger models (GPT-4, Claude Opus) are slower
- Try a faster model for testing
-
Restart with clean state:
WebSocket connection fails
WebSocket connection fails
-
Check for reverse proxy issues:
If using Nginx, ensure WebSocket headers are configured:
-
Check firewall doesn’t block WebSockets:
-
Browser extensions interfering:
- Try in incognito/private mode
- Disable ad blockers and privacy extensions
Session Issues
Can't create new session
Can't create new session
-
Check OpenCode server is accessible:
-
Verify permissions on OpenCode config directory:
-
Check disk space:
-
Try creating session via OpenCode CLI:
Sessions not showing up
Sessions not showing up
-
Check OpenCode sessions directory:
-
Verify API is returning sessions:
-
Refresh the browser:
- F5 or Ctrl+R
-
Check browser console for errors:
- F12 > Console tab
Can't delete sessions
Can't delete sessions
-
Check file permissions:
-
Delete manually:
-
Verify not open in another instance:
- Close all OpenCode instances
- Try deleting again
Session messages not loading
Session messages not loading
-
Check session file exists:
-
Verify JSON is valid:
-
Check browser console:
- F12 > Console > Look for parsing errors
-
Try opening in official OpenCode CLI:
Mobile-Specific Issues
Can't access Portal from mobile via Tailscale
Can't access Portal from mobile via Tailscale
-
Verify Tailscale is connected on both devices:
-
Verify Portal bound to 0.0.0.0:
-
Test connectivity:
-
Try IP address instead of hostname:
Portal UI not responsive on mobile
Portal UI not responsive on mobile
- Hard refresh the page:
- Safari: Pull down to refresh
- Chrome: Menu > Reload
- Clear mobile browser cache:
- Safari: Settings > Safari > Clear History and Website Data
- Chrome: Settings > Privacy > Clear browsing data
- Try different mobile browser:
- iOS: Safari, Chrome, Firefox
- Android: Chrome, Firefox, Samsung Internet
- Check if Desktop mode is enabled:
- Disable “Request Desktop Site”
- Report UI issue with screenshots:
Mobile browser keeps disconnecting
Mobile browser keeps disconnecting
- Settings > Tailscale > Allow unlimited background activity
- Disable Low Power Mode while using Portal
- Keep Portal tab active (don’t close)
- Settings > Apps > Tailscale > Battery > Unrestricted
- Settings > Apps > Browser > Battery > Unrestricted
- Enable “Always-on VPN” in Tailscale settings
Performance Issues
High memory usage
High memory usage
-
Check actual memory usage:
-
Limit resources with systemd:
-
Delete old sessions:
-
Restart Portal regularly:
-
Use lighter AI model:
- Switch from Claude Opus to Sonnet
- Use GPT-3.5 instead of GPT-4
High CPU usage
High CPU usage
-
Identify CPU-hungry process:
-
Check for infinite loops in code:
- Review recent changes
- Check OpenCode logs for errors
-
Verify no stuck sessions:
-
Check for disk I/O bottleneck:
Slow AI responses
Slow AI responses
-
Model speed varies:
- GPT-4, Claude Opus: Slowest but best quality
- GPT-4 Turbo, Claude Sonnet: Balanced
- GPT-3.5: Fastest but lower quality
-
API rate limits:
- Check your OpenAI/Anthropic account for rate limits
- Upgrade API tier if needed
-
Network latency:
-
Large context:
- Large codebases take longer to process
- Mention fewer files to reduce context
-
Check OpenCode logs:
File Operations
Can't mention files with @
Can't mention files with @
-
Verify you’re in correct directory:
-
Check file permissions:
-
Relative vs absolute paths:
- Use relative paths:
@src/index.ts - Not absolute:
~/project/src/index.ts
- Use relative paths:
-
File indexing:
- OpenCode indexes files on start
- Restart if new files not appearing
Large files causing issues
Large files causing issues
-
Check file size:
-
Avoid mentioning very large files:
- Binary files
- Generated files (build output, node_modules)
- Database dumps
-
Use .gitignore patterns:
- OpenCode respects .gitignore
- Add large files to .gitignore
- Mention specific sections: Instead of mentioning entire file, describe the section: “The login function in @auth.ts around line 50”
Data and Configuration
How to reset Portal completely
How to reset Portal completely
Where is data stored?
Where is data stored?
- Registry:
~/.config/openportal/registry.json - Logs: System logs (check with
journalctlif using systemd)
- Sessions:
~/.config/opencode/sessions/ - Config:
~/.config/opencode/config.json - Logs:
~/.config/opencode/logs/
How to migrate to new server
How to migrate to new server
-
On old server, backup sessions:
-
On new server, install everything:
-
Restore sessions:
- Set up Tailscale: See Tailscale Setup Guide
-
Start Portal:
Error Messages
EADDRINUSE: address already in use
EADDRINUSE: address already in use
ECONNREFUSED: Connection refused
ECONNREFUSED: Connection refused
ENOSPC: no space left on device
ENOSPC: no space left on device
ETIMEDOUT: Connection timeout
ETIMEDOUT: Connection timeout
Still Having Issues?
Ask on Discord
Open GitHub Issue
- Operating system and version
- Bun version:
bun --version - OpenCode version:
opencode --version - Portal version:
openportal --version(if available) - Full error message or logs
- Steps to reproduce the issue
- What you’ve already tried
Next Steps
- Mobile Access Guide - Access Portal from your phone
- Tailscale Setup - Set up secure VPN access
- Multiple Projects - Manage multiple Portal instances