Troubleshooting¶
Common issues and their solutions when using Probing.
Connection Issues¶
Cannot Connect to Process¶
Symptom: probing $ENDPOINT inject fails or times out.
Solutions:
-
Verify process exists:
-
Check Linux requirement: Injection only works on Linux. On other platforms, start your process with:
-
Check permissions:
Connection Refused (Remote)¶
Symptom: Cannot connect to remote process.
Solutions:
-
Verify server is running:
-
Check firewall:
-
Verify endpoint format:
Query Issues¶
Table Not Found¶
Symptom: Table 'python.torch_trace' not found
Solutions:
-
Check if PyTorch profiling is enabled:
-
Enable PyTorch tracing:
-
Wait for data collection: Tables are populated as operations occur. Run training steps first. The first TorchProbe step is discovery only (no rows); use
WHERE local_step > 1if needed.
Empty Results¶
Symptom: Query returns no rows.
Solutions:
-
Check table contents:
-
Verify filter conditions:
-
Check step range:
Eval Issues¶
Code Execution Fails¶
Symptom: probing eval returns error or unexpected result.
Solutions:
-
Check syntax:
-
Handle imports:
-
Check variable scope:
Import Errors¶
Symptom: ModuleNotFoundError in eval.
Solutions:
-
Check if module is loaded:
-
Use try-except:
Performance Issues¶
High Overhead¶
Symptom: Application runs slower with Probing.
Solutions:
-
Reduce TorchProbe sampling (not a global sample_rate knob):
-
Lower CPU pprof frequency:
-
Disable torch profiling when not needed:
-
Use SQL step filters instead of a warmup schedule:
Query Timeout¶
Symptom: SQL queries take too long.
Solutions:
-
Add LIMIT clause:
-
Use step filtering:
-
Aggregate data:
Data Issues¶
Missing Data¶
Symptom: Expected data not appearing in tables.
Solutions:
-
Verify tables exist and have rows:
-
Confirm training has progressed — rows append when hooks fire; step 1 of TorchProbe is discovery-only (use
WHERE local_step > 1if needed). -
Check TorchProbe is not off:
Incorrect Values¶
Symptom: Data values seem wrong.
Solutions:
- Verify units:
- Memory is typically in MB
-
Duration is in seconds
-
Check for aggregation:
-
Validate manually:
Platform-Specific Issues¶
Linux¶
- ptrace errors: May need
CAP_SYS_PTRACEcapability - SELinux: May need to adjust policies
macOS¶
- Injection not supported: Use
PROBING=1at startup - SIP restrictions: May affect some features
Windows¶
- Limited support: Only query/eval with pre-enabled processes
Getting Help¶
If you're still stuck:
-
Check logs:
-
Report issue: GitHub Issues
-
Include diagnostics: