Giter VIP home page Giter VIP logo

Comments (13)

muesli avatar muesli commented on September 1, 2024 1

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.

UtahDave avatar UtahDave commented on September 1, 2024 1

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.

UtahDave avatar UtahDave commented on September 1, 2024 1

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.

muesli avatar muesli commented on September 1, 2024

We should try to avoid the panic and add it to the deps: you will probably have to install libgbm1 on Ubuntu.

from vhs.

DannyBen avatar DannyBen commented on September 1, 2024

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.

UtahDave avatar UtahDave commented on September 1, 2024

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.

UtahDave avatar UtahDave commented on September 1, 2024
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.

UtahDave avatar UtahDave commented on September 1, 2024

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.

maaslalani avatar maaslalani commented on September 1, 2024

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.

UtahDave avatar UtahDave commented on September 1, 2024

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.

maaslalani avatar maaslalani commented on September 1, 2024

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.

ysmood avatar ysmood commented on September 1, 2024

@maaslalani You can add this flag, rod supports it:

launcher.New().NoSandbox().MustLaunch()

Check the doc for more info:

https://github.com/go-rod/rod/blob/17b8fba7c0a32493491528b15d9749d83a128bb3/lib/launcher/launcher.go#L223-L227

from vhs.

skchronicles avatar skchronicles commented on September 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.