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

Getting error while running the binary #4

Closed
rahul-satal opened this issue Mar 30, 2020 · 7 comments
Closed

Getting error while running the binary #4

rahul-satal opened this issue Mar 30, 2020 · 7 comments
Labels
question Questions related to rod

Comments

@rahul-satal
Copy link

I am following the installation steps. While trying to create binary I am getting the below error:-

standard_init_linux.go:211: exec user process caused "no such file or directory"

image

Below is the output of Docker version command
image

I am running it on Ubuntu. I have installed Docker and cloned the repo. Please let me know if I am missing anything.

@ysmood
Copy link
Member

ysmood commented Mar 30, 2020

I think you missed the first line of the doc:

Screen Shot 2020-03-31 at 3 53 13

Are you sure you understand what the first line does?

@ysmood ysmood added the question Questions related to rod label Mar 30, 2020
@rahul-satal
Copy link
Author

Thanks @ysmood for the prompt reply.

I ran the file line command as well. It worked fine and the rod.test executable file is also created successfully as shown in the below screenshot.
image

I have also pulled your last commit and run the below commands

# build and run the tests of rod repo
docker build -t test https://github.com/ysmood/rod.git
docker run --rm --cap-add=SYS_ADMIN -it test

Here build was created successfully. But, I am getting below errors with docker run command:-

[0331/093428.512924:ERROR:gl_implementation.cc(282)] Failed to load /usr/lib/chromium/swiftshader/libGLESv2.so: Error loading shared library /usr/lib/chromium/swiftshader/libGLESv2.so: No such file or directory

You can see complete logs here - https://play.golang.org/p/5oxGxGK5kL7

I am new to both Golang and docker. So, even if it works I have no idea how can I process further and create my own web testing script. Expecting your help.

@ysmood
Copy link
Member

ysmood commented Mar 31, 2020

The libGLESv2 is a known issue of Chrome itself which won't affect anything from my view. It's not a bug, just telling you GPU is not available in docker.

@ysmood
Copy link
Member

ysmood commented Mar 31, 2020

Can you tell me why you choose Golang which you are unfamiliar with? How about learning Golang from their official tutorial first?

Then read the examples of Rod?

@ysmood
Copy link
Member

ysmood commented Mar 31, 2020

I'm writing a tutorial about using Rod to scrape websites.

Maybe you want to read it when I finished it, maybe you can give me some tips about what you want to learn from the tutorial.

@ysmood ysmood closed this as completed Apr 17, 2020
@rahul-satal
Copy link
Author

Can you tell me why you choose Golang which you are unfamiliar with? How about learning Golang from their official tutorial first?

Then read the examples of Rod?

After learning Golang basics, I am able to use the examples. Thanks

@ysmood
Copy link
Member

ysmood commented Apr 22, 2020

Good to hear that 👍

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

No branches or pull requests

2 participants