Overview
This guide covers common issues you may encounter when developing and testing with MagicBlock Ephemeral Rollups, along with solutions and workarounds.Connection Issues
Connection refused to localhost:7799 or localhost:8899
Connection refused to localhost:7799 or localhost:8899
- Check if validators are running:
- Start validators if not running:
- Check validator health:
- View validator logs:
Wrong cluster endpoint configured
Wrong cluster endpoint configured
Anchor.toml configuration:ephemeral-validator not found
ephemeral-validator not found
WebSocket connection failed
WebSocket connection failed
- Verify WebSocket endpoint configuration:
- Check if ephemeral-validator is listening on WS port:
- Restart ephemeral-validator with correct ports:
Build and Deployment Issues
Program already deployed with different address
Program already deployed with different address
Anchor.tomllib.rs(declare_id! macro)- Any test files
Anchor build fails with dependency errors
Anchor build fails with dependency errors
- Update dependencies:
- Check Rust version:
- Verify Anchor version:
- Clean and rebuild:
Deployment fails with insufficient funds
Deployment fails with insufficient funds
Anchor test starts wrong validator
Anchor test starts wrong validator
anchor test starts its own validator instead of using the running one.Solution:Use the --skip-local-validator flag:Anchor.toml:Delegation Issues
Account not found after delegation
Account not found after delegation
Delegation instruction missing accounts
Delegation instruction missing accounts
Delegation fails with 'Invalid seeds'
Delegation fails with 'Invalid seeds'
Cannot delegate already delegated account
Cannot delegate already delegated account
Commit and State Issues
Commit transaction fails
Commit transaction fails
skipPreflight: true when committing:GetCommitmentSignature timeout
GetCommitmentSignature timeout
State mismatch between ER and base layer
State mismatch between ER and base layer
- Explicitly commit changes:
- Wait for commitment to finalize:
- Verify commit interval in delegation:
Version Compatibility
Solana version mismatch
Solana version mismatch
Anchor version incompatibility
Anchor version incompatibility
Anchor.toml:SDK version mismatch
SDK version mismatch
package.json:Node.js version issues
Node.js version issues
Test Execution Issues
Tests timeout
Tests timeout
Tests pass locally but fail in CI
Tests pass locally but fail in CI
- Ensure validators start properly:
- Add sufficient delays:
- Use —skip-local-validator in CI:
Multiple validator instances running
Multiple validator instances running
Transaction signature verification failed
Transaction signature verification failed
Performance Issues
Slow transaction confirmation
Slow transaction confirmation
- Use appropriate commitment levels:
- Check network congestion:
- Monitor validator performance:
High memory usage
High memory usage
Getting Help
If you encounter issues not covered here:-
Check validator logs:
-
Enable debug logging:
- Join the community:
- Review documentation:
Next Steps
- Review Local Setup Guide
- Explore Testing Patterns
- Try the Example Programs