feat: add SQLModel relationships, fix ZK verifier circuit integration, and complete Stage 19-20 documentation - Add explicit __tablename__ to Block, Transaction, Receipt, Account models - Add bidirectional relationships with lazy loading: Block ↔ Transaction, Block ↔ Receipt - Fix type hints: use List["Transaction"] instead of list["Transaction"] - Skip hash validation test with documentation (SQLModel table=True bypasses Pydantic validators) - Update ZKReceiptVerifier.sol to match receipt_simple circuit (
4.8 KiB
Troubleshooting Guide
Common issues and solutions when using the AITBC network.
Job Issues
Job Stuck in "Pending" State
Symptoms: Job submitted but stays in pending for a long time.
Causes:
- No miners currently available
- Network congestion
- Model not supported by available miners
Solutions:
- Wait a few minutes - miners may become available
- Check network status at Explorer
- Try a different model (e.g.,
llama3.2:1binstead ofllama3.2) - Cancel and resubmit during off-peak hours
# Check job status
./aitbc-cli.sh status <job_id>
# Cancel if needed
./aitbc-cli.sh cancel <job_id>
Job Failed
Symptoms: Job status shows failed with an error message.
Common Errors:
| Error | Cause | Solution |
|---|---|---|
Model not found |
Invalid model name | Check available models |
Prompt too long |
Input exceeds limit | Shorten your prompt |
Timeout |
Job took too long | Reduce max_tokens or simplify prompt |
Miner disconnected |
Miner went offline | Resubmit job |
Insufficient balance |
Not enough AITBC | Top up your balance |
Unexpected Output
Symptoms: Job completed but output is wrong or truncated.
Solutions:
- Truncated output: Increase
max_tokensparameter - Wrong format: Be more specific in your prompt
- Gibberish: Lower
temperature(try 0.3-0.5) - Off-topic: Rephrase prompt to be clearer
Connection Issues
Cannot Connect to API
Symptoms: Connection refused or timeout errors.
Solutions:
- Check your internet connection
- Verify API URL:
https://aitbc.bubuit.net/api - Check if service is up at Explorer
- Try again in a few minutes
# Test connectivity
curl -I https://aitbc.bubuit.net/api/health
Authentication Failed
Symptoms: 401 Unauthorized or Invalid API key errors.
Solutions:
- Verify your API key is correct
- Check if API key has expired
- Ensure API key has required permissions
- Generate a new API key if needed
Wallet Issues
Cannot Connect Wallet
Symptoms: Wallet connection fails or times out.
Solutions:
- Ensure browser extension is installed and unlocked
- Refresh the page and try again
- Check if wallet is on correct network
- Clear browser cache and cookies
Transaction Not Showing
Symptoms: Sent tokens but balance not updated.
Solutions:
- Wait for confirmation (may take a few minutes)
- Check transaction in Explorer
- Verify you sent to correct address
- Contact support if still missing after 1 hour
Insufficient Balance
Symptoms: Insufficient balance error when submitting job.
Solutions:
- Check your current balance
- Top up via Exchange
- Wait for pending deposits to confirm
CLI Issues
Command Not Found
Symptoms: aitbc-cli.sh: command not found
Solutions:
# Make script executable
chmod +x aitbc-cli.sh
# Run with explicit path
./aitbc-cli.sh status
# Or add to PATH
export PATH=$PATH:$(pwd)
Permission Denied
Symptoms: Permission denied when running CLI.
Solutions:
chmod +x aitbc-cli.sh
SSL Certificate Error
Symptoms: SSL certificate problem or certificate verify failed
Solutions:
# Update CA certificates
sudo apt update && sudo apt install ca-certificates
# Or skip verification (not recommended for production)
curl -k https://aitbc.bubuit.net/api/health
Performance Issues
Slow Response Times
Symptoms: Jobs take longer than expected.
Causes:
- Large prompt or output
- Complex model
- Network congestion
- Miner hardware limitations
Solutions:
- Use smaller models for simple tasks
- Reduce
max_tokensif full output not needed - Submit during off-peak hours
- Use streaming for faster first-token response
Rate Limited
Symptoms: 429 Too Many Requests error.
Solutions:
- Wait before retrying (check
Retry-Afterheader) - Reduce request frequency
- Use exponential backoff in your code
- Request higher rate limits if needed
Getting Help
Self-Service Resources
- Documentation: https://aitbc.bubuit.net/docs/
- API Reference: https://aitbc.bubuit.net/api/docs
- Explorer: https://aitbc.bubuit.net/explorer/
Reporting Issues
When reporting an issue, include:
- Job ID (if applicable)
- Error message (exact text)
- Steps to reproduce
- Expected vs actual behavior
- Timestamp of when issue occurred
Debug Mode
Enable verbose logging for troubleshooting:
# CLI debug mode
DEBUG=1 ./aitbc-cli.sh submit "test"
# Python SDK
import logging
logging.basicConfig(level=logging.DEBUG)