Skip to content

External runners suddenly failing with System.Globalization.CultureNotFoundException #1605

Closed
@ramosbugs

Description

@ramosbugs

Describe the bug

We've been using external GitHub Actions runners (located on Amazon EC2) without any issue for months. Beginning this afternoon, all our GitHub Actions jobs are failing with the following error returned by the runner:

System.Globalization.CultureNotFoundException: Only the invariant culture is supported in globalization-invariant mode. See https://aka.ms/GlobalizationInvariantMode for more information. (Parameter 'name')
en-US is an invalid culture identifier.
   at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
   at System.Globalization.CultureInfo..ctor(String name)
   at GitHub.Runner.Common.HostContext.SetDefaultCulture(String name)
   at GitHub.Runner.Worker.Worker.SetCulture(AgentJobRequestMessage message)
   at GitHub.Runner.Worker.Worker.RunAsync(String pipeIn, String pipeOut)
   at GitHub.Runner.Worker.Program.MainAsync(IHostContext context, String[] args)

To Reproduce

Run a GitHub Actions workflow with jobs specifying runs-on with an external runner.

Expected behavior

Actions job runs on external runner.

Runner Version and Platform

Version of your runner?

2.286.0 (also fails on 2.280.2)

OS of the machine running the runner? OSX/Windows/Linux/...

Linux ARM64

What's not working?

See stack trace above.

Job Log Output

No output for job since it fails to start. However, the workflow run shows the following annotation:

System.Globalization.CultureNotFoundException: Only the invariant culture is supported in globalization-invariant mode. See https://aka.ms/GlobalizationInvariantMode for more information. (Parameter 'name')
en-US is an invalid culture identifier.
   at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
   at System.Globalization.CultureInfo..ctor(String name)
   at GitHub.Runner.Common.HostContext.SetDefaultCulture(String name)
   at GitHub.Runner.Worker.Worker.SetCulture(AgentJobRequestMessage message)
   at GitHub.Runner.Worker.Worker.RunAsync(String pipeIn, String pipeOut)
   at GitHub.Runner.Worker.Program.MainAsync(IHostContext context, String[] args)

Runner and Worker's Diagnostic Logs

Runner_20220113-014923-utc.log
Runner_20220113-014927-utc.log
Worker_20220113-014943-utc.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions