Skip to content

Conversation

@jwwojak
Copy link
Contributor

@jwwojak jwwojak commented Oct 21, 2025

Overview

Having more info about Flex log files in the manual is helpful. Also, and perhaps more important, having this in the Flex manual allows us to get rid of another bad Help Center article (How to download the logs on Opentrons Flex).

For this article, we'll repurpose the intro and file download instructions from the Flex service manual, but without all the extra details used by the service techs.

See also RTC-824

Sandbox docs:

Test Plan and Hands on Testing

  • Work through the instructions to make sure the steps are correct.
  • Check to ensure images render.

Changelog

On the surface, a simple change or PR: add steps on log file download.

I'd recommend some reorganization. This belongs with the other "advanced" operations articles. I'd like to:

  • Break up the content in advanced-operations.md
  • Make this section a multi-doc section to now include:
    • An intro: advanced-operations/index.md to summarize the sections.
    • Make the command line / SSH piece a separate file.
    • Make the Jupyter Notebook a separate file
    • Add this log file as a separate file

Review requests

Consider the reorg. Is there another place to put this without changing the structure?

Risk assessment

Low, docs changes only.

Read the description in the PR.
@jwwojak jwwojak self-assigned this Oct 21, 2025
@codecov
Copy link

codecov bot commented Oct 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 25.35%. Comparing base (adf11b7) to head (564350a).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             edge   #19863   +/-   ##
=======================================
  Coverage   25.35%   25.35%           
=======================================
  Files        3523     3523           
  Lines      296771   296771           
  Branches    39620    39620           
=======================================
  Hits        75253    75253           
  Misses     221497   221497           
  Partials       21       21           
Flag Coverage Δ
step-generation 5.44% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Proposed changes will break some links between pages. Checked mkdocs output for warnings and fixed broken links.

Replaced "reference" style links with typical [ ]( ) style relative links.
There are 2 new log files: can_bus.log and update_server.log. I think I know what the former is, but not the update_server. checking on these to verify.
@jwwojak jwwojak marked this pull request as ready for review October 22, 2025 18:07
Copy link
Contributor

@ecormany ecormany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new text is good. I agree that we should discuss the overall structure, specifically whether we think downloading the logs qualifies as an "advanced operation".


In an idle state or during a protocol run, your Flex constantly writes data to several different log files. Each of these files tracks the activities specific to different parts of the robot and its attachments. The following table summarizes the data captured in each file.

| Log file | Description |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the first column wider so the file names fit without wrapping.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to be clever and apply a CSS rule to prevent line splitting on the first column:

.first-col-no-wrap th:first-child,
.first-col-no-wrap td:first-child {
white-space: nowrap;
}

This didn't work. Implemented an ugly-er fix. Might continue to test this separately.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My other fix didn't work. Trying this instead. I think it is good enough.

!!!note
Flex produces a single `.zip` file that contains the logs. The compressed file name includes the robot’s name followed by `_logs.zip`. For example, if your robot is called “Flex1," the log file will be named `Flex1_logs.zip`.

5. _(Optional)_ To read the logs, double-click the downloaded file to decompress it. The individual logs will expand into a new folder in the same location as the downloaded file. Any simple text editor should be able to open these files.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe remove "simple"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing

Opentrons Flex gives you command-line access to its operating system through a Secure Shell (SSH) terminal connection. Terminal access lets you:

## Command line operation over SSH
- Run protocols directly via the [Python API and command line](https://docs.opentrons.com/v2/new_advanced_running.html#command-line).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating URL.

!!!note
- SSH keys are required before you can connect to Flex and issue commands from a terminal.
- If you're unable to use a Wi-Fi network for SSH, see [Hardwired SSH Connections][hardwired-ssh-connections] below.
If you're unable to use a Wi-Fi network for SSH, see [Making a hardwired SSH connection][making-a-hardwired-ssh-connection] below.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this note go in the "Making a wireless SSH connection" section instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. That's odd. It should be in that section. Moving.

ecormany and others added 2 commits October 22, 2025 16:25
- update links
- re-org TOC, put log files first.
- fix table spacing
- found errant trailing whitespace and missing closing } in CSS file, when working with a table rule
@jwwojak jwwojak requested a review from ecormany October 23, 2025 20:05
Trying to avoid line wrapping in the first col of the log file table. I do
@ecormany ecormany changed the title docs: log-files-description-and-download docs: Flex log files description and download Oct 29, 2025
Copy link
Contributor

@ecormany ecormany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants