Skip to content
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

2.276.1 @ Ubuntu 18.04: ldd: ./bin/libSystem.Security.Cryptography.Native.OpenSsl.so: No such file or directory #945

Closed
ddinchev opened this issue Jan 27, 2021 · 16 comments
Labels
bug Something isn't working

Comments

@ddinchev
Copy link

Describe the bug
I'm trying to install a self-hosted runner on Ubuntu 18.04 using the automation script and I get the following errors:

~$ curl -s https://raw.githubusercontent.com/actions/runner/automate/scripts/create-latest-svc.sh | bash -s ***/*** ***-runner
Configuring runner @ ***/***

/usr/bin/curl
/usr/bin/jq

Generating a registration token...

Downloading latest runner ...
Downloading v2.276.1 for linux ...
https://github.com/actions/runner/releases/download/v2.276.1/actions-runner-linux-x64-2.276.1.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   665  100   665    0     0  24629      0 --:--:-- --:--:-- --:--:-- 24629
100 70.5M  100 70.5M    0     0  90.1M      0 --:--:-- --:--:-- --:--:-- 95.5M
-rw-rw-r-- 1 *** *** 73928496 Jan 27 10:47 actions-runner-linux-x64-2.276.1.tar.gz

Extracting actions-runner-linux-x64-2.276.1.tar.gz to ./runner
~/runner ~

Configuring jenkins-runner @ https://github.com/***/***
./config.sh --unattended --url https://github.com/***/*** --token *** --name ***-runner
ldd: ./bin/libSystem.Security.Cryptography.Native.OpenSsl.so: No such file or directory
ldd: ./bin/libSystem.IO.Compression.Native.so: No such file or directory

---

# Authentication


√ Connected to GitHub

# Runner Registration



√ Runner successfully added
√ Runner connection is good

# Runner settings


√ Settings Saved.

The runner reports to be started successfully but the errors seem to be related to .NET upgrade from v3 to v5 and I'm unsure if I can rely on the runner working correctly.

@ddinchev ddinchev added the bug Something isn't working label Jan 27, 2021
@ddinchev
Copy link
Author

ddinchev commented Jan 27, 2021

Symlinking the expected library paths to the actual library paths seems to resolve the errors:

cd runner/bin
for lib in $(find . -name 'System.*'); do
    toFile=$(echo "$lib" | sed -e 's/\.\/System\./.\/libSystem./g')
    if ! [ -f $toFile ]; then 
        sudo ln -s $lib $toFile
    fi
done

Credits go to this stackoverflow user.

@TingluoHuang
Copy link
Member

thanks for reporting, we will fix this soon.

@maciejgwizdala
Copy link

sed -i -e 's/libSystem./System./g' config.sh will do the trick as well, as ldd wants to check wrong filenames within config.sh

@hross
Copy link
Contributor

hross commented Mar 30, 2021

we rolled back this update so closing this

@hross hross closed this as completed Mar 30, 2021
@itslenny
Copy link

FYI @hross I just hit this exact same issue with 2.279.0

2021-07-28 18:29:54Z: Listening for Jobs
Runner update in progress, do not shutdown runner.
Downloading 2.279.0 runner
Waiting for current job finish running.
Generate and execute update script.
Runner will exit shortly for update, should back online within 10 seconds.
ldd: ./bin/libcoreclr.so: No such file or directory
ldd: ./bin/System.Security.Cryptography.Native.OpenSsl.so: No such file or directory
ldd: ./bin/System.IO.Compression.Native.so: No such file or directory
./config.sh: line 80: ./bin/Runner.Listener: No such file or directory
ldd: ./bin/libcoreclr.so: No such file or directory
ldd: ./bin/System.Security.Cryptography.Native.OpenSsl.so: No such file or directory
ldd: ./bin/System.IO.Compression.Native.so: No such file or directory
./config.sh: line 80: ./bin/Runner.Listener: No such file or directory
...

@MichaelJJ
Copy link

@hross Still seeing with 2.283.1:

ldd: ./bin/libcoreclr.so: No such file or directory
ldd: ./bin/System.Security.Cryptography.Native.OpenSsl.so: No such file or directory
ldd: ./bin/System.IO.Compression.Native.so: No such file or directory

@dmattia
Copy link

dmattia commented Dec 27, 2021

@hross Hit this with 2.286.0, though only when using an arm64 executor

@MichaelJJ
Copy link

Still seeing this with the latest version

@trym-b
Copy link

trym-b commented May 6, 2022

Update: Nevermind, I forgot to add " around the command. Just ignore this comment

I got the same issue when following the linux instructions in https://github.com/<org>/<repo>/settings/actions/runners/new, but I only got this issue when running ./config.sh as a different user like: sudo --user <user-name> sh -c /home/<user-name>/actions-runner/config.sh --name testing --unattended --url https://github.com/<org>/<repo> --token <token> --labels my-test-label

When running as the target user directly everything worked just fine.

Tested this on version 2.291.1

@NoelOmo
Copy link

NoelOmo commented Aug 11, 2022

Still experiencing this when running ./config.sh

ldd: ./bin/libcoreclr.so: No such file or directory ldd: ./bin/System.Security.Cryptography.Native.OpenSsl.so: No such file or directory ldd: ./bin/System.IO.Compression.Native.so: No such file or directory ./config.sh: line 80: ./bin/Runner.Listener: cannot execute binary file: Exec format error

@eumoh1601
Copy link

still facing this error in 2.296.2 when running ./config
dd: ./bin/libcoreclr.so: No such file or directory ldd: ./bin/libSystem.Security.Cryptography.Native.OpenSsl.so: No such file or directory ldd: ./bin/libSystem.IO.Compression.Native.so: No such file or directory ./config.sh: line 80: ./bin/Runner.Listener: cannot execute binary file: Exec format error

@larsnystrom
Copy link

I saw the exact same message as @NoelOmo and @eumoh1601. The problem was I had downloaded the runner for macOS, and then tried to install it on Linux.

@DSdatsme
Copy link

DSdatsme commented Feb 1, 2023

I'm facing the same issue on runner version 2.301.1 which I was trying to setup on GCP t2a-standard-1 which is based on ARM64 (Ubuntu18).

TLDR;
I did get the above errors, but I manually build the runner project on my server to solve it.
Screenshot 2023-02-01 at 3 25 31 PM

Long Version:

I wanted to run ARM64 runners for my GH project to build binaries, so I tried to set it up from the releases folder.

I already had the script to setup X86 runners which I took reference from here, but the script didn't work.
Tried various StackOverflow approaches, went through various GH issues, etc. Nothing worked for me.

So finally I decided to check how actually they build and release the runner tars, which is here(build.yml).
Builds for ARM uses ubuntu-latest GH hosted runner, which I think runs on X86 arch. I believe due to this we get Exec format error . Also, runner builds are not tested for ARM platforms(ref)

To solve this, you'll need to run repo builds on ARM based system to support ARM 🤷‍♂️.

If you want to build manually here are the commands
https://gist.github.com/DSdatsme/bc2a58ab023e12b07d69b3211c8e9801

Screenshot 2023-02-01 at 3 45 26 PM

@eechau
Copy link

eechau commented Apr 5, 2023

Same issue:

actions-runner-linux-x64-2.303.0

ldd: ./bin/libcoreclr.so: No such file or directory
ldd: ./bin/libSystem.Security.Cryptography.Native.OpenSsl.so: No such file or directory
ldd: ./bin/libSystem.IO.Compression.Native.so: No such file or directory


| ____ _ _ _ _ _ _ _ _ |
| / () || | | | | |_ / \ | |() ___ _ __ ___ |
| | | | | __| || | | | | '
\ / _ \ / | | |/ _ | ' / | |
| | || | | || _ | || | |) | / ___ \ (
| || | () | | | __ \ |
| _
||_|| ||_,|.__/ // __|_||_/|| ||___/ |
| |
| Self-hosted runner registration |
| |

Authentication

√ Connected to GitHub

Runner Registration

@AllanOricil
Copy link

These 3 errors happen but the runner is alive and can process jobs. What exactly is the impact of these errors?
image

@jawsthegame
Copy link

I was struggling with this and realized it was PEBKAC. I was trying to install the MacOS runner on Linux. Check and make sure you aren't doing the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests