-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runner (v2.303) not working on AmazonLinux2023 due to missing ICU package #2511
Comments
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.
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:
1 - You can check if rpm -q libicu 2 - It's probably not installed so run this command to install 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, |
Hi @softlberton Thank you very much for your feedback. I indeed got it to work after installing the libicu package. This because projects like https://github.com/machulav/ec2-github-runner expect bin/installdependencies.sh to do it all. Gr, J |
I don't know exactly, because I ran it a few times but it wasn't enough, it seemed that my machine lacked libicu and some dotnet packages, so I didn't delve into that. By the way, this repository is quite interesting, if possible it would be necessary to open a PR or some problem indicating the need for libicu or at least check to see if it is installed on the operating system that will be used to configure the runner. I'm glad you were able to solve your problems, so you can close this issue, let me know. |
WOW you are very fast and I appreciate that !! I will be following closely. |
Hi everyone, run.sh works fine for me but running the runner as a service with svc.sh encounters this error |
The /etc/os-release file has evolved over the years, with current documentation being at https://www.freedesktop.org/software/systemd/man/latest/os-release.html Part of this spec is to also look at /usr/lib/os-release as image based Linux distributions that can exist without anything in /etc may put the os-release file there. In the docs, Example 3 shows how to parse this file with shell. We can use that example and look at ID_LIKE to better determine if the OS is a Debian like system, or a Fedora like system, and differentiate between how RHEL / CentOS and friends are like Fedora and how non-RHEL, non-CentOS is also like Fedora. The practical end-outcome of this is that it will now correctly detect Amazon Linux 2023, pick 'dnf' as the package manager, and install the dependencies. Fixes: actions#2511 Signed-off-by: Stewart Smith <trawets@amazon.com>
Come to think of it... my Pull Request there probably also fixes the Amazon Linux 2 issue mentioned above. |
It's interesting to see that this issue remains open and there are people working to improve this problem. |
any solutions/updates? |
@davi020 , not sure if it's fixed in this project. But with the 'pre-runner-script' option of the ec2-github-runner action you can now install any dependency needed. |
Thanks @jalbstmeijer - I am following script based installation process based on this doc (this scripts automates the runner installation and service config setup) and I tried this on AmazonLinux3 server. The error I got was -
|
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:
Expected behavior
Running runner
Runner Version and Platform
runner-v2.303
AmazonLinux2023
What's not working?
The text was updated successfully, but these errors were encountered: