Troubleshooting Guide

This section describes potential issues and their solutions that may occur during installation, configuration, and execution of TurboWorkflows.

6. Logging and Debugging

6.1. Log file check

Issue: Want to check error details

Solution:

  • Workflow log file

    Workflow log files are usually saved with the name turboworkflows.log. Check the execution directory.

  • Temporary directory

    TurboWorkflows temporary files are saved in ~/.turbo_workflows_tmp.

6.2. Enable debug mode

Issue: Want to obtain more detailed logs

Solution:

  • Launcher class log level setting (recommended)

    When using the Launcher class in workflow scripts, you can obtain detailed logs by setting the log level to “DEBUG” via parameters.

    from turboworkflows.workflow_lanchers import Launcher
    
    launcher = Launcher(
        cworkflows_list=workflows,
        turbo_workflows_log_level="DEBUG",  # Turbo-Workflows log level
        turbo_genius_log_level="DEBUG",     # Turbo-Genius log level
        pyturbo_log_level="DEBUG",          # pyturbo log level
        log_name="turboworkflows.log",      # Log file name
    )
    launcher.launch()
    

    This will output the following detailed information to the logs:

    • Workflow execution order and dependencies

    • File transfer status

    • Job submission and execution status

    • Detailed error stack traces

    Logs are output to both the console and the turboworkflows.log file.

  • Individual logger setting

    If you are not using Launcher or want to set only specific loggers, you can set the logger directly.

    from logging import getLogger
    logger = getLogger("Turbo-Workflows")
    logger.setLevel("DEBUG")
    

7. Other Issues

7.1. Dependency errors

Issue: Dependencies between workflows are not resolved correctly

Solution:

  • Check Variable

    Verify that the label specified in the Variable class is correct.

  • Draw dependency graph

    Set dependency_graph_draw=True in Launcher to check the dependency graph.

7.2. Package import error

Issue: Cannot import TurboRVB or TurboGenius modules

Solution:

  • Check installation

    Verify that TurboRVB and TurboGenius are installed correctly.

    python -c "import turbogenius; print('OK')"
    
  • Check environment variables

    Verify that required environment variables (such as PATH and/or PYTHONPATH) are set.

7.3. Configuration file syntax error

Issue: YAML or TOML syntax error

Solution:

  • YAML syntax check

    python -c "import yaml; yaml.safe_load(open('machine_data.yaml'))"
    
  • TOML syntax check

    python -c "import toml; toml.load(open('queue_data.toml'))"
    
  • Use online tools

    Use YAML or TOML syntax checkers.

8. Support and Additional Information

If the problem is not resolved:

  • Check log files

    Check error messages and log files and collect detailed information.

  • Check configuration files

    Recheck the syntax and content of configuration files.

  • Refer to documentation

    Recheck the installation instructions (Installation of TurboWorkflows) and environment settings (Environment Configuration).

  • Check system requirements

    Verify that Python version, TurboRVB, and TurboGenius versions meet the requirements.