You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Creates: output/sacct_12345.json, output/sacct_12346.json, etc.
614
+
```
615
+
616
+
### Viewing Slurm Logs in torc-dash
617
+
618
+
The torc-dash web interface provides two ways to view Slurm logs:
619
+
620
+
#### Debugging Tab - Slurm Log Analysis
621
+
622
+
The Debugging tab includes a "Slurm Log Analysis" section:
623
+
624
+
1. Navigate to the **Debugging** tab
625
+
2. Find the **Slurm Log Analysis** section
626
+
3. Enter the output directory path (default: `output`)
627
+
4. Click **Analyze Slurm Logs**
628
+
629
+
The results show all detected errors with their Slurm job IDs, line numbers, error patterns, severity levels, and affected Torc jobs.
630
+
631
+
#### Debugging Tab - Slurm Accounting Data
632
+
633
+
The Debugging tab also includes a "Slurm Accounting Data" section:
634
+
635
+
1. Navigate to the **Debugging** tab
636
+
2. Find the **Slurm Accounting Data** section
637
+
3. Click **Collect sacct Data**
638
+
639
+
This displays a summary table showing job state, exit codes, elapsed time, memory usage (Max RSS), CPU time, and nodes for all Slurm job steps. The table helps quickly identify failed jobs and resource usage patterns.
640
+
641
+
#### Scheduled Nodes Tab - View Slurm Logs
642
+
643
+
You can view individual Slurm job logs directly from the Details view:
644
+
645
+
1. Select a workflow
646
+
2. Go to the **Details** tab
647
+
3. Switch to the **Scheduled Nodes** sub-tab
648
+
4. Find a Slurm scheduled node in the table
649
+
5. Click the **View Logs** button in the Logs column
650
+
651
+
This opens a modal with tabs for viewing the Slurm job's stdout and stderr files.
652
+
653
+
### Viewing Slurm Logs in the TUI
654
+
655
+
The `torc tui` terminal interface also supports Slurm log viewing:
656
+
657
+
1. Launch the TUI: `torc tui`
658
+
2. Select a workflow and press Enter to load details
659
+
3. Press Tab to switch to the **Scheduled Nodes** tab
660
+
4. Navigate to a Slurm scheduled node using arrow keys
661
+
5. Press `l` to view the Slurm job's logs
662
+
663
+
The log viewer shows:
664
+
-**stdout tab**: Slurm job standard output (`slurm_output_<id>.o`)
665
+
-**stderr tab**: Slurm job standard error (`slurm_output_<id>.e`)
666
+
667
+
Use Tab to switch between stdout/stderr, arrow keys to scroll, `/` to search, and `q` to close.
668
+
669
+
### Debugging Slurm Job Failures
670
+
671
+
When a Slurm job fails, follow this debugging workflow:
672
+
673
+
1.**Parse logs for known errors:**
674
+
```bash
675
+
torc slurm parse-logs <workflow_id>
676
+
```
677
+
678
+
2.**If OOM or resource issues are detected, collect sacct data:**
-**`torc results list`**: View summary of job results in table format
504
703
-**`torc workflows status`**: Check overall workflow status
505
704
-**`torc reports check-resource-utilization`**: Analyze resource usage and find over-utilized jobs
506
705
-**`torc jobs list`**: View all jobs and their current status
706
+
-**`torc slurm parse-logs`**: Parse Slurm logs for known error patterns
707
+
-**`torc slurm sacct`**: Collect Slurm accounting data for workflow jobs
507
708
-**`torc-dash`**: Launch web interface with interactive Debugging tab
709
+
-**`torc tui`**: Launch terminal UI with Slurm log viewing
508
710
509
711
The `reports results` command and torc-dash Debugging tab complement these by providing complete log file paths and content viewing for in-depth debugging when high-level views aren't sufficient.
0 commit comments