Comments (13)
I ran
apt install libgbm1
and it was already installed. I'm still getting the same error as above.
Just to be certain it's the exact same error, can you paste your output?
from vhs.
OK, looking closer at my error at the far right I see that I'm missing libnss3.so. I'm trying installing that and seeing if it works.
I'm running apt install libnss3
now.
Sorry for not looking closer at the error output
from vhs.
I added a non-root user and it worked great. I'm going to start over with a fresh container and start the install process with a non-root user and see if I still have to install all those dependencies.
Is there a reason why vhs cannot work while running as root?
from vhs.
We should try to avoid the panic and add it to the deps: you will probably have to install libgbm1
on Ubuntu.
from vhs.
you will probably have to install
libgbm1
on Ubuntu.
Magnificent! After a quick sudo apt install libgbm1
- it works like a charm_
I am assuming this dependency will be bundled in the 0.1.1 .deb?
from vhs.
I ran apt install libgbm1
and it was already installed. I'm still getting the same error as above.
Ubuntu 22.04 headless
from vhs.
root@idemvhs:~/vhsstuff# vhs < idem.tape
panic: [launcher] Failed to launch the browser, the doc might help https://go-rod.github.io/#/compatibility?id=os: /root/.cache/rod/browser/chromium-1033860/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
goroutine 1 [running]:
github.com/go-rod/rod/lib/utils.glob..func2({0xd80b20?, 0xc0004478b0?})
/home/runner/go/pkg/mod/github.com/go-rod/[email protected]/lib/utils/utils.go:60 +0x25
github.com/go-rod/rod/lib/utils.E(...)
/home/runner/go/pkg/mod/github.com/go-rod/[email protected]/lib/utils/utils.go:66
github.com/go-rod/rod/lib/launcher.(*Launcher).MustLaunch(0xc00011c690?)
/home/runner/go/pkg/mod/github.com/go-rod/[email protected]/lib/launcher/launcher.go:351 +0x67
main.New()
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/vhs.go:67 +0x27b
main.Evaluate({0xc0004b8900, 0x864}, {0x1454480, 0xc000012018}, {0x0, 0x0, 0x0?})
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/evaluator.go:33 +0x1c5
main.glob..func1(0x1a1b320?, {0x1a6f590, 0x0, 0x0?})
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/main.go:60 +0x16d
github.com/spf13/cobra.(*Command).execute(0x1a1b320, {0xc000022230, 0x0, 0x0})
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:916 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0x1a1b320)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1040 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:968
main.main()
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/main.go:135 +0x25
from vhs.
OK, so I had to run vhs < idem.tape
multiple times and install the following dependencies as they popped up in the similar above error.
apt install libatk1.0-0
apt install libatk-bridge2.0-0
apt install libcups2
apt install libxcomposite1
apt install libxdamage1
Then at the end I got to this error:
root@idemvhs:~/vhsstuff# vhs < idem.tape
panic: [launcher] Failed to get the debug url: [1028/212222.508769:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
goroutine 1 [running]:
github.com/go-rod/rod/lib/utils.glob..func2({0xd80b20?, 0xc0006a8190?})
/home/runner/go/pkg/mod/github.com/go-rod/[email protected]/lib/utils/utils.go:60 +0x25
github.com/go-rod/rod/lib/utils.E(...)
/home/runner/go/pkg/mod/github.com/go-rod/[email protected]/lib/utils/utils.go:66
github.com/go-rod/rod/lib/launcher.(*Launcher).MustLaunch(0xc000168000?)
/home/runner/go/pkg/mod/github.com/go-rod/[email protected]/lib/launcher/launcher.go:351 +0x67
main.New()
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/vhs.go:67 +0x27b
main.Evaluate({0xc000738000, 0x864}, {0x1454480, 0xc000012018}, {0x0, 0x0, 0x0?})
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/evaluator.go:33 +0x1c5
main.glob..func1(0x1a1b320?, {0x1a6f590, 0x0, 0x0?})
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/main.go:60 +0x16d
github.com/spf13/cobra.(*Command).execute(0x1a1b320, {0xc000022230, 0x0, 0x0})
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:916 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0x1a1b320)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1040 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:968
main.main()
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/main.go:135 +0x25
Is this a completely different error?
from vhs.
OK, so I had to run
vhs < idem.tape
multiple times and install the following dependencies as they popped up in the similar above error.
apt install libatk1.0-0
apt install libatk-bridge2.0-0
apt install libcups2
apt install libxcomposite1
apt install libxdamage1
Then at the end I got to this error:
root@idemvhs:~/vhsstuff# vhs < idem.tape panic: [launcher] Failed to get the debug url: [1028/212222.508769:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. goroutine 1 [running]: github.com/go-rod/rod/lib/utils.glob..func2({0xd80b20?, 0xc0006a8190?}) /home/runner/go/pkg/mod/github.com/go-rod/[email protected]/lib/utils/utils.go:60 +0x25 github.com/go-rod/rod/lib/utils.E(...) /home/runner/go/pkg/mod/github.com/go-rod/[email protected]/lib/utils/utils.go:66 github.com/go-rod/rod/lib/launcher.(*Launcher).MustLaunch(0xc000168000?) /home/runner/go/pkg/mod/github.com/go-rod/[email protected]/lib/launcher/launcher.go:351 +0x67 main.New() /home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/vhs.go:67 +0x27b main.Evaluate({0xc000738000, 0x864}, {0x1454480, 0xc000012018}, {0x0, 0x0, 0x0?}) /home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/evaluator.go:33 +0x1c5 main.glob..func1(0x1a1b320?, {0x1a6f590, 0x0, 0x0?}) /home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/main.go:60 +0x16d github.com/spf13/cobra.(*Command).execute(0x1a1b320, {0xc000022230, 0x0, 0x0}) /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:916 +0x862 github.com/spf13/cobra.(*Command).ExecuteC(0x1a1b320) /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1040 +0x3bd github.com/spf13/cobra.(*Command).Execute(...) /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:968 main.main() /home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/main.go:135 +0x25
Is this a completely different error?
Are you running VHS as a root user @UtahDave? If you are can you try switching to a non-root user to see if that fixes things?
from vhs.
Are you running VHS as a root user @UtahDave? If you are can you try switching to a non-root user to see if that fixes things?
I am running as root. This is an LXC container with only a root user.
I'll add a non-root user and see if that helps.
from vhs.
Not sure, I believe something to do with root and --no-sandbox
flag that go-rod uses:
Running as root without --no-sandbox is not supported. See https://crbug.com/638180
from vhs.
@maaslalani You can add this flag, rod supports it:
launcher.New().NoSandbox().MustLaunch()
Check the doc for more info:
from vhs.
Hello there,
I am also running into the same issue while using the docker image listed in your README. I pulled this docker image, ghcr.io/charmbracelet/vhs
, today using singularity, and I am getting the same error.
Here is the command I am running:
$ singularity exec -B $PWD SIFs/vhs_latest.sif vhs /data/OpenOmics/dev/bin/demo.tape
File: /data/OpenOmics/dev/bin/demo.tape
panic: [launcher] Failed to get the debug url: The setuid sandbox is not running as root. Common causes:
* An unprivileged process using ptrace on it, like a debugger.
* A parent process set prctl(PR_SET_NO_NEW_PRIVS, ...)
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
[0100/000000.694421:ERROR:zygote_linux.cc(650)] write: Broken pipe (32)
goroutine 1 [running]:
github.com/go-rod/rod/lib/utils.glob..func2({0xd80b20?, 0xc0006160c0?})
/home/runner/go/pkg/mod/github.com/go-rod/[email protected]/lib/utils/utils.go:60 +0x25
github.com/go-rod/rod/lib/utils.E(...)
/home/runner/go/pkg/mod/github.com/go-rod/[email protected]/lib/utils/utils.go:66
github.com/go-rod/rod/lib/launcher.(*Launcher).MustLaunch(0xc0000b00e0?)
/home/runner/go/pkg/mod/github.com/go-rod/[email protected]/lib/launcher/launcher.go:351 +0x67
main.New()
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/vhs.go:67 +0x27b
main.Evaluate({0xc0004ac900, 0x85b}, {0x1454480, 0xc000012018}, {0x0, 0x0, 0x0?})
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/evaluator.go:33 +0x1c5
main.glob..func1(0x1a1b320?, {0xc000448590, 0x1, 0x1?})
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/main.go:60 +0x16d
github.com/spf13/cobra.(*Command).execute(0x1a1b320, {0xc000022050, 0x1, 0x1})
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:916 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0x1a1b320)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1040 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:968
main.main()
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/main.go:135 +0x25
Were you able to fix this issue in your docker image? Please let me know what you think.
Best Regards,
@skchronicles
from vhs.
Related Issues (20)
- Hide `vhs publish` info when exiting with tape errors HOT 1
- Escaped prompt when running VHS in a nix shell HOT 1
- Support customizing Padding and Margin.
- Make VHS available as a library to be used in test suites and make possible programmatically detect golden file changes HOT 1
- Show what is being entered HOT 3
- Publish command stalls (server unresponsive?) HOT 3
- Show output in real-time HOT 2
- PlaybackSpeed, Long-running processes, Weird non-blocking behaviour
- Windows Defender Quarantines the VHS Executable
- Bubblegum textinput app not being rendered
- docs: include link to preview available VHS styles
- VHS Not working on Win11
- How do I enter command mode in Neovim during the recording?
- Feat Req: Add flag to convert output to specified length
- Show the defaults for each setting in the docs and the docs tape file
- Last typed character can be dropped sometimes
- Terminal editor (neovim, helix, emacs --nw) not rendered correctly
- New ENV command breaks SET command in tape file HOT 8
- VHS_NO_SANDBOX ENV option needs documented
- Unable to distinguish between comment and command HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vhs.