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

Oracle Linux 9 Installation Failure #5815

Closed
1 task
MaximVasin opened this issue Jul 7, 2022 · 6 comments
Closed
1 task

Oracle Linux 9 Installation Failure #5815

MaximVasin opened this issue Jul 7, 2022 · 6 comments

Comments

@MaximVasin
Copy link

MaximVasin commented Jul 7, 2022

Environmental Info:
K3s Version:
v1.23.8+k3s1

Node(s) CPU architecture, OS, and Version:
Linux ol9.mshome.net 5.15.0-0.30.19.el9uek.x86_64 #2 SMP Wed Jun 15 22:59:49 PDT 2022 x86_64 x86_64 x86_64 GNU/Linux

Cluster Configuration:
Single node installation

Describe the bug:
K3s does not install

Steps To Reproduce:
curl -sfL https://get.k3s.io | sh -

Expected behavior:
k3s is installed

Actual behavior:
Installation script fails during installation of k3s-selinux package with:

Problem opening package k3s-selinux-1.1-1.el8.noarch.rpm
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED

Additional context / logs:

Backporting

  • Needs backporting to older releases
@brandond
Copy link
Member

brandond commented Jul 7, 2022

Duplicate of #5588 - can you try with curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=latest sh -

@MaximVasin
Copy link
Author

k3s installs but fails to start due some selinux issues, please see the log from journalctl in k3s.log attached
k3s.log

@brandond
Copy link
Member

brandond commented Jul 7, 2022

Jul 07 21:54:06 ol9.mshome.net k3s[1998]: time="2022-07-07T21:54:06+04:00" level=fatal msg="extracting data: open /var/lib/rancher/k3s/data/f4431393712ffbc38bd97607e1f813faef14e378c15e53ea07e11c6bbe9a634f-tmp/bin/containerd-shim-runc-v2: permission denied"

Did you get the k3s-selinux package installed successfully? It looks like selinux is denying some very basic startup operations.

@MaximVasin
Copy link
Author

yes, k3s-selinux package is installed

[max@ol9 ~]$ rpm -qa | grep k3s
k3s-selinux-1.2-1.el8.noarch

@brandond
Copy link
Member

brandond commented Jul 8, 2022

You might just run k3s-uninstall.sh and then reinstall now that you've got the selinux package installed. That's probably easier than trying to manually relabel everything with chcon.

@stale
Copy link

stale bot commented Jan 4, 2023

This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 180 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions.

@stale stale bot added the status/stale label Jan 4, 2023
@brandond brandond closed this as completed Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants