runner icon indicating copy to clipboard operation
runner copied to clipboard

Log stream not working when step is in progress - Github Enterprise Server

Open LucBerge opened this issue 1 year ago • 7 comments

Describe the bug I have a self-hosted runner on a windows machine and a simple workflow on my github repo with one job and 5 steps. The logs used to be displayed in live on the Github Enterprise Server UI when the workflow is beeing run by the runner.

Since few weeks now, I do not see the logs for the in progress step. I have access to the logs of previous steps but not the current one. Only when the step is finished, the logs are visible on Github Enterprise Server UI.

Also, when the steps is finished, the UI does not refresh by itself. I have to refresh the page manually in order to see the logs for the finished step. What is happening ?

To Reproduce Steps to reproduce the behavior:

  1. Setup a self-hosted runner on a Windows machine
  2. Create a simple workflow with multiple steps in a repo on the Github Enterprise Server
  3. Run the workflow
  4. Observe the logs on the Github Enterprise Server UI

Expected behavior Logs should be displayed in live without the need to refresh the page once the step in finished.

Runner Version and Platform

Current runner version: 2.317.0 GitHub Enterprise Server: 3.14.1 OS of the machine running the runner: Windows

What's not working?

No logs displayed while the step is in progress. image

LucBerge avatar Nov 04 '24 11:11 LucBerge

this issue present in next versions like 3.14.2 or latest 3.15?

ganesh03go avatar Nov 21 '24 17:11 ganesh03go

this issue present in next versions like 3.14.2 or latest 3.15?

@ganesh03go Are you facing the same issue ?

LucBerge avatar Nov 21 '24 18:11 LucBerge

Seeing this as well. It worked at some point in the indeterminate past, not sure when it broke. GHE version: 3.14.0 Runner version: 2.317.0 Runner OS: Linux

NasaGeek avatar Nov 23 '24 00:11 NasaGeek

Anybody seeing this in GHES 3.13.x ? Probably broke in GHES version 3.14 on the 2024-08-06. I will try to update the runner to 2.231 and see if it works.

LucBerge avatar Nov 26 '24 10:11 LucBerge

Hello @LucBerge. There is something wrong with 3.14.x versions. From our side, we created a ticket with GitHub team, and they confirmed upgrading GHES to 3.15.x solves this issue.

I'll confirm you in the next weeks, we're planning the upgrade in the middle of December.

brycatch avatar Dec 05 '24 15:12 brycatch

Hello @brycatch, Did you upgrade to 3.15.x ?

LucBerge avatar Jan 03 '25 13:01 LucBerge

Upgrading GHE to 3.14.6 fixed the issue on my side.

LucBerge avatar Feb 04 '25 13:02 LucBerge

Hey, we're facing the same issue. In our case, it seems to be related to the script-src directive in the Content Security Policy.

Error log: [Report Only] Refused to create a worker from '<GH-URL>' because it violates the following Content Security Policy directive: "script-src 'none'". Note that 'worker-src' was not explicitly set, so 'script-src' is used as a fallback.

I was under the impression that after a certain number of log messages (1000?), GitHub switches to using a Socket.

Has anyone found a solution or workaround for this?

GHE: 3.16.1

Zusel avatar Jun 20 '25 05:06 Zusel