Troubleshooting
Common issues and solutions when using TOSE CLI.
Installation Issues
Command Not Found
If tose: command not found appears after installation:
Solution:
# Check npm global bin path
npm config get prefix
# Add to PATH
export PATH="$PATH:$(npm config get prefix)/bin"
source ~/.bashrcPermission Errors
Solution:
# Use sudo (not recommended)
sudo npm install -g @tosesh/tose
# Or configure npm to use different directory (recommended)
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrcAuthentication Issues
API Key Invalid
Symptoms: "Invalid API key" error
Solutions:
- Verify key starts with
tose_sk_ - Check key in dashboard hasn't expired
- Remove cached config and try again:bash
rm ~/.tose/config.json tose up
Workspace Not Found
Solution:
# Remove cached workspace
rm ~/.tose/config.json
tose upDeployment Issues
Git Repository Not Detected
Solutions:
- Check you're in a Git repository:bash
git status - Verify remote exists:bash
git remote -v - Manually enter URL when prompted
Deployment Fails
Solutions:
- Check logs for specific errors:bash
tose logs -n 200 - Verify environment variables are correct
- Check application port matches your app
- Ensure Git repository is accessible
Build Errors
Common causes:
- Missing dependencies in package.json
- Syntax errors in code
- Incorrect build command
Solution:
# Review build logs
tose logs --follow
# Test build locally first
npm run buildConfiguration Issues
Config File Corrupted
Solution:
# Backup and recreate
mv ~/.tose/config.json ~/.tose/config.json.backup
tose upEnvironment Variables Not Applied
Solutions:
- Verify .env files were selected during deployment
- Check variable names (case-sensitive)
- Redeploy to apply changes:bash
tose up # Select "Redeploy"
Network Issues
Connection Timeout
Solutions:
- Check internet connection
- Verify firewall isn't blocking
- Try different network
- Check API status at status.tose.sh
SSL/TLS Errors
Solution:
# Update Node.js to latest LTS version
# Or temporarily disable SSL verification (not recommended)
NODE_TLS_REJECT_UNAUTHORIZED=0 tose upLog Issues
No Logs Available
Solutions:
- Verify deployment exists:bash
tose status - Wait a few moments for logs to generate
- Check deployment ID is correct
Logs Stop Streaming
Solution:
- Press Ctrl+C and restart:bash
tose logs --follow
Performance Issues
Slow Deployment
Common causes:
- Large dependencies
- Slow Git clone
- Complex build process
Solutions:
- Optimize package.json dependencies
- Use
.npmrcfor faster installs - Enable caching in build process
Getting Help
If issues persist:
Check Documentation
Search GitHub Issues
- GitHub Issues
- Check if issue already reported
Create New Issue
- Provide TOSE CLI version:
tose --version - Include error messages
- Describe steps to reproduce
- Provide TOSE CLI version:
Contact Support
- Email: tobi@wearetopgroup.com
- Include relevant logs and error messages
Debug Mode
Enable verbose logging for troubleshooting:
# Set debug environment variable
DEBUG=* tose up
# Or check config for debug option
cat ~/.tose/config.jsonCommon Error Messages
"Project not found"
Solution: Verify project ID or slug is correct:
tose status
# Select from list"Deployment already in progress"
Solution: Wait for current deployment to complete or cancel it:
tose down --force
tose up"INSUFFICIENT_BALANCE" (HTTP 402)
Your workspace wallet balance is zero or negative, so TOSE refuses to deploy, redeploy or roll back. The dashboard and API return HTTP 402 with the code INSUFFICIENT_BALANCE and create no deployment. A GitHub push or a project's first deploy creates a deployment that ends as failed with insufficient wallet balance before the build starts. An agent over MCP gets INSUFFICIENT_BALANCE when it asks for the plan.
Solution: top up the wallet from the dashboard billing page, then deploy again. See When the balance is zero.
"Port already in use"
Solution: Change port in configuration:
tose up
# Enter different port when promptedBest Practices to Avoid Issues
Keep TOSE CLI Updated
bashnpm update -g @tosesh/toseCommit Before Deploying
bashgit add . git commit -m "message" git pushTest Locally First
bashnpm install npm run build npm startUse Correct Environment Files
- Development:
.env,.env.local - Production:
.env,.env.production
- Development:
Monitor Deployments
bashtose logs --follow