question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Runner v2.276.0 fails to open some stderr/stdout streams

See original GitHub issue

Describe the bug The newest runner version may fail to open some stderr/stdout streams. You can’t typically open() a socket, and it looks like the stderr stream may be getting kept as a socket now.

To Reproduce Run a ubuntu runner with the following yaml

name: CI test

on: push

jobs:
  build:
    name: test
    runs-on: self-hosted
    steps:
    - name: test tee /dev/stderr
      run : |
        set -x
        set -euo pipefail
        seq 0 10 | tee /dev/stderr | xargs echo

It will fail with tee: /dev/stderr: No such device or address Expected behavior The stderr stream should open and this should not fail.

Runner Version and Platform

v2.276.0 on Ubuntu.

Other information

Looks like it may be related to the .net upgrade https://github.com/dotnet/runtime/issues/46469

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
thboopcommented, Jan 21, 2021

This is in the process of rolling out and all runners should be upgraded in the next day or so.

1reaction
thboopcommented, Jan 22, 2021

Should be fixed for everyone now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to redirect stdout+stderr to one file while keeping ...
Tweak to suit your needs. 1.Open two windows (shells). 2.Create some test files touch /tmp/foo /tmp/foo1 / ...
Read more >
When to use standard error stream in command-line ...
In particular, the question I'm concerned with right now is whether to use stdout or stderr when the user called the program with...
Read more >
How to grep standard error stream (stderr)?
This works by first creating a new file descriptor (3) open for output and setting it to the standard error stream ( 3>&2...
Read more >
How to Redirect stderr to stdout in Bash
To redirect stderr and stdout, use the 2>&1 or &> constructs. ... By default, both input and error streams are printed on the...
Read more >
How to redirect shell command output | Enable Sysadmin
STDERR : The error output from a command/script (file descriptor 2). By default, STDOUT and STDERR are sent to your terminal's screen. In...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found