Troubleshooting Guide
Common issues, solutions, and debugging techniques for Lokus.
Installation Issues
Application Won’t Start
Symptoms: Lokus crashes on launch or shows blank window
Solutions:
-
Check system requirements:
- macOS 10.15+ / Windows 10+ / Linux (Ubuntu 20.04+)
- 4GB RAM minimum
- 500MB free disk space
-
Clear application cache:
# macOS rm -rf ~/Library/Application\ Support/com.lokus.app # Windows rmdir /s %APPDATA%\com.lokus.app # Linux rm -rf ~/.config/com.lokus.app
-
Check permissions:
# macOS - Grant full disk access System Preferences → Security & Privacy → Full Disk Access # Linux - Ensure executable permissions chmod +x lokus.AppImage
-
View crash logs:
# macOS cat ~/Library/Logs/Lokus/crash.log # Windows type %APPDATA%\Lokus\logs\crash.log # Linux cat ~/.local/share/Lokus/logs/crash.log
Installation Fails
Error: “Installation failed” or “Cannot install package”
Solutions:
-
Verify download integrity:
# Check SHA256 hash shasum -a 256 lokus-installer.dmg
-
Disable antivirus temporarily - Some AV software blocks installation
-
Run as administrator (Windows):
- Right-click installer
- Select “Run as administrator”
-
Check disk space:
df -h # Linux/macOS
Workspace Issues
Workspace Won’t Load
Symptoms: Error loading workspace or blank workspace view
Solutions:
-
Validate workspace path:
const isValid = await invoke('validate_workspace_path', { path: '/path/to/workspace' });
-
Check .lokus folder:
# Ensure .lokus folder exists and is writable ls -la /path/to/workspace/.lokus chmod -R 755 /path/to/workspace/.lokus
-
Repair workspace:
// Clear corrupted session state await invoke('clear_all_workspace_data'); // Reinitialize workspace await initializeWorkspace('/path/to/workspace');
-
Try different workspace:
- Close current workspace
- Create new test workspace
- If test works, issue is with original workspace
Files Not Appearing
Symptoms: Files exist but don’t show in file tree
Solutions:
-
Refresh file tree:
- Press
F5
- Or: File → Refresh Files
- Press
-
Check exclude patterns:
{ "files": { "excludePatterns": [ "node_modules", ".git" ] } }
-
Check hidden files setting:
{ "files": { "showHiddenFiles": true } }
-
Rebuild file index:
await invoke('build_search_index');
Editor Issues
Editor Performance Issues
Symptoms: Lag when typing, slow scrolling, high CPU usage
Solutions:
-
Reduce file size:
- Split large documents (>1MB)
- Remove unnecessary content
-
Disable expensive features:
{ "editor": { "spellCheck": false, "syntaxHighlighting": false } }
-
Clear editor cache:
// Close all tabs // Restart application
-
Check for infinite loops in extensions:
- Disable all plugins
- Enable one by one to identify culprit
Content Not Saving
Symptoms: Changes aren’t persisted to disk
Solutions:
-
Check auto-save:
{ "editor": { "autoSave": true, "autoSaveDelay": 1000 } }
-
Manual save:
- Press
Cmd/Ctrl+S
- Check status bar for save confirmation
- Press
-
Check file permissions:
# Ensure file is writable ls -l /path/to/file.md chmod 644 /path/to/file.md
-
Check disk space:
df -h
-
View error logs:
- Open Developer Tools (Cmd/Ctrl+Shift+I)
- Check Console tab for errors
Formatting Issues
Problem: Bold, italic, or other formatting not working
Solutions:
-
Check keyboard shortcuts:
- Verify shortcuts aren’t conflicting
- Preferences → Keyboard Shortcuts
-
Test in new document:
- Create new file
- Test formatting
- If works, issue is with specific document
-
Check extension conflicts:
- Disable custom editor extensions
- Test formatting
- Re-enable extensions one by one
-
Reset editor state:
// Close and reopen file // Or restart application
Plugin Issues
Plugin Won’t Install
Error: “Failed to install plugin” or validation errors
Solutions:
-
Validate plugin manifest:
const result = await invoke('validate_plugin_manifest', { manifest: manifestJSON }); console.log(result.errors);
-
Check plugin.json:
{ "name": "plugin-name", "version": "1.0.0", "description": "Description", "author": "Author", "main": "index.js", "permissions": ["read:files"] }
-
Verify file structure:
plugin-name/ ├── plugin.json ├── index.js └── README.md
-
Check for name conflicts:
- Ensure plugin name is unique
- List installed plugins
Plugin Not Working
Symptoms: Plugin installed but not functioning
Solutions:
-
Check if enabled:
const enabled = await invoke('get_enabled_plugins'); console.log(enabled);
-
Enable plugin:
await invoke('enable_plugin', { name: 'plugin-name' });
-
Check permissions:
const permissions = await invoke('get_plugin_permissions', { plugin_name: 'plugin-name' });
-
View plugin logs:
- Developer Tools → Console
- Filter by plugin name
-
Reinstall plugin:
await invoke('uninstall_plugin', { name: 'plugin-name' }); // Reinstall plugin
Plugin Permissions Denied
Error: “Plugin lacks permission” errors
Solutions:
-
Check required permissions:
- View plugin manifest
- Verify permissions declared
-
Grant permissions:
await invoke('set_plugin_permission', { plugin_name: 'plugin-name', permissions: ['read:files', 'write:files'] });
-
Review security settings:
{ "security": { "sandboxPlugins": true } }
Gmail Integration Issues
Authentication Fails
Error: OAuth errors or “Failed to authenticate”
Solutions:
-
Check OAuth credentials:
- Verify CLIENT_ID and CLIENT_SECRET
- Ensure redirect URI is correct
-
Clear OAuth state:
await invoke('gmail_logout'); // Try authentication again
-
Check OAuth server:
// Ensure OAuth server is running const status = await invoke('mcp_status');
-
Browser issues:
- Clear browser cache
- Try different browser
- Disable ad blockers
-
Network issues:
- Check firewall settings
- Verify internet connection
- Test with VPN disabled
Emails Not Syncing
Symptoms: Emails don’t appear or are outdated
Solutions:
-
Check authentication:
const isAuth = await invoke('gmail_is_authenticated');
-
Force sync:
await invoke('gmail_force_process_queue');
-
Check sync settings:
{ "integrations": { "gmail": { "syncInterval": 300000, "maxEmailsPerSync": 50 } } }
-
Check API quota:
- Gmail API has usage limits
- Wait and try again
-
View queue stats:
const stats = await invoke('gmail_get_queue_stats'); console.log(stats);
MCP Server Issues
Server Won’t Start
Error: “Failed to start MCP server”
Solutions:
-
Check Node.js:
node --version # Should be v18+
-
Check port availability:
# Check if port 3456 is in use lsof -i :3456 # macOS/Linux netstat -ano | findstr :3456 # Windows
-
Try different port:
await invoke('mcp_start', { port: 3457 });
-
Check server file:
ls -la src/mcp-server/stdio-server.js
-
View server logs:
cat ~/.lokus/logs/mcp-server.log
Server Connection Timeouts
Error: “Connection timeout” or “Server not responding”
Solutions:
-
Restart server:
await invoke('mcp_restart');
-
Check server health:
const healthy = await invoke('mcp_health_check');
-
Increase timeout:
{ "integrations": { "mcp": { "timeout": 60000 } } }
-
Check firewall:
- Allow Node.js through firewall
- Allow port 3456
Search Issues
Search Not Working
Symptoms: No search results or search hangs
Solutions:
-
Rebuild search index:
await invoke('build_search_index');
-
Check search settings:
{ "search": { "maxResults": 1000, "indexOnStartup": true } }
-
Clear search cache:
// Delete search index // Restart application // Index will rebuild
-
Check file permissions:
- Ensure files are readable
- Check workspace permissions
Search Too Slow
Symptoms: Search takes >5 seconds
Solutions:
-
Limit search scope:
const results = await invoke('search_in_files', { query: 'TODO', max_results: 100, file_types: ['.md'] });
-
Use exclude patterns:
{ "search": { "excludePatterns": [ "node_modules", "*.pdf", "*.zip" ] } }
-
Rebuild index:
- Corrupted index can slow search
- Rebuild from scratch
Performance Issues
High CPU Usage
Symptoms: CPU >80% when idle
Solutions:
-
Check running processes:
- Activity Monitor (macOS)
- Task Manager (Windows)
- System Monitor (Linux)
-
Disable plugins:
- Some plugins may have loops
- Disable all plugins
- Re-enable one by one
-
Check file watchers:
{ "files": { "watchForChanges": false } }
-
Close unused tabs:
- Limit open tabs to 10-20
- Use tab groups
High Memory Usage
Symptoms: Memory >1GB
Solutions:
-
Check open tabs:
- Close unused tabs
- Restart application
-
Clear cache:
// Close all tabs // Restart application
-
Limit cache size:
{ "performance": { "cacheSize": 50, "maxOpenTabs": 10 } }
-
Check for memory leaks:
- Open Developer Tools
- Memory Profiler
- Take heap snapshot
Platform-Specific Issues
macOS Issues
Gatekeeper Warning:
# Allow unsigned app
xattr -d com.apple.quarantine /Applications/Lokus.app
Permission Denied:
- System Preferences → Security & Privacy → Full Disk Access
- Add Lokus to allowed applications
Keyboard Shortcuts Not Working:
- System Preferences → Keyboard → Shortcuts
- Check for conflicts
Windows Issues
SmartScreen Warning:
- Click “More info”
- Click “Run anyway”
Antivirus Blocking:
- Add Lokus to exclusions
- Temporarily disable to test
High DPI Issues:
- Right-click Lokus.exe → Properties
- Compatibility → High DPI settings
- Override scaling behavior
Linux Issues
AppImage Won’t Run:
chmod +x Lokus.AppImage
./Lokus.AppImage
Missing Dependencies:
# Ubuntu/Debian
sudo apt install libfuse2
# Fedora
sudo dnf install fuse-libs
Wayland Issues:
# Force X11
GDK_BACKEND=x11 ./Lokus.AppImage
Debug Mode
Enable Debug Logging
Via Environment Variable:
LOKUS_DEBUG=true lokus
Via Configuration:
{
"development": {
"debugLogging": true,
"showPerformanceMetrics": true
}
}
View Logs:
# macOS
tail -f ~/Library/Logs/Lokus/debug.log
# Windows
type %APPDATA%\Lokus\logs\debug.log
# Linux
tail -f ~/.local/share/Lokus/logs/debug.log
Developer Tools
Open Developer Tools:
Cmd/Ctrl+Shift+I
- Or: View → Developer → Developer Tools
Console Tab:
- View JavaScript errors
- Check network requests
- Monitor performance
Network Tab:
- View API requests
- Check request timing
- Debug authentication
Performance Tab:
- Profile performance
- Find bottlenecks
- Memory profiling
Getting Help
Before Reporting Issues
- Search existing issues - GitHub Issues
- Check documentation - docs.lokus.app
- Try latest version - Update to latest release
- Gather information:
- Lokus version
- OS version
- Steps to reproduce
- Error messages
- Logs
Report an Issue
GitHub Issues: github.com/lokus/lokus/issues
Include:
- Description - Clear problem description
- Steps to reproduce - Detailed steps
- Expected behavior - What should happen
- Actual behavior - What actually happens
- Screenshots - If applicable
- Logs - Error logs
- Environment:
- Lokus version
- OS and version
- Hardware specs
Community Support
- Discord - discord.gg/lokus
- Forum - community.lokus.app
- Stack Overflow - Tag: lokus
- Twitter - @lokusapp
Common Error Messages
”Failed to invoke command”
Cause: Tauri command error
Solution:
- Check command name spelling
- Verify parameters are correct
- Check backend logs
”Permission denied”
Cause: Insufficient file permissions
Solution:
- Check file permissions
- Run with appropriate privileges
- Check security settings
”Network request failed”
Cause: Network connectivity issue
Solution:
- Check internet connection
- Verify firewall settings
- Check proxy configuration
”Plugin not found”
Cause: Plugin not installed or disabled
Solution:
- Install plugin
- Enable plugin
- Restart application
Next Steps
- Configuration - Configure Lokus
- Security - Security features
- Performance - Optimize performance