Troubleshooting
This guide covers common issues you might encounter when using the ElizaOS 0G plugin and their solutions.File Access Errors
File Not Found
Problem: Plugin cannot locate the specified file.-
Check file path: Verify the file exists at the specified location
-
Use absolute paths: Provide full file path to avoid ambiguity
-
Check current directory: Ensure you’re in the correct working directory
Permission Denied
Problem: Insufficient permissions to read the file.-
Check file permissions:
-
Fix permissions:
- Run with appropriate user: Ensure the process has read access
Invalid Path Format
Problem: File path contains invalid characters or format. Solutions:-
Escape special characters:
-
Use quotes for paths with spaces:
Configuration Issues
Missing Environment Variables
Problem: Required configuration not set.-
Create .env file:
-
Load environment variables:
-
Verify variables are loaded:
Invalid RPC Endpoints
Problem: Cannot connect to 0G network endpoints.-
Test endpoint connectivity:
-
Check network connectivity:
- Use alternative endpoints: Try different RPC providers if available
- Check firewall settings: Ensure outbound connections are allowed
Private Key Issues
Problem: Invalid private key format or insufficient permissions.-
Verify private key format:
-
Check account balance:
- Ensure sufficient gas: Account needs tokens for transaction fees
Network and Upload Issues
Upload Timeout
Problem: File upload takes too long and times out.-
Reduce file size:
- Check network speed: Ensure stable internet connection
- Increase timeout: Configure longer timeout for large files
- Split large files: Break into smaller chunks if possible
Transaction Failed
Problem: Blockchain transaction fails during upload.- Check account balance: Ensure sufficient tokens for gas fees
-
Increase gas limit:
- Check network congestion: Wait for lower network activity
- Verify contract address: Ensure Flow contract address is correct
IPFS Gateway Issues
Problem: Cannot access uploaded files through IPFS gateway. Solutions:-
Try alternative gateways:
- Wait for propagation: IPFS content may take time to propagate
- Check file hash: Verify the IPFS hash is correct
Development Issues
Plugin Not Loading
Problem: ElizaOS doesn’t recognize the 0G plugin. Solutions:-
Verify installation:
-
Check import statement:
-
Register plugin correctly:
TypeScript Errors
Problem: Type definition conflicts or missing types. Solutions:-
Update TypeScript:
-
Install type definitions:
-
Check tsconfig.json:
Performance Optimization
Slow Upload Speeds
Solutions:-
Compress files before upload:
- Use parallel uploads for multiple files
- Implement retry logic for failed uploads
- Cache frequently accessed files
Memory Issues
Solutions:- Stream large files instead of loading into memory
-
Implement file size limits:
- Clean up temporary files after upload
Getting Help
If you continue to experience issues:- Check the logs: Enable debug logging for detailed error information
- Community Support:
- Documentation:
- Contact Support: support@0g.ai