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

Couldn't find the xsel binary and fallback didn't work. On Debian/Ubuntu you can install xsel with: sudo apt install xsel #63

Open
iuriigrynykha opened this issue Apr 29, 2020 · 7 comments

Comments

@iuriigrynykha
Copy link

I've encountered such an issue upon running the tests in Jenkins on a remote Linux machine.

After sudo apt install xsel the following error message is displayed

"Both xsel and fallback failed".

Can you help me to solve this issue, please?

@tom-james-watson
Copy link

If you manage to log the underling error you'll likely see something like the following:

xsel: Can't open display: (null)
      : Inappropriate ioctl for device

It looks like the library doesn't work in a headless environment.

I'm not sure about Jenkins, but on GitHub Actions you can use this action - https://github.com/marketplace/actions/gabrielbb-xvfb-action - to provide a virtual display whilst running the tests.

@tom-james-watson
Copy link

tom-james-watson commented Aug 19, 2020

You can also use xvfb-run from the xvfb package.

e.g. on circleci:

- run:                                                                    
    name: Run Tests                                                       
    command: xvfb-run npm t

@esatterwhite
Copy link

I just ran into this problem as well on jenkins. Not sure if it is a jenkins specific thing as this build run in docker containers.

However, it works find on Node 12 and 14. But fails with this error on node 15

@github0013
Copy link

I solved this like this #65

@kadistudio
Copy link

error = new Error('Couldn't find the xsel binary and fallback didn't work. On Debian/Ubuntu you can install xsel with: sudo apt install xsel');

I also encounter this error when i try to host my Discord Bot using Heroku, when using my own terminal node . everything is fine. btw im using 2.3.0 version because the 3.0.0 gives me error

@sankalpguptasymphony
Copy link

@iuriigrynykha Were you able to solve this problem?

"Both xsel and fallback failed"

@pgibler
Copy link

pgibler commented Dec 26, 2023

Also having this issue.

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

No branches or pull requests

7 participants