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.303) not working on AmazonLinux2023 due to missing ICU package

See original GitHub issue

Describe the bug The runner cannot be started due to a missing requirement.

Couldn’t find a valid ICU package installed on the system

To Reproduce Steps to reproduce the behavior:

  1. start a AmazonLinux2023 AMI, for instance ami-00169914e6299b8e0 in eu-west-1
  2. download and unpack actions-runner-linux-x64-2.303.0.tar.gz
  3. run after config.sh, run.sh and see error

Expected behavior Running runner

Runner Version and Platform

runner-v2.303 AmazonLinux2023

What’s not working?

./run.sh

Libicu's dependencies is missing for Dotnet Core 6.0
Execute sudo ./bin/installdependencies.sh to install any missing Dotnet Core 6.0 dependencies.
Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information.
   at System.Environment.FailFast(System.String)
   at System.Globalization.GlobalizationMode+Settings..cctor()
   at System.Globalization.CultureData.CreateCultureWithInvariantData()
   at System.Globalization.CultureData.get_Invariant()
   at System.Globalization.CultureInfo..cctor()
   at System.Globalization.CultureInfo.get_CurrentCulture()
   at System.Text.RegularExpressions.Regex.Init(System.String, System.Text.RegularExpressions.RegexOptions, System.TimeSpan, System.Globalization.CultureInfo)
   at System.Text.RegularExpressions.Regex..ctor(System.String, System.Text.RegularExpressions.RegexOptions, System.TimeSpan, System.Globalization.CultureInfo)
   at System.Text.RegularExpressions.Regex..ctor(System.String, System.Text.RegularExpressions.RegexOptions)
   at GitHub.Runner.Sdk.RunnerWebProxy..ctor()
   at GitHub.Runner.Common.HostContext..ctor(System.String, System.String)
   at GitHub.Runner.Listener.Program.Main(System.String[])
/tmp/actions-runner/run-helper.sh: line 36:  2220 Aborted                 (core dumped) "$DIR"/bin/Runner.Listener run $*
Exiting with unknown error code: 134
Exiting runner...

Issue Analytics

  • State:open
  • Created 6 months ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

11reactions
softlbertoncommented, Mar 30, 2023

Hi @jalbstmeijer,

I faced the same problem today with an amzn2 linux centos rhel fedora and in order to solve it, I just followed what the error message indicates.

Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information.

I did the .NET installation following this link, I don’t think it’s really necessary but try that too:

Even after installing dotnet I still got the same error.

But I managed to solve it on the spot by installing the libicu package for centOS, so you should follow these steps:

Please install libicu using your package manager and try again.

1 - You can check if libicu is installed on your operating system:

rpm -q libicu

2 - It’s probably not installed so run this command to install libicu using yum:

yum install libicu -y

3 - After that check again if libicu is installed, you should see something like this:

[root@self-hosted-runner bin]# rpm -q libicu
libicu-50.2-4.amzn2.x86_64

I also followed this link to install libicu: https://yum-info.contradodigital.com/view-package/base/libicu/

I’ve been configuring self-hosted runners for a long time, and today was the first time I received this error, after a bit of research I was able to finish the runner configuration smoothly.

Hope this helps you too, Regards

1reaction
jalbstmeijercommented, Mar 30, 2023

Hi @softlberton

Thank you very much for your feedback. I indeed got it to work after installing the libicu package. I suppose this needs to be fixed/added to bin/installdependencies.sh?

This because projects like https://github.com/machulav/ec2-github-runner expect bin/installdependencies.sh to do it all.

Gr, J

Read more comments on GitHub >

github_iconTop Results From Across the Web

Process terminated. Couldn't find a valid ICU package ...
I am trying to run a Asp.Net Core 3 application in Ubuntu 19.10 thru terminal using dotnet run command but it does not...
Read more >
config
Prevent memory leaks due to use of particular java/javax APIs--> ... pip 10.0.1 from /usr/local/lib/python2.7/site-packages/pip (python 2.7) ...
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