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

Unable to build with fresh new install of Fedora 31 #259

Open
Dimitri2g opened this issue Apr 30, 2020 · 4 comments
Open

Unable to build with fresh new install of Fedora 31 #259

Dimitri2g opened this issue Apr 30, 2020 · 4 comments

Comments

@Dimitri2g
Copy link

I did a git clone and have been following the instructions and it seems I am failing to build.
Instructions:
Instructions

I ran:
./steam-runtime/setup_docker.sh --beta amd64 --extra-bootstrap=./proton/steamrt-bootstrap.sh steam-proton-dev

and at the end I got:

Step 8/20 : RUN 	set -xe; 	if [ -n "${proxy}" ]; then 		echo "configure proxy"; 		echo "export http_proxy=${proxy}" >> /etc/bash.bashrc; 		echo "export https_proxy=${proxy}" >> /etc/bash.bashrc; 		echo "export ftp_proxy=${proxy}" >> /etc/bash.bashrc; 		echo "Acquire::http::proxy \"${proxy}\";" > /etc/apt/apt.conf.d/01proxy; 		echo "Acquire::https::proxy \"${proxy}\";" >> /etc/apt/apt.conf.d/01proxy; 	fi; 	if [ -n "${no_proxy}" ]; then 		echo "export no_proxy=${no_proxy}" >> /etc/bash.bashrc; 		oldIFS="$IFS"; 		IFS=","; 		for nope in ${no_proxy}; do 			case "$nope" in 				(.*) 					;; 				(*) 					echo "Acquire::http::proxy::${nope} \"DIRECT\";" >> /etc/apt/apt.conf.d/01proxy; 		echo "Acquire::https::proxy::${nope} \"DIRECT\";" >> /etc/apt/apt.conf.d/01proxy; 					;; 			esac; 		done; 		IFS="$oldIFS"; 	fi
 ---> Running in e2cfab95578d
OCI runtime create failed: this version of runc doesn't work on cgroups v2: unknown

real	0m28.535s
user	0m0.645s
sys	0m0.481s
Script done, file is /tmp/steam-runtime-setup-chroot-Vm8.log
[steam-runtime-setup-chroot-Vm8.log](https://github.com/ValveSoftware/Proton/files/4536111/steam-runtime-setup-chroot-Vm8.log)

Full log attached
steam-runtime-setup-chroot-Vm8.log

@smcv
Copy link
Contributor

smcv commented May 12, 2020

setup_docker.sh is deprecated. For the recommended approach, please see: https://github.com/ValveSoftware/steam-runtime#using-docker

However, that won't necessarily solve your problem.

OCI runtime create failed: this version of runc doesn't work on cgroups v2: unknown

I would recommend trying a very simple Docker example, for example pulling and running https://hub.docker.com/_/hello-world. If that doesn't work either, report the problem to your distribution (Fedora).

If Fedora is actually using Podman instead of Docker, then running it unprivileged (without sudo) might be better?

@dreamer
Copy link
Contributor

dreamer commented May 12, 2020

@Dimitri2g Yeah, I haven't updated those wiki instructions in a long time… and I don't have time to get over them and fix it myself at the moment.

As for the problem at hand: it's most likely caused by Docker still not understanding cgroups v2, and this API was turned on by default in Fedora 31. There are two ways to fix it:

  • Use podman instead of Docker. It's a Docker fork with issues like these fixed, it's included in Fedora repositories and should work as a drop-in replacement for docker.
  • Force-disable cgroupsv2

Here's an article that seems to cover both options in detail

@Dimitri2g
Copy link
Author

@smcv and @dreamer Thank you both for responding.

I will try to use podman and disable cgroupsv2

@dreamer
Copy link
Contributor

dreamer commented May 13, 2020

@Dimitri2g With podman you won't need to disable cgroupsv2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants