|
Download TROUBLESHOOTING.md from SmartySmile/freespace-freemind: direct link, hf CLI and curl.
- Browser
- Download file 11.2 kB
-
https://huggingface.co/datasets/SmartySmile/freespace-freemind/resolve/main/TROUBLESHOOTING.md
- Command line
-
hf download hf://datasets/SmartySmile/freespace-freemind/TROUBLESHOOTING.md
-
curl -L -o TROUBLESHOOTING.md https://huggingface.co/datasets/SmartySmile/freespace-freemind/resolve/main/TROUBLESHOOTING.md
11.2 kB
| # Troubleshooting Guide - appsONLINE Launcher | |
| This guide covers the most common issues and their solutions. | |
| ## Installation Issues | |
| ### npm: command not found | |
| **Problem:** When running `npm install`, you get "npm: command not found" | |
| **Solution:** | |
| 1. Node.js and npm are not installed or not in your PATH | |
| 2. Download Node.js from https://nodejs.org/ (includes npm) | |
| 3. Run the installer | |
| 4. Restart your terminal/PowerShell | |
| 5. Verify: `npm --version` | |
| ### npm install fails with permission errors | |
| **Problem:** `EACCES: permission denied` or similar | |
| **Solution (Windows):** | |
| 1. Run PowerShell or Command Prompt as Administrator | |
| 2. Delete the `node_modules` folder | |
| 3. Run `npm install` again | |
| **Solution (macOS/Linux):** | |
| ```bash | |
| sudo chown -R $(whoami) ~/.npm | |
| npm install | |
| ``` | |
| ### .NET SDK not found | |
| **Problem:** When trying to launch an app, error says "dotnet: command not found" | |
| **Solution:** | |
| 1. Install .NET SDK 8.0 from https://dotnet.microsoft.com/download | |
| 2. Verify installation: `dotnet --version` (should show 8.0 or higher) | |
| 3. Restart your terminal for changes to take effect | |
| --- | |
| ## Application Launch Issues | |
| ### No MVC applications found | |
| **Problem:** The launcher shows "No MVC applications found in the workspace" | |
| **Checklist:** | |
| - [ ] Your ASP.NET Core project folder has a `.csproj` file | |
| - [ ] The project has a `Properties/launchSettings.json` file | |
| - [ ] The JSON file is valid (no syntax errors) | |
| - [ ] The `http` or `https` profile exists in the settings | |
| - [ ] Click **"🔄 Refresh Apps"** in the launcher | |
| **Fix:** | |
| 1. Verify the project structure: | |
| ``` | |
| MyProject/ | |
| ├── MyProject.csproj | |
| ├── Properties/ | |
| │ └── launchSettings.json ← This file is required! | |
| └── ... | |
| ``` | |
| 2. Check if `launchSettings.json` is valid JSON: | |
| ```powershell | |
| # In the project folder | |
| Get-Content Properties/launchSettings.json | ConvertFrom-Json | |
| ``` | |
| 3. Ensure it has an HTTP profile: | |
| ```json | |
| { | |
| "profiles": { | |
| "http": { | |
| "commandName": "Project", | |
| "applicationUrl": "http://localhost:5293", | |
| "environmentVariables": { | |
| "ASPNETCORE_ENVIRONMENT": "Development" | |
| } | |
| } | |
| } | |
| } | |
| ``` | |
| ### Application fails to launch | |
| **Problem:** Click "▶ Launch" but the app doesn't start | |
| **Solutions:** | |
| 1. **Check .NET SDK Installation:** | |
| ```powershell | |
| dotnet --version | |
| ``` | |
| Must show version 8.0 or higher | |
| 2. **Try launching manually:** | |
| ```powershell | |
| cd path/to/your/project | |
| dotnet run | |
| ``` | |
| If this fails, you'll see the actual error | |
| 3. **Check the port is available:** | |
| ```powershell | |
| netstat -ano | findstr :5293 # Check if port 5293 is in use | |
| ``` | |
| 4. **Look for errors in the console:** | |
| - If running `npm start`, the console shows errors | |
| - Check for dependency issues in the `.csproj` file | |
| ### Port already in use | |
| **Problem:** Error message like "Address already in use" or "The port number X is already in use" | |
| **Diagnosis:** | |
| ```powershell | |
| # Check what's using the port (example: port 5293) | |
| netstat -ano | findstr :5293 | |
| ``` | |
| **Solution:** | |
| 1. Change the port in `Properties/launchSettings.json`: | |
| ```json | |
| "applicationUrl": "http://localhost:5294" // Changed from 5293 | |
| ``` | |
| 2. Click **"🔄 Refresh Apps"** in the launcher | |
| 3. The app should now use the new port | |
| ### Application crashes immediately after launch | |
| **Problem:** App launches but stops running within seconds | |
| **Diagnosis:** | |
| 1. Try running the app manually: | |
| ```powershell | |
| cd path/to/your/project | |
| dotnet run | |
| ``` | |
| 2. Look at the error output for clues | |
| **Common causes:** | |
| - Missing appsettings.json | |
| - Missing database files or connection strings | |
| - Invalid configuration values | |
| - Dependency version conflicts | |
| **Solution:** | |
| 1. Ensure `appsettings.json` exists in the project root | |
| 2. Check the appsettings for required configurations | |
| 3. Run `dotnet restore` to rebuild dependencies: | |
| ```powershell | |
| cd path/to/your/project | |
| dotnet restore | |
| dotnet run | |
| ``` | |
| --- | |
| ## Launcher Window Issues | |
| ### Electron window won't open | |
| **Problem:** Running `npm start` but no window appears | |
| **Solution:** | |
| 1. Check for errors in the console output | |
| 2. Ensure Electron is installed: | |
| ```powershell | |
| npm list electron | |
| ``` | |
| 3. If electron is missing, reinstall dependencies: | |
| ```powershell | |
| rm -r node_modules | |
| npm install | |
| npm start | |
| ``` | |
| 4. Try running in debug mode: | |
| ```powershell | |
| npm run electron-dev | |
| ``` | |
| ### UI is blank or not loading | |
| **Problem:** The window opens but shows a blank screen | |
| **Diagnosis:** | |
| 1. Open Developer Tools (Ctrl+Shift+I) | |
| 2. Check the Console tab for errors | |
| 3. Check the Network tab to see if API calls are failing | |
| **Solutions:** | |
| 1. Ensure Express server started successfully (check console output for "port 3000") | |
| 2. Try refreshing the page (F5) | |
| 3. Check if port 3000 is already in use: | |
| ```powershell | |
| netstat -ano | findstr :3000 | |
| ``` | |
| 4. If port 3000 is in use, change it in `main.js`: | |
| ```javascript | |
| const PORT = 3001; // Change from 3000 | |
| ``` | |
| ### Application is unresponsive | |
| **Problem:** The launcher window is frozen or not responding | |
| **Solution:** | |
| 1. Click "⏹ Stop All Apps" to stop all running applications | |
| 2. Close the launcher window | |
| 3. Check for zombie processes: | |
| ```powershell | |
| Get-Process | findstr electron | |
| Stop-Process -Name electron # Force kill if needed | |
| ``` | |
| 4. Restart the launcher: | |
| ```powershell | |
| npm start | |
| ``` | |
| --- | |
| ## Application Management Issues | |
| ### "Application is already running" | |
| **Problem:** Trying to launch an app that's already running | |
| **Solution:** | |
| - This is expected behavior - the launcher prevents duplicate instances | |
| - Click **"⏹ Stop"** to stop the running instance first | |
| - Then click **"▶ Launch"** to start a new one | |
| ### Apps don't appear in the list | |
| **Problem:** You added a new MVC app but it's not showing | |
| **Solutions:** | |
| 1. Ensure the app is in a subfolder within the workspace | |
| 2. Verify the `.csproj` and `Properties/launchSettings.json` files exist | |
| 3. Click **"🔄 Refresh Apps"** to rescan | |
| 4. Restart the launcher: | |
| ```powershell | |
| npm start | |
| ``` | |
| ### Cannot open app in browser | |
| **Problem:** Click "🌐 Open" but the app doesn't open | |
| **Solutions:** | |
| 1. Ensure the app is actually running (check the status) | |
| 2. Manually open the URL in your browser: | |
| - Copy the URL from the app card | |
| - Open your default browser | |
| - Paste the URL and press Enter | |
| 3. Try opening different browsers | |
| 4. Check if there's a firewall blocking the port | |
| --- | |
| ## Performance Issues | |
| ### Launcher is slow | |
| **Problem:** The launcher UI is sluggish or slow to respond | |
| **Diagnosis:** | |
| 1. Check how many apps are in the workspace | |
| - More than 20+ apps can slow down scanning | |
| - Each app scan reads files from disk | |
| **Solution:** | |
| 1. Close other running applications | |
| 2. Try reducing the search depth in the launcher code | |
| 3. Manually manage which apps to display | |
| ### Apps take a long time to start | |
| **Problem:** When clicking "▶ Launch", it takes longer than expected | |
| **Reasons:** | |
| 1. First-time restore of NuGet packages (normal, can take 30+ seconds) | |
| 2. Large project with many dependencies | |
| 3. Slow disk I/O | |
| 4. Background processes consuming resources | |
| **Solution:** | |
| 1. Wait for the first launch to complete (can be slow) | |
| 2. Subsequent launches are usually faster | |
| 3. Close other applications to free up resources | |
| 4. Check disk usage with Task Manager | |
| --- | |
| ## Connectivity Issues | |
| ### Can't access the running app | |
| **Problem:** Click "🌐 Open" but get a "Connection refused" error | |
| **Diagnosis:** | |
| 1. Verify the app is running (status shows "● Running") | |
| 2. Check if the port is accessible: | |
| ```powershell | |
| Test-NetConnection localhost -Port 5293 | |
| ``` | |
| 3. Try accessing via localhost vs 127.0.0.1 | |
| **Solution:** | |
| 1. The app might still be starting - wait a moment and refresh | |
| 2. Check if a firewall is blocking the port | |
| 3. Try accessing the URL manually: | |
| - Open your browser | |
| - Type: `http://localhost:5293` | |
| - Press Enter | |
| 4. If the app shows "● Running" but is unreachable: | |
| - Stop the app (click **"⏹ Stop"**) | |
| - Launch it again | |
| - Wait 3-5 seconds before opening | |
| --- | |
| ## Configuration Issues | |
| ### Custom port not working | |
| **Problem:** Changed the port in launchSettings.json but the app still uses the old port | |
| **Solution:** | |
| 1. Verify the JSON syntax is correct | |
| 2. Make sure it's valid JSON: | |
| ```powershell | |
| Get-Content Properties/launchSettings.json | ConvertFrom-Json | |
| ``` | |
| 3. Click **"🔄 Refresh Apps"** to reload configuration | |
| 4. Restart the launcher | |
| 5. Stop and relaunch the app | |
| ### Different ports for HTTP and HTTPS | |
| **Problem:** Can't decide which URL to use | |
| **Solution:** | |
| 1. The launcher uses the first URL in `applicationUrl` | |
| 2. In the app card, it shows: `http://localhost:5293;https://localhost:7145` | |
| 3. Use the HTTP URL for development (no SSL certificate needed) | |
| 4. To use HTTPS, you may need to trust the development certificate: | |
| ```powershell | |
| dotnet dev-certs https --trust | |
| ``` | |
| --- | |
| ## Advanced Troubleshooting | |
| ### Enable debug logging | |
| To see detailed debug information: | |
| 1. Set environment variable: | |
| ```powershell | |
| $env:DEBUG = "*" | |
| npm start | |
| ``` | |
| 2. Or open Developer Tools: | |
| - Press Ctrl+Shift+I when the launcher window is open | |
| - Check Console tab for errors | |
| - Check Network tab for API call failures | |
| ### Check logs | |
| View application logs: | |
| ```powershell | |
| # See logs from console output | |
| npm start 2>&1 | Tee-Object -FilePath launcher.log | |
| # View the log file | |
| Get-Content launcher.log | |
| ``` | |
| ### Reset the launcher | |
| If something is really broken: | |
| ```powershell | |
| # Remove all generated files | |
| rm -r node_modules | |
| rm package-lock.json | |
| # Reinstall everything | |
| npm install | |
| # Start fresh | |
| npm start | |
| ``` | |
| --- | |
| ## Getting Help | |
| If you're still stuck: | |
| 1. **Check the full README.md** - More detailed information | |
| 2. **Check the QUICKSTART.md** - Quick reference guide | |
| 3. **Look at console output** - Most errors are printed there | |
| 4. **Try manual app launch** - Helps isolate issues | |
| 5. **Check Node.js/Electron documentation** | |
| - https://nodejs.org/docs/ | |
| - https://www.electronjs.org/docs/ | |
| --- | |
| ## Common Error Messages Explained | |
| | Error | Cause | Solution | | |
| |-------|-------|----------| | |
| | "Cannot find module 'electron'" | Dependencies not installed | Run `npm install` | | |
| | "dotnet: command not found" | .NET SDK not installed | Install from https://dotnet.microsoft.com/ | | |
| | "EADDRINUSE: Address already in use" | Port is occupied | Change port in launchSettings.json | | |
| | "ENOENT: no such file or directory" | Missing .csproj or launchSettings.json | Verify project structure | | |
| | "SyntaxError: Unexpected token" | Invalid JSON in settings | Check JSON syntax with a validator | | |
| --- | |
| **Last Updated:** February 1, 2026 | |
| **Version:** 1.0.0 | |