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

[BUG] Error: setcap of vrcompositor-launcher failed. #234

Closed
DanielHeath opened this issue Aug 17, 2019 · 8 comments
Closed

[BUG] Error: setcap of vrcompositor-launcher failed. #234

DanielHeath opened this issue Aug 17, 2019 · 8 comments
Labels

Comments

@DanielHeath
Copy link

After updating steamVR beta last week, I'm getting warned to check my logfile, which leads me to
Error: setcap of vrcompositor-launcher failed.

Any chance you could get it to log what exact capability it's trying to set? That way, instead of chasing up support, I could just check the logfile and add the capability myself.

@lostgoat
Copy link
Collaborator

Hi Daniel,

There should be a zenity popup with an error message and the error log location?

Are you launching vrsartup.sh from the cli through ssh?

P.S. we try so acquire CAP_SYS_NICE for vrcompositor-launcher

@DanielHeath
Copy link
Author

The popup tells me an error occurred (not what it is) and the log location. The logfile contains the message I referred to.

Adding CAP_SYS_NICE by hand seems to have done it.

@mDuo13
Copy link

mDuo13 commented Aug 21, 2019

I'm seeing this error message now as well.

After a recent update, Steam says, "superuser is required to finish setup" or something to that effect, then (regardless of what I click in the modal) gives me an error message pointing to a log file with the following contents:

Sun Aug 18 16:49:09 PDT 2019 - Error: user declined superuser request.
Wed Aug 21 14:19:08 PDT 2019 - Error: setcap of vrcompositor-launcher failed.

(I'm on Arch Linux, not Ubuntu, so maybe it's trying to use some graphical sudo equivalent I don't have installed?)

After launching the monitor has a little popup over it with an error:

SteamVR Fail
Oh no! SteamVR has encountered an unexpected problem.
Restart SteamVR (416)

Surprisingly, this does not seem to interfere at all with my ability to play Beat Saber in VR.

@mcourteaux
Copy link

mcourteaux commented Aug 22, 2019

This resolves the issue for me.

sudo setcap CAP_SYS_NICE+ep ~/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor-launcher

@podiki
Copy link

podiki commented Jun 4, 2021

This still happens on install of SteamVR. A dialog pops up saying superuser is needed to complete setup, but then the same error and log as reported above. Could be Steam doesn't know how to ask for sudo password on my system (just a WM, no DE)?

@cjxgm
Copy link

cjxgm commented Jul 9, 2021

Looking into vrstartup.sh, I found my suspect at line 39:

	pkexec setcap CAP_SYS_NICE=eip $STEAMVR_TOOLSDIR/bin/linux64/vrcompositor-launcher

By manually invoking pkexec (e.g. pkexec ls), I got an error:

The value for the SHELL variable was not found the /etc/shells file

This incident has been reported.

And

$ cat /etc/shells
#
# /etc/shells
#

/bin/sh
/bin/bash
/usr/bin/fish
/bin/zsh
/usr/bin/git-shell
/bin/fish
$ echo $SHELL
/home/XXX/bin/local/fish.sh

which shows the root cause of the problem.
Adding my /home/XXX/bin/local/fish.sh to /etc/shells solves the pkexec problem, and a password popup has shown.

Then I tried to launch SteamVR, accept the superuser prompt, then a password popup shows, asking for sudo password.
Eveyrhing is working as expected.

This was my situation, your mileage may vary but try pkexec ls and see what errors are shown.

See Also

Polkit on Arch Linux Wiki

@ardishko
Copy link

This resolves the issue for me.

sudo setcap CAP_SYS_NICE+ep ~/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor-launcher

I did this, It got rid of the popup but the issue still remains. I can't launch it.

@mwestphal
Copy link

Same issue here:

System Information (please complete the following information):

Distribution: ArchLinux
SteamVR version: 1.24.7
Steam client version: Dec 15 2022
Opted into Steam client beta?: No
Graphics driver version: nvidia  525.78.01 
Gist for SteamVR System Information: https://gist.github.com/dbgasaway/688e7823c53f62e6357b3787dd313501

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

No branches or pull requests

8 participants