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

"tilt up" from hello-world leads to "libva error" #5732

Closed
yogeek opened this issue Apr 25, 2022 · 5 comments
Closed

"tilt up" from hello-world leads to "libva error" #5732

yogeek opened this issue Apr 25, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@yogeek
Copy link

yogeek commented Apr 25, 2022

Expected Behavior

the Hello world tutorial has no error

Current Behavior

Following the instructions here :

  • tilt up
  • "Create a starter Tiltfile ?" => no
  • "space" to open browser => error :
$ tilt up
Starting Tilt...

Tilt started on http://localhost:10350/
v0.27.3, built 2022-04-22

(space) to open the browser
(s) to stream logs (--stream=true)
(t) to open legacy terminal mode (--legacy=true)
(ctrl-c) to exit
Opening browser: http://localhost:10350/
Opening in existing browser session.
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[42333:42333:0100/000000.072374:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.

Context

tilt doctor Output

$ tilt doctor

Tilt: v0.27.3, built 2022-04-22
System: linux-amd64
---
Docker
- Host: [default]
- Server Version: 20.10.14
- API Version: 1.41
- Builder: 2
- Compose Version: v1.29.2 (build 5becea4c)
---
Kubernetes
- Env: kind
- Context: kind-kind
- Cluster Name: kind-kind
- Namespace: default
- Container Runtime: containerd
- Version: v1.23.4
- Cluster Local Registry: none

About Your Use Case

Just trying to evaluate Tilt

@yogeek yogeek added the bug Something isn't working label Apr 25, 2022
@nicks
Copy link
Member

nicks commented Apr 25, 2022

😱

Sorry to hear about that @yogeek .

Can you run

xdg-open https://github.com/

from the command-line? What happens?

That message usually means you have your default browser badly misconfigured on linux. You can also open the tilt web ui directly at http://localhost:10350/

@yogeek
Copy link
Author

yogeek commented Apr 26, 2022

@nicks thanks for your help.

xdg-open https://github.com opens chrome on github page, but in the terminal, it outputs the same error message

libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[61003:61003:0100/000000.359207:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.

the problem, is that, with tilt, the browser also opens automatically event with the error message, but the page http://localhost:10350 displays This site can’t be reached error message

so finally, I think i have 2 issues : one with my local environment which causes the error message but does not prevent the browser to open, and the one with tilt because i cannot see anything on the web page (localhost:10350)

Note : my environment is a virtualbox ubuntu VM

@nicks
Copy link
Member

nicks commented Apr 26, 2022

I found this github issue - intel/libva#278 - but TBH it's a bit beyond me.

Ya, if you're running tilt in an ubuntu VM, you have to open Tilt's dashboard on the VM's localhost, not the host machine localhost.

One way to do this is to run the browser in the VM.

Another way is to start tilt with tilt up --host 0.0.0.0, so you can access it from the host machine at http://[static VM IP Address]:10350/, similar to how you would access any other server running in the VM.

@yogeek
Copy link
Author

yogeek commented Apr 26, 2022

@nicks yes I was already using the brower inside the VM, so my localhost is the localhost of the VM

But the --host 0.0.0.0 solved the problem indeed : now it is working correctly !
Thank you for your help !

FYI, I checked to try to understand the difference between both command, and it seems to be the URL exposed by tilt by default :

tilt up => expose "localhost" and does not work on my VM

tilt up               
Tilt started on http://localhost:10350/

tilt up --host 0.0.0.0 => expose 127.0.0.1 and works on my VM

tilt up --host 0.0.0.0
Tilt started on http://127.0.0.1:10350/ (listening on 0.0.0.0)

Anyway thanks, i can continue my evaluation ;)

@nicks
Copy link
Member

nicks commented Apr 26, 2022

yay! ya, VM networking is odd. closing...

@nicks nicks closed this as completed Apr 26, 2022
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

2 participants